CM592SystemDiagnosis
(FB)
FUNCTION_BLOCK PUBLIC FINAL CM592SystemDiagnosis EXTENDS AC500_StateMachine.AbbLConA
Get present system diagnosis
This function block provides diagnosis information which slaves are configured and which slaves are in active data exchange mode. Type of requested information can be selected via SlaveStateType. Information about slaves signaling active diagnosis is not supported for this function block. Please use standard diagnosis functions instead, which are provided as device diagnosis.
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
Enable
BOOL
FALSE
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
Done
BOOL
FALSE
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
Busy
BOOL
FALSE
Operation is running (while outputs Done and Error are FALSE)
AbbLConA
Error
BOOL
FALSE
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
Device
AC500_IoDrvCm592Profibus.IDeviceCM592Profibus
0
Reference to coupler device instance
SlaveStateType
SlaveStateBitFieldType.CM592_PROFIBUS_SLAVE_STATE_TYPE_CFG
Type of slave state bit field (configured / data exchange)
Output
ErrorID
ERROR_ID.NO_ERROR
Error code that describes the occured error
AddErrorID
UDINT
CM592Const.CM592_ADD_ERROR_NONE
Additional error info, in case ErrorID shows “REQUEST_FAILED”
SlaveStates
Slave state array of booleans - to show system diagnosis