Настройка виртуального UART/en — различия между версиями

Материал из WebHMI Wiki
Перейти к: навигация, поиск
(Новая страница: «<p>6. Specify the number of virtual ports you want to create and the starting address for them. Click 'Next'</p> <p>WebHMI allows you to create multiple virtual p…»)
(Новая страница: «<p>7. Select the port that you just created and click "Properties".</p> 500px»)
Строка 26: Строка 26:
 
[[Файл:Vitrual_uart_5.png|500px]]
 
[[Файл:Vitrual_uart_5.png|500px]]
  
<p>7. Выберите только что созданный порт и нажмите кнопку "Properties".</p>
+
<p>7. Select the port that you just created and click "Properties".</p>
 
[[Файл:Vitrual_uart_6.png|500px]]
 
[[Файл:Vitrual_uart_6.png|500px]]
  

Версия 09:51, 19 октября 2017

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

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 c Normal to Virtual UART.

Vitrual uart 1.png

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. </ P> <p> 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.

Vitrual uart 2.png

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

4. Launch TruePort Management Tool. Press "Add..." to add new virtual serial port.

Vitrual uart 3.png

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

Vitrual uart 4.png

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.

Vitrual uart 5.png

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

Vitrual uart 6.png

8. Откройте вкладку "Configuration" и нажмите кнопку "Settings".

Vitrual uart 7.png

9. В окне настроек портов выберите нужный порт в списке слева. Справа выберите "Initiate connection to device server" и укажите порт, который вы увидели на шаге 2. В нашем случае это 8001. Нажмите "OK", затем "Close".

Vitrual uart 8.png

Если вы все сделали правильно то теперь у вас в системе появился виртуальный COM-порт COM4 который можно использовать в любом приложении для доступа к ПЛК.

Обратите внимание что все настройки самого порта указываются в "Connections" WebHMI. Все настройки (скорость, четность, стоп биты), указанные в Windows-приложениях будут проигнорированы.