![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030520.webp)
480
Symbol Math Instructions
Section 3-11
Description
/B(434) divides the BCD content of Dd by those of Dr and outputs the quotient
to R and the remainder to R+1.
Flags
Precautions
If Dd or Dr are not BCD or if the remainder (R+1) is 0, an error will be gener-
ated and the Error Flag will turn ON.
If as a result of the division, the content of R is 0000 hex, the Equals Flag will
turn ON.
If as a result of the division, the leftmost bit of R is 1, the Negative Flag will
turn ON.
Examples
When CIO 000000 is ON in the following example, D00100 will be divided by
D00110 as 4-digit BCD values and the quotient will be output to D00120 and
the remainder to D00120.
Example in Function Block Definition
In the following example, an array variable is used to get the quotient and
remainder from the function block.
Indirect DM/EM
addresses in BCD
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
#0000 to #9999
(BCD)
#0001 to #9999
(BCD)
---
Data Registers
DR0 to DR15
---
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
Dd
Dr
R
R +1 R
(BCD)
(BCD)
(BCD)
÷
Dd
Dr
Remainder
Quotient
Name
Label
Operation
Error Flag
ER
ON when Dd is not BCD.
ON when Dr is not BCD.
ON when the remainder is 0.
OFF in all other cases.
Equals Flag
=
ON when R is 0.
OFF in all other cases.
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...