Hi all,
Does anyone have any experience with Siemens S7-300/400 PLC interaction over TCP ?
I have made a little progress in Fetching and Writing DB memory locations with PB,but i have steped into a paradox.
If i want to Fetch a value from the PLC memory i send over the ethernet via TCP a 16 byte header with the appropriate command and the PLC respondes with the result.
But when i want to write a DB memory location i have to send the appropriate command (16 bytes header + Data) twice (2 times) to get a responce and i don't know if this is normal or not since there is very little information out there from Siemens.The funny thing is that this trick works even if i send the twin commands in one go,that is the string that i send using TCP Send contains the command 2 times. (eg if the command is A5123456 i send A5123456A5123456).
Plus i would very much appreciate if anyone has the complete command over TCP spec.
Thanks
Stavros
Does anyone have any experience with Siemens S7-300/400 PLC interaction over TCP ?
I have made a little progress in Fetching and Writing DB memory locations with PB,but i have steped into a paradox.
If i want to Fetch a value from the PLC memory i send over the ethernet via TCP a 16 byte header with the appropriate command and the PLC respondes with the result.
But when i want to write a DB memory location i have to send the appropriate command (16 bytes header + Data) twice (2 times) to get a responce and i don't know if this is normal or not since there is very little information out there from Siemens.The funny thing is that this trick works even if i send the twin commands in one go,that is the string that i send using TCP Send contains the command 2 times. (eg if the command is A5123456 i send A5123456A5123456).
Plus i would very much appreciate if anyone has the complete command over TCP spec.
Thanks
Stavros
Comment