High-speed counter instructions
907
Part III FP Instructions
Variable Data type Function
n_diHscChannel DINT High-speed counter channel:
FP-
: 0–3
FP-X R: 0–11
FP-X T: 0–7
FP0: 0–3
FP-e: 0–3
FP0R: 0–5
s_diTargetValue 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
d_Y BOOL output which turns to FALSE when the elapsed value matches the target value:
FP-
, FP0, FP-e: Y0–Y7
FP-
(V3.1 or higher), FP0R: Y0–Y1F
FP-X: Y0–Y29F
For Relay T/C Register Constant
n_diHscChannel - - - - - - - - - dec. or hex.
s_diTargetValue DWX DWY DWR - DSV DEV DDT - - -
d_Y - Y - - - - - - - -
No. IEC address Set If
R9007 %MX0.900.7 ON
R9008 %MX0.900.8 ON
channel number or values of the data table are outside the
permissible range
high-speed counter has not been set in the system registers
Data types
Operands
Error flags
Example
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
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
When the variable start is set to TRUE, the function is carried out.
LD
ST