LINEAR_FUNC (78)
LINEAR_FUNC (78)
ID 78
Application: |
PLC |
SIM |
Group: MATH
Short description:
A function that returns the value of a linear 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 a linear function |
2 | R | b | Parameter 'b' of a linear function |
Function operation:
The LINEAR_FUNC function returns as a result the value of a linear function in the form y = ax + b. The parameters of the linear 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