Example Program - Omron CQM1H - 08-2005 Operation Manual

Programmable controllers; inner boards
Hide thumbs Also See for CQM1H - 08-2005:
Table of Contents

Advertisement

Programming Example
7-4-3

Example Program

Start input
00000
C000
00000
02000
02000
T002
00004
02000
T002
00007
02000
T001
00010
02000
02000
T001
00014
00017
The following ladder program will be used to demonstrate how to write a pro-
gram with the Programming Console. This program makes output IR 10000
flicker ON/OFF (one second ON, one second OFF) ten times after input
IR 00000 is turned ON.
Count input
Reset 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 7-4-4 Programming Procedures.
Address
Instruction
00000
LD
00001
OR
00002
AND NOT
00003
OUT
00004
LD
00005
AND NOT
00006
TIM
00007
LD
00008
AND NOT
00009
TIM
00010
LD
00011
AND
00012
LD NOT
00013
CNT
Self-holding bit
02000
TIM 001
1-second timer
#0010
TIM 002
2-second timer
#0020
CP
CNT 000
10-count counter
R
#0010
Flicker output (10 counts)
10000
ON
OFF
END(01)
Data
Programming example
procedures in 7-4-4
Programming Procedures
00000
(1) Self-holding bit
02000
C
000
02000
02000
(2) 1-second timer
T
002
001
#
0010
02000
(3) 2-second timer
T
002
002
#
0020
02000
(4) 10-count counter
T
001
02000
000
#
0010
Section 7-4
1
S
181

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents