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
Create a variable of this union-type.
Write your memory address / pointer to the val-member of the variable.
Get your typed reference to the interface ISafetyIoServices from the itf-member of the variable.
- InOut:
Name
Type
Comment
itf
typed access
val
__XWORD
memory address