danries Posted October 23, 2013 Report Posted October 23, 2013 We have a V350 and a V1040. Both have basically the same ladder logic for connecting to a server. The 350 connects as it should. The 1040 appears to connect for about a half a second even though the ladder logic should keep it open on a 5 sec timer. The server is getting data from the 350, but not the 1040. The server program looks good for both. The only difference I can see is the model of PLC. We can go online, download, etc., over ethernet, so thats good. Any suggestions anyone? Thanks, DanWinder 4.vlp
linxchas Posted October 23, 2013 Report Posted October 23, 2013 Can you provide more info: 1. a) What protocol server is using to get the data (PCOM, Modbus or other)? What the values of SI105, SI143 and SI147 at the time of connection (SB149=1)? 2. Install on the server Wireshark, set filter as tcp.port ==502 and capture the trafic . Attach the snapshot.
danries Posted October 23, 2013 Author Report Posted October 23, 2013 We are using PCOM. SI 102 is 6, 143 is 0, 147 is 14 when not connected, is briefly 6 when connects, 149 is 5000. TestComm.txt
linxchas Posted October 23, 2013 Report Posted October 23, 2013 Danries, On your snapshot i can see only packets from the server, there is no replies from PLC, so it hard to define who terminated the connection, however from PLC side the only reason may be is a small value of SI105 (Socket 2 TCP/IP Keep Alive (units of 100 msec). Try to set it to SI105=50 (5sec). SI143=0 tells that socket configured correctly and SI149=6 - connection was established. The problem may be on the server side. Borth PLC's trying to connect to the same port (502), but again you can see it only on wireshark snapshot of bi-directional traffic .
linxchas Posted October 23, 2013 Report Posted October 23, 2013 Just one more tip: Check that PLC Unit ID (SI 8) is the same as in your PCOM request
danries Posted October 24, 2013 Author Report Posted October 24, 2013 Thanks linxchas, We set SI 105 at 50, and are only trying to connect 1 at a time. Same results. SI 8 matches the PCOM. I have tried to attach a snapshot from Wireshark, bur I get an error, "You are not permitted to upload this kind of file". thanks
danries Posted October 24, 2013 Author Report Posted October 24, 2013 linxchas, may we send the snapshot to your email address? thanks, Dan
linxchas Posted October 24, 2013 Report Posted October 24, 2013 2760005@gmail.com, you can also call me at 843-2760005 In you case there is a different thinks may be wrong, but mostly they are simple.
danries Posted October 28, 2013 Author Report Posted October 28, 2013 A Big "Thank You" to linxchas!!! Thank you for taking the time to look at what we are doing and for the tips to correct it. We got the latest version of the .Net driver 1.0.0.50 and installed it and it corrected our connection problem. Dan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now