![background image](http://html1.mh-extra.com/html/omron/cs1w-mc221/cs1w-mc221_operation-manual_742361119.webp)
92
Overview of Version 1 Upgrades
Section 1-12
Application Example
Ladder Program
1,2,3...
1.
Select the customized functions.
2.
Enable the words for the links.
3.
Wait for refreshing. (Wait until the I/O refresh has been performed twice af-
ter 10 ms has passed from execution of IOWR.)
4.
Start operation with the G-language program.
G-language Programming
For Task 1, Output Area 1, Input Area 1
N005 G63 A1970=01010101 ............ Output to Output Area 1 (lower 8 bits).
N006 G63 A1971=10101010 ............ Output to Output Area 1 (upper 8 bits).
:
N012 G63 A1986=11234 .................. Set to copy A1234 when stopover
M code is output.
N013 G63 A1234=10101010
Set data to be copied.
N014 G63 A1235=01010101
Set data to be copied.
N015 G00 X10000 M000/X1000 ....... When X has moved 1000 units, A1970
= A1234 and A1971 = A1235.
N016 G63 A1986=0 .......................... Restores the setting
N017 G71 N017/A1972=11110000... Branches according to value of Input
Area 1 (lower 8 bits).
R1
@BSET
#0000
D00000
D00005
@IOWR
#07B2
D00000
#00060000
C
S
D
@MOVL
#8000000A
D00000
@IOWR
#1838
D00000
#00020000
C
S
D
@MOVL
#8000000B
D00000
@IOWR
#1839
D00000
#00020000
C
S
D
@MOV
#0000
0011
Sets 0000 hex in
D00000 to D00005.
Initializes A1970 and A1971 to 0.
For a unit number of 0.
Sets CIO 0010.
Start of output area 1.
For a unit number of 0.
Initializes C0011.
Sets CIO 0011.
Start of input area 1.
For a unit number of 0.
(Repeated in the same way for the other areas.)
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 ...