Delta AS Series Programming Manual page 405

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
9.
When S overlaps D and the device number of S is less than the device number of D, the transfer of the data to D
starts form the ending code 16#00.
Example 1
Suppose the data in S is the string "1234" (even number of bytes). When X0.0 is enabled, the data 1234 and the ending
code 16#00 is transferred to D0–D3 and 16#00 is added to the high byte in D, as follows.
_6
The operand S:
String
Hexadecimal
value
After the instruction is executed, the data in D is as follows.
Device
D0
D1
D2
D3
6 - 1 2 6
Before the instruction is executed:
b15~b8
b7~b0
D0
16#31
16#30
16#33
16#32
D1
16#35
16#34
D2
D3
16#30
16#00
After the instruction is executed:
b15~b8
b7~b0
D0
16#31
16#30
16#33
16#32
D1
16#35
16#34
D2
D3
16#30
16#00
'1'
'2'
16#31
16#32
High byte
Low byte
16#32
16#31
16#34
16#33
16#00
16#00
Unchanged
Unchanged
b15~b8
b7~b0
D1
16#33
16#32
16#35
16#34
D2
16#30
16#00
D3
16#38
D4
16#37
b15~b8
b7~b0
D1
16#31
16#30
16#33
16#32
D2
16#35
16#34
D3
D4
16#00
16#00
'3'
16#33
Note
'1'=16#31; '2'=16#32
'3'=16#33; '4'=16#34
The ending code 16#00 is in the low byte.
16#00 is automatically added in the high byte.
'4'
16#34

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents