TIA Portal #18: Move instruction (Part 1)

Поделиться
HTML-код
  • Опубликовано: 30 янв 2025

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

  • @carlosgallego1076
    @carlosgallego1076 Год назад +1

    Thanks for the video. Very interesting.

  • @nelsonpantaleon7751
    @nelsonpantaleon7751 Год назад +2

    Hello sir, can ask about pos input in serialize block what does it mean about pos because use move 0 in md2 and md8 whats the useful of pos input thank you

    • @industrial_automation
      @industrial_automation  Год назад

      Hi nelson, Because we can not use a constant for POS, it means we can not directly write 0 to the POS, so I have to use a variable. This variable must be double integer so we need to use MD. Ususally we use a move operation to copy a constant value to a variable. That's why I used MD2 with a move.
      MD8 is used in a same way for desrialize.

    • @nelsonpantaleon7751
      @nelsonpantaleon7751 Год назад +1

      @@industrial_automation ok sir it means sir that POS input always double integer 0 never 1,2,3,or etc. That is what my question thank you sir

    • @industrial_automation
      @industrial_automation  Год назад

      @@nelsonpantaleon7751it can be also 1,2, 3, ...
      if you want to start to write your values from index 0 you write it 0 if index 1 write 1 and ...