User Tools

Site Tools


Virtual UART function

Sometimes there is a need to access a remote PLC or other equipment with an RS-485 or RS-232 interface which has connection with WebHMI. To solve this problem, you can use the Virtual UART function which is built into WebHMI, the application structure is figured below:

Suppose that we need to update the program in the controller Delta DVP-10SX. It is connected to WebHMI using RS-485.

1. Open the connection settings and change Mode from Normal to Virtual UART.

2. Save changes

After saving, you will see that the specified connection is disabled due to Virtual UART. This means that WebHMI will not work with it until Virtual UART mode is enabled. If this UART is used for other PLCs, they will also be disabled and WebHMI will not be able to work with them. Also in the list of connections you will see the column Virtual UART. It shows the TCP port number of this UART by which to connect.

3. Download and setup the driver Perle TruePort for your OS.

4. Launch TruePort Management Tool. Press “Add…” to add new virtual serial port.

5. Specify a convenient name for the virtual port and IP address

6. Specify the number of virtual ports you want to create and the starting address for them. Click 'Next'

WebHMI allows you to create multiple virtual ports. To connect additional UART, you must use an external USB hub and USB-RS485 or USB-RS232 converters.

7. Select the port that you just created and click “Properties”.

8. Click the 'Configuration' tab and click 'Settings'.

9. In the port settings window, select the desired port in the list on the left. On the right, select 'Initiate connection to device server' and specify the port that you saw in step 2. In our case, this is 8001. Click 'OK', then 'Close'.

virtual_uart.txt · Last modified: 2018/11/26 12:18 by emozolyak