Internal data points of the PROFIsafe driver

An internal data point of type _PROFIsafe is automatically created for each connection of the PROFIsafe driver. The name of the connection must be unique within the system.

Following table shows the elements of data type _PROFIsafe:

_PROFIsafe

Data point element Type Description
Config.Address string Address configuration of PROFINET card and safety controller.
Config.ReconnectTimeout uint

Reconnect interval in seconds.

Default = 20

Config.LifebeatTimeout uint

Lifebeat interval in seconds.

Default = 20

Config.EstablishmentMode uint
  • 0: inactive

  • 1: automatically active (default)

Config.SetInvalidBit bool Defines if the invalid bit is set on connection loss. For PROFIsafe the invalid bit is always set if the PROFIsafe connection state is not "running".
Config.AcquireValuesOnConnect bool

Triggers a general query when the connection to the PLC is established.

Default = TRUE

Config.EnableStatistics bool

Enables the statistical evaluation of data for this connection.

Default = TRUE

Config.Modules.Slot dyn_uint Slot number of the transfer area.
Config.Modules.Area dyn_char Direction (input, output ,bidirectional) of the transfer area.
Config.Modules.Size dyn_uint Size (in bytes) of the transfer area.
Config.Modules.Sil dyn_uint

Safety Integrity Level of the transfer area.

  • 0: Non-Safe

  • 3: SIL 3

Config.Modules.FSource dyn_uint Corresponds to the F_Source_Add parameter in TIA Portal.
Config.Modules.FDest dyn_uint Corresponds to the F_Dest_Add parameter in TIA Portal.
Config.Modules.FCrcSize dyn_uint Size of F-CRC parameter in bytes.
Config.Symbolic.SymAddr dyn_string List of symbolic addresses.
Config.Symbolic.AbsAddr dyn_string List of absolute addresses.
Config.IM_Data blob I&M data (Identification & Maintenance, for PROFINET IO devices), only used for internal remanence.
Config.ModeTag string

Mode tag required for the WinCC OA redundancy. The byte defined here is used to inform the safe controller if the driver (F-device) is active or passive.

Must be stated in format <slot number>.<byte number>

Config.DrvNumber uint Driver number of the PROFIsafe driver in the project.
Command.Enable bool Activates / deactivates the connection.
Command.GQ bool Triggers a general query.
Command.IGQ bool Triggers an inverse general query.
State.ConnState uint

Connection state:

  • 0: Inactive

  • 1: Disconnected

  • 2: Connecting

  • 3: Connected

  • 4: Disconnecting

  • 5: Failure

  • 6: Listening

State.DrvType string <driver type>:<driver number>
State.Disabled bool
State.GeneralInfo string General information on the connected F-host etc.
State.Profinet uint

Operating state of the PROFINET network:

  • 0: Uninitialized

  • 1: Initialized

  • 2: Connected

  • 3: Error

State.Profisafe uint

Connection state of the PROFIsafe network:

  • 0: Uninitialized

  • 1: Initialized

  • 2: Configured

  • 3: Running

  • 4: Run with data error

  • 5: Error

Statistics.PnReadsPerSec float Read PROFINET tags per second in the last interval.
Statistics.PnWritesPerSec float Written PROFINET tags per second in the last interval.
Statistics.PsReadsPerSec float Read PROFIsafe tags per second in the last interval.
Statistics.PsWritePerSec float Written PROFIsafe tags per second in the last interval.