Y_RW_DataLogWrite
The DataLogWrite function block opens a csv file, writes header information and recorded data, and finally closes the file.
Parameters:
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | DataLogPrms | Yt_RW_DataLoggingStruct | Structure that holds the data to be written | |
| VAR_INPUT | ||||
| B | Execute | BOOL | Upon the rising edge, all other inputs are read and the function is initiated. | FALSE |
| B | Abort | BOOL | Abort the write process |
|
| B | FileName | STRING | The name of the file where the data needs to be written to. |
|
| B | FileLocation | Yt_RW_FTB_FileLocation | Denotes whetrher the files reside in Flash or Ram, 0 = Ram, 1 = Flash |
|
| B | Precision | INT | Number of decimal places to write (0-15) |
|
| VAR_OUTPUT | ||||
| B | Done | BOOL | Set to TRUE when the commanded action has completed successfully. | |
| B | Busy | BOOL | Set high upon the rising edge of the Execute input, and reset when Done, CommandAborted, or Error is true. | |
| B | CommandAborted | BOOL | TRUE if the function is aborted. | |
| 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 .