Programming Procedures - Omron SYSMAC CPM2B Operation Manual

Programmable controller
Hide thumbs Also See for SYSMAC CPM2B:
Table of Contents

Advertisement

Programming Example

6-3-3 Programming Procedures

(1) Inputting the Self-holding Bit
1, 2, 3...
(2) Inputting the One-second Timer
1, 2, 3...
The example program will be written to the CPM2B according to the mnemonic
list in 6-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 Manual
for details on correcting the error.
1. Input the normally open condition IR 00000.
(It isn't necessary to input leading zeroes.)
2. Input the OR condition IR 20000.
C
A
A
OR
2
0
0
3. Input the normally closed AND condition C000.
(It isn't necessary to input leading zeroes.)
AND
4. Input the OUT instruction IR 20000.
C
A
A
OUT
2
0
0
1. Input the normally open condition IR 20000.
C
A
A
LD
2
0
0
2. Input the normally closed AND condition T002.
(It isn't necessary to input leading zeroes.)
AND
NOT
3. Input the 1-second timer T001.
00000
LD
LD
00001READ
WRITE
NOP (000)
00001
A
A
0
0
OR
00002READ
WRITE
NOP (000)
00002
NOT
CNT
AND NOT
00003READ
WRITE
NOP (000)
00003
A
A
0
0
OUT
00004READ
WRITE
NOP (000)
00004
A
A
0
0
LD
00005READ
WRITE
NOP (000)
00005
C
TIM
2
AND NOT
00006READ
WRITE
NOP (000)
00006
B
1
TIM
TIM
00006 TIM DATA
WRITE
Section
00000
20000
CNT 000
20000
20000
TIM 002
001
#0000
6-3
109

Advertisement

Table of Contents
loading

Table of Contents