EasyManua.ls Logo

Emotiontek MCU 2 Axis - Page 22

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...
- 15 -
Chapter 2. MC Programming
6) SET
Input type SET <P variable> or SET <L variable 1> <L variable 2>
Terminology <P variable>: Set the variable for a position from the Position Table.(P0 ~ P99)
<L variable>: Set the variable for a position from the L-VAR Table.(L0 ~ L1999)
Related
variable
P variable, L variable
Explanation The current position(absolute coordinate) is reset in a coordinate of the set number.
For the case of using L variable, the 1
st
L variable means X-axis coordinate, the 2
nd
L
variable Y-axis coordinate.
Example of
use
SET P2
SET L2 L3
SET PL0
SET LL0 LL1
Reset the 2-dimensional position by using a P2 variable.
Reset the position by using an L2 and L3 variable.(X,Y-axis
respectively)
Reset the position by using a P variable pointed out by a L0 variable.
Reset the position by using a L variable indicated by a L0 variable
and a L variable indicated by a L1 variable.
Example VEL 0
MOV P0
SET P2
VEL 1
MOV P1
SETTING VALUE OF P0: 50.000, 30.000
SETTING VALUE OF P2: 10.000, 10.000
SETTING VALUE OF P1: 60.000, 40.000
Fig.2.4 Absolute coordinate reset function
Velocity
Time
F0
F1
Current position (0.000,0.000) P0 position(50.000,30.000) P1 position (60.000, 40.000)
P0 movement amount
(50.000, 30.000)
P1 movement amount
(50.000, 30.000)
The position values 50.000 and 30.000 are reset
to 10.000 and 10.000 by the SET P2.