Delta AH500 Programming Manual page 620

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
4.
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#3641 and 16#4633 respectively. When the PLC runs,
the value in D0 is -22977.
b15
D20
16#36(6)
16#
D21
Example 2:
Suppose the values in D20, D21, D22, and D23 are 16#4634, 16#3244, 16#3738, and 16#3035
respectively. When the PLC runs, the value in (D1, D0) is 1339197264.
b 15
b 8
1 6#4 6( F)
D2 0
1 6#3 2( 2)
D2 1
D2 2
1 6#3 7( 7)
D2 4
1 6#3 0( 0)
Example 3:
Suppose S is the string "A". Since the number of characters contained in the string is less than 4, the
string is regarded as "A000". When the PLC runs, the value in D20 is -24576.
Example 4:
Suppose S is the string "0000000A". When the PLC runs, the value in (D21, D20) is 10.
6 - 4 5 2
b0
b8
b7
16#
41(A)
46(F )
16#
33(3)
Conversion result=
b 0
b 7
1 6#3 4( 4)
1 6 #44 (D)
Conv ersi on res ult =
1 6#3 8( 8)
1 6 #35 (5 )
D0
- 22977
16#
A63F= -22977
( D1,D0)
13 391 97 264
16
#
4 FD2 875 0
=133 919 72 64

Advertisement

Table of Contents
loading

Table of Contents