Y_RW_DataLogRecord
The DataLogRecord function block is used to log data on a maximum of 6 different channels.
Parameters:
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | DataLogPrms | Yt_RW_DataLoggingStruct | Structure that contains the logged data |
|
| VAR_INPUT | ||||
| B | Enable | BOOL | This function block will continue to execute while Enable is held high. | FALSE |
| B | Channel1 | LREAL | Channel 1 data |
|
| B | Channel2 | LREAL | Channel 2 data |
|
| B | Channel3 | LREAL | Channel 3 data |
|
| B | Channel4 | LREAL | Channel 4 data |
|
| B | Channel5 | LREAL | Channel 5 data |
|
| B | Channel6 | LREAL | Channel 6 data |
|
| VAR_OUTPUT | ||||
| B | Valid | BOOL | TRUE if the function block is executing without errors. | |
| B | Busy | BOOL | Busy indicates that the function block is operating, but may not be ready to provide valid outputs. | |
| 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. | |
Notes:
Error Description:
See the Function Block ErrorID List .
Examples: