Panasonic FP Series Programming Manual page 1171

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

High-speed counter instructions
Output variable
Data type
BOOL
bError
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
(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
GetPointer(g_bHsc_TargetValueMatch_Channel1_Y1_RedLamp_On),
1170
Function
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
iChannel
:= iChannel1,
pYOutput
:=
diTargetValue
:= diTargetValue0,
bError
=> bErrorSet);
:= DF(bSet)
AND NOT
bIsActive,

Advertisement

Table of Contents
loading

Table of Contents