LOG_GENERIC_INPUT Writing Datasets

../_images/2d7df4c065c2740c0a33139001689805

Function Block LOG_GENERIC_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

At the same time, this Function Block writes datasets of the data types 1=BOOL, 2=BYTE, 3=INT, 4=WORD, 5=DINT, 6=DWORD, 7=REAL with a max length of 32 values into the SRAM-FIFOin of the Datalogger.

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).

The Function Block writes datasets in the SRAM-FIFOin of the controller and doesn’t send them directly to a central control station. This is done by the user. With the Function Block LOG_GENERIC_OUTPUT the data to be sent are provided as an interface.

../_images/f59d546981597e540a33139000537444

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.