F290_DZONE

Redundant instruction

NOTE

This is a redundant instruction. It is replaced by: FP_ZONE

The function adds an offset value to the input value at input s3_In. The offset value for the negative and positive area are entered at inputs s1_NegBias and s2_PosBias.

Parameters

Input

s1_NegBias (DWORD, DINT, UDINT, DATE, TOD, DT)

area where negative bias value is stored or negative bias value data

s2_PosBias (DWORD, DINT, UDINT, DATE, TOD, DT)

area where positive bias value is stored or positive bias value data

s3_In (DWORD, DINT, UDINT, DATE, TOD, DT)

area where input value is stored or input value data

Output

d (DWORD, DINT, UDINT, DATE, TOD, DT)

area where output value is stored

Remarks

Instead of using this F instruction, we recommend using the corresponding FP7 instruction: FP_ZONE

The result of the function is returned at output d as follows:

  1.  (1) Output value d
  2.  (2) Positive bias value s2_PosBias
  3.  (3) Input value s3_In
  4.  (4) Negative bias value s1_NegBias

Error flags

sys_bIsEqual (turns to TRUE for one scan)

if the calculation results in an overflow or an underflow of output d.

sys_bIsCarry (turns to TRUE for one scan)

if the input value s3_In is 0.

Related topics:

Modified on: 2019-01-26Feedback on this pagePanasonic hotline