EasyManua.ls Logo

Emotiontek MCU 2 Axis - Page 84

Emotiontek MCU 2 Axis
204 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
- 77 -
Chapter 4. PLC Program
13) GET
(1) Definition
This is a command to move to a specific contact area in a PLC contact data area by
converting the specific MC variable DINT(32Bits) data in a MC variable area(P, F, D, L
area) into DINT(32Bits) data.
(2) Sequence and timing chart
LOADP M0.0
GET P0 M10
OUT M1.0
LOADP M0.0
GET F0 M14
OUT M1.1
M0.0
M1.0
F0
GET
M10 P0
IN
OUT
M0.0 M1.0
M14
F0IN
OUT
M0.0
P0_X
30000
M11-M10
30000
GET
1000
M1.1
?
P
P
M1.1
M13-M12
40000
?
P0_Y
40000
M15-M14
1000
?
- GET P0 M10 : Store the X-axis position data value of P0 into [M11-M10], and the Y-
axis position data value into [M13-M12] as a DINT(32Bits) value.
- GET F0 M14 : Store the velocity data value of F0 into [M15-M14] as a DINT(32Bits)
value.
**Type: GET <MC variable area><variable number> <PLC contact>
Example of use: -- GET P1 M0 : P1_X Æ [M1-M0], P1_Y Æ [M3-M2]
-- GET F2 M4 : F2 Æ [M5-M4]
-- GET D0 M6 : D0 Æ [M7-M6]
-- GET L0 M8 : L0 Æ [M9-M8]