CODESYS: Packing and unpacking Bytes to DWORD in CFC

Поділитися
Вставка
  • Опубліковано 13 вер 2024

КОМЕНТАРІ • 20

  • @andrewott33
    @andrewott33 Рік тому +2

    Thanks for creating this video. It was helpful!

    • @TohidAlizadeh
      @TohidAlizadeh  Рік тому

      Thanks for your comment! I am happy that you found it helpful 👍

  • @asv5769
    @asv5769 Місяць тому

    Great content! Perhaps you already explained that before, but I wonder what is the real difference between Login with online change and Login with download. I saw that you prefer download option

  • @tareklaouini6665
    @tareklaouini6665 8 місяців тому +2

    Very useful video,
    Thank you Tohid

    • @TohidAlizadeh
      @TohidAlizadeh  8 місяців тому

      Thanks for your comment 👍 I am glad you found it useful.

  • @edharlow1
    @edharlow1 Рік тому +2

    Thanks for posting this. This looks like it could be a useful way to bring in RS5000 EthernetIP data (which is usually transferred in DWORD format) into a Codesys machine and re-assemble it into INT or REAL.

    • @TohidAlizadeh
      @TohidAlizadeh  Рік тому +1

      Thanks for your comment. I am also planning to use the packing for another purpose in my next video tutorial.

  • @mdniyytocag741
    @mdniyytocag741 7 місяців тому +2

    Nice tutorial. What would be an example of using this technique?

    • @TohidAlizadeh
      @TohidAlizadeh  7 місяців тому

      One example is color management, for which I have a tutorial. Make sure to check it out 🙂

  • @bamirshijaku6604
    @bamirshijaku6604 3 місяці тому

    Hi Mr Tohid. Thanks so much for the very helpful video. I was wondering if you could put a tutorial on how to convert the analogue value stored in an Modbus Output Word to a real value which we can read and display in HMI. Or how to convert a dword into floating Value. Thanks in advance

  • @endprg6477
    @endprg6477 Рік тому +4

    А Вы можете сделать видео по работе с MQTT?

    • @TohidAlizadeh
      @TohidAlizadeh  Рік тому

      I will give it a try, when I find some free time!

  • @hamituysal491
    @hamituysal491 Рік тому +1

    Hello Mr. Tohid. Can you share an application video that contains MC_TrackKonveyorBelt without using an industrial camera?

  • @marcev4126
    @marcev4126 Рік тому +2

    Hello Tohid, I have a question about building a PLC application and Codesys. What is the difference of "Device" and "POU" tabs? I see that I can add DUTs, POUs, text lists and visualizations under both of those tabs. In every video I see people building under "Device" tab but I don't understand the difference of those two tabs and when should you use one or the other?

    • @TohidAlizadeh
      @TohidAlizadeh  Рік тому

      Hello there,
      The device refers to a PLC in general that you are going to program. In a project you can have multiple of them. For each device, you can have one or more applications, within which you will have the POUs and other elements to implement your logic.
      I hope it is clear enough.

  • @umutkose6056
    @umutkose6056 8 місяців тому +2

    How can download this CAA memory library. Can you help me pls?

    • @TohidAlizadeh
      @TohidAlizadeh  7 місяців тому +1

      In your project tree, go to the "library manager", then choose "Add library" and then look for it there. After that, just add it to the project and you will have access to all the functions. I hope this helps!

  • @klaashendrikkingma7861
    @klaashendrikkingma7861 Рік тому +2

    Hi,
    I got a question I had an assignment to make in codesys but I'm completly stuck, can you help me / can you show me how you would do an assignment like this?
    The assignment is
    Switch1 - red and green light turns on
    Switch 2 - red and yellow light turns on
    Switch 3 - Yellow and green light turns on
    Switch 1 and 3 - all lights turns on
    Switch 4 - every light turns off
    Hope you can help me :)

    • @TohidAlizadeh
      @TohidAlizadeh  Рік тому

      I would do it in this way:
      For each light, determine the case in which the light should be turned on and make the logic for that light. For example, Red light is on if SW1 or SW2 or (SW1 and SW3).
      I hope this helps. Let me know if you manage to implement it.

  • @1mandragor1
    @1mandragor1 Рік тому +1

    Dear Tohid.
    Another good movie... Thank You!!!
    I have some question: How can I change variable :STRING, to use it with for eg. CASE or IF instruction?
    var1:string(50):='text'; ///// here I need keep a diference text. START,STOP, MOVE, ETC.
    CASE var1 of
    'first_text': *********** ////code here
    'second_text': ********** //// code here
    end_case;