Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-15
Move the contents of
S
to the n register, with this n register
obtained from counting the registers within the
D
-assigned
numbers.
If the n-assigned points exceed the usage range of this device, only
those that are within the effective range will be moved.
Program Example
X0
FMOV K10 K10D10
Ϩʳ When X0 is ON, move Constant K10 to the ten registers (D10~D19)
starting from D10.
D
17 XCH D
1
D
2
Data exchange
Bit device Word device
Device
Operand
XYMS K H
KnX KnY
KnM
KnS
TCDE F
D
1
ϨϨϨϨϨϨϨϨ
D
2
ϨϨϨϨϨϨϨϨ
Exchange the contents of
D
1
and
D
2
with each other.
Generally, it is advised to use the pulse wave contact to drive this
command, otherwise, this command will keep going on and on.
Program Example
X0
XCH D11D10
When X0 goes from OFFШON, contents of D10 and D11 will exchange with
each other.
D
18 BCD
S D Converts BIN data into BCD
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
ϨϨϨϨϨϨϨϨϨ
D
Ϩ Ϩ Ϩ ϨϨϨϨϨ
Converts BIN data (0~9999) of the device
S
into BCD and
transfers the result to the device
D
.
If the data of source
S
is outside the range of 0 to 9999, there is an
operation error and the error flag (M1067 and M1068) turns on.
Program Example
X0
BCD K1Y0D10
Ϩʳ When X0 = ON, the D10 BIN value will be converted to BCD, and the
result saved in K1Y0.
D
19 BIN
S D Converts BCD data into BIN
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
ϨϨϨϨϨϨϨϨϨ
D
Ϩ Ϩ Ϩ ϨϨϨϨϨ
Converts BCD data (0 to 9999) of device
S
into BIN and transfer
the result to the device
D
.
If each digit of source
S
is outside the range of 0 to 9, there is an
operation error and the error flag (M1067 and M1068) turns on.
Program Example