Siemens B4 Uživatelský manuál Strana 14

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 18
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 13
Automation– and Drive Technology- SCE
Data in a data block must be determined through data types.
The following standard- data types are defined in the S7 below :
Type and
description
Size
in Bits
Format-Options Range and number notation
(lowest to highest values)
Example
BOOL (Bit) 1 Boolean text TRUE/FALSE TRUE
BYTE (Byte) 8 Hexadecimal
number
B#16#0 to B#16#FF B#16#10
WORD (Word) 16 Binary number 2#0 to 2#1111_1111_1111_1111 2#0001_0000_0000_0000
Hexadecimal
number
W#16#0 to W#16#FFFF W#16#1000
BCD C#0 to C#999 C#998
Decimal number
unsigned
B#(0,0) to B#(255,255) B#(10,20)
DWORD (Double
word)
32 Binary number 2#0 to
2#1111_1111_1111_1111_1111_1111
_1111_1111
2#1000_0001_0001_1000_1
011_1011_0111_1111
Hexadecimal
number
DW#16#0000_0000 to
DW#16#FFFF_FFFF
DW#16#00A2_1234
Decimal number
unsigned
B#(0,0,0,0) to B#(255,255,255,255) B#(1,14,100,120)
INT (Integer) 16 Decimal number
signed
-32768 to 32767 1
DINT (Int,32 bit) 32 Decimal number
signed
L#-2147483648 to L#2147483647 L#1
REAL (Floating-
point number)
32 IEEE floating-point
number
Upper limit: +/-3.402823e+38
Lower limit: +/-1.175495e-38
1.234567e+13
S5TIME
(Simatic-Time)
16 S7-Time in steps of
10 ms
S5T#0H_0M_0S_10MS to
S5T#2H_46M_30S_0MS and
S5T#0H_0M_0S_0MS
S5T#0H_1M_0S_0MS
S5TIME#1H_1M_0S_0MS
TIME
(IEC-Date)
32 IEC-Time in steps
from 1ms, integer
signed
-T#24D_20H_31M_23S_648MS to
T#24D_20H_31M_23S_647MS
T#0D_1H_1M_0S_0MS
TIME#0D_1H_1M_0S_0MS
DATE
(IEC-Date)
16 IEC-Date in steps
of 1 day
D#1990-1-1 to D#2168-12-31 DATE#1994-3-15
TIME_OF_DAY
(Time)
32 Time in steps of
1ms
TOD#0:0:0.0 to TOD#23:59:59.999 TIME_OF_DAY#1:10:3.3
CHAR (Character) 8 ASCII-Characters ´A´, ´B´ etc. ´B´
T I A Training document Page 14 of 18 Module B4
Last revision: 02/2002 Data blocks
Forward Notes Generating data blocks
Zobrazit stránku 13
1 2 ... 9 10 11 12 13 14 15 16 17 18

Komentáře k této Příručce

Žádné komentáře