6 - 15
MELSEC-Q
6 SEQUENCE PROGRAM USED FOR POSITIONING CONTROL
6.4 Positioning program examples
An example of the "Axis 1" positioning program is given in this section.
[No. 1] to [No. 3] parameter and data setting program
When setting the parameters or data with the sequence program, set them in the QD75 using the
TO instruction from the CPU module. (Carry out the settings while the PLC READY signal [Y0] is
OFF.)
When setting the parameters or data with GX Configurator-QP, the [No. 1] to [No. 3] program
is not necessary.
(For basic parameters 1 <axis 1>)
<X4D turns ON before startup>
No. 1 Parameter setting program
Parameter setting program for speed-position switching control (ABS mode)
<For axis 1>
(Not needed when speed-position switching control (ABS mode) is not executed)
<Setting of unit setting (2: degree)>
<Setting of basic parameters 1 to QD75>
<Basic parameter 1 setting completion>
<Software stroke limit upper limit = 0>
<Software stroke limit lower limit = 0>
<Current feed value during speed control = 1>
<Speed-position function selection (ABS mode)>
<Setting of unit setting (0: mm)>
<Setting of No. of pulses per rotation>
<Setting of movement amount per rotation>
<Setting of unit magnification (1 fold)>
<Setting of pulse output mode (CW/CCW)>
<Setting of rotation direction
(forward rotation for increment)>
<Bias speed (10.00 mm/min) setting>
(For OPR basic parameters <axis 1>)
<Setting of near-point dog method to OPR method>
<Setting of foward direction to OPR direction>
<Setting of 0 to OP address>
<Setting of 50.00mm/min to OPR speed>
<Setting of 15.00mm/min to creep speed>
<Setting OPR retry so that it may be performed>
<Setting of OPR basic parameters to the QD75>
<OPR basic parameter setting completion>