Panasonic FP Series Programming Manual page 1040

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.
DUT
The DUT F168_PulseOutput_Home_DUT is predefined in the FP Library.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
LD
ST
When programming with structured text, enter the following:
IF
DF(X0_bMotorSwitch)
dutHome.iInitialAndFinalSpeed:=iInitialAndFinalSpeed
dutHome.iTargetSpeed:=iTargetSpeed
dutHome.iAccelerationAndDecelerationTime:=iAccelerationTime
END_IF;
IF
DF(X0_bMotorSwitch)
F168_PulseOutput_Home(s_dutDataTable
n_iPulseOutputChannel
END_IF;
THEN
THEN
:= dutHome,
:= 0);
Pulse output instructions
1039

Advertisement

Table of Contents
loading

Table of Contents