PnioCntrlGetCntrlState (FB)
FUNCTION_BLOCK PnioCntrlGetCntrlState EXTENDS AbbETrig
Function block to get coupler’s present state
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
ExecuteBOOLFALSE
A rising edge starts the operation, the output Busy goes to TRUE. In the first cycle all other inputs are read and stored, afterwards they are ignored. A falling edge does not stop the operation. After Done = TRUE or Error = TRUE and Execute = FALSE all outputs will be reset.
AbbETrig
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 Execute is set to FALSE
AbbETrig
BusyBOOLFALSE
Operation is running (while outputs Done and Error are FALSE)
AbbETrig
ErrorBOOLFALSE
Operation is stopped with error (while outputs Busy and Done are FALSE). This output is TRUE for at least one cycle or until Execute is set to FALSE. The output ErrorID gives more details about the error.
AbbETrig
Input
SlotBYTE0
Slot number of assigned coupler
Output
ErrorIDERROR_ID.NO_ERROR
Error code description
AddErrNoUDINT0
Additional error message
CommunicationCOSUDINT0
Communication Change of State
MstState0
Master state
CommErno0
Communication error
NumErrsDWORD0
Number of errors occured since power up
VersionWORD0
Version
WatchdogWORD0
Watchdog timeout
SlaveStateUDINT0
Signals if the IO-Controller exchanges cyclic data to ALL configured IO-Devices
NumConfigSlavesUDINT0
Number of configured IO-Devices
NumActiveSlavesUDINT0
Number of active IO-Devices
NumDiagSlavesUDINT0
Number of configured IO-Devices which are not exchanging cyclic data OR which reported an diagnosis alarm