Thanks for the replys....
I need to send via TCP IP a temperature reading 4 digits eg (2545) Mi 50 and read back to Mi 571.
This information needs to be send to and received returned back from a Raspberry Pi4.
I need to know the logic also in the Raspberry Pi.
Any help would be most appreciated.
I attached my program..
SNOWLEES main 18012022.vlp
It's also much more helpful if you attach your program to your post - see the "choose files..." at the bottom of the typing window. A lot of times if I can open the program I can make some commented edits and re-post the program.
Advanced Modbus will set you free. It's more complicated but gives you the control of the Vision function blocks. See this topic-
I set up all my slaves in this application in a couple of data tables. It worked quite well, as I wrote a State Machine that loops through the appropriate table until it finds a slave ID of 0. I wrote four separate functions for read coils, write coils, read registers, and write registers to keep it "simple". You can put your Slave ID, Start Address, Length, and a pointer to a an array element for a local tag in the table.
Unfortunately, the application I wrote is for a customer and I can't post it but if you take a swing at it and PM me I can work with you.