EasyManua.ls Logo

Panasonic FP-E - Page 102

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Relays, Memory Areas and Constants
1-78
3) Direct specification of the realnumber constant data
When operations are being carried out on realnumber constants as realnumber 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 realnumber constant
The realnumber data stored in DT10 and DT11 is multiplied
by the realnumber constant 0.5, and the result of the
operation stored in DT20 and DT21 as realnumber data.
F312 f*, DT10, f0.5, DT20
4) Specifying a K constant for conversion
The K constant (32bit data) is an integer data element, so it is automatically converted
to realnumber data and the operation is executed.
F310 F+, K10, DT50, DT60
Automatic conversion to real number
5) Specifying an H constant for conversion
With an H constant (32bit 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 realnumber 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
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com

Related product manuals