295
ROTC
1
2
3
4
6
7
8
6.8
O
ther Con
venient Instru
ctions
6.8.5
R
OTC
Function
(1) This control functions to enable shortest direction control of the rotary table to the position of the station number
designated by +1 in order to remove or deposit an item whose number has been designated by +2 on a rotary table
with equal divisions of the value designated by n1.
(2) The item number and station number are controlled as items allocated by counterclockwise rotation.
(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 specified by 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 leading or trailing edge when the A phase pulse
is ON:
• When the B phase is at the leading edge: Forward rotation (clockwise rotation)
• When the B phase is at the trailing edge: Reverse rotation (counterclockwise rotation)
(6)
+2 is the 0 point detection output signal that goes ON when item number 0 has arrived at the No. 0 station.
When the device designated by +2 goes 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 go 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.
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4101
The device specified by or exceeds the range of the
corresponding device.
––
––
––
––
S
S
S
D
D
D
D
S
D
D
D
D
D
D
S
S
S
D