ok, but when i send the request i pass the Slave id parameter, what about it??
Latest posts made by Jkhar
-
RE: Direct connection to plc!!
-
RE: Direct connection to plc!!
Hi! again. i have a question: how do i point the TCPMaster to the ip address of the PLC? because with the tcpslave class i asign a SlaveId and with this i was making the request. But now is directly to the PLC....
-
RE: Direct connection to plc!!
Thanks, just another cuestion: the Slave object that i create for test works like a simulator of a plc??
-
Direct connection to plc!!
Hi!
I've alredy implement the TCP master and slave clases but now i want to conect to a PLC an get data from it. So this is not my area, i'm just a saftware developer, but i was wondering: Do I just need to implement a Master tcp object and point it to the plc's ip address and do the request??
Any comments acepted. :?: :?: :?: :?: :?: :?: -
RE: Direct connection to plc!!
Hi!
I've alredy implement the TCP master and slave clases but now i want to conect to a PLC an get data from it. So this is not my area, i'm just a saftware developer, but i was wondering: Do I just need to implement a Master tcp object and point it to the plc's ip address and do the request??
Any comments acepted. :?: :?: :?: :?: :?: :?: -
RE: A little help!!
Thanks, i will download the new version and check if it works fine. thanks again. :-)
-
RE: A little help!!
Or where can i download another version or the last update of seroUtils library??
-
RE: A little help!!
I think that maybe in the TCPSlave class there is something like this
transport = new TestableTransport(socket.getInputStream(), socket.getOutputStream());
But in the TestableTransport class in the library seroUtils the class TestableTransport needs 3 parameters and the one that is missing is the thread Name or what do you think that it might be.Sorry if i bother you to much but i don't know waht to do
-
RE: A little help!!
Sorry it is not teh same in both in salve is:
Exception in thread "main" java.lang.NoSuchMethodError: com.serotonin.io.messaging.TestableTransport.<init>(Ljava/io/InputStream;Ljava/io/OutputStream;)V
at com.serotonin.modbus4j.ip.tcp.TcpSlave$TcpConnectionHandler.<init>(TcpSlave.java:82)
at com.serotonin.modbus4j.ip.tcp.TcpSlave.start(TcpSlave.java:46)
at servermodbus.Main.main(Main.java:34)
Java Result: 1And in Master is:
Exception in thread "main" java.lang.NoSuchMethodError: com.serotonin.io.messaging.StreamTransport.<init>(Ljava/io/InputStream;Ljava/io/OutputStream;)V
at com.serotonin.modbus4j.ip.tcp.TcpMaster.openConnection(TcpMaster.java:113)
at com.serotonin.modbus4j.ip.tcp.TcpMaster.init(TcpMaster.java:44)
at otra.Main.main(Main.java:69)
Java Result: 1Thanks for your help. :!: :!: :!: :)