EasyManua.ls Logo

Panasonic FP Series - Page 1171

Panasonic FP Series
1345 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
High-speed counter instructions
1170
Part IV Tool Instructions
Output variable Data type Function
bError BOOL TRUE if the combination of Channel%d and pYOuput.iOffset does not
match a valid combination of channel number and output relay as
determined by the global variable
Example
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
(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
Use HscInfo_IsActive (see page 1157) to evaluate the channel specified by iChannel1. If a rising
edge is detected at bSet and if bIsActive is not TRUE, the instruction is executed. The
combination of channel number and output contact is validated in the global variable
g_bHsc_TargetValueMatch_Channel1_Y1_RedLamp_On. When the high-speed counter on
channel 1 reaches the target value diTargetValue0, output Y1 is set to TRUE.
LD
ST
bIsActive:=HscInfo_IsActive(iChannel1);
Hsc_TargetValueMatch_Set(bExecute := DF(bSet) AND NOT bIsActive,
iChannel := iChannel1,
pYOutput :=
GetPointer(g_bHsc_TargetValueMatch_Channel1_Y1_RedLamp_On),
diTargetValue := diTargetValue0,
bError => bErrorSet);

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals