- 18 -
Chapter 2. MC Programming
9) SET2
Input type
SET2 <P variable> or SET2 <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) and the motor position(machine coordinate)
are reset to the set variable coordinate.
The action is same as the SET command, and the machine coordinate of motor position,
i.e. the encoder coordinate is reset, too.
Even though automatic operation ends, the coordinate isn’t recovered.
In closed loop control of MCU-XA2 and MCU-XP2, the position of a servo motor shifts
as much as the servo motor offset. 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
SET2 P2
SET2 L2
L3
SET2 PL0
SET2 LL0
LL1
Reset the
2-dimensional
position by using a P2 variable.
Reset the position by using a L2 and L3 variable.
Reset the position by using a P variable pointed out by a L0 variable.
Reset the position by using an L variable indicated by a L0 variable
and a L variable indicated by a L1 variable.
Example
VEL 0
MOV P0
SET2 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.7 Absolute coordinate and machine 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 SET2 P2.
Содержание MCU 2 Axis
Страница 1: ...User s Manual 2 AXES...