![Omron CPM2A - 11-2005 Скачать руководство пользователя страница 139](http://html1.mh-extra.com/html/omron/cpm2a-11-2005/cpm2a-11-2005_manual_742517139.webp)
4-3
Section
Programming Example
121
4-3-2 Example Program
The following ladder program will be used to demonstrate how to write a pro-
gram with the Programming Console. This program makes output IR 01000
flicker ON/OFF (one second ON, one second OFF) ten times after input
IR 00000 is turned ON.
Count input
Reset input
20000
END(01)
C000
00000
20000
01000
T001
20000
00000
00004
00007
00010
00014
00017
1
S
ON
OFF
Self-holding bit
1-second timer
2-second timer
10-count counter
Flicker output (10 counts)
TIM 001
#0010
CP
R
CNT 000
#0010
T002
20000
TIM 002
#0020
T002
20000
T001
20000
20000
Start input
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-3-3 Programming Procedures
.
Address
Instruction
Data
Programming example
procedures in
4-3-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
( )
p
(
)
00016
OUT
01000
00017
END (01)
---
(6) END(01) instruction
Содержание CPM2A - 11-2005
Страница 1: ...OPERATION MANUAL Programmable Controllers SYSMAC CPM2A Cat No W352 E1 07...
Страница 2: ...CPM2A Programmable Controllers Operation Manual Revised November 2005...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 12: ...xiv...
Страница 179: ...Appendix B Dimensions 164 CPM1 CIF11 RS 422 Adapter...