Y_YA_LAU
This function block generates a linear ramp from a current value to the target value with a slope based on the Rate input on the function block. The input can be continuously changing on the fly.
Parameters:
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_INPUT | ||||
| B | Enable | BOOL | The function will continue to execute every scan while Enable is held high and there are no errors. | FALSE |
| V | Input | LREAL | Target value. | LREAL#0.0 |
| V | InitialValue | LREAL | InitialValue from where the ramp starts |
|
| V | Rate | LREAL | Acceleration/Deceleration per scan. The time required for the Output to become the Input value profile depends on the Rate Input and the interval (Application task rate)at which the LAU function block is being run. | LREAL#0.0 |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | Indicates that the function is operating normally and the outputs of the function are valid. | |
| B | Error | BOOL | Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low. | |
| E | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. | |
| V | Output | LREAL | Output value. | |
Error Description
See the
Function Block ErrorID List