Y_YA_GetTaskInterval
Function block that reports the update rate of the task the function block is placed in.
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 |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | Indicates that the function is operating normally and the outputs of the function are valid | |
| B | Busy | BOOL | Set high upon the rising edge of the Execute input, and reset when Done, CommandAborted, or Error is true. In the case of a function block with an Enable input, a Busy output indicates the function is operating, but not ready to provide Valid information. (No Error) | |
| 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 |
|
| B | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low
|
|
| V | ActualInterval | REAL | Update rate of the task in which the instance of GetTaskInterval is being used. Units are milliseconds. | |
| V | ConfiguredInterval | REAL | Configured rate of the task in which the instance of GetTaskInterval is being used. Units are in milliseconds | |
Error Description
See the
Function Block ErrorID List