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.
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


Name | Data Type | Initial Value | Description, parameter values |
---|---|---|---|
|
|
| (Input according to the PROFIsafe Specification)
Default value: |
|
|
| 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: The Input to the acknowledgement edge (manual acknowledgement) notes must be observed. |
|
|
| This input exists only for the (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 |
|
|
| (Input according to PROFIsafe Specification: Activation of the i-parameterization of the F-Device. If necessary,
Default value: |
|
|
| 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: The Input for automatic acknowledgement of startup errors safety note must be observed. |
|
|
| 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 The Input for automatic acknowledgement after interruption safety note must be observed. |
Name | Data Type | Initial Value | Description, parameter values |
---|---|---|---|
|
|
| (Output according to PROFIsafe Specification: Display Activation of Failsafe Values)
(Note: The output changes to |
|
|
| 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. |
|
|
| This output exists only for the Output according to the PROFIsafe Specification: Display Channel Operator Achnowledgement Request This functionality is available only if
|
|
|
| (Output according to PROFIsafe Specification: Display End of the i-parameterization of the F-Device.
|
|
|
| Error display
|
|
|
| Usage of the output as diagnostic code (see Diagnostic code) The |
|
|
| Output, which provides the current cycle time for a message. (see below: Time measurement) |
|
|
| Output, which provides the minimum cycle time for a message (see below: Time measurement) since the last rising edge of |
|
|
| Output, which provides the maximum cycle time for a message (see below: Time measurement) since the last rising edge of |
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.