5 OPERATION CONTROL PROGRAMS
Setting
data
(D1)
(D2)
(S)
(n)
[Errors]
[Program examples]
(3) The word devices that may be set at (D1), (D2), (S) and (n) are shown below.
(Note-1)
Word devices
Dn
Wn
SDn
U \Gn
—
—
—
—
(4) Adjust an executive task, the number of transfer word referring to the operation
processing time so that this instruction may not obstruct the execution of the
motion operation because processing time becomes long in argument to the
number of words (n) to be written.
(5) Refer to the "Q173D(S)CPU/Q172D(S)CPU Motion controller Programming
Manual (COMMON)" for intelligent function modules that can be used as the
Motion CPU control module.
(1) An operation error will occur if:
• Number of words (n) to be written is outside the range of 1 to 256.
• Motion CPU cannot communicate with intelligent function module at the
instruction execution.
• Abnormalities of the intelligent function module were detected at the instruction
execution.
• I/O No.s specified with (D1) differ from the intelligent function module controlled
by the self CPU.
• The address specified with (D2) is outside the buffer memory range.
• Start device No. (S) which writing data are stored + number of words (n) to be
written is outside the device range.
• (S) is a bit device and device number is not a multiple of 16.
• PX/PY is set in (S) to (S)+(n-1).
(1) 2 words from #0 are written to buffer memory address 0H of the intelligent function
module (First I/O No. : 010H).
TO H010, H0, #0, K2
Intelligent function module
(First I/O No. : 010H)
Buffer memory
0H
100
1H
200
#n
Mn
U \Gn.m
—
—
—
—
—
—
—
(Note-1) : The device No. cannot be specified indirectly.
(Note-2) : Specify a multiple of 16 as the device number of bit data.
(Note-3) : PX and PY cannot be set.
Device memory
2 words transfer
#0
#1
5 - 113
(Note-1), (Note-2)
Bit devices
Bn
Fn
SMn
—
—
—
—
—
—
—
—
—
—
100
200
Xn
Yn
—
—
—
—
(Note-3)
(Note-3)
—
—