謝謝以zz680217 , cvlsam 的幫助! 在軟件使用手冊(cè)A.3.2中有詳細(xì)說明。
BOOL(位) 1 布爾文本 TRUE/FALSE TRUE
BYTE
(字節(jié))
8 十六進(jìn)制數(shù) B 16#0 to B 16#FF L B#16#10
L byte#16#10
WORD
(字)
16 二進(jìn)制數(shù)
十六進(jìn)制數(shù)
BCD
無符號(hào)的十進(jìn)制數(shù)
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)
L 2#0001_0000_0000_0000
L W#16#1000
L word16#1000
L C#998
L B#(10,20)
L byte(10,20)
DWORD
(雙字)
32 二進(jìn)制數(shù)
十六進(jìn)制數(shù)
BCD
無符號(hào)的十進(jìn)制數(shù)
2#0 to
2#1111_1111_1111_1111
1111_1111_1111_1111
DW#16#0000_0000 to
DW#16#FFFF_FFFF
B#(0,0,0,0)to
B#(255,255,255,255)
2#1000_0001_0001_1000_
1011_1011_0111_1111
L DW#16#00A2_1234
L dword#16#00A2_1234
L B#(1,14,100,120)
L byte#(1,14,100,120)
INT
(整數(shù))
16 有符號(hào)的十進(jìn)制數(shù) -32768 to 32767 L 1
DINT
(整數(shù),32位)
32 有符號(hào)的十進(jìn)制數(shù) L#-2147483648 to
L#2147483647
L L#1
REAL
(浮點(diǎn)數(shù))
32 IEEE
浮點(diǎn)數(shù)
上限:±3.402823e+38
下限:±1.175495e-38
L 1.234567e+13
S5TIME
(SIMATIC
時(shí)間)
16 S7 時(shí)間,每步10ms
(缺省值)
S5T#0H_0M_0S_10MS to
S5T#2H_46M_30S_0MS
and
S5T#0H_0M_0S_0MS
L S5T#0H_1M_0S_0MS
L
S5TIME#0H_1H_1M_0S_0MS
TIME
(IEC時(shí)間)
32 IEC時(shí)間,每步1ms,
帶符號(hào)整數(shù)
-T#24D_20H_31M_23S_6
48MS to
T#24D_20H_31M_23S_6
47MS
L T#0D_1H_1M_0S_0MS
L TIME#0D_1H_1M_0S_0MS