Delta AH500 Programming Manual page 617

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

b15
b8
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
Ignor ed
5.
If S used in the 32-bit instruction is a string and the number of characters contained in the
string is less than 11, the characters which the string lacks are regarded as 0. The first
character is a sign character. If the first character is " " (a space), the sign is a positive sign. If
the first character is "-", the sign is a negative sign. Take the string "-0123456789" for example.
b15
b 8
b7
"0"
"2"
"4"
"6"
"8"
" (Ignored)"
6.
If the value in S is 16#20 or 16#00, the value is processed as 16#30.
7.
If the sign character is 16#20, 16#30 or 16#2B, the conversion result is a positive value. If the
sign character is 16#2D, the conversion result is a negative value.
8.
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 6. 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 11.
Example 1:
Suppose the values in D20, D21, and D22 are 16#202D, 16#3220, and 16#3736. When the PLC
runs, the value in D0 is -267.
b15
D20
D21
D22
Example 2:
Suppose the values in D20, D21, D22, D23, D24 and D25 are 16#2020, 16#2020, and 16#3933,
16#3836, 16#3733, and 16#3330. When the PLC runs, the value in D0 is 3968370.
b7
b0
Sign
S
ASCII code in the
hundred mil lions pl ac e
S+1
ASCII code in
S+2
the mill ions place
ASCII code in the
S+3
ten thousands plac e
ASCII code in
S+4
the hundreds place
ASCII code in
S+5
the units pl ace
b0
"-"
S
"1"
S+1
"3"
S+2
"5"
S+3
"7"
S+4
"9"
S+5
b8
b7
16#20( )
16#2D( -)
16#32( 2)
16#20( 0)
16#36( 6)
16#
37(7)
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
b31
b16
32-bit bi nar y number
b31
b15
b16
-123456789
32 -bit bin
b0
D0
- 267
(Regarded as - 00267)
b15
b0
(D+1, D)
b0
(D +1,D 0)
6 - 4 4 9

Advertisement

Table of Contents
loading

Table of Contents