Panasonic FP Series Programming Manual page 696

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F335_FSIGN
The function changes the sign of the floating point value at input s and returns the result at output
Description
d.
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.
Availability of F335_FSIGN (see page 1324)
PLC types
Data types
Variable
Data type
REAL
s
REAL
d
Operands
For
DWX DWY DWR
s
d
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
%MX0.900.9
R9009
In this example, the same POU header is used for all programming languages. For an example
Example
using IL (instruction list), please refer to the online help.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
In this example, the input variable input_value is declared. However, you can write a constant
directly at the input contact of the function instead.
Body
The value 333.4 is assigned to the variable input_value. When the variable start is set to TRUE,
the function is carried out. The output_value is then -333.4.
Floating point data sign changes (negative/positive conversion)
Function
source
destination
Relay
DWL
DSV
-
DWY DWR
DWL
DSV
Set
permanently
for an instant
for an instant
T/C
Register
DEV
DDT
DLD
DFL
DEV
DDT
DLD
DFL
If
 the value at input s is not a REAL
number.
 the result causes an overflow.
Conversion instructions
Constant
dec. or hex.
-
695

Advertisement

Table of Contents
loading

Table of Contents