PlcStep7DataType coding group

The data type of a PLC data symbol.

Lua access code

To access the code of the codings below, append the coding group name and coding name to, see an example below.



Name Code Description
BOOL 2 Bit [1 bit] (BOOL)
BYTE 3 Byte [8 bits] (BYTE)
CHAR 10 Character [8 bits] (CHAR)
DATE 13 IEC date in steps of 1 day [16 bits] (DATE)
DATE_AND_TIME 15 Date and time of day [64 bit] (DT)
DEFAULT 1 Default data type as specified by the address (Item ID)
DINT 7 Double integer [32 bits] (DINT)
DWORD 5 Double word [32 bits] (DWORD)
INT 6 Integer [16 bits] (INT)
REAL 8 Floating-point number [32 bits] (REAL)
S5TIME 9 SIMATIC time in steps of 10 ms (default) [16 bits] (S5TIME)
STRING 11 String [0..254 characters] (STRING)
TIME 12 IEC time in steps of 1 ms [32 bits] (TIME)
TIME_OF_DAY 14 Time of day in steps of 1 ms [32 bit] (TOD)
WORD 4 Word [16 bits] (WORD)