Pulse output instructions
1039
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.
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) THEN
dutHome.iInitialAndFinalSpeed:=iInitialAndFinalSpeed
dutHome.iTargetSpeed:=iTargetSpeed
dutHome.iAccelerationAndDecelerationTime:=iAccelerationTime
END_IF;
IF DF(X0_bMotorSwitch) THEN
F168_PulseOutput_Home(s_dutDataTable := dutHome,
n_iPulseOutputChannel := 0);
END_IF;