EasyManuals Logo

Omron CPM1A User Manual

Omron CPM1A
201 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #137 background imageLoading...
Page #137 background image
114
4-4-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)
C00000000
20000
01000
T00120000
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
T00220000
TIM 002
#0020
T00220000
T00120000
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-4-3 Programming Procedures.
Address Instruction Data Programming example
procedures in 4-4-3
Programming Procedures
00000 LD 00000
(1) Self-holding bit
00001 OR 20000
() g
00002 AND NOT CNT 000
00003 OUT 20000
00004 LD 20000
(2) 1-second timer
00005 AND NOT TIM 002
()
00006 TIM 001
# 0010
00007 LD 20000
(3) 2-second timer
00008 AND NOT TIM 002
()
00009 TIM 002
# 0020
00010 LD 20000
(4) 10-count counter
00011 AND TIM 001
()
00012 LD NOT 20000
00013 CNT 000
# 0010
00014 LD 20000
(5) Flicker output (10 counts)
00015 AND NOT TIM 001
() p ( )
00016 OUT 01000
00017 END (01) --- (6) END(01) instruction
Programming Example
Section 4-4

Table of Contents

Other manuals for Omron CPM1A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CPM1A and is the answer not in the manual?

Omron CPM1A Specifications

General IconGeneral
ModelCPM1A
TypeCompact PLC
Communication PortsRS-232C (optional)
Instruction SetBasic and advanced instructions
Operating Temperature0 to 55°C
Storage Temperature-20 to 75°C
Humidity10% to 90% RH (non-condensing)
Power Supply24 VDC or 100-240 VAC
ExpansionExpansion I/O units available
Timers128
Counters256 counters
I/O Points10, 20, 30, or 40 points (depending on model)

Related product manuals