
81
4-4-3 Programming Procedures
The example program will be written to the CPM1 according to the mnemonic list
in 4-4-2 Example Program. The procedure is performed beginning with the initial
display. (Clear the memory before entering a new program.)
(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.)
LD
00000
LD 00000
WRITE
00001READ
NOP(000)
2. Input the OR condition IR 20000.
OR
C
2
A
0
A
0
A
0
A
0
00001
OR 20000
WRITE
00002READ
NOP(000)
3. Input the normally closed AND condition C000.
(It isn‘t necessary to input leading zeroes.)
AND
NOT
CNT
00002
AND NOT CNT 000
WRITE
00003READ
NOP(000)
4. Input the OUT instruction IR 20000.
OUT
C
2
A
0
A
0
A
0
A
0
00003
OUT 20000
WRITE
00004READ
NOP(000)
(2) Inputting the One-second Timer
1, 2, 3...
1. Input the normally open condition IR 20000.
LD
C
2
A
0
A
0
A
0
A
0
00004
LD 20000
WRITE
00005READ
NOP(000)
2. Input the normally closed AND condition T002.
(It isn‘t necessary to input leading zeroes.)
AND
NOT
TIM
C
2
00005
AND NOT TIM 002
WRITE
00006READ
NOP(000)
3. Input the 1-second timer T001.
TIM
B
1
00006
TIM 001
WRITE
00006 TIM DATA
#0000
Programming Example
Section 4-4
Summary of Contents for SYSMAC CPM1
Page 1: ...Cat No W262 E1 4 Programmable Controllers SYSMAC CPM1 OPERATION MANUAL ...
Page 2: ...CPM1 Programmable Controllers Operation Manual Revised February 1998 ...
Page 116: ...105 Appendix B Dimensions All dimensions are in millimeters CPM1 10CDR j 121 130 85 81 90 ...
Page 118: ...Appendix B Dimensions 107 CPM1 20EDR 81 90 171 180 85 ...
Page 119: ...Appendix B Dimensions 108 CPM1 CIF01 90 81 21 30 205 50 56 CPM1 CIF11 90 81 21 30 205 50 61 ...