Omron CS1G/H-CPUxxH Instructions Manual page 406

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Symbol Math Instructions
Description
Flags
Precautions
Examples
Area
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
+BC(406) adds BCD values in Au, Ad, and CY and outputs the result to R.
+
CY will turn
CY
ON when there
is a carry.
Name
Error Flag
ER
Equals Flag
=
Carry Flag
CY
If Au or Ad is not BCD, an error is generated and the Error Flag will turn ON.
If as a result of the addition, the content of R is 0000 hex, the Equals Flag will
turn ON.
If an addition results in a carry, the Carry Flag will turn ON.
Note To clear the Carry Flay (CY), execute the Clear Carry (CLC(041)) instruction.
When CIO 000000 is ON in the following example, D00100, D00110, and CY
will be added as 4-digit BCD values, and the result will be output to D00120.
Au
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#0000 to 9999
(BCD)
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
(BCD)
Au
(BCD)
Ad
CY
(BCD)
R
Label
ON when Au is not BCD.
ON when Ad is not BCD.
OFF in all other cases.
ON when the result is 0.
OFF in all other cases.
ON when the addition results in a carry.
OFF in all other cases.
Section 3-11
Ad
R
---
Operation
385

Advertisement

Table of Contents
loading

Table of Contents