Appendix 2 Sample Program; Appendix 2.1 Motion Control Example By Motion Sfc Program - Mitsubishi Electric Melsec Q Series Programming Manual

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

Advertisement

APPENDICES

APPENDIX 2 Sample Program

APPENDIX 2.1 Motion control example by Motion SFC program

No.
1
Forced stop
2
Motion control
3
JOG mode
4
Manual pulse generator mode
5
Home position return mode
6
Programming operation mode
(1) The Motion SFC program composition example to execute motion
control.
This sample program example using Q173DCPU is described to every following
function.
Function list of sample program
Item
When the forced stop input assigned to PX0 is on, all axes turn on, and
motion control is executed.
When the forced stop input turn off, servo amplifier is made to forced
stop, and motion control is suspended, and actual output (PY) turn off.
Motion control is executed according to the condition of PX and PX2 in
each following mode.
The following JOG operation is executed when each signal of PX3 to
PX6 is turned on.
The following the manual pulse generator operation is executed.
The following home position return is executed.
The following program operation is executed.
• PX2 : OFF PX1 : OFF JOG mode
• PX2 : OFF PX1 : ON Manual pulse generator mode
• PX2 : On PX1 : OFF Home position return mode
• PX2 : On PX1 : On
Programming operation mode
• PX3 : 1 axis JOG forward rotation
• PX4 : 1 axis JOG reverse rotation
• PX5 : 2 axes JOG forward rotation
• PX6 : 2 axes JOG reverse rotation
• Manual pulse generator operation of 1 axis is executed with the
manual pulse generator P1.
• Manual pulse generator operation of 2 axes is executed with the
manual pulse generator P1.
• When PX3 is on, the home position return of 1 axis is executed.
• When PX4 is on, the home position return of 2 axes is executed.
• When PX3 detects OFF to ON, axis No.1 locates and 1000[ms]
standing by, after the location of axis No.2 is executed.
• When PX4 turn on, axis No.1, 2 locates of the linear control and in-
position check is executed, after the location of axis No.2 is
executed, the program stands by until No.1, 2 locates of the linear
control is executed at a double speed in the opposition direction and
PX4 turns off.
APP - 24
Description

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents