Panasonic FP-E Programming Manual page 102

Fp series
Table of Contents

Advertisement

Relays, Memory Areas and Constants
3) Direct specification of the real−number constant data
When operations are being carried out on real−number constants as real−number data,
the values can be directly input by using a programming tool in which "f" is added either
to the target data "S" or the destination "D" defined by the instruction.
The range that can be specified by these instructions is 0.0000001 to 9999999 (the
effective value consists of seven digits).
Example:
Specifying the target data "S" with a real−number constant
The real−number data stored in DT10 and DT11 is multiplied
by the real−number constant 0.5, and the result of the
operation stored in DT20 and DT21 as real−number data.
4) Specifying a K constant for conversion
The K constant (32−bit data) is an integer data element, so it is automatically converted
to real−number data and the operation is executed.
F310 F+, K10, DT50, DT60
5) Specifying an H constant for conversion
With an H constant (32−bit data), the operation is carried out using the H constant as
floating point data.
Operation if an overflow occurs
If the operation result exceeds the real−number range, an overflow flag (R9009) is set.
If this occurs, one of the values noted below is set for R9009 as a result.
Positive infinite value: H7F800000
Negative infinite value: HFF800000
1 - 78
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
F312 f*, DT10, f0.5, DT20
Automatic conversion to real number

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents