Codesys Modbus TCP Slave Implementation

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 มี.ค. 2023
  • A simple implementation of a Modbus TCP Slave in Codesys. Implementation is done on a Turck Q300 and Codesys Version 3

ความคิดเห็น • 6

  • @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

  • @duvanmoreno8121
    @duvanmoreno8121 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน

      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

  • @haythamdarawish932
    @haythamdarawish932 4 หลายเดือนก่อน

    Hallo sir, how can i send u an email?

    • @brightersidehacks
      @brightersidehacks  4 หลายเดือนก่อน

      Yes you can. brightersidehacks@gmail.com