Omron SYSMAC CP Series Instruction & Reference Manual page 32

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

1 Summary of Instructions
Instrucion
Instruction
Type
Conversion
BCD TO BINARY
Instructions
DOUBLE BCD TO
DOUBLE BINARY
BINARY TO BCD
DOUBLE BINARY
TO DOUBLE BCD
2'S COMPLEMENT
DATA DECODER
DATA ENCODER
ASCII CONVERT
ASCII TO HEX
Logic Instruc-
LOGICAL AND
tions
DOUBLE LOGICAL
AND
LOGICAL OR
DOUBLE LOGICAL
OR
EXCLUSIVE OR
DOUBLE EXCLU-
SIVE OR
COMPLEMENT
DOUBLE
COMPLEMENT
Special Math
ARITHMETIC PRO-
Instructions
CESS
BIT COUNTER
1-8
FUN
Mnemonic
No.
BIN/
023
Converts BCD data to binary data.
@BIN
BINL/
058
Converts 8-digit BCD data to 8-digit hexadecimal (32-bit binary) data.
@BINL
BCD/
024
Converts a word of binary data to a word of BCD data.
@BCD
BCDL/
059
Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD data.
@BCDL
NEG/
160
Calculates the 2' complement of a word of hexadecimal data.
@NEG
MLPX/
076
Reads the numerical value in the specified digit (or byte) in the source word,
@MLPX
turns ON the corresponding bit in the result word (or 16-word range), and turns
OFF all other bits in the result word (or 16-word range).
DMPX/
077
FInds the location of the first or last ON bit within the source word (or 16-word
@DMPX
range), and writes that value to the specified digit (or byte) in the result word.
ASC/
086
Converts 4-bit hexadecimal digits in the source word into their 8-bit ASCII
@ASC
equivalents.
HEX/
162
Converts up to 4 bytes of ASCII data in the source word to their hexadecimal
@HEX
equivalents and writes these digits in the specified destination word.
ANDW/
034
Takes the logical AND of corresponding bits in single words of word data and/or
@ANDW
constants.
ANDL/
610
Takes the logical AND of corresponding bits in double words of word data
@ANDL
and/or constants.
ORW/
035
Takes the logical OR of corresponding bits in single words of word data and/or
@ORW
constants.
ORWL/
611
Takes the logical OR of corresponding bits in double words of word data and/or
@ORWL
constants.
XORW/
036
Takes the logical exclusive OR of corresponding bits in single words of word
@XORW
data and/or constants.
XORL/
612
Takes the logical exclusive OR of corresponding bits in double words of word
@XORL
data and/or constants.
COM/
029
Turns OFF all ON bits and turns ON all OFF bits in Wd.
@COM
COML/
614
Turns OFF all ON bits and turns ON all OFF bits in Wd and Wd+1.
@COML
APR/
069
Calculates the sine, cosine, or a linear extrapolation of the source data.
@APR
BCNT/
067
Counts the total number of ON bits in the specified word(s).
@BCNT
Function
CP1E CPU Unit Instructions Reference Manual(W483)
Page
2-185
2-185
2-187
2-187
2-189
2-191
2-196
2-201
2-205
2-210
2-210
2-212
2-212
2-214
2-214
2-216
2-216
2-218
2-227

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents