6 - 21
Chapter 6 Sequence Program Used for Positioning Control
6.4 Positioning program examples
An example of the "Axis 1" positioning program using QD77MS4 is given in this section.
When setting the parameters or data with the sequence program, set them in the Simple Motion
module using the TO command from the PLC CPU. (Carry out the settings while the PLC
READY signal [Y0] is OFF.)
When setting the parameters or data with GX Works2, the [No. 1] to [No. 4] program is not
necessary.
[No. 1] to [No. 4] parameter and data setting program
DMOVP K50000
Movement
amount
(low-ord
er 16 bi
* <Changing of movement amount >
* <Setting of unit >
*
* No.1 Parameter setting program
* (For basic parameters <Axis 1>)
* OPR paramete
r
*
*
*
DMOVP K9000
Speed (
low-orde
r 16 bit
s)
* <Changing of speed setting >
D1
D3
MOVP K0
Unit set
ting
D50
* <Setting of unit magnification >
MOVP K1
Unit mag
nificati
on : AM
D51
* <Setting of No. of pulses per ro >
DMOVP K4194304
No. of pu
lses per
rotatio
n : AP
D52
* <Setting of No. of movement amoun>
DMOVP K25000 D54
No. of m
ovement
amount :
AL
K0 D50 K8
* <Setting of basic parameters 1 to >
Unit set
ting
H0TOP
K62 K2 K1
* <External command function selecti >
H0TOP
K70 K6 K1
* <OPR method (Data set method) >
H0TOP
K74 K1500 K1
* <OPR speed >
H0DTOP
SM402
ON for 1
scan onl
y after
RUN
0