Arithmetic instructions
440
Part III FP Instructions
F289_ZONE
16-bit data zone control
If the input value at input s3 < 0, the negative offset value at input s1 is added to
the input value at s3, and the result is stored as the output value at d.
If the input value at input s3 = 0, 0 is returned at the output value to output d.
If the input value at input s3 > 0, the positive offset value at input s2 is added to
the input value at s3, and the result is stored as the output value at d.
0
Output value d
Positive bias
value s2
Input value s3
Negative bias value s1
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
PLC types
Availability of F289_ZONE (see page 1323)
Variable Data type Function
s1 area where negative bias value is stored or negative bias value
data
s2 area where positive bias value is stored or positive bias value data
s3 area where input value is stored or input value data
d
ANY16
area where output value is stored
Description
The function adds an offset value to the input value at input s3. The offset values for the negative
and positive areas are entered at inputs s1 and s2. The result of the function is returned at output d
as follows:
Data types