Delta AH500 Programming Manual page 285

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

After the instruction is executed, the data in the operand D is as follows.
Device
High byte
D0
16#32
D1
16#34
D2
16#00
D3
Unchanged
Example 2:
Suppose the operand S is the odd string "12345". When the conditional contact X0.0 is enabled, the
data in D0~D3 is as follows.
The operand S:
String
Hexadecimal value
After the instruction is executed, the data in the operand D is as follows.
Device
High byte
D0
16#32
D1
16#34
D2
16#00
D3
Unchanged Unchanged
Example 3:
When the operand S is not a string and the ending code 16#00 appears in the low byte, the
execution of the instruction is as follows.
The operand S:
Device
High byte
D100
16#31
D101
16#33
D102
16#35
D103
16#30
After the instruction is executed, the data in the operand D is as follows.
Device
High byte
D0
16#31
D1
16#33
D2
16#35
D3
16#00
D4
Unchanged Unchanged
Example 4:
When the operand S is not a string and the ending code 16#00 appears in the high byte, the
execution of the instruction is as follows.
Low byte
16#31
16#33
The ending code 16#00 is in the low byte.
16#00
16#00 is automatically added in the high byte.
Unchanged
'1'
'2'
16#31
16#32
Low byte
16#31
16#33
16#35
The ending code 16#00 is in the high byte.
Low byte
16#30
16#32
16#34
16#00
'0'=16#30; 16#00 is the ending code.
Low byte
16#30
16#32
16#34
The ending code 16#00 is in the low byte.
16#00
16#00 is automatically added in the high byte.
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Note
'1'=16#31; '2'=16#32
'3'=16#33; '4'=16#34
'3'
'4'
16#33
16#34
Note
'1'=16#31; '2'=16#32
'3'=16#33; '4'=16#34
Note
'1'=16#31; '0'=16#30
'3'=16#33; '2'=16#32
'5'=16#35; '4'=16#34
Note
'1'=16#31; '0'=16#30
'3'=16#33; '2'=16#32
'5'=16#35; '4'=16#34
'5'
16#35
6 - 11 7

Advertisement

Table of Contents
loading

Table of Contents