Panasonic FP-E Programming Manual page 1014

Fp series
Table of Contents

Advertisement

High−level Instructions
Description
The bias value specified by S1 or S2 is added to the input value (real number data) specified by S3, and the
output value is stored in the area specified by D.
The output value is determined by the following conditions:
When the input value S3+1 and S3 are less than 0.0, the input value S3+1 and S3 plus the negative bias value
S1+1 and S1 are stored in D+1 and D as the output value.
When the input value S3+1 and S3 are equals 0.0, zero is stored in D+1 and D as the output value.
When the input value S3+1 and S3 are greater than 0.0, the input value S3+1 and S3 plus the positive bias
value S2+1 and S2 are stored in D+1 and D as the output value.
Output value D+1 and D
Positive bias value
S2+1 and S2
0
Specifying the integer device with [S1], [S2] and [S3], the integer data is internally converted to real numbers
before operations continue.
R0
F349 FZONE, % DT10, % DT20, % DT30, DT40
Specifying the integer device with [D], the real numbers are automatically converted into integer data.
R0
F349 FZONE, DT10, DT20, DT30, % DT40
When the constant K is specified in S1, S2 and S3, the operations are the same as when a integer device is
specified.
Flag conditions
・Error flag (R9007):
・Error flag (R9008):
・= flag (R900B):
・Carry flag (R9009): Turns on for an instant when the result is overflowed.
3 − 750
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Input value S3+1 and S3
Negative bias value S1+1 and S1
Turns on and stays on when:
Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− If data other than real number data is specified in "S1+1, S1", "S2+1, S2"
and "S3+1, S3."
− If result of operating is outside integer range when integer device is
specified in "D+1, D".
Turns on when input value is recognized as "0."

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents