Specifications

Table Of Contents
A - 20
Program operation
P0
IFB1
[G150]
//**** Detection of PX3 OFF
ON ***
//M0 is turned ON when PX3 is turned ON
//and M1 (PX3 at last status)
//is turned OFF.
RST M0
SET M0 = PX3 * !M1
//The last status of PX3 is stored in M1.
RST M1
SET M1 = PX3
//Shifted to the succeeding step when M0
//is turned ON (PX3 OFF
ON is
//detected).
M0
[G151]
//Is P4 ON?
PX4
[G152]
//Program operation mode finished?
!(PX2*PX1)
[K150: REAL]
1 INC-1
AXIS 1,
1000000 PLS
SPEED
500000 PLS/sec
[F150]
#0L = 1000000 //1-axis positioning address set
#2L = 2000000 //2-axis positioning address set
#4L = 500000 //Positioning speed set
END
[G153]
//Waiting for 1,000ms after completion of
motion control
TIME K1000
[K151: REAL]
1 INC-2
AXIS 1, # 0 PLS
AXIS 2, # 2 PLS
COMPOSITE SPEED # 4 PLS/sec
[K152: REAL]
1 INC-1
AXIS 2, 2000000 PLS
VELOCITY 1000000 PLS/sec
[G154]
//In-position signal for 1-axis, 2-axis ON?
M2402*M2422
[G155]
NOP //Waiting for motion control complete
[F151]
#0L = -#0L //1-axis positioning address
code inversion
#2L = -#2L //2-axis positioning address
code inversion
#4L = #4L * 2 //Positioning speed × 2
[K151: REAL]
1 INC-2
AXIS 1, # 0 PLS
AXIS 2, # 2 PLS
COMPOSITE SPEED # 4 PLS/sec
[G156]
//Is PX4 OFF?
!PX4
IFE1
P0
Indirect designation of
positioning address/speed
Indirect designation of
positioning address/speed
Detected at rising edge of
bit device (PX3). Previous
state is stored in M1, and
OFF to ON state of PX3 is
detected.
Waiting for 1,000ms after
positioning of 1-axis when the
PX3 OFF
ON is detected
Waiting until 2-axis
positioning is completed
The in-position check is executed after positioning the 1-
axis, 2-axis for linear interpolation and linear interpolation
positioning of 1-axis and 2-axis is carried out at double
speed in the opposite direction when PX4 is ON. Wait
thereafter until PX4 turns OFF.