Panasonic FP Series Programming Manual page 483

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.
Body
When the variable start is set to TRUE, the function is carried out. Instead of using an input
variable in this example, a constant (-44) is assigned to input s1. The result is stored in special data
registers DT90037 and DT90038. The two E_MOVE functions copy the results to the two variables
number_matches and position_1match.
LD
ST
IF
start
THEN
F97_DSRC( s1:=
s2_Start:= data_table[0] ,
s3_End:= data_table[3] );
number_matches:=DT90037;
position1_match:=DT90038;
END_IF;
482
-44
,

Advertisement

Table of Contents
loading

Table of Contents