EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Page 146

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
106
Conversion Instructions
Section 3-10
BINARY-TO-BCD
BCD
@BCD
024
Output
Required
DOUBLE
BINARY-TO-
DOUBLE BCD
BCDL
@BCDL
059
Output
Required
2’S COMPLE-
MENT
NEG
@NEG
160
Output
Required
DOUBLE 2’S
COMPLEMENT
NEGL
@NEGL
161
Output
Required
16-BIT TO 32-BIT
SIGNED BINARY
SIGN
@SIGN
600
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
BCD(024)
S
R
S: Source word
R: Result word
(BCD)(BIN)
R
Converts a word of binary data to a word of BCD data.
BCDL(059)
S
R
S: 1st source
word
R: 1st result word
(BIN)
(BCD)
(BIN)
(BCD)
R
R+1
Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD data.
NEG(160)
S
R
S: Source word
R: Result word
2's complement
(Complement + 1)
(S)
(R)
Calculates the 2's complement of a word of hexadecimal data.
NEGL(161)
S
R
S: 1st source
word
R: 1st result word
2's complement
(Complement + 1)
(S+1, S)
(R+1, R)
Calculates the 2's complement of two words of hexadecimal data
.
SIGN(600)
S
R
S: Source word
R: 1st result word
D+1 D
MSB = 0:
0000 Hex
MSB = 1:
FFFF Hex
S
MSB
Expands a 16-bit signed binary value to its 32-bit equivalent.
D = Contents of S

Table of Contents

Related product manuals