
156
Programming Example
Section 7-3
7-3-3
Programming Procedures
The example program will be written to the CPM2B according to the mne-
monic list in 7-3-2 Example Program. 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 the Programming Man-
ual for details on correcting the error.
(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
00000
LD 00000
WRITE
00001READ
NOP (000)
OR
C
2
A
0
A
0
A
0
A
0
00001
OR 20000
WRITE
00002READ
NOP (000)
AND
NOT
CNT
00002
AND NOT CNT 000
WRITE
00003READ
NOP (000)
OUT
C
2
A
0
A
0
A
0
A
0
00003
OUT 20000
WRITE
00004READ
NOP (000)
LD
C
2
A
0
A
0
A
0
A
0
00004
LD 20000
WRITE
00005READ
NOP (000)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com