LOG_IEC60870_OUTPUT Decoding and Transmitting Datasets¶
Function Block LOG_IEC60870_OUTPUT
Available as of PLC runtime system | V2.3 and above |
Included in library | LogData_AC500_V23.lib |
Type | Function Block with historical values |
This Function Block decodes a dataset formated in *.csv and sends the current data type from the RAM-FIFOout of the Datalogger to the control station.
If enabled the Function Block automatically reads the oldest dataset at a filling level of FIFOout > 0 and existing communication connection. Then the Function Block decodes the dataset from *.csv format, sends the data via internal call of IEC Function Blocks and shows status at output STATE = zLOG_OUTPUT_DATA_HAS_BEEN_SENT. This happens until FIFOOUT_LEVEL=0 and the Function Block signals “EMPTY”. At the same time at output STATE the message “zLOG_FIFOOUT_EMPTY” is given. While existing communication and exhausted FILE-FIFO, the datasets, newly written by LOG_IEC60870_INPUT to the (in the %R area residing) FIFOin, are continuosly copied by LOG_HANDLING directly to the (in the %M-area residing) FIFOout, as soon as there is space in the FIFOout for new datasets. For this the FIFOout should not be empty (EMPTY). It is different when FILE-FIFO is not empty. In this case at first FIFOout is fully decremented until FIFOOUT_LEVEL=0 and the Function Block signals “EMPTY”. After that a new dataset block is copied from FILE-FIFO into FIFOout. The capacity of the RAM-FIFOout per segment of the %M-area is at max ARRAY[0..160] OF ARRAY[0..399] OF BYTE. The ARRAY ocupies the complete segment 1 in the %M-area of the CPU.
Note
A complete segment (segment 1 of the %R-area) is used for the SRAM-FIFOin (zLOG_CONST_FIFOLIMIT =160).
Functionality