API
Instruction code
172
D
ADDR
Device
X
Y
M
S
1
S
2
D
S
S
E xp la nat io n
S
If S
The floating-point value in S
S
If the absolute value of an oepration result is greater than the maximum
If the absolute value of an oepration reuslt is less than the minimum
If an operation result is 0, a zero flag will be ON.
SM1064 is the zero flag in an Ox motion subroutine, and SM968 is the
SM1065 is the borrow flag in an Ox motion subroutine, and SM969 is the
SM1066 is the carry flag in an Ox motion subroutine, and SM970 is the
When X0.0 is ON, the floating-point value F1.0 is added to the
E xamp le 1
When X0.0 is ON, the floating-point value in (D3, D2) is added to the
E xamp le 2
5 - 1 0 3
Operand
P
S
, S
1
S
K
16#
F
KnM KnS
Pulse instruction 16-bit instruction 32-bit instruction (9 steps)
: Augend; S
: Addend; D: Sum
1
2
and S
can be floating-point values.
1
2
and S
can be floating-point values, or data registers in which
1
2
floating-point values are stored.
and S
are data registers in which floating-point values are stored,
1
2
the function of API 172 DAADR is the same as the function of API 120
DEADD.
and the sum is stored in D.
and S
can be the same register. If the instruction DAADR is used
1
2
under the circumstances, the value in the register is added to itself
whenever the conditional contact is ON in a scan cycle. Generally, the
pulse instruction DADDRP is used.
floating-point value available, a carry flag will be ON.
floating-point value available, a borrow flag will be ON.
zero flag in O100.
borrow flag in O100.
carry flag in O100.
floating-point value F1.23456, and the sum F2.23456 is stored in (D11,
D10).
X0.0
DADDR
floating-point value in (D1, D0), and the sum is stored in (D11, D10).
X0.0
DADDR
Ch ap te r 5 Ap plie d Instruc tions
Floating-point addition
, D
2
D
W
T
–
is added to the floating-point value in S
2
F 1.23456
F 1.0
D0
D2
Function
C
V
Z
,
1
D10
D10