You are on page 1of 4

English Mnemonics I/O Signals I IB IW ID Q QB QW QD Marker Memory M MB MW MD Peripheral I/O PIB PIW PID PQB PQW PQD Timers

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

Type and Description BOOL (Bit) WORD (Word)

Size in Bits 1 16

DWORD (Double word)

32

INT (Integer) DINT (Double integer) REAL (Floating-point number) S5TIME (SIMATIC time)

16 32 32 16

TIME (IEC time)

32

DATE (IEC date) TIME _OF_DAY (Time) CHAR (Character)

16 32 8

Format Options

Range and Number Notation Example in STL (lowest to highest values)

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.

TRUE L 2#0001_0000_0000_0000 L L L L L W#16#1000 word#16#1000 C#998 B#(10,20) byte#(10,20)

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 1.234567e+13 L S5T#0H_1M_0S_0MS L S5TIME#0H_1H_1M_0S_0MS

IEC time in steps of 1 ms, integer signed

L T#0D_1H_1M_0S_0MS L TIME#0D_1H_1M_0S_0MS

IEC date in steps of 1 day Time in steps of 1 ms ASCII characters

L L L L L

D#1996-3-15 DATE#1996-3-15 TOD#1:10:3.3 TIME_OF_DAY#1:10:3.3 'E'

You might also like