Jump to content

Recommended Posts

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

  • MVP 2014

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. 

 

image.png

Link to comment
Share on other sites

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

  • MVP 2014

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:

image.png

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...