Panasonic FP Series Programming Manual page 1070

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
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.
DUT
The DUT F173_PulseOutput_PWM_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
When programming with structured text, enter the following:
ST
IF
(X6_bEnablePWM)
dutPWMControl.iPulseWidthModulationDuty:=iPulseWidthModulationDuty;
END_IF;
IF
(X6_bEnablePWM)
F173_PulseOutput_PWM(s_dutDataTable
n_iPulseOutputChannel
END_IF;
Set
If
permanently
 channel number or values of the data table are outside the
permissible range (when executing the instruction for the first
time)
for an instant
 FP0R/FP-X: pulse output has not been set in the system
registers
THEN
THEN
:= 2);
Pulse output instructions
:= dutPWMControl,
1069

Advertisement

Table of Contents
loading

Table of Contents