Delta AH500 Programming Manual page 623

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

b15
ASCII code in
S
the milli ons place
ASCII code in the
S+1
ten thousands plac e
ASCII code in
S+2
the hundreds place
ASCII code in
S+3
the units pl ac e
If the ASCII code in S~S+3 is 87654321, the conversion result is as follows.
b15
16#37(7)
S
16#35(5)
S+1
S+2
16#33(3)
16#31(1)
S+3
4.
If the value in S is 16#20 or 16#00, the value is processed as 16#30.
5.
If S used in the 16-bit instruction is a string, the number of characters contained in the string
should be within the range between 1 and 4. If S used in the 32-bit instruction is a string, the
number of characters contained in the string should be within the range between 1 and 8.
Example 1:
Suppose the values in D20 and D21 are 16#3420 and 16#3439 respectively. When the PLC runs,
the value in Y0 is 16#494.
b15
D20
16#34(4)
D21
16#34(4)
Example 2:
Suppose the values in D20, D21, D22, and D23 are 16#3738, 16#3536, 16#3334, and 16#3132
respectively. When the PLC runs, the value in (D11, D10) is 16#87654321.
b15
16#37(7)
D20
16#
35(5)
D21
D22
16#
33(3)
D23
16#
31(1)
b0
b8
b7
ASCII code in
the ten mill ions place
ASCII code in the hundred
thous ands plac e
ASCII code in
the thousands place
ASCII code in
the tens plac e
b0
b8
b7
16#38(8)
16#36(6)
16#34(4)
16#32(2)
b8
b7
b0
16#20( )
16#39(9)
b0
b8
b7
16#
38(8)
16#
36(6)
16#
34(4)
16#
32(2)
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
D+1
b15 b12 b11 b8 b7 b4 b3
D+1
b15 b12 b11 b8 b7 b4 b3
b0
b15 b12 b11 b8 b7 b4 b3
8
6
5
4
7
b1 2
b1 5
b11
b8
b7
b4
4
9
Y0
D11
b15 b12 b11 b8 b7 b4 b3
b0
b15 b12 b11 b8 b7 b4 b3
5
8
7
6
4
D
b15 b12 b11 b8 b7 b4 b3
b0
b0
D
b0
1
2
3
b3
b0
4
D10
b0
1
3
2
6 - 4 5 5

Advertisement

Table of Contents
loading

Table of Contents