- 16 -
Chapter 2. MC Programming
7) XSET
Input type XSET <P variable> or XSET <L variable1> <L variable2>
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) of the X-axis 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 is simply ignored.
Example of
use
XSET P2
XSET L2 L3
XSET PL0
XSET LL0
LL1
Reset the X-axis position by using the X-axis position value of a P2
variable.
Reset the X-axis position by using a L2 variable.
Reset the X-axis position by using the X-axis position value of a P
variable pointed out by a L0 variable.
Reset the X-axis position by using an L variable pointed out by a L0
variable.
Example VEL 0
MOV P0
XSET 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.5 X-axis 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, 10.000)
The position values 50.000 and 30.000 are reset
to 10.000 and 30.000 by the XSET P2.