-

FSoE_F_Addr_Diagnostic

TypeFunction block
DescriptionThe function block is used to diagnose downstream FSoE F-connections.

The FB can be used as an alternative to the corresponding F-diagnostic variables FSOE_MSTR_ADDR_[nnnnn]_ACK_REQ (acknowledgement required) or FSOE_MSTR_ADDR_[nnnnn]_ACK_REI (perform an acknowledgment). (For the variables, nnnnn corresponds to the FSoE F-address.)

The FB reads the output interface data of an FSoE-Master instance and shows them as 16 bit value at its output formal parameter FSoE_Diag_Status. This way, a required acknowledgement can be indicated. Via the input formal parameter FSoE_Diag_Control, the 16 bit input interface data of the FSoE-Master instance can be written and thus controlled. This way, acknowledging of diagnostic messages is possible.

The FB can only be used in the user program if no F-diagnostic variables are parameterized in the Safety PLC (observe the section "Notes" below).

One instance of this function block can only ever be used for one point-to-point downstream F-connection.

The function block is activated by a rising edge Activate = FALSE > TRUE. If an error occurs during the execution of the function block, Error is set to TRUE. The DiagCode output indicates the current FB status.

Note
In addition, the FSoE_F_Global_Diagnostic FB is available which can be used to diagnose all parameterized F-downstream connections.

Block Icon
Notes
  • Important: The use of the FB described here and the corresponding system variables for F-diagnostics are mutually exclusive!

    The function block can only be used in the safety-related application program if no F- diagnostic variables are parameterized in the Safety PLC. This applies regardless of the protocol used. As soon as one FSoE F-diagnostic function block is activated, the use of the diagnostic system variables is blocked and they can no longer be used, even if the function block is deactivated again. In order to be able to use the diagnostic system variables again, the function blocks must be deactivated and the user program must be rewritten onto the controller. If at least one system variable has been parameterized for F-diagnostics and a function block is active at the same time, the function block goes into the error state. An error code is output at DiagCode and the function block remains in the error state until the user program is reloaded onto the controller.

  • Reparameterization at runtime is not permitted and is not accepted by the FB.
  • Function blocks of this type have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.
ParametersInput

Activate

F_Address_In

FSoE_Diag_Control

Outputs

Ready

F_Address_Out

FSoE_Diag_Status

Error

DiagCode
Diagnostic codes The DiagCode output indicates the current FB status. While an error is indicated, this is the error code.

Table with diagnostic codes