457
Programming Examples
Section 8-1
8-1-10 Positioning a Turntable
Operation
This operation positions a turntable using the unlimited feed mode and vari-
ous arithmetic commands. Positioning is performed while judging whether to
move clockwise or counterclockwise to arrive at the target position. Target
positions are specified between 0
°
and 360
°
and the present position will
return to zero if a target position is specified outside that range.
Use the following procedure to specify positioning from the CPU Unit.
1,2,3...
1.
Use the IOWR instruction to write the target position into address A0000
between 0
°
and 360
°
.
2.
After the target position is specified, turn ON optional input zero and the
turntable will be positioned at the target position.
3.
M code 0001 will be output after positioning is completed. Check the M
code, turn OFF optional input zero and turn the M code reset ON and OFF.
4.
Repeat steps 1 to 3.
Programming Example
N000
P000
X
*001
*002
Target position=A0000, reference position (program
setting)=A0001
*003
Present position (used internally)=A0100, work mem-
ory=A0101,A0102
*004
*005
Set the target position into A0000 by IOWR instruc-
tion.
*006
Waits until optional number zero turns ON.
*007
N008
G75
00
N009
G70
N008
*010
*011
Positions approximately.
*012
N013
G63
A0100=X
N014
G60
A0102=A0000–A0100
N015
G71
N020/A0102<–180
N016
G71
N022/A0102<180
N017
G71
N024/A0102<360
N018
G60
A0102=A0102–360
N019
G70
N015
N020
G60
A0001=A0000+360
N021
G70
N025
N022
G63
A0001=A0000
N023
G70
N025
N024
G60
A0001–A0000–360
N025
G00
XA0001
M001
Positions approximately.
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 ...