Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 100

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Instruction
Symbol/Operand
Mnemonic
Code
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
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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)
2's complement
(Complement + 1)
(R+1, R)
MSB = 0:
0000 Hex
D
D = Contents of S
2. Summary of Instructions
Location
Execution
condition
Output
Required
Output
Required
Output
Required
Page
379
379
2
381
63

Advertisement

Table of Contents
loading

Table of Contents