Tutorial: Modbus TCP Server - C# Desktop App

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

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

  • @viveksubramanian7688
    @viveksubramanian7688 11 месяцев назад

    Thank you very much, i was able to connect the Modbus Server with Node Red and other Modbus Clients

    • @hadiscada
      @hadiscada  11 месяцев назад

      good job.
      thanks.

  • @georgecormier7922
    @georgecormier7922 8 месяцев назад +1

    Thanks for a great training videos

  • @MrDhananjayjadhav
    @MrDhananjayjadhav 4 месяца назад +1

    Thank you very much sir.

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

    Is this using the rosmann EasyModbus TCP plugin?

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

      Yes you are right

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

      @@hadiscada hmm good to know gonna look through this. Couldn't figure out how to get my slave id included.

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

      @@yvestheunissen you need to modify the library if need more slaves

  • @ОлегСтрюков-е3к
    @ОлегСтрюков-е3к 2 месяца назад

    good day! Is there a simple for Modbus RTU slave?

    • @hadiscada
      @hadiscada  28 дней назад

      hello,
      sorry, there is no sample project yet for the Modbus RTU slave.
      thanks and regards.

  • @SonchaiNukaeo-d7e
    @SonchaiNukaeo-d7e 6 месяцев назад

    you can show example Ethernet IP? Visual is scanner

    • @hadiscada
      @hadiscada  6 месяцев назад

      sorry i dont understand your question

    • @SonchaiNukaeo-d7e
      @SonchaiNukaeo-d7e 5 месяцев назад

      @@hadiscada you know Ethernet IP protocol?

  • @UrbanProjects-kh6st
    @UrbanProjects-kh6st Год назад

    My PLC is not receiving the set values. What are some things to check for? Do I need to set a static IP and port?

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

      The application is Modbus Server, so it a standby system, the Client is the one who always active to read/monitor the data. So I think the problem is in your PLC program.

    • @UrbanProjects-kh6st
      @UrbanProjects-kh6st Год назад

      @@hadiscada I am looking to trigger a coil in the PLC program from the C# program

    • @UrbanProjects-kh6st
      @UrbanProjects-kh6st Год назад

      Do you think your example would help out?

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

      if the PLC is a Modbus TCP server and the PC as a Modbus TCP client, i think this link will help you:
      ruclips.net/video/zsM-L-kN6Ps/видео.html

  • @vanminhtrip
    @vanminhtrip 7 месяцев назад

    My app working sir ,but How to read string data from plc siemmen s7 1200 sir ?

    • @hadiscada
      @hadiscada  7 месяцев назад

      for read data from S7 PLC you can see here :
      ruclips.net/video/K_GIVV2mI9E/видео.html
      for read String you can add this script :
      if (type == "String")
      {
      string[] ardb = tag.Split('.');
      if (ardb.Length > 1)
      {
      string sdb1 = ardb[0];
      string sdb2 = ardb[1];
      int idb1 = int.Parse(sdb1.Replace("DB", ""));
      int idb2 = int.Parse(sdb2.Replace("DBD", ""));
      object ival1 = plc.Read(S7.Net.DataType.DataBlock, idb1, idb2, VarType.Byte, 1);
      object ival2 = plc.Read(S7.Net.DataType.DataBlock, idb1, idb2+1, VarType.Byte, 1);
      int ilen = int.Parse(ival2.ToString());
      object val = plc.Read(S7.Net.DataType.DataBlock, idb1, idb2+2, VarType.String, ilen);
      if(val!=null) sret = val.ToString();
      }
      }

    • @vanminhtrip
      @vanminhtrip 7 месяцев назад +1

      @@hadiscada thank you sir this help me read string from qrcode reader 🥰🥰🥰

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

    can this be set as a base class where I can create multiple connections based off a random number of devices I need to connect to?

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

      yes, but you need to modify some code of the library. just try it.
      thanks.

  • @inmylife194
    @inmylife194 8 месяцев назад

    I try and it's working. But i don't understand why both doesn't need TCP/IP and Port information. You can explain for me, please. Thanks. And i have a hardware device (set client) connect by cable with my laptop (set sever). It's can't connect. Why? and need hardware set TCP/IP ?

    • @hadiscada
      @hadiscada  8 месяцев назад

      as a TCP server we dont need to define the IP address, but we need to define Port, but in this example project we are using default Modbus port (502) so we dont need to set the port in script, if you want to use other port then you need to set in the script.
      For your hardware client, I think you need to set the IP address in a same class of your laptop.

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

    when i click the start button my form freeze any tip?

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

      you can do some debugging, like put a breakpoint in Start button clicked event, and try to find out what is the problem
      Thanks

  • @AbdulRahman-jz3px
    @AbdulRahman-jz3px Год назад

    Kalo mau nge baca output coil PLC caranya gmna ya?

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

      kalau PLC nya sudah bisa diakses via Modbus TCP, silakan coba tutorial ini (VB net):
      ruclips.net/video/kLeXFN1vgF8/видео.html
      atau yg ini dalam bahasa C# :
      ruclips.net/video/zsM-L-kN6Ps/видео.html

  • @abrarnasir6585
    @abrarnasir6585 5 месяцев назад

    Modbus RTU ade tak tuan?

    • @hadiscada
      @hadiscada  4 месяца назад +1

      untuk Modbus RTU Slave belum ada tutorialnya pak, tapi bisa kok pakai library EasyModbus ini, saya sudah pakai di aplikasi ModbusHD saya.
      Silakan dicoba sendiri ya..
      maaf jawabannya telat.
      Terima kasih.

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

    Kindly update the download link.for tcp/ip

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

      sorry, what link did you mean?

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

      @@hadiscada we want download link.for TCP/ip library

  • @郭昱均-m7d
    @郭昱均-m7d Год назад +1

    it is work,thanks

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

    thanks