6 - 4
MELSEC-Q
6 PLC PROGRAM USED FOR POSITIONING CONTROL
(b) When the circuit uses the "intelligent function device" on the source(s) side
and the destination (D) side of a MOV command, change the command to a
FROM command and a TO command.
MOVP G826 G1
X15
FROMP D100
X15
K826H0 K1
U6\
TOP D100K1H6 K1
X0C
X0C
U0\
Set the
same device.
0
0
(c) When the circuit uses the "intelligent function device" for a COMPARISON
command, change the command to a FROM command and a
COMPARISON command.
RST M0
M0
FROMP D102
M0
K1521H0
K1
RST
M0
= G1521 K0
= D102 K0
0
0
Data read out
U0\
(d) When the circuit uses the "intelligent function device" for a WAND command,
change the command to a FROM command and a WAND command.
H8 D0
M2
FROMP D101
M2
K817
H0 K1
0
0
G817WANDP
U0\
H8 D0
D101
WANDP
Data read out
REMARK
Refer to QCPU User's Manual (Function Explanation, Program Fundamentals) for
the intelligent function devices.
Refer to QCPU (Q mode/QnACPU) Programming Manual (Common Instructions) for
detail commands used in those programs shown in this chapter and subsequent.