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.
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 ?
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.
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
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.
Thank you very much, i was able to connect the Modbus Server with Node Red and other Modbus Clients
good job.
thanks.
Thanks for a great training videos
Thank you very much sir.
Is this using the rosmann EasyModbus TCP plugin?
Yes you are right
@@hadiscada hmm good to know gonna look through this. Couldn't figure out how to get my slave id included.
@@yvestheunissen you need to modify the library if need more slaves
good day! Is there a simple for Modbus RTU slave?
hello,
sorry, there is no sample project yet for the Modbus RTU slave.
thanks and regards.
you can show example Ethernet IP? Visual is scanner
sorry i dont understand your question
@@hadiscada you know Ethernet IP protocol?
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?
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.
@@hadiscada I am looking to trigger a coil in the PLC program from the C# program
Do you think your example would help out?
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
My app working sir ,but How to read string data from plc siemmen s7 1200 sir ?
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();
}
}
@@hadiscada thank you sir this help me read string from qrcode reader 🥰🥰🥰
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?
yes, but you need to modify some code of the library. just try it.
thanks.
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 ?
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.
when i click the start button my form freeze any tip?
you can do some debugging, like put a breakpoint in Start button clicked event, and try to find out what is the problem
Thanks
Kalo mau nge baca output coil PLC caranya gmna ya?
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
Modbus RTU ade tak tuan?
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.
Kindly update the download link.for tcp/ip
sorry, what link did you mean?
@@hadiscada we want download link.for TCP/ip library
it is work,thanks
You're welcome!
thanks
You're welcome!