Y_YA_Blink
Functionality that will toggle an output at the 'Frequency' specified at the input. If 'Frequency' is set to 1.0, then the 'output' will be on for 500 mSec and off for 500 mSec.
Note that the actual frequency may be affected by the application scan rate in which this function block is placed.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_INPUT | ||||
| B | Enable | BOOL | The function block will continue to execute every scan while Enable is TRUE and there are no errors. | FALSE |
| V | Frequency | REAL | The cycle rate in Hertz. | REAL#0.0 |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | The Valid output indicates that the function block is operating normally and the outputs of the function block are valid. | |
| V | Output | BOOL | Toggled at the specified frequency when the function is enabled. | |
| B | Error | BOOL | The Error output is set to TRUE if an error has occurred during the operation of the function block. The output is cleared when the Execute or Enable input becomes FALSE. | |
| E | ErrorID | UINT | The ErrorID output provides the identifier of the error when there is an active error in the function block execution. The output is cleared when the Execute or Enable input becomes FALSE. | |
Notes
- The 'Valid' output will be high if the function is operating. If 'Enable' is held high and the 'Frequency' is not greater than zero, the 'Valid' output will be low.