![background image](http://html1.mh-extra.com/html/omron/cpm2c/cpm2c_operation-manual_742519131.webp)
4-5
Section
*
The mnemonic list for the example program is shown in the following table. The
steps required to enter this program from a Programming Console are described
in
4-5-3 Programming Procedures
.
Address
Instruction
Data
Programming example
procedures in
4-5-3
Programming Procedures
00000
LD
00000
(1) Self-holding bit
00001
OR
20000
( )
g
00002
AND NOT
C
000
00003
OUT
20000
00004
LD
20000
(2) 1-second timer
00005
AND NOT
T
002
( )
00006
TIM
001
#
0010
00007
LD
20000
(3) 2-second timer
00008
AND NOT
T
002
( )
00009
TIM
002
#
0020
00010
LD
20000
(4) 10-count counter
00011
AND
T
001
( )
00012
LD NOT
20000
00013
CNT
000
#
0010
00014
LD
20000
(5) Flicker output (10 counts)
00015
AND NOT
T
001
( )
(
)
00016
OUT
01000
00017
END (01)
---
(6) END(01) instruction
4-5-3 Programming Procedures
The example program will be written to the CPM2C according to the mnemonic
list in
4-5-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
5-3 Programming Console
Operation Errors
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.)
LD
WRITE
%&
2. Input the OR condition IR 20000.
OR
C
2
A
0
A
0
A
0
A
0
WRITE
%&
Содержание CPM2C
Страница 1: ...CPM2C Programmable Controllers Operation Manual Produced June 1999...
Страница 2: ...http www bzxindaxin com http www gk world com...
Страница 3: ...http www bzxindaxin com http www gk world com...
Страница 4: ...http www bzxindaxin com http www gk world com...
Страница 5: ...http www bzxindaxin com http www gk world com...
Страница 6: ......