Using VARIANT data type in Siemens TIA Portal

preview_player
Показать описание
Example of using VARIANT data type to pass user defined data to function in Siemens TIA Portal V18.
In example we are using reference Instructions: TIA Portal Pointer Reference TypeOf(Variant), "Mov_Blk_Variant" and "CaseOf". Function is written in SCL programming language.

#variant #tiaportal #plcprogramming #variantdatatype #siemens #SCLlanguage
Рекомендации по теме
Комментарии
Автор

Thank you for the video! There's so little information about this topic on the internet.
Also FYI, you can use data types directly in switch-case statement like this:
case TypeOf("Parameter") of
WString:
; //do smth
String:
; //do smth
SInt:
; //do smth
USInt:
;
Int:
. etc
. etc
. etc
else
; // default action or error
end_case;

enderbiradam
Автор

This what I needed to know about VARIANT

AndreSmith-gf