![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414577.webp)
Appendix A
Programming Instructions
560
Code
Page
Function
Name
Mnemonic
14
DIFD
DIFFERENTIATE
DOWN
Turns ON the bit for one cycle on the trailing edge.
380
15
TIMH
HIGH-SPEED TIMER
A high-speed, ON-delay (decrementing) timer.
390
16
(@)WSFT
WORD SHIFT
Shifts data between starting and ending words in word units,
writing zeros into starting word.
405
17 to 19
For expansion instructions.
160
20
CMP
COMPARE
Compares the contents of two words and outputs result to
GR, EQ, and LE Flags.
432
21
(@)MOV
MOVE
Copies source data (word or constant) to destination word.
411
22
(@)MVN
MOVE NOT
Inverts source data (word or constant) and then copies it to
destination word.
412
23
(@)BIN
BCD TO BINARY
Converts four-digit, BCD data in source word into 16-bit
binary data, and outputs converted data to result word.
439
24
(@)BCD
BINARY TO BCD
Converts binary data in source word into BCD, and outputs
converted data to result word.
440
25
(@)ASL
ARITHMETIC SHIFT
LEFT
Shifts each bit in single word of data one bit to left, with CY.
405
26
(@)ASR
ARITHMETIC SHIFT
RIGHT
Shifts each bit in single word of data one bit to right, with CY.
406
27
(@)ROL
ROTATE LEFT
Rotates bits in single word of data one bit to left, with CY.
406
28
(@)ROR
ROTATE RIGHT
Rotates bits in single word of data one bit to right, with CY.
407
29
(@)COM
COMPLEMENT
Inverts bit status of one word of data.
479
30
(@)ADD
BCD ADD
Adds two four-digit BCD values and content of CY, and out-
puts result to specified result word.
457
31
(@)SUB
BCD SUBTRACT
Subtracts a four-digit BCD value and CY from another four-
digit BCD value and outputs result to the result word.
458
32
(@)MUL
BCD MULTIPLY
Multiplies two four-digit BCD values and outputs result to
specified result words.
460
33
(@)DIV
BCD DIVIDE
Divides four-digit BCD dividend by four-digit BCD divisor and
outputs result to specified result words.
461
34
(@)ANDW
LOGICAL AND
Logically ANDs two 16-bit input words and sets correspond-
ing bit in result word if corresponding bits in input words are
both ON.
480
35
(@)ORW
LOGICAL OR
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.
481
36
(@)XORW
EXCLUSIVE OR
Exclusively ORs two 16-bit input words and sets bit in result
word when corresponding bits in input words differ in status.
481
37
(@)XNRW
EXCLUSIVE NOR
Exclusively NORs two 16-bit input words and sets bit in result
word when corresponding bits in input words are same in
status.
482
38
(@)INC
BCD INCREMENT
Increments four-digit BCD word by one.
483
39
(@)DEC
BCD DECREMENT
Decrements four-digit BCD word by one.
483
40
(@)STC
SET CARRY
Sets carry flag (i.e., turns CY ON).
457
41
(@)CLC
CLEAR CARRY
Clears carry flag (i.e., turns CY OFF).
457
46
(@)MSG
MESSAGE
Displays a 16-character message on the Programming Con-
sole display.
497
47 & 48
For expansion instructions.
160
50
(@)ADB
BINARY ADD
Adds two four-digit hexadecimal values and content of CY,
and outputs result to specified result word.
467
51
(@)SBB
BINARY SUBTRACT
Subtracts a four-digit hexadecimal value and CY from anoth-
er four-digit hexadecimal value and outputs result to the re-
sult word.
468
52
(@)MLB
BINARY MULTIPLY
Multiplies two four-digit hexadecimal values and outputs re-
sult to specified result words.
470
53
(@)DVB
BINARY DIVIDE
Divides four-digit hexadecimal dividend by four-digit hexade-
cimal divisor and outputs result to specified result words.
470
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...