168
Note:
Description
• The 32-bit data or 32-bit equivalent constant specified by S1 and S2 are added together when
the trigger turns ON. The added result is stored in D+1 and D.
■
Flag condition
• Error flag (R9007):
Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008):
Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
• = 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).
*Range of 32-bit data: K-2147483648 to K2147483647 (H80000000 to
H7FFFFFFF)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relays R9008, R9009, and R900B as the flags for this
instruction, be sure to program the flags at the address immediately after the
instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags, = flag, and carry flag.
Augend data
Addend data
Trigger turns ON
Result
S1
: lower 16-bit
S2
: lower 16-bit
D
: lower 16-bit
S1+1 : higher 16-bit
+
S2+1 : higher 16-bit
D+1 : higher 16-bit
• When processing 32-bit data, the higher 16-bit areas (S1+1, S2+1, D+1) are automatically decided if the
lower 16-bit areas (S1, S2, D) are specified.
e.g., S1+1 (higher) = DT1, S1 (lower) = DT0
S2+1 (higher) = DT101, S2 (lower) = DT100
D+1 (higher) = DT201, D (lower) = DT200
6-3. Description of High-level Instructions
Содержание FP1
Страница 1: ...PROGRAMMABLE CONTROLLER FP1 is a global brand name of Matsushita Electric Works Hardware ...
Страница 28: ...20 ...
Страница 98: ...90 ...
Страница 150: ...142 ...
Страница 208: ...200 ...
Страница 226: ...218 ...
Страница 280: ...272 ...