6-164
6.8 Other Convenient Instructions
6.8.5 Rotary table shortest direction control
ROTC
(3) The system uses
[0] as a counter to instruct it as to what item is at which number counting
from station number 0. Do not rewrite the sequence program data.
Accurate controls will not be possible in cases where users have rewritten the data.
(4) The value of n2 should be less than the number of table divisions that were specified for n1.
(5)
[0] and
[1] are A and B phase input signals that are used to detect whether the direction
of the rotary table rotation is forward or reverse.
The direction of rotation is judged by whether the B-phase pulse is at its rising or falling
pulse when the A-phase pulse is ON.
• When the B-phase is at the rising pulse: Forward rotation (clockwise rotation)
• When the B-phase is at the falling pulse: Reverse rotation (counterclockwise rotation)
(6)
[2] is the 0 point detection output signal that turns ON when item number 0 has arrived at
the station No. 0.
When the device specified for
[2] turns ON while the ROTC instruction is being executed,
[0] is cleared.
It is best to perform this clear operation first, then to begin shortest direction control with the
ROTC instruction.
(7) The data from
[3] to
[7] consists of output signals needed to control the table's
operation.
The output signal of one of the devices from
[3] to
[7] will turn ON in response to the
execution results of the ROTC instruction.
(8) If the command for the ROTC instruction is OFF, clears all
[3] to
[7] without performing
shortest direction control.
(9) The ROTC instruction can be used only one time in all programs where it is executed.
Attempts to use it more than one time will result in inaccurate operations.
(10) No processing is performed when the value of
[0] to
[2], or the value of n2 is greater
than n1.
O
p
erat
i
on
E
rror
In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the
corresponding error code is stored to SD0.
• The device specified for
or
exceeds the corresponding device range. (For Universal
model QCPU only)
(Error code: 4101)
s
d
d
d
d
s
d
d
d
d
d
d
s
s
s
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......