Mitsubishi Electric Melsec Q Series Programming Manual page 520

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

APPENDICES
Programming operation
[G150]
//(OFF to ON)detection of PX3.
//PX3 turns on M0 in on when M1 (last time
//condition of PX3) is off.
RST M0
SET M0=PX3 * !M1
//Condition was stored in M1 last time
//of PX3.
RST M1
SET M1=PX3
//When M0 is ON(OFF to ON of PX3 is
//detected.), it transition to the next steps.
M0
[K150:Real]
1 INC-1
Axis
1, 1000000 pulse
Speed
500000 pulse/s
[G153]
//It waits 1000[ms] after the motion control
//completion.TIME K1000
[K152:Real]
1 INC-1
Axis
2, 2000000 pulse
Speed
1000000 pulse/s
[G155]
NOP //Waits for the motion control
//completion.
(f) No.150 : Programming operation
P0
[G151]
//Did you turn on PX4?
PX4
Detection for
leading edge of bit
device (PX3).
Condition was
memorized in M1
last time, and OFF
to ON of PX3 was
detected.
[F150]
#0L=1000000//1 axis positioning address
//set
#2L=2000000//2 axes positioning address
//set
#4L=500000//Positioning speed
[K151:Real]
1 INC-2
Axis
Axis
Vector speed
[G154]
//Did you turned on 1 axis and 2 axis
//in-position?
M2402*M2422
[F151]
#0L=-#0L //1 axis positioning address sign
//inversion
#2L=-#2L //2 axes positioning address sign
//inversion
#4L= #4L*2 //Positioning speed *2
When OFF to ON of
[K151:Real]
PX3 is detected,
1 INC-2
1000[ms] after 1 axis
Axis
positioning completion
Axis
stands by, and the
Vector speed
positioning of 2 axes
is executed, and
stands by to the
[G156]
positioning completion
//Did you turn on PX4?
of 2 axes.
!PX4
P0
When PX4 is on, the linear interpolation
control of the 1 axis and 2 axis is
executed at a double speed in the
action, the opposition direction after the
linear interpolation control of the 1 axis
and 2 axis in-position check. And stands
by to PX4 is OFF.
1, # 0 pulse
2, # 2 pulse
# 4 pulse/s
1, # 0 pulse
2, # 2 pulse
# 4 pulse/s
APP - 29
[G152]
//Did you finish a programming operation
//mode?
!(PX2*PX1)
END
Positioning address, the indirect
designation of the speed.
Positioning address, the indirect
designation of the speed.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents