Delta AH500 Programming Manual page 299

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

decimal numbers, and the digit which is transferred is composed of four bits.
t h
4 digit
t h
4 digit
Unchanged
Suppose the number in D10 is 16#1234, and the number in D20 is 16#5678. After the
instruction is executed, the number in D10 is unchanged, and the number in D20 is 16#5128.
Example 3:
1.
The instruction can be used to combine the values of the DIP switches which are connected to
the input terminals whose numbers are not consecutive.
2.
The two digits of the value of the DIP switch at the right are transferred to the the two digits of
the number which start from the second digit of the number in D2, and the one digit of the
value of the DIP switch at the left is transferred to the the first digit of the number in D1.
3.
The instruction SMOV can be used to transfer the first digit of the number in D1 to the third
digit of the number in D2. In other words, the two DIP switches can be combined into one DIP
switch by means of the instruction SMOV.
rd
nd
s t
3 digit
2 digit
1 digit
rd
nd
s t
3 digit
2 digit
1 digit
Unchanged
2
10
6
8
1
8
X0.3~X0.0
PLC
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
D10 (
16- bit binary number
T ransferring the digits
D20 (
16- bit binary number
1
0
10
10
4
2
1
8
1
X1.15~X1.0
)
)
6 - 1 3 1

Advertisement

Table of Contents
loading

Table of Contents