- 76 -
Chapter 4. PLC Program
12) PUT
(1) Definition
This is the command to convert the specific contact area DINT (32Bits) data in the PLC
contact data area into the DINT(32Bits) data and then to move it to the specific variable
of the MC variable area (P, F, D, L area).
(2) Sequence and timing chart
LOADP M0.0
PUT P0 M10
OUT M1.0
LOADP M0.0
PUT F0 M14
OUT M1.1
M0.0
M1.0
M13-M12
PUT
M10
P0
IN
OUT
M0.0
M1.0
M14
F0
IN
OUT
M0.0
M11-M10
10000
P0_X
10000
PUT
20000
M1.1
?
P
P
M1.1
F0
5000
?
P0_Y
20000
?
M15-M14
5000
- PUT P0 M10 : Store the DINT(32Bits) value of [M11-M10] into the X-axis position data
of P0, and the DINT value of [M13-M12] into the Y-axis position data of
P0 as a DINT(32Bits) value.
- PUT F0 M14 : Store [M15-M14] as a DINT(32Bits) value into the velocity data of F0.
** Type: PUT <MC variable area><variable number> <PLC contact>
Example of use: -- PUT P1 M0
: [M1-M0]
Æ
P1_X, [M3-M2]
Æ
P1_Y
-- PUT F2 M4
: [M5-M4]
Æ
F2
-- PUT D0 M6
: [M7-M6]
Æ
D0
-- PUT L0 M8
: [M9-M8]
Æ
L0
Summary of Contents for MCU 2 Axis
Page 1: ...User s Manual 2 AXES...