Dmitiry Posted October 13, 2016 Report Share Posted October 13, 2016 I'm using two PLC - V1040 and V570. This PLC is connected between (by socket 0 - UDP, port 20000). It's work normally by modbusIP, but if I connecting to the V1040 by remoteAccess, connection between PLC is breaking. For connection from PC to PLC I using Socket 1 - TCP, port 20256. Is it normal? P.s. Please sorry for my English. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted October 13, 2016 MVP 2022 Report Share Posted October 13, 2016 No, it is not normal for Socket 1 not to work on 20256. By default, this socket is initialized as a slave and you don't have to do anything. Did you happen to put a Socket Init in your program for Socket 1? If not, please elaborate on "breaking". Joe T. Quote Link to comment Share on other sites More sharing options...
Dmitiry Posted October 17, 2016 Author Report Share Posted October 17, 2016 I am initialized both sockets. I need use it together. Socket 1 is TCP - port 20256 - Master. But if I connect to the TCP - Socket 0 is not work, while I connected to Socket 1. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted October 18, 2016 MVP 2022 Report Share Posted October 18, 2016 Post your code. Joe T. Quote Link to comment Share on other sites More sharing options...
Dmitiry Posted November 2, 2016 Author Report Share Posted November 2, 2016 Sorry for long answer. Here is the code of initialization and connection between controllers. 570.vlp 1040.vlp Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted November 2, 2016 MVP 2022 Report Share Posted November 2, 2016 Take the Socket Init blocks out of both programs. I don't think you need them. Joe T. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.