![background image](http://html1.mh-extra.com/html/omron/sysmac-c200hs/sysmac-c200hs_operation-manual_742436448.webp)
Appendix B
Programming Instructions
445
Code
Page
Function
Name
Mnemonic
(@)52
MLB
BINARY MULTIPLY
Multiplies two four-digit hexadecimal values and outputs
result to specified result words.
224
(@)53
DVB
BINARY DIVIDE
Divides four-digit hexadecimal dividend by four-digit hexa-
decimal divisor and outputs result to specified result words.
224
(@)54
ADDL
DOUBLE BCD ADD
Adds two eight-digit values (2 words each) and content of
CY, and outputs result to specified result words.
206
(@)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.
209
(@)56
MULL
DOUBLE BCD
MULTIPLY
Multiplies two eight-digit BCD values and outputs result to
specified result words.
212
(@)57
DIVL
DOUBLE BCD
DIVIDE
Divides eight-digit BCD dividend by eight-digit BCD divisor
and outputs result to specified result words.
213
(@)58
BINL
DOUBLE BCD TO
DOUBLE BINARY
Converts BCD value in two consecutive source words into
binary and outputs converted data to two consecutive re-
sult words.
181
(@)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.
182
60 to 69
For expansion instructions.
(@)70
XFER
BLOCK TRANSFER
Moves content of several consecutive source words to
consecutive destination words.
161
(@)71
BSET
BLOCK SET
Copies content of one word or constant to several consec-
utive words.
160
(@)72
ROOT
SQUARE ROOT
Computes square root of eight-digit BCD value and out-
puts truncated four-digit integer result to specified result
word.
217
(@)73
XCHG
DATA EXCHANGE
Exchanges contents of two different words.
162
(@)74
SLD
ONE DIGIT SHIFT
LEFT
Left shifts data between starting and ending words by one
digit (four bits).
156
(@)75
SRD
ONE DIGIT SHIFT
RIGHT
Right shifts data between starting and ending words by
one digit (four bits).
156
(@)76
MLPX
8-TO-256 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.
Can also convert up to eight hexadecimal digits and turn
ON corresponding bits in result words R to R+15.
185
(@)77
DMPX
256-TO-8 ENCODER
Determines position of highest ON bit in source word(s)
and writes the ON bit’s position (0 to F) to digit(s) in R.
Can also determine the position of the highest ON bit in
one or two groups of 16 words (S to S+15, S+16 to S+31)
and writes the ON bit’s position (00 to FF) to byte(s) in R.
188
(@)78
SDEC
7-SEGMENT
DECODER
Converts hexadecimal values from source word to data for
seven-segment display.
191
(@)79
FDIV
FLOATING POINT
DIVIDE
Divides one floating point value (Dd+1, Dd) by another
(Dr+1, Dr) and outputs the result to R+1 and R.
214
(@)80
DIST
SINGLE WORD
DISTRIBUTE
Moves one word of source data to destination word whose
address is given by destination base word plus offset.
162
(@)81
COLL
DATA COLLECT
Extracts data from source word and writes it to destination
word.
164
(@)82
MOVB
MOVE BIT
Transfers designated bit of source word or constant to des-
ignated bit of destination word.
166
(@)83
MOVD
MOVE DIGIT
Moves hexadecimal content of specified four-bit source
digit(s) to specified destination digit(s) for up to four digits.
167
(@)84
SFTR
REVERSIBLE SHIFT
REGISTER
Shifts data in specified word or series of words to either left
or right.
152
(@)85
TCMP
TABLE COMPARE
Compares four-digit hexadecimal value with values in table
consisting of 16 words.
175
Содержание SYSMAC C200HS
Страница 1: ...Cat No W235 E1 05 C200HS SYSMAC Programmable Controllers...
Страница 2: ...C200HS Programmable Controllers Operation Manual Revised February 2002...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 379: ...371 SR word Corresponding key s Bit 279 03 04 05 3 06 07 VER 08 09 Monitoring Operation and Modifying Data Section 7 1...
Страница 470: ...468 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage...
Страница 471: ...469 Programmer Program Date Page TC address T or C Set value Notes TC address T or C Set value Notes Timers and Counters...