This function block controls a
type counter with the following reduced functions:one-channel counting
no threshold
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 |
---|---|---|
|
|
Reference to the HSC instance. |
|
|
|
|
|
One shot counter: On rising edge, loads the preset of the counter. Modulo loop counter: On rising edge, resets and initializes the counter. |
|
|
One shot counter: Not used.
Modulo loop mode: On rising edge, resets the modulo flag |
This table describes the output variables:
Outputs |
Type |
Comment |
---|---|---|
|
|
|
|
|
In One-shot mode, switches to 0 when
In Modulo loop mode, |
|
|
|
|
|
|
|
|
Indicates the value of the error detected. See |
|
|
One shot counter: Not relevant.
Module loop mode: Set to |
|
|
The value of the counter. |