This function block controls a
type counter with the following functions:up/down counting
frequency meter
thresholds
events
period meter
dual phase
The HSC Main function block is mandatory when using
counter.The function block instance name must match the name defined by configuration. Hardware related information managed by this function block is synchronized with the MAST task cycle.
WARNING | |
---|---|
To see the general representation in IL or ST language, refer to Function and Function Block Representation.
This table describes the input variables:
Input |
Type |
Description |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
On rising edge, authorizes counting function synchronization and start in the following counting modes:
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
On rising edge, resets |
||||||||||
|
|
On rising edge, resets |
||||||||||
|
|
On rising edge, resets the |
||||||||||
|
|
NOTE:
EN_Compare , EN_ReflexO, EN_Reflex1, F_Out0, F_Out1 remain operational while SuspendCompare is set.
|
This table describes the output variables:
Outputs |
Type |
Comment |
---|---|---|
|
Reference to the HSC. |
|
|
|
In the FALSE. Type, if the time-out value is exceeded, Validity =
In |
|
|
Use the |
|
|
In One-shot mode, the Run bit switches to 0 when |
|
|
Only active when |
|
|
Only active when |
|
|
Only active when |
|
|
Only active when |
|
|
Set to
|
|
|
Set to |
|
|
This flag must be reset before a new capture can occur. |
|
|
State of
Only active when |
|
|
State of
Only active when |
|
|
Indicates the state of Output0. |
|
|
Indicates the state of Output1. |
|
|
Current value of the counter. |