Replies: 3 comments
-
Could you verify first with https://github.com/aldas/modbus-tcp-client/wiki/Debugging-guide that other clients work with same parameters (IP/port/unitid) another thing to check - is your PLC using ModbusTCP or ModbusRTU over tcp? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for your sugest!!!!! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to connect to a Siemens Logo with index.php in the examples folder but I receive this message:
Using: function code: 3, ip: 192.168.1.199, port: 502, address: 0, quantity: 12, endianess: 1
Packet to be sent (in hex): 3e170000000600030000000c
An exception occurred
fread error during receiveFrom
#0 C:\xampp\htdocs\2\vendor\aldas\modbus-tcp-client\src\Network\BinaryStreamConnection.php(60): ModbusTcpClient\Network\BinaryStreamConnection->receiveFrom(Array, 10, NULL)
#1 C:\xampp\htdocs\2\vendor\aldas\modbus-tcp-client\src\Network\BinaryStreamConnection.php(83): ModbusTcpClient\Network\BinaryStreamConnection->receive()
#2 C:\xampp\htdocs\2\vendor\aldas\modbus-tcp-client\examples\index.php(54): ModbusTcpClient\Network\BinaryStreamConnection->sendAndReceive(Object(ModbusTcpClient\Packet\ModbusFunction\ReadHoldingRegistersRequest))
#3 {main}
I had to change the path to autoload.php on the first line to:
require 'C:\xampp\htdocs\2\vendor\autoload.php';
But i think that this is not the problem. Could someone help me on this please?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions