Operands
For
iHscChannel*
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
Example
Example 1: With maximum target value control
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
DUT
The DUT F165_HighSpeedCounter_Cam_8_Values_DUT is predefined in the FP Library and can
be used as a sample.
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 bStartCam turns to TRUE, the function is carried out.
LD
Relay
-
-
-
-
Set
If
permanently
channel number or values of the data table are outside the
permissible range
for an instant
high-speed counter has not been set in the system registers
target value > maximum target value.
target value = 0.
target values are not arranged in ascending order
High-speed counter instructions
T/C
Register
-
-
DT
-
Constant
-
-
899