Omron CS1G/H-CPUxx-EV1 Programming Manual page 139

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents