Instruction Set; Section 7 Instruction Set - Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

The CPM1, CPM1A, CPM2A, CPM2C (including the CPM2C-S), and SRM1(-V2) PCs have large programming instruction
sets that allow for easy programming of complicated control processes. This section explains instructions individually and
provides the ladder diagram symbol, data areas, and flags used with each.
The many instructions provided by these PCs are organized in the following subsections by instruction group. These groups
include Ladder Diagram Instructions, instructions with fixed function codes, and set instructions.
Some instructions, such as Timer and Counter instructions, are used to control execution of other instructions, e.g., a TIM
Completion Flag might be used to turn ON a bit when the time period set for the timer has expired. Although these other
instructions are often used to control output bits through the Output instruction, they can be used to control execution of other
instructions as well. The Output instructions used in examples in this manual can therefore generally be replaced by other
instructions to modify the program for specific applications other than controlling output bits directly.
7-1
Notation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7-2
Instruction Format
7-3
Data Areas, Definer Values, and Flags
7-4
Differentiated Instructions
7-5
Coding Right-hand Instructions
7-6
Instruction Tables
7-6-1
CPM1/CPM1A Function Codes
7-6-2
CPM2A/CPM2C Function Codes
7-6-3
SRM1(-V2) Function Codes
7-6-4
Alphabetic List by Mnemonic
7-7
Ladder Diagram Instructions
7-7-1
LOAD, LOAD NOT, AND, AND NOT, OR, and OR NOT
7-7-2
AND LOAD and OR LOAD
7-8
Bit Control Instructions
7-8-1
OUTPUT and OUTPUT NOT – OUT and OUT NOT
7-8-2
SET and RESET – SET and RSET
7-8-3
KEEP – KEEP(11)
7-8-4
DIFFERENTIATE UP and DOWN – DIFU(13) and DIFD(14)
7-9
NO OPERATION – NOP(00)
7-10 END – END(01)
7-11 INTERLOCK and INTERLOCK CLEAR – IL(02) and ILC(03)
7-12 JUMP and JUMP END – JMP(04) and JME(05)
7-13 User Error Instructions:
FAILURE ALARM AND RESET – FAL(06) and
SEVERE FAILURE ALARM – FALS(07)
7-14 Step Instructions:
STEP DEFINE and STEP START–STEP(08)/SNXT(09)
7-15 Timer and Counter Instructions
7-15-1 TIMER – TIM
7-15-2 HIGH-SPEED TIMER – TIMH(15)
7-15-3 VERY HIGH-SPEED TIMER: TMHH(––)
7-15-4 LONG TIMER: TIML(––)
7-15-5 COUNTER – CNT
7-15-6 REVERSIBLE COUNTER – CNTR(12)
7-15-7 REGISTER COMPARISON TABLE – CTBL(63)
7-15-8 MODE CONTROL – INI(61)
7-15-9 HIGH-SPEED COUNTER PV READ – PRV(62)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
SECTION 7

Instruction Set

364
364
364
366
367
370
370
371
372
373
376
376
377
377
377
378
379
. . . . . . . . . . . . . .
380
381
381
381
383
385
385
388
389
390
391
392
394
395
396
399
401
361

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?

Questions and answers

Table of Contents