Panasonic FP Series Programming Manual page 1030

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
The same POU header is used for all programming languages.
GVL
In the global variable list, you define variables that can be accessed by all POUs in the project.
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
ST
When programming with structured text, enter the following:
IF
DF(start)
F166_PulseOutput_Set(n_diPulseOutputChannel
s_diTargetValue
d_Y
END_IF;
THEN
:= 10,
=> out_0);
Pulse output instructions
:= 0,
1029

Advertisement

Table of Contents
loading

Table of Contents