s7 Symbol Table Data Type
s7 Symbol Table Data Type
and Counters T C Logic Blocks FB OB FC SFB SFC Data Blocks DB User-defined data types UDT
German Mnemonics E EB EW ED A AB AW AD M MB MW MD PEB PEW PED PAB PAW PAD T Z FB OB FC SFB SFC DB UDT
Description Input bit Input byte Input word Input double word Output bit Output byte Output word Output double word Memory bit Memory byte Memory word Memory double word Peripheral input byte Peripheral input word Peripheral input double word Peripheral output byte Peripheral output word Peripheral output double word Timer Counter Function block Organization block Function System function block System function Data block User-defined data type
Data Type BOOL BYTE, CHAR WORD, INT, S5TIME, DATE DWORD, DINT, REAL, TOD, TIME BOOL BYTE, CHAR WORD, INT, S5TIME, DATE DWORD, DINT, REAL, TOD, TIME BOOL BYTE, CHAR WORD, INT, S5TIME, DATE DWORD, DINT, REAL, TOD, TIME BYTE, CHAR WORD, INT, S5TIME, DATE DWORD, DINT, REAL, TOD, TIME BYTE, CHAR WORD, INT, S5TIME, DATE DWORD, DINT, REAL, TOD, TIME TIMER COUNTER FB OB FC SFB SFC DB, FB, SFB, UDT UDT
Address Range 0 to 65535.7 0 to 65535 0 to 65534 0 to 65532 0 to 65535.7 0 to 65535 0 to 65534 0 to 65532 0 to 65535.7 0 to 65535 0 to 65534 0 to 65532 0 to 65535 0 to 65534 0 to 65532 0 to 65535 0 to 65534 0 to 65532 0 to 65535 0 to 65535 0 1 0 0 0 to to to to to 65535 65535 65535 65535 65535
1 to 65535 0 to 65535
Size in Bits 1 16
32
INT (Integer) DINT (Double integer) REAL (Floating-point number) S5TIME (SIMATIC time)
16 32 32 16
32
16 32 8
Format Options
Boolean text Binary number Hexadecimal number BCD Decimal number unsigned Binary number
TRUE/FALSE 2#0 to 2#1111_1111_1111_1111 W#16#0 to W#16#FFFF C#0 to C#999 B#(0,0) to B#(255,255) 2#0 to 2#1111_1111_1111_1111_ 1111_1111_1111_1111 W#16#0000_0000 to W#16#FFFF_FFFF B#(0,0,0,0) to B#(255,255,255,255) -32768 to 32767 L#-2147483648 to L#2147483647 Upper limit +/-3.402823e+38 Lower limit +/-1.175495e-38 S5T#0H_0M_0S_10MS to S5T#2H_46M_30S_0MS and S5T#0H_0M_0S_0MS T#24D_20H_31M_23S_648MS to T#24D_20H_31M_23S_647MS D#1990-1-1 to D#2168-12-31 TOD#0:0:0.0 to TOD#23:59:59.999 A', 'B' etc.
L 2#1000_0001_0001_1000 _ 1011_1011_0111_1111
L L L L L L DW#16#00A2_1234 dword#16#00A2_1234 B#(1, 14, 100, 120) byte#(1,14,100,120) 101 L#101
Hexadecimal number Decimal number unsigned Decimal number signed Decimal number signed IEEE Floating-point number S7 time in steps of 10ms (default)
L T#0D_1H_1M_0S_0MS L TIME#0D_1H_1M_0S_0MS
L L L L L