Installation manual
CNC 8060
CNC 8065
PLC PROGRAMMING.
4.
(REF: 1402)
·255·
Action instructions.
4.4.4 Arithmetic action instructions.
= MOV
Move.
It is used to move data from one PLC resource to another.
The programming format is:
The Origin and Destination codes indicate which format (binary or BCD) they have and in
which format they will be deposited in the destination resource. 4, 8, 12, 16, 20, 24, 28 or
32 bits may be transmitted.
If the codes and number of bits to be moved are not indicated, 32 binary bits will be moved
bit to bit (0032).
If the number to be converted from binary to BCD is larger than the maximum BCD, its value
will be truncated ignoring the most significant bits.
The maximum BCD value that can be converted is: 9 (with 4 bits), 99 (with 8), 999 (with 12),
9999 (with 16), 99999 (with 20), 999999 (with 24), 9999999 (with 28) and 99999999 (con
32). In these cases, it is recommended to make the move increasing the number of bits by
using, if necessary, registers or marks in intermediate steps.
Origin Destination Origin code D e s t i n a t i o n
code
Bits to transmit
= MOV I1/1024
O1/1024
M1/8192
MSG1/1024
ERR1/1024
T1/512
C1/256
R1/1024
R CNC-PLC
#
I1/1024
O1/1024
M1/8192
MSG1/1024
ERR1/1024
R1/1024
R CNC-PLC
0(Bin)
1(BCD)
0(Bin)
1(BCD)
32
28
24
20
16
12
8
4
MOV I12 M100 0032 binary to binary in 32 bits.
MOV O21 R100 0012 binary to binary in 12 bits.
MOV C22 O23 0108 binary to BCD in 8 bits.
MOV T10 M112 1020 BCD to binary in 20 bits.
I11 = MOV I14 O16 108
If input I11 is "=1", the PLC moves the logic states of the 8 inputs (I14 plus the next
7) in BCD code to the 8 outputs (O16 and the next 7) in binary code.