Pulse output instructions
1029
Part III FP Instructions
Example
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
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) THEN
F166_PulseOutput_Set(n_diPulseOutputChannel := 0,
s_diTargetValue := 10,
d_Y => out_0);
END_IF;