IoModuleHotSwapInfo (FB)
FUNCTION_BLOCK IoModuleHotSwapInfo EXTENDS AbbLConA
Provides I/O-Bus module HotSwap state information if unplug of module is supported
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
EnableBOOLFALSE
A rising edge (Enable = TRUE) starts the operation, the output Busy goes to TRUE. All other inputs are read and considered continuously. A falling edge (Enable = FALSE) aborts the operation. During Aborting the Busy is still TRUE. Afterward all outputs are reset.
AbbLConA
Output
DoneBOOLFALSE
Operation is completed without error (while outputs Busy and Error are FALSE). This output is TRUE for at least one cycle or until Enable is set to FALSE.
AbbLConA
BusyBOOLFALSE
Operation is running (while outputs Done and Error are FALSE)
AbbLConA
ErrorBOOLFALSE
Operation is stopped with error (while outputs Busy and Done are FALSE). This output is TRUE for at least one cycle or until Enable is set to FALSE. The output ErrorID gives more details about the error.
AbbLConA
Input
ModuleBYTE1
Module number 1…10
Output
ErrorIDERROR_ID.NO_ERROR
Error code describing error condition
ModulePluggedBOOLTRUE
Flag if module is plugged
ModuleInRunBOOLFALSE
Flag if module is running
HotSwapAllowedBOOLFALSE
True if Hotswap at this position is allowed
TuStateIOBUS_TU_STATEIOBUS_TU_STATE.IOBUS_TU_STATE_NO_HS
Current State of Hotswap Terminal Unit
ModuleStateIOBUS_MODUL_STATEIOBUS_MODUL_STATE.IOBUS_MODULE_STATE_NO_MOD
Current State of Module itself