Panasonic FP Series Programming Manual page 505

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Arithmetic instructions
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 sort_order is declared. However, you can write a constant
directly at the input contact of the function instead.
Body
When the variable start is set to TRUE, the function is carried out. Since the variable sort_order is
set to 1, the specified data field in sorted in descending order.
LD
ST
IF
start
THEN
F278_DSORT( s1_Start:= data_field[0],
s2_End:= data_field[4],
s3_Descending:= sort_order);
END_IF;
504

Advertisement

Table of Contents
loading

Table of Contents