EasyManua.ls Logo

Emotiontek MCU 2 Axis - Page 24

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...
- 17 -
Chapter 2. MC Programming
8) YSET
Input
type
YSET <P variable> or YSET <L variable1> <L variable2>
Terminol
ogy
<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
Explanat
ion
The current position(absolute coordinate) of the Y-axis is reset in a coordinate of the set
number. For the case of using L variable, the 2
nd
L variable means the Y-axis coordinate.
The 1
st
L variable is simply ignored.
Example
of use
YSET P2
YSET L2
L3
YSET PL0
YSET LL0
LL1
Reset the Y-axis position by using the Y-axis position value of a
P2 variable.
Reset the Y-axis position by using a L3 variable.
Reset the Y-axis position by using the Y-axis position value of a P
variable pointed out by a L0 variable.
Reset the Y-axis position by using an L variable pointed out by a
L1 variable.
Example VEL 0
MOV P0
YSET 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.6 Y-axis absolute coordinate reset function
Velocit
y
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
(10.000, 30.000)
The position values 50.000 and 30.000 are reset to
50.000 and 10.000 by the YSET P2.