Panasonic FP Series Programming Manual page 1170

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Hsc_TargetValue
Match_Set
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 TRUE.
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:
F166_HighSpeedCounter_Set (see page 900)
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
registers
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
Optional
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 ON (high-speed couter)
_
Channel%d
Y%d_%s
must be a high-speed counter channel number enabled in the system
Y0–Y7
Y0–Y1F
Y0–Y29F
Fixed pattern
_
ChannelA
Y11F
Data type
Function
BOOL
A rising edge activates the function; evaluate the high-speed counter
control flag using HscInfo_IsActive (see page 1157)
INT
FP
: 0, 2
FP-X R: 0, 1
FP-X 16K C14T: 0, 1, 2
FP-X 32K C30T, C60T: 0, 1, 2, 3
FP0R: 0, 1, 2, 3
FP0: 0, 1
FP-e: 0, 1
Pointer result obtained by GetPointer from a global variable that supplies
POINTER
the channel number and output relay
DINT
Specify a 32-bit data value for the target value within the following range:
FP0, FP-e: -838808–+8388607
FP
, FP-X, FP0R: -2147483467–+2147483648
High-speed counter instructions
Optional
_MotorOn
1169

Advertisement

Table of Contents
loading

Table of Contents