Conversion Instructions - Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual

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

Advertisement

2. Summary of Instructions
Instruction
Symbol/Operand
Mnemonic
Code
BCD DIVIDE
/B(434)
/B
@/B
434
Dd: Dividend
word
Dr: Divisor word
R: Result word
DOUBLE BCD
/BL(435)
DIVIDE
/BL
@/BL
435
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word

2-2-10 Conversion Instructions

Instruction
Symbol/Operand
Mnemonic
Code
BCD TO BINARY
BIN(023)
BIN
@BIN
023
S: Source word
R: Result word
DOUBLE BCD TO
BINL(058)
DOUBLE
BINARY
BINL
@BINL
058
S: 1st source
word
R: 1st result word
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
62
Divides 4-digit (single-word) BCD data and/or constants.
Dd
Dr
÷
R
R +1
Remainder
Divides 8-digit (double-word) BCD data and/or constants.
Dd
Dr
÷
R
R + 3
R + 2
Remainder
Converts BCD data to binary data.
S
(BCD)
R
Converts 8-digit BCD data to 8-digit hexadecimal (32-bit binary) data.
S
(BCD)
R
(BCD)
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)
Function
(BCD)
Dd
(BCD)
Dr
(BCD)
R
Quotient
(BCD)
Dd
Dd + 1
(BCD)
Dr
Dr + 1
R + 1
R
(BCD)
Quotient
Function
R
(BIN)
(BIN)
R
R+1
(BIN)
R
(BCD)
R
(BCD)
(BCD)
R+1
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Location
Page
Execution
condition
Output
372
Required
Output
372
Required
Location
Page
Execution
condition
Output
374
Required
Output
374
Required
Output
376
Required
Output
376
Required

Advertisement

Table of Contents
loading

Table of Contents