Panasonic FP Series Programming Manual page 1168

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Hsc_TargetValue
Match_Reset
If the elapsed value matches the target value diTargetValue of the high-speed counter channel
Description
specified by iChannel, the output relay specified by pYOutput immediately turns to FALSE.
This non-inline instruction is part of the tool instructions for high-speed counters. For a detailed
description of the instruction(s) used internally, please refer to the online help:
F167_HighSpeedCounter_Reset (see page 904)
To validate the combination of channel and Y output, the compiler requires the following name pattern for
global variables:
Hsc_TargetValueMatch_
%s
Always use this pattern for global variables in target value match control.
Channel%d
must be an explicit output address supported by the PLC
Y%d
FP-
, FP0, FP-e:
FP-
(V3.1 or higher), FP0R:
FP-X:
is an optional descriptor at the beginning and the end of the pattern
%s
Optiona
l
Hsc_TargetValueMatch_
g_b
This global variable generates the code for channel A and output Y11F.
See 1327
PLC types
Data types
Input variable
bExecute
iChannel
pYOutput
diTargetValue
Target value match OFF (high-speed counter)
_
Channel%d
Y%d%s
must be a high-speed counter channel number enabled in the system registers
Y0–Y7
Y0–Y1F
Y0–Y29F
Fixed pattern
_
ChannelA
Y11F
Data type
Function
A rising edge activates the function; evaluate the high-speed counter
BOOL
control flag using HscInfo_IsActive (see page 1157)
FP
: 0, 2
FP-X R: 0, 1
FP-X 16K C14T: 0, 1, 2
INT
FP-X 32K C30T, C60T: 0, 1, 2, 3
FP0R: 0, 1, 2, 3
FP0, FP-e: 0, 1
Pointer result obtained by GetPointer from a global variable that supplies
POINTER
the channel number and output relay
Specify a 32-bit data value for the target value within the following range:
FP0, FP-e: -838808–+8388607
DINT
FP
, FP-X, FP0R: -2147483467–+2147483648
High-speed counter instructions
Optional
_MotorOn
1167

Advertisement

Table of Contents
loading

Table of Contents