Conversion Instructions - Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual

Programmable controllers
Table of Contents

Advertisement

Conversion Instructions

Instruction
Symbol/Operand
Mnemonic
Code
DOUBLE
/UL(433)
UNSIGNED
BINARY DIVIDE
/UL
@/UL
433
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
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

3-10 Conversion Instructions

Instruction
Symbol/Operand
Mnemonic
Code
BCD-TO-BINARY
BIN(023)
BIN
@BIN
023
S: Source word
R: Result word
DOUBLE BCD-
BINL(058)
TO-DOUBLE
BINARY
BINL
@BINL
058
S: 1st source
word
R: 1st result word
Divides 8-digit (double-word) unsigned hexadecimal data and/or
constants.
Dd
Dr
÷
R
R + 3
R + 2
Remainder
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
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)
Function
(Unsigned binary)
Dd + 1
Dd
(Unsigned binary)
Dr + 1
Dr
(Unsigned binary)
R + 1
R
Quotient
(BCD)
Dd
(BCD)
Dr
(BCD)
R
Quotient
Dd + 1
Dd
Dr + 1
Dr
R + 2
R + 1
R
Quotient
Function
R
(BIN)
(BIN)
R
R+1
(BIN)
Section 3-10
Location
Execution condition
Output
Required
Output
Required
Output
Required
(BCD)
(BCD)
(BCD)
Location
Execution condition
Output
Required
Output
Required
105

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents