This function block controls a
type counter with the following reduced functions:one-channel counting
no threshold
no event
no capture
no reflex
The HSCSimple
function block is mandatory when using a counter type.
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:
Inputs |
Type |
Comment |
---|---|---|
|
|
|
|
|
On rising edge, presets and starts the counter. |
|
|
Modulo loop mode: On rising edge, resets the modulo flag |
This table describes the output variables:
Outputs |
Type |
Comment |
---|---|---|
|
Reference to the HSC. |
|
|
|
Use the |
|
|
|
|
|
In One-shot mode, switches to 0 when |
|
|
Module loop mode: Set to |
|
|
Current count value of the counter. |