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

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

Advertisement

Instruction
Symbol/Operand
Mnemonic
Code
DOUBLE BCD
*BL(425)
MULTIPLY
*BL
Md
@*BL
425
Md: 1st
multiplicand word
Mr: 1st multiplier
word
R: 1st result word
SIGNED BINARY
/(430)
DIVIDE
/
Dd
@/
430
Dd: Dividend word
Dr: Divisor word
R: Result word
DOUBLE
/L(431)
SIGNED BINARY
DIVIDE
/L
@/L
431
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
UNSIGNED
/U(432)
BINARY DIVIDE
/U
@/U
432
Dd: Dividend
word
Dr: Divisor word
R: Result word
DOUBLE
/UL(433)
UNSIGNED
BINARY DIVIDE
Dd
/UL
@/UL
433
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Multiplies 8-digit (double-word) BCD data and/or constants.
Mr
×
R
R + 3
R + 2
Divides 4-digit (single-word) signed hexadecimal data and/or
constants.
Dr
÷
R
R +1
Remainder
Divides 8-digit (double-word) signed hexadecimal data and/or
constants.
Dd
Dr
÷
R
R + 3
R + 2
Remainder
Divides 4-digit (single-word) unsigned hexadecimal data and/or
constants.
Dd
Dr
R
R +1
Remainder
Divides 8-digit (double-word) unsigned hexadecimal data and/or
constants.
Dr
R
R + 3
R + 2
Remainder
2. Summary of Instructions
Function
(BCD)
Md + 1
Md
(BCD)
Mr + 1
Mr
(BCD)
R + 1
R
(Signed binary)
Dd
(Signed binary)
Dr
(Signed binary)
R
Quotient
(Signed binary)
Dd + 1
Dd
(Signed binary)
Dr + 1
Dr
R + 1
R
(Signed binary)
Quotient
(Unsigned binary)
Dd
Dr
(Unsigned binary)
(Unsigned binary)
R
Quotient
(Unsigned binary)
Dd + 1
Dd
(Unsigned binary)
Dr + 1
Dr
R + 1
R
(Unsigned binary)
Quotient
Location
Page
Execution
condition
Output
366
Required
Output
368
Required
2
Output
368
Required
Output
370
Required
Output
370
Required
61

Advertisement

Table of Contents
loading

Table of Contents