10. Exclusive Commands 2
10.2 S.ROT Commands
- 358 -
(Note 1) Either M202 or M203 can be used for a stop signal.
(Note 2) The devices (X, Y, and R) are used in this example for no special purpose. Use any device
within the available range.
(Note 3) If a number from 1 to 6 has not been specified for current position data (R4012) before the
ROT command is activated, an error results.
(Note 4) The control parameters (R4010) are specified as follows:
(1) Rotary body starts from 1
(2) Take a short cut.
(3) Calculate the number of steps.
(Note 5) The T command (R220) is output with a BCD code. In this example, the number of rotary
body index cycles is 1 to 6, and there is no difference between the binary and BCD. Thus,
the contents of R220 are used as they are.
The target position and current value (R220 and R4012 in this example), which are the data
to be compared in the S.ROT K1 command must be binaries. (In actual use, the contents of
R220 are binary converted.)
(Note 6) The command “<=” in the ladder shown above corresponds to LDBIT command of
On-board function.