Delta AH500 Programming Manual page 608

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
High 16 bi ts
Low 16 bits
S
32-bit bi nar y number
If SM690 is OFF, 16#0000 is stored in the high 8 bits in D+5. If SM690 is ON, 16#20 is stored
in the high 8 bits in D+5. Besides, if the value in S is a positive value, the sign character in D is
16#20. If the value in S is a negative value, the sign character in D is 16#2D. For example, if
the value in S is -12345678, the conversion result is as follows.
S
-1234
32-bit binar y number
5.
Take the 32-bit binary number -12345678 in S for example. The digit in the hundred millions
place of the number and the digit in the billions place of the number are 0. When the instruction
is executed, 16#20 is stored in the low 8 bits in D+1 and the high 8 bits in D.
S
-1234
32-bit binar y number
Becoming 16#20
Example 1:
Suppose the value in L0 is 5126 and SM690 is OFF. When the PLC runs, the values in D0, D1, D2,
and D3 are 16#2020, 16#3135, 16#3135, and 16#0000 respectively.
6 - 4 4 0
b15
ASCII code in
the billi ons place
ASCII code in
the ten mill ions plac e
ASCII code in the hundred
thous ands plac e
ASCII code in
the thousands plac e
ASCII code in
the tens plac e
Ending c har acter
(16#00 or 16#20)
S +1
5678
S +1
5678
00 123 4 5678
16#20 is stored.
Signifi cant digits
b7
b8
Sign
ASCII code in the
hundred mil lions plac e
ASCII code in
the mill ions place
ASCII code in the
ten thousands plac e
ASCII code in
the hundreds place
ASCII code in
the units pl ac e
b15
b8
b7
16#20( )
16#2D(-)
16#20( )
16#31( 1)
16#33( 3)
16#32( 2)
16#34( 4)
16#35( 5)
16#37( 7)
16#36( 6)
16#38( 8)
16#00或 6#20
1
b8
b7
b15
16#20( )
16#2D(-)
16#20( )
16#31( 1)
16#33( 3)
16#32( 2)
16#34( 4)
16#35( 5)
16#37( 7)
16#36( 6)
16#00或 6#20
1
16#38( 8)
b0
(±)
D
D
+1
D
+2
D
+3
D +4
D +5
b0
D
D
+1
D
+2
D
+3
D
+4
D
+5
b0
D
D
+1
D
+2
D
+3
D
+4
D
+5

Advertisement

Table of Contents
loading

Table of Contents