Codesys Modbus TCP Slave Implementation

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

КОМЕНТАРІ • 7

  • @duvanmoreno8121
    @duvanmoreno8121 10 місяців тому

    How can i do if I want to expose instead of words, real, dint, whatever.. should I pass all the data to word first? or there is some easier way to do it? also how can a create many different packages? I mean if a want to expose 10 reals from register 0 to 20 and then 5 int from register 20000 to 20005 and so on.. I say this because I was using Ecockpit and it is so easy, you can create expose the register and you put the register addres from it starts and then the type of data, it doesnt matter if it now just word data.

    • @brightersidehacks
      @brightersidehacks  10 місяців тому

      1. You need to convert all data to word (Integer types can convert automatically, so you may skip those) just use built in functions like _TO_WORD
      2. Be careful when working with reals, since these are floating point formats, you may want to use multipliers. Word type does not understand floating point format
      3. You can set the number of registers you want to expose, from the Slave device settings. See video at 5:26. However, i don't think you can expose just potions of the register buffer

    • @JuanPabloGalvanCabrera
      @JuanPabloGalvanCabrera 12 днів тому

      @@brightersidehacks I CANT WRITE FLOAT TYPES TO WORD, CONFUSE

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

    what master client are you using?
    I wish to use it too lol

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

      Unfortunately i cant help you with this my own because of licencing issues, but you can download it from the internet. Just search Modbus Master Simulator

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

    Hallo sir, how can i send u an email?