-

Diagnostic codes

Dieses Thema enthält die folgenden Abschnitte:

The hexadecimal diagnostic codes listed here are output as WORD data type at the DiagCode output of the function block.

Status transitions and the corresponding conditions can be seen in the State machine diagram.

Status codes (except error codes)

Code (hex)DescriptionOptions for remedy
0000 Idle state

The function block is not activated. The Activate input is FALSE.

The outputs show SAFEFALSE or FALSE.
Activate the function block by switching Activate to TRUE.
8401Init state

The function block has been activated.
If the start-up inhibit is active (set with S_StartReset = SAFEFALSE), the FB waits for a rising edge at input Reset to transition to 8006.
If no startup inhibit is set (S_StartReset = SAFETRUE), the FB automatically changes to state 8006 after one cycle of the Sicherheitssteuerung.

Output Ready is TRUE.
Output ResetRequest depends on the signal at input Reset:
  • If Reset = FALSE, ResetRequest = TRUE to indicate the required reset signal.
  • If Reset = TRUE, ResetRequest = FALSE as the reset signal must first be switched to FALSE.
The S_OutControl output is SAFEFALSE and the other outputs show FALSE.
Without start-up inhibit: No measures required.

Perform an FB reset if this is indicated via ResetRequest = TRUE.
Otherwise switch the reset signal to FALSE. The FB then changes to state C001.
8006 Output Disable state

The process control is not active.

Output Ready is TRUE. The S_OutControl output is SAFEFALSE and the other outputs show FALSE.
Request of an operation start at ProcessControl from the standard controller.
8000Output Enable state

The process control is active and safety is enabled.

The function block has not detected a status event or an error to switch the enable output to SAFEFALSE. No triggered safety-related function is present (S_SafeControl = SAFETRUE). At the ProcessControl input, "running operation" is signaled from the standard controller (ProcessControl = TRUE).

Output Ready is TRUE. The S_OutControl output is SAFETRUE and the other outputs show FALSE.
If this is an intended event: No measure required.

If this is an unintended event:
  • Verify the parameterization of the function block (inputs StaticControl, S_StartReset, S_AutoReset).
  • Verify the safety-related functions.
  • Verify the safety-related code.
  • Verify the control or the operation start from the standard controller (evaluation at the ProcessControl input).
8802Safe state

The upstream safety-related function has triggered. The signal at input S_SafeControl is SAFEFALSE.

Output Ready is TRUE. SafetyDemand = TRUE indicates the interrupted safety chain.
The S_OutControl output is SAFEFALSE and the other outputs show FALSE.
  1. Eliminate the cause of the request for the safety function.
  2. Reset the triggered safety-related function. S_SafeControl must be SAFETRUE.
8404Lock state

The upstream safety-related function signals normal operation again (S_SafeControl = SAFETRUE). The restart inhibit of the function block is active (specified by S_AutoReset = SAFEFALSE).

If no restart inhibit is set (S_AutoReset = SAFETRUE), the FB automatically changes to state 8006 after one cycle of the Sicherheitssteuerung.

Output Ready is TRUE.
Output ResetRequest depends on the signal at input Reset:
  • If Reset = FALSE, ResetRequest = TRUE to indicate the required reset signal.
  • If Reset = TRUE, ResetRequest = FALSE as the reset signal must first be switched to FALSE.
The S_OutControl output is SAFEFALSE and the other outputs show FALSE.
If the restart inhibit is active and ResetRequest = TRUE, reset the function block to remove the restart inhibit and switch the enable signal to SAFETRUE.
Otherwise, switch the reset signal to FALSE. The FB then changes to state C011.

Error codes

Code (hex)DescriptionOptions for remedy
C001Reset Error 1 state

The function block detected a static TRUE signal at input Reset in state 8401.

The output Ready is TRUE. Output Error is TRUE to indicate the error state. The other outputs show SAFEFALSE or FALSE.
Verify the reset control device and its wiring. The Reset signal must have the FALSE status.
C011Reset Error 2 state

The function block detected a static TRUE signal at input Reset in state 8404.

The output Ready is TRUE. Output Error is TRUE to indicate the error state. The other outputs show SAFEFALSE or FALSE.
Verify the reset control device and its wiring. The Reset signal must have the FALSE status.
C010Control Error state

The function block detected a static TRUE signal at input ProcessControl in state 8006.

During function block activation or removal of the request for the safety-related function, the function block detected the "running operation" request from the standard controller (permanent TRUE at ProcessControl). However, with StaticControl = FALSE an additional operation stop is required.
  • Switch ProcessControl = FALSE (removal of the operation start request from the standard controller).
  • Adapt the parameterization of StaticControl if "running operation" (permanent TRUE at ProcessControl) from the standard controller following function block activation and removal of the request for the safety-related function in your safety-related function is permitted.
C020Init Error state

A similar signal (i.e., rising edge in the same cycle) was detected in state 8401 at the inputs Reset and ProcessControl. This is probably caused by a programming or wiring error.

The outputs Ready and Error show TRUE, S_OutControl = SAFEFALSE and the other outputs are FALSE.
  • Verify the connection at ProcessControl and Reset. These inputs must be controlled by two different signal sources.
  • Remove the connection error or programming error where required.
  • Switch Reset to FALSE to exit the error state.
C030Lock Error state

A similar signal (i.e., rising edge in the same cycle) was detected in state 8404 at the inputs Reset and ProcessControl. This is probably caused by a programming or wiring error.

The outputs Ready and Error show TRUE, S_OutControl = SAFEFALSE and the other outputs are FALSE.
  • Verify the connection at ProcessControl and Reset. These inputs must be controlled by two different signal sources.
  • Remove the connection error or programming error where required.
  • Switch Reset to FALSE to exit the error state.