matb66 Posted May 4, 2020 Report Share Posted May 4, 2020 I have a project with V700s, V430s and V350s. Many of each. There is a cluster of up to 5 HMIs connected to a router in each of a number of control panels. Each HMI has a consecutive IP address and a consecutive port number within its own control panel. The router has port forwarding set up so that to communicate with any of the HMIs behind the router you address it by router IP and port number. This works for V700s, tested Ok. The V700s are set to UnCmDrv1.dll protocol on each port as a slave by default. With the V430s and V350s there will be max 4 HMIs because of the number of sockets. What I'm not sure about with these is that the documentation states alternate functions for the sockets eg. UDP for inter HMI comms on Socket 0 - Port 20000, Modbus on Socket 2 - Port 502. I need all 4 sockets on the V430 to behave like the V700 does... Standard TCP Comms via UnCmDrv1.dll for Remote Access etc. And what ports can or should I set them to? Will they work if they are set to ports 20256 to 20259 consecutively? Link to comment Share on other sites More sharing options...
MVP 2014 Simon Posted May 4, 2020 MVP 2014 Report Share Posted May 4, 2020 Hi Mat, With the V430 and V350, the port config details in the docs are the default config. If you initialise the ethernet card without overriding these, the 4 ports are initialised to these settings. You can override those defaults using the SOCKET_INIT block in the ladder, one SOCKET_INIT block per socket. This will allow you to set the consecutive port numbers as per your request. Link to comment Share on other sites More sharing options...
matb66 Posted May 4, 2020 Author Report Share Posted May 4, 2020 Cheers, Thanks for the reply. And will each socket allow comms via the Unitronics protocol UnCmDrv1.dll? Or is that protocol tied to a specific port number? To clarify the situation only one HMI is set to utilise port 20256, the next will be using port 20257 etc. Then the router port forwards so that any packet received for port 20256 goes to the IP address of the 1st HMI, then a packet received for port 20257 goes to the 2nd HMI and so on. Regards, Link to comment Share on other sites More sharing options...
MVP 2014 Simon Posted May 4, 2020 MVP 2014 Report Share Posted May 4, 2020 Hi Mat, UnCmDrv1.dll uses the PCOM protocol, same as Visilogic and other Vision apps. So yes you can select the remote TCP port number separately in each connection request, sam as you can do with the standard Unitronics applications. The download package for UnCmDrv1.dll includes some examples, the only one I can open is the Excel VBA example, which is set for serial port. However using the object browser, the port setting object is as follows: Link to comment Share on other sites More sharing options...
matb66 Posted May 4, 2020 Author Report Share Posted May 4, 2020 Ok, thanks. Will give it a go. Link to comment Share on other sites More sharing options...
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