I began to study the Modbus protocol. I try to use it for connection, but I get a connection time error. Tell me where I could make a mistake. Thank you.
An error appears when I try to read: java.net.SocketTimeoutException: Read timed out.
Maybe I'm not correctly addressing the data address on the device. For example, there is: address and HEX 600, data type is WORD array, access to it for reading and size is 16 bytes.
In the code, I use the function and specify the address and size, after execution, an error occurs: Read timed out. Maybe someone can explain to me where I have a mistake.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2018-06-01
Hi, This is Satish, Wanted to check if latest ModbusClient.java file is the one which is using jssc.jar for serial port communication or is it rtrx.jar ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I began to study the Modbus protocol. I try to use it for connection, but I get a connection time error. Tell me where I could make a mistake. Thank you.
An error appears when I try to read: java.net.SocketTimeoutException: Read timed out.
Maybe I'm not correctly addressing the data address on the device. For example, there is: address and HEX 600, data type is WORD array, access to it for reading and size is 16 bytes.
In the code, I use the function and specify the address and size, after execution, an error occurs: Read timed out. Maybe someone can explain to me where I have a mistake.
You are trying to connect to a server listening to Port 4001. As that really intended? Usually a Modbus Server opens port 502.
Last edit: Aleksey Malashenkov 2018-04-06
Hi, This is Satish, Wanted to check if latest ModbusClient.java file is the one which is using jssc.jar for serial port communication or is it rtrx.jar ?
Hi Satih, it is using RXTX.