SQUARE_FUNC (79)
SQUARE_FUNC (79)
ID 79
Application: |
PLC |
SIM |
Group: MATH
Short description:
A function that returns the value of a square function.
Inputs (1):
no. |
type |
impulse |
mark |
notes |
1 |
R |
no |
x |
Real type input |
Outputs (2):
no. |
type |
impulse |
mark |
notes |
1 |
R |
no |
y |
Function output value |
2 | B | no | limit | Result is out of limit for a real type variable |
Settings:
no. |
type |
mark |
notes |
1 |
R |
a |
Parameter 'a' of the quadratic function |
2 | R | b | Parameter 'b' of the quadratic function |
3 | R | c | Parameter 'c' of the quadratic function |
Function operation:
The SQUARE_FUNC function returns as a result the value of a quadratic function in the form y = ax ^ 2 + bx + c. The parameters of the quadratic function are set when the function block is created. If the result of the operation is greater than the upper value of the real type variable (-1.7 * 10E308 ... 1.7 * 10E308), the limit output is activated, and the y output is the maximum value of the real type variable.
R registers and M markers used: none