
High
−
level Instructions
3
−
70
Explanation of example
Subtracts the contents (32 bits) of data registers DT11 and DT10 from the contents (32 bits) of data registers
DT21 and DT20 when trigger R0 turns on.
Contents of
DT21
Contents of
DT10
Contents of
DT11
The specified data area and the
following data area are handled
together as 32
−
bit data.
Higher 16 bits Lower 16 bits
Contents of
DT20
←
The lower 16 bits of subtracted result
is stored in DT20 and the higher 16
bits of the result is stored in DT21.
(Subtraction)
(Result is stored.)
Store to DT21 Store to DT20
Description
Subtracts the 32-bit equivalent constant or the 32-bit data specified by S from the 32-bit data specified by D.
Minuend data
Result
(D+1, D)
(D+1, D)
—
(S+1, S)
Subtrahend data
Precautions during programming
If the result of an arithmetic operation instruction does not fall within the range of values which can be
handled, an overflow or underflow will result.
Under normal circumstances, do not allow an overflow or underflow to occur.
If an overflow or underflow occurs, the carry flag (special internal relay R9009) will turn on.
Flag conditions
・
Error flag (R9007): Turns on and stays on when the area specified using the index modifier
exceeds the limit.
・
Error flag (R9008): Turns on for an instant when the area specified using the index modifier
exceeds the limit.
・
= flag (R900B):
Turns on for an instant when the calculated result is recognized as “0”.
・
Carry flag (R9009): Turns on for an instant when the calculated result exceeds the range of 32-bit
data (overflows or underflows).
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-E
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...