Skip to main content

ProfisafeHost (V2.4) and ProfisafeHostV26

Tip

The version of the function blocks as described here corresponds to the latest version of the function blocks in Version list of function blocks.

For an explanation about the default behavior, see Fieldbuses – General Part.

The notices regarding the default behavior of the driver of the PROFIsafe host stack should be observed.

Detection of loopback errors

SIL monitor

This implementation supports the variant B of the SIL monitor. Every CRC error about the received telegram leads to an error response: Error state of the ProfisafeHost (V2.4) and ProfisafeHostV26 : 16#C103, error state of the F-Device: 16#C2XX bit 2.

If the request for a manual operator acknowledgement caused by a diagnostic message is made more than once within 100 hours, then the responsible service technician should be consulted.

For operators and service technicians: This represents a serious impairment of the data transmission within the fieldbus system. Possible reasons for these malfunctions: Changes in the installation, corrosion of bus cable screens with plug connectors and extreme electromagnetic interference. Correspondence with the respective installation guidelines should be checked, or an EMC expert should be consulted (for further instructions see appendix to the PROFIsafe Specification, Version 2.5, December 2012).

Using the function block instance

General: The F-Device specifies which version of the PROFIsafe transmission is expected. If an F-Device supports both PROFIsafe versions, then two devices will be defined in the device description according to the Profisafe host version. Depending on the device configured in the CODESYS project, transmission takes place in Version 2.4 or 2.6.

. The ProfisafeHost function block and the ProfisafeHostV26 function block are used in the application for the following:
  • Controlling the behavior of the PROFIsafe connection

  • Confirming the resumption of communication after an error

  • Status and diagnosis of the connection to the F-Device

To do this, the corresponding instance of the ProfisafeHost function block must be used in a program by means of VAR_EXTERNAL <device name>:ProfisafeHost or VAR_EXTERNAL <device name>:ProfisafeHostV26.

Function blocks: ProfisafeHost (V2.4) and ProfisafeHostV26

safety_image_profisafehostV24.png
sil3_img_profisafehostV26.png
Table 115. VAR_INPUT

Name

Data Type

Initial Value

Description, parameter values

activate_FV_C

BOOL

FALSE

(Input according to the PROFIsafe Specification)

TRUE: Failsafe values should be transmitted to the F-Device as output signals.

FALSE: Process data should be transmitted when there are no errors or an acknowledgement is expected for resuming the safety function.

Default value: FALSE

OA_C

BOOL

FALSE

Name according to the PROFIsafe Specification, Operator Acknowledge; for the input ack-edge for manual acknowledgement. See Input for acknowledgement edge (manual acknowledgement)

Default value: FALSE

The Input to the acknowledgement edge (manual acknowledgement) notes must be observed.

ChF_Ack_C

BOOL

FALSE

This input exists only for the ProfisafeHostV26 function block.

(Input according to the PROFIsafe Specification: Channel Operator Acknowledgement)

This input is used to confirm the resumption of the safety function of a channel after a channel error.

Note: The procedure for confirming channel errors is specified by the F-Device and can be found in its manual.

The value of the FB input is transferred to the F-Device in the control byte, bit 6, regardless of the F_Passivation setting.

iPar_EN_C

BOOL

FALSE

(Input according to PROFIsafe Specification: Activation of the i-parameterization of the F-Device. If necessary, activate_FV_C should also be set to 1.

TRUE: The i-parameterization of the F-Device is activated.

FALSE: The i-parameterization of the F-Device is not activated.

Default value: FALSE

StartOA

BOOL

TRUE

PROFIsafe name of the input auto-ack-startup-error for automatic acknowledgement of errors at startup. See Input for automatic acknowledgement of startup errors

Default value: TRUE

The Input for automatic acknowledgement of startup errors safety note must be observed.

AutoOA

BOOL

FALSE

PROFIsafe name of the input auto-ack-interrupt input for the automatic acknowledgement after interruptions. See Input for automatic acknowledgement after interruption

The default value is FALSE. This means that there is no automatic start after a communication error.

The Input for automatic acknowledgement after interruption safety note must be observed.



Table 116. VAR_OUTPUT

Name

Data Type

Initial Value

Description, parameter values

FV_activated_S

SAFEBOOL

TRUE

(Output according to PROFIsafe Specification: Display Activation of Failsafe Values)

TRUE: The PROFIsafeHost stack returns failsafe values.

FALSE: The PROFIsafeHost stack returns process data.

(Note: The output changes to TRUE either at the instruction of the stack or due to transmission errors to the F-Device or internal errors in the F-Device.)

OA_Req_S

ProfisafeHost:

BOOL

ProfisafeHostV26:

SAFEBOOL

FALSE

Name for the output according to the PROFIsafe Specification: Display Operator Acknowledgement Request, for the output ack-req for the acknowledgement request.

See Output for acknowledgement request

The Output for acknowledgement request note must be observed.

ChF_Ack_Req_S

SAFEBOOL

FALSE

This output exists only for the ProfisafeHostV26 function block.

Output according to the PROFIsafe Specification: Display Channel Operator Achnowledgement Request

This functionality is available only if F_Passivation = 1.

TRUE: A channel of the F-Device requires an acknowledgement by the user (Channel Operator Acknowledgement) in order to resume the safety function for a channel.

FALSE: No channel of the F-Device currently requires confirmation by the operator (Channel Operator Acknowledgement).

iPar_OK_S

ProfisafeHost:

BOOL

ProfisafeHostV26:

SAFEBOOL

FALSE

(Output according to PROFIsafe Specification: Display End of the i-parameterization of the F-Device.

TRUE: The F-Device has received new i-Parameters.

FALSE: The F-Device has not received new i-parameters.

Error

BOOL

FALSE

Error display

TRUE: An error has occurred (DiagCode = 16#Cxxx).

FALSE: An error has not occurred (DiagCode = 16#8xxx).

DiagCode

WORD

16#0000

Usage of the output as diagnostic code (see Diagnostic code)

The ProfisafeHost (V2.4) and ProfisafeHostV26 function blocks have a different behavior regarding the display of error states at the diagnostic output.

tRespTimeMS

TIME

TIME#0ms

Output, which provides the current cycle time for a message. (see below: Time measurement)

tMinRespTimeMS

TIME

TIME#0ms

Output, which provides the minimum cycle time for a message (see below: Time measurement) since the last rising edge of OA_C or system start.

tMaxRespTimeMS

TIME

TIME#0ms

Output, which provides the maximum cycle time for a message (see below: Time measurement) since the last rising edge of OA_C or system start.



Time measurement

The ProfisafeHost (V2.4) and ProfisafeHostV26 function blocks provide three outputs for the monitoring of the message processing time. The outputs are used for diagnosing the PROFIsafe communication.

According to the PROFIsafe specification, the expired time of the host timer is taken as the measured cycle time of a telegram (F-Host -> F-Device -> F-Host): measurement from the time a request is sent until the response is received. In order not to falsify the measurements, only valid responses are considered. (This means that only values at the transitions T6 and T16 are accepted according to PROFIsafe specification).

The function blocks supply the current and minimum cycle times of a telegram.