Appendix A
Programming Instructions
561
Code
Page
Function
Name
Mnemonic
54
(@)ADDL
DOUBLE BCD ADD
Adds two eight-digit values (2 words each) and content of CY,
and outputs result to specified result words.
463
55
(@)SUBL
DOUBLE BCD
SUBTRACT
Subtracts an eight-digit BCD value and CY from another
eight-digit BCD value and outputs result to the result words.
464
56
(@)MULL
DOUBLE BCD
MULTIPLY
Multiplies two eight-digit BCD values and outputs result to
specified result words.
466
57
(@)DIVL
DOUBLE BCD DIVIDE
Divides eight-digit BCD dividend by eight-digit BCD divisor
and outputs result to specified result words.
466
58
(@)BINL
DOUBLE BCD TO
DOUBLE BINARY
Converts BCD value in two consecutive source words into
binary and outputs converted data to two consecutive result
words. (CPM2A only)
440
59
(@)BCDL
DOUBLE BINARY TO
DOUBLE BCD
Converts binary value in two consecutive source words into
BCD and outputs converted data to two consecutive result
words. (CPM2A only)
441
60 to 69
For expansion instructions.
160
70
(@)XFER
BLOCK TRANSFER
Moves content of several consecutive source words to con-
secutive destination words.
413
71
(@)BSET
BLOCK SET
Copies content of one word or constant to several consecu-
tive words.
414
73
(@)XCHG
DATA EXCHANGE
Exchanges contents of two different words.
415
74
(@)SLD
ONE DIGIT SHIFT
LEFT
Left shifts data between starting and ending words by one
digit (four bits).
408
75
(@)SRD
ONE DIGIT SHIFT
RIGHT
Right shifts data between starting and ending words by one
digit (four bits).
408
76
(@)MLPX
4-TO-16 DECODER
Converts up to four hexadecimal digits in source word into
decimal values from 0 to 15 and turns ON, in result word(s),
bit(s) whose position corresponds to converted value.
442
77
(@)DMPX
16-TO-4 ENCODER
Determines position of highest ON bit in source word(s) and
turns ON corresponding bit(s) in result word.
444
78
(@)SDEC
7-SEGMENT
DECODER
Converts hexadecimal values from source word to data for
seven-segment display.
446
80
(@)DIST
SINGLE WORD
DISTRIBUTE
Moves one word of source data to destination word whose
address is given by destination base word plus offset.
415
81
(@)COLL
DATA COLLECT
Extracts data from source word and writes it to destination
word.
417
82
(@)MOVB
MOVE BIT
Transfers designated bit of source word or constant to desig-
nated bit of destination word.
419
83
(@)MOVD
MOVE DIGIT
Moves hexadecimal content of specified four-bit source dig-
it(s) to specified destination digit(s) for up to four digits.
420
84
(@)SFTR
REVERSIBLE SHIFT
REGISTER
Shifts data in specified word or series of words to either left
or right.
409
85
(@)TCMP
TABLE COMPARE
Compares four-digit hexadecimal value with values in table
consisting of 16 words.
433
86
(@)ASC
ASCII CONVERT
Converts hexadecimal values from the source word to eight-
bit ASCII code starting at leftmost or rightmost half of starting
destination word.
449
87 to 89
For expansion instructions.
160
91
(@)SBS
SUBROUTINE ENTRY
Calls and executes subroutine N.
484
92
SBN
SUBROUTINE
DEFINE
Marks start of subroutine N.
486
93
RET
RETURN
Marks the end of a subroutine and returns control to main
program.
486
97
(@)IORF
I/O REFRESH
Refreshes all I/O words between the start and end words.
Cannot be used with the SRM1(-V2).
498
99
(@)MCRO
MACRO
Calls and executes a subroutine replacing I/O words.
486
Содержание 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 ...