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