Thanks a lot for your time, Joe. I am only using one device as a slave, and at the end of the project, the goal is to not even need a switch in this panel. I only ever look to read values from the remote IO unit that I'm using.
I hadn't yet encountered the connect/close FB in any of the documentation I had been looking over, thanks for including that with clear instructions. I'm a bit of a millennial and spoiled by the niceties of using autonomous configuration for things like this :D.
I did some experimentation with the example files, and found that it wasn't quite what I needed, but wasn't sure why. Thanks for clarifying the difference in parameters between those models.
I don't have access to this PLC currently, but I will this afternoon. I'm really jazzed to try this program out and see how it does. After working at this for a few days, I really appreciate the rapid response to my question and you taking the time to modify this file to show me what I was doing wrong.
Could I ask you a couple of more questions just for curiosity's sake? This line in the comments says "Below, both Ethernet card initialization and MODBUS Configuration are done as Power-up tasks.
Note that Socket 2 must be initialized, via the Socket Init FB, to function as a TCP Master. Network ID number MUST be 255!"
I noticed that it is set to socket 3 in the demo file, and also set to client, along with the MODBUS IP CONFIG function block socket is set to 3. I had seen in some prior documentation that some were using different socket numbers there in the initialization rung. I was highly confused about how that could ever possibly work? Is that perhaps because they were using the USB port as MODBUS RTU coms potentially?
According to this datasheet, am I using the correct MODBUS address to access the holding register that I can see in modscan? Turck TBEN-S2-4IOL
I'm a bit confused as to how the hex conversion in Visilogic works, if I enter a 3 into the Start of vector box, and set to hex, it doesn't appear to be giving me the actual value for 3(0x0003.) Although I don't suspect this matters whether I enter it there as hex or decimal?
Thanks again for your time, Joe. I appreciate your information and help.