Operating principle
The DataLogger function block records the data on the MOVI-C® CONTROLLER. The data is saved in a CSV file on a Windows system (e.g. Windows part of the MOVI-C® CONTROLLER or external PCs). For storage, the function block provides a buffer variable that is used to exchange one line of the CSV file at a time. Also included is another variable for the handshake to control the transfer. Data is exchanged via a standardized communication protocol such as CODESYS ARTI.
Various variables are provided in the logging structure for transferring the CSV file from the MOVI-C® CONTROLLER to the connected Windows system. See chapter Logging.
After each recorded sample, a line of the CSV file is provided for transfer. In each cycle, the DataLogger function block first checks the status of the variable INOUT.xNewData. If this variable has the value "FALSE", the receiver side is ready. In this case, one line of the CSV file is written to the variable OUT.abyLineBuffer. The variable INOUT.xNewData is then set to "TRUE" to signal to the receiver side that a new line is ready for transfer. As soon as the receiver side has fetched the line, it must set the variable INOUT.xNewData to "FALSE" to signal to the function block that the next line can be transferred. This procedure is repeated until the IN.xActivate variable is set to "FALSE".