TIA Portal #18: Move instruction (Part 1)

Поділитися
Вставка
  • Опубліковано 8 січ 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 ...