C40K-CDR-A Omron, C40K-CDR-A Datasheet - Page 131

no-image

C40K-CDR-A

Manufacturer Part Number
C40K-CDR-A
Description
PROGRAMMABLE CONTROLLER CPU
Manufacturer
Omron
Datasheet

Specifications of C40K-CDR-A

Leaded Process Compatible
No
Peak Reflow Compatible (260 C)
No
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
BCD Calculations
5-16
5-16-1
120
Description
Flags
BCD Calculations
BCD ADD – ADD(30)
The BCD calculation instructions perform mathematic operations on BCD
data.
These instructions change only the content of the words in which results are
placed, i.e., the contents of source words are the same before and after exe-
cution of any of the BCD calculation instructions.
STC(40) and CLC(41), which set and clear the carry flag, are included in this
group because most of the BCD operations make use of the carry flag (CY)
in their results. Binary arithmetic and shift operations also use CY.
The addition and subtraction instructions use CY in the calculation as well as
in the result. Be sure to clear CY if its previous status is not required in the
calculation, and to use the result placed in CY, if required, before it is
changed by execution of any other instruction.
When the execution condition is OFF, ADD(30) is not executed and the next
instruction is moved to. When the execution condition is ON, ADD(30) adds
the contents of Au, Ad, and CY, and places the result in R. CY will be set if
the result is greater than 9999. Au and Ad should not be designated as con-
stants. This instruction will be executed every cycle as long as the execution
condition remains ON. If the instruction is to be executed only once for a giv-
en ON execution condition then it must be used in conjunction with DIFU(13)
or DIFD(14).
ER:
CY:
EQ:
Ladder Symbol
Au and/or Ad is not BCD.
ON when there is a carry in the result.
ON when the result is 0.
ADD(30)
Au
Ad
R
Au + Ad + CY
CY
Au : Augend word (BCD)
Ad : Addend word (BCD)
Operand Data Areas
IR, SR, DM, HR, TC, #
IR, SR, DM, HR, TC, #
R
R : Result word
IR, DM, HR
Section 5-16

Related parts for C40K-CDR-A