LOG_IEC60870_INPUT Writing Datasets

../_images/e2acf5625c9b5c370a331390005647fa

Function Block LOG_IEC60870_INPUT

General Information
Available as of PLC runtime system V2.3 and above
Included in library LogData_AC500_V23.lib
Type Function Block with historical values

The Function Block is used for writing datasets into the SRAM-FIFOin of the Datalogger according to IEC 60870-5-104 protocol. According to the corresponding data type up to 16 data points of this data type can be written at the same time.

The datasets are written in format *.csv as two-dimensional ARRAY. Every part of each dataset is separated by SEMICOLON. Each dataset is ended with a CR/LF. Every segment of the %R area of the SRAM-FIFOin contains maximum one ARRAY[0..160] OF ARRAY[0..399] OF BYTE. The ARRAY reserves the complete segment 1 of the %R area of the controler.

Note

A complete segment (segment 1 of the %R-area) is used for the SRAM-FIFOin (zLOG_CONST_FIFOLIMIT =160).

Here, the Function Block is used to write the datasets into the SRAM-FIFOin of the PLC CPU and not to be sent directly to the control station. This is done with Function Block LOG_IEC60870_OUTPUT which uses the above mentioned Function Blocks.

../_images/1cb069a9815701680a33139000327b55

Functionality

Caution

Each used instance of the Function Block needs only one cycle for writing the data into FIFOin. For “n” succeeding instances called in the same cycle, “n” entrances/datasets are entered into FIFOin. Consider that FIFOin is limited by the limit of the segments of the %R area. That means, the upper limit of entries to FIFOin at the same time (in the same cycle) is 160.