HaModDIO
(FB)
FUNCTION_BLOCK HaModDIO
This Function Block can add in a standardized way event handling, alarming and other functions as often available in DCS type environment for digital inputs and outputs. 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
In
BOOL
FALSE
1: Signal Input
SetObjErr
BOOL
FALSE
2: Signal Object Error
Invert
BOOL
FALSE
3: Signal Inversion
EnAlarm
BOOL
FALSE
4: Signal AlarmConfiguration enabled
AlarmValue
BOOL
FALSE
5: Signal AlarmConfig Alarm Value 0/1 activ
Reset
BOOL
FALSE
6: Reset Latched state
UseLatch
BOOL
FALSE
7: Automatically reset latched state
UseSync
BOOL
TRUE
8: Use HA Sync
InTon
DWORD
0
9: Signal Input Switch On delay [ms]
InTof
DWORD
0
10: Signal Input Switch Off delay [ms]
Output
Alarm
BOOL
FALSE
1: Signal Alarm
ObjErr
BOOL
FALSE
2: Signal Object Error
Out
BOOL
FALSE
3: Signal Out
Forced
BOOL
FALSE
4: Simulation ON
Inverted
BOOL
FALSE
5: Signal Inversion
Latch
BOOL
FALSE
6: Latched Output