Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 97

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Instruction Functions
Instruction
Symbol/Operand
Mnemonic
Code
BINARY TO BCD
BCD(024)
BCD
@BCD
024
S: Source word
R: Result word
DOUBLE
BCDL(059)
BINARY TO DOU-
BLE 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.
S
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
2's complement
(Complement + 1)
(R)
2's complement
(Complement + 1)
(R+1, R)
MSB = 0:
0000 Hex
D
D = Contents of S
Section 2-2
Location
Page
Execution
condition
Output
487
Required
Output
489
Required
Output
491
Required
Output
493
Required
Output
494
Required
57

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents