Panasonic FP Series Programming Manual page 432

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F88_DABS
Gets the absolute value of 32-bit data with the sign specified by d if the trigger EN is in the
Description
ON-state. The absolute value of the 32-bit data with sign is stored in d. This instruction is useful for
handling data whose sign (+/-) may vary.
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.
Instead of using this FP instruction, we recommend using the related IEC instruction ABS (see
page 66). Please refer also to Advantages of the IEC instructions in the online help.
Availability of F88_DABS (see page 1326)
PLC types
Data types
Variable
Data type
ANY32
d
Operands
For
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.
Body
When the variable start is set to TRUE, the function is carried out.
LD
32-bit data absolute value
Function
32-bit area for storing original data and its absolute value
Relay
-
DWY DWR
DWL
DSV
Set
permanently
for an instant
for an instant
T/C
Register
DEV
DDT
DLD
DFL
If
 the 32-bit data is the negative minimum
value -2147483648 (16#80000000).
 the 32-bit data is the negative value in
the range from -1 to -2147483647
(16#FFFFFFFF to 16#80000001).
Arithmetic instructions
Constant
-
431

Advertisement

Table of Contents
loading

Table of Contents