
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)
Summary of Contents for CPM2C-S100C
Page 2: ......
Page 3: ...CPM2C S Programmable Controller Operation Manual Revised September 2009 ...
Page 4: ...iv ...
Page 6: ...vi ...
Page 10: ......
Page 14: ...xiv ...
Page 180: ...158 One to one PC Link I O Response Time Section 7 4 ...
Page 222: ...200 Programming Example Section 8 3 ...
Page 250: ......
Page 256: ......
Page 258: ......
Page 260: ...238 Support Software Appendix C ...
Page 268: ......