Using VARIANT data type in Siemens TIA Portal
HTML-код
- Опубликовано: 14 окт 2024
- 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.
Check article about using TIA Portal VARIANT here: antomatix.com/...
#variant #tiaportal #plcprogramming #variantdatatype #siemens #SCLlanguage
Thanks for the explanation!
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;
This what I needed to know about VARIANT
you're welcome:)
how did yoou draw those tanks @@antomatix