Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 577

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

Advertisement

Programming Instructions
Code
Mnemonic
14
DIFD
DIFFERENTIATE
DOWN
15
TIMH
HIGH-SPEED TIMER
16
(@)WSFT
WORD SHIFT
17 to 19
For expansion instructions.
20
CMP
COMPARE
21
(@)MOV
MOVE
22
(@)MVN
MOVE NOT
23
(@)BIN
BCD TO BINARY
24
(@)BCD
BINARY TO BCD
25
(@)ASL
ARITHMETIC SHIFT
LEFT
26
(@)ASR
ARITHMETIC SHIFT
RIGHT
27
(@)ROL
ROTATE LEFT
28
(@)ROR
ROTATE RIGHT
29
(@)COM
COMPLEMENT
30
(@)ADD
BCD ADD
31
(@)SUB
BCD SUBTRACT
32
(@)MUL
BCD MULTIPLY
33
(@)DIV
BCD DIVIDE
34
(@)ANDW
LOGICAL AND
35
(@)ORW
LOGICAL OR
36
(@)XORW
EXCLUSIVE OR
37
(@)XNRW
EXCLUSIVE NOR
38
(@)INC
BCD INCREMENT
39
(@)DEC
BCD DECREMENT
40
(@)STC
SET CARRY
41
(@)CLC
CLEAR CARRY
46
(@)MSG
MESSAGE
47 & 48
For expansion instructions.
50
(@)ADB
BINARY ADD
51
(@)SBB
BINARY SUBTRACT
52
(@)MLB
BINARY MULTIPLY
53
(@)DVB
BINARY DIVIDE
560
Name
Turns ON the bit for one cycle on the trailing edge.
A high-speed, ON-delay (decrementing) timer.
Shifts data between starting and ending words in word units,
writing zeros into starting word.
Compares the contents of two words and outputs result to
GR, EQ, and LE Flags.
Copies source data (word or constant) to destination word.
Inverts source data (word or constant) and then copies it to
destination word.
Converts four-digit, BCD data in source word into 16-bit
binary data, and outputs converted data to result word.
Converts binary data in source word into BCD, and outputs
converted data to result word.
Shifts each bit in single word of data one bit to left, with CY.
Shifts each bit in single word of data one bit to right, with CY.
Rotates bits in single word of data one bit to left, with CY.
Rotates bits in single word of data one bit to right, with CY.
Inverts bit status of one word of data.
Adds two four-digit BCD values and content of CY, and out-
puts result to specified result word.
Subtracts a four-digit BCD value and CY from another four-
digit BCD value and outputs result to the result word.
Multiplies two four-digit BCD values and outputs result to
specified result words.
Divides four-digit BCD dividend by four-digit BCD divisor and
outputs result to specified result words.
Logically ANDs two 16-bit input words and sets correspond-
ing bit in result word if corresponding bits in input words are
both ON.
Logically ORs two 16-bit input words and sets corresponding
bit in result word if one or both of corresponding bits in input
data are ON.
Exclusively ORs two 16-bit input words and sets bit in result
word when corresponding bits in input words differ in status.
Exclusively NORs two 16-bit input words and sets bit in result
word when corresponding bits in input words are same in
status.
Increments four-digit BCD word by one.
Decrements four-digit BCD word by one.
Sets carry flag (i.e., turns CY ON).
Clears carry flag (i.e., turns CY OFF).
Displays a 16-character message on the Programming Con-
sole display.
Adds two four-digit hexadecimal values and content of CY,
and outputs result to specified result word.
Subtracts a four-digit hexadecimal value and CY from anoth-
er four-digit hexadecimal value and outputs result to the re-
sult word.
Multiplies two four-digit hexadecimal values and outputs re-
sult to specified result words.
Divides four-digit hexadecimal dividend by four-digit hexade-
cimal divisor and outputs result to specified result words.
Function
Appendix A
Page
380
390
405
160
432
411
412
439
440
405
406
406
407
479
457
458
460
461
480
481
481
482
483
483
457
457
497
160
467
468
470
470

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?

Subscribe to Our Youtube Channel

Table of Contents