Omron SYSMAC CVM1 Series Operation Manual page 297

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Symbol Math Instructions
Precautions
Flags
Example
0000
00
(435)
/BL D00100 D00110 D00120
DOUBLE BCD DIVIDE
When the execution condition is OFF, /BL(435) is not executed. When the
execution condition is ON, the BCD 8-digit content of Dd and D+1 is divided by
the BCD content of Dr and Dr+1 and the result is placed in R to R+3: the quotient
in R and R+1, and the remainder in R+2 and R+3.
R+3
Dr+1
Dd and Dr (or Dd, Dd+1, Dr, and Dr+1) must be BCD. If any other data is used,
the Error Flag (A50003) will turn ON and the instruction will not be executed.
Note Refer to page 101 for general precautions on operand data areas.
ER (A50003):
Dd and Dr (or Dd, Dd+1, Dr, and Dr+1) are not BCD.
The content of a*DM word is not BCD when set for BCD.
EQ(A50006)
The division result is all zeroes.
/BL Operation
When CIO 000001 is ON in the following example, the content of D00201 and
D00200 is divided by the content of D00211 and D00210, in eight-digit BCD.
When the result is obtained, the quotient is output to D00221 and D00220, and
the remainder is output to D00223 and D00222.
Remainder
R+2
Dr
Section 5-20
Quotient
R+1
R
Dd+1
Dd
Address Instruction
Operands
00000
LD
00001
/BL(435)
000000
D00100
D00110
D00120
279

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents