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

Комментарии • 5

  • @БулатШайхулин
    @БулатШайхулин 6 месяцев назад +2

    Thanks for the explanation!

  • @enderbiradam6954
    @enderbiradam6954 5 месяцев назад +1

    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;

  • @AndreSmith-g9f
    @AndreSmith-g9f 11 месяцев назад +3

    This what I needed to know about VARIANT

    • @antomatix
      @antomatix  11 месяцев назад +2

      you're welcome:)

    • @dylanakoue1722
      @dylanakoue1722 10 месяцев назад

      how did yoou draw those tanks @@antomatix