458
Programming Examples
Section 8-1
N026
G70
N008
N027
G79
Explanation
Block N000 declares the program number and axis being used.
*001 to *007
Comments.
N008 and N009
Waits until optional input zero turns ON. When the input turns ON, uncondi-
tional jump N009 is disabled and the next block is executed (*010).
*010 to *012
Comments.
N013
Substitutes the X-axis position into A0100.
N014 to N017
Determines whether to perform positioning in the clockwise or counterclock-
wise direction based on the target position (A0000) and the present position
(A0100), and then jumps to individual processes.
N018 and N019
Corrects to a target position within one revolution if a target position of more
than one revolution is specified, and restarts positioning from N014.
N020 to N024
Turns the turntable clockwise or counterclockwise and calculates target posi-
tion A0001 where the turntable will be positioned.
N025
Positions the turntable at the target position and then outputs M code 0001
and turns ON the M strobe, and then waits for M code reset from the CPU
Unit.
N026
After the M code reset from the CPU Unit has turned ON and OFF, jumps to
the process for waiting for optional input zero to turn ON.
System Parameter
Settings
The following system parameter settings must be made.
• Minimum setting unit
Set for the user’s system.
• Axis mode
Set to Unlimited Feed Mode.
• Software limits
Set between 0
°
and 360
°
. If the minimum setting
unit is 0.1, then the present position will be
updated between 0.0
°
and 359.9
°
.
Note
In the above application, set the encoder resolution and pulse rate so that a
revolution (360
°
) is an integer when it is converted to pulses.
If positioning that passes though 0
°
, such as passing through 0
°
to shift the
position from 350
°
to 10
°
or passing through 0
°
to shift the position from 10
°
to
350
°
, is performed repeatedly in a system that generates a remainder when a
revolution (360
°
) is converted to pulses, an error of less than one pulse will
occur per revolution.
Work within the allowable range for accuracy and execute ORIGIN SEARCH
for each operation in systems like that described above.
Summary of Contents for CS1W-MC221 -
Page 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Page 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 11: ...xii ...
Page 15: ...xvi ...
Page 19: ...xx ...
Page 27: ...xxviii Conformance to EC Directives 6 ...
Page 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Page 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Page 227: ...200 Command Area Section 3 6 ...
Page 351: ...324 Interface Specifics Section 5 4 ...
Page 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Page 575: ...548 Error Log Section 12 6 ...
Page 589: ...562 Performance Appendix A ...
Page 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Page 683: ...656 Origin Search Patterns Appendix F ...
Page 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...