ISafetyIoServices_Converter (UNION)

TYPE ISafetyIoServices_Converter : UNION

Helps to ‘convert’ a POINTER/__XWORD into a reference of type ISafetyIoServices without generating warning/errors in the compiler. This is needed when reading and writing the instance to/from Parameters. Use instead of not-available type-casts.

how to use
  1. Create a variable of this union-type.

  2. Write your memory address / pointer to the val-member of the variable.

  3. Get your typed reference to the interface ISafetyIoServices from the itf-member of the variable.

InOut:

Name

Type

Comment

itf

ISafetyIoServices

typed access

val

__XWORD

memory address