HaModCtd (FB)

FUNCTION_BLOCK HaModCtd

Function block HaModCtd is a standard down counter with automatic data synchronization in a high availability system Only internal variables and outputs are synchronized. Input variables and parameters are not synchronized. If needed, use HaModDataSync to achieve the same.

InOut:

Scope

Name

Type

Initial

Comment

Input

Cd

BOOL

FALSE

1:Count Down on rising edge

Load

BOOL

FALSE

2:Load Start Value

Pv

WORD

0

3:Start Value

Output

Q

BOOL

FALSE

1:Counter reached 0

Cv

WORD

0

2:Current Counter Value