![background image](http://html1.mh-extra.com/html/omron/cpm2c-s100c/cpm2c-s100c_operation-manual_742520217.webp)
195
Programming Example
Section 8-3
8-3-3
Programming Procedures
The example program will be written to the CPM2C-S according to the mne-
monic list in
. The procedure is performed beginning
with the initial display. (Clear the memory before entering a new program.)
Note
If an error occurs while inputting the program, refer to
for details on correcting the error. Refer to the relevant
Support Software Operation Manual
for details on errors that appear when
operating the SSS or SYSMAC-CPT Support Software.
(1) Inputting the Self-holding Bit
1,2,3...
1.
Input the normally open condition IR 00000.
(It isn’t necessary to input leading zeroes.)
2.
Input the OR condition IR 20000.
3.
Input the normally closed AND condition C000.
(It isn’t necessary to input leading zeroes.)
4.
Input the OUT instruction IR 20000.
(2) Inputting the One-second Timer
1,2,3...
1.
Input the normally open condition IR 20000.
LD
LD
00000
WRITE
1READ
NOP (000)
OR
C
2
A
0
A
0
A
0
A
0
1
OR
20000
WRITE
2READ
NOP (000)
AND
NOT
CNT
2
AND NOT
CNT 000
WRITE
3READ
NOP (000)
OUT
C
2
A
0
A
0
A
0
A
0
3
OUT
20000
WRITE
4READ
NOP (000)
LD
C
2
A
0
A
0
A
0
A
0
4
LD
20000
WRITE
5READ
NOP (000)
Содержание CPM2C-S100C
Страница 2: ......
Страница 3: ...CPM2C S Programmable Controller Operation Manual Revised September 2009 ...
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 10: ......
Страница 14: ...xiv ...
Страница 180: ...158 One to one PC Link I O Response Time Section 7 4 ...
Страница 222: ...200 Programming Example Section 8 3 ...
Страница 250: ......
Страница 256: ......
Страница 258: ......
Страница 260: ...238 Support Software Appendix C ...
Страница 268: ......