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

Материал из WebHMI Wiki
Перейти к: навигация, поиск
(Новая страница: «<p>4. Launch TruePort Management Tool. Press "Add..." to add new virtual serial port.</p> 500px»)
 
(не показано 6 промежуточных версий этого же участника)
Строка 1: Строка 1:
 +
<languages/>
 
<p> 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.
 
<p> 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.
 
</p>
 
</p>
Строка 19: Строка 20:
 
[[Файл:Vitrual_uart_3.png|500px]]
 
[[Файл:Vitrual_uart_3.png|500px]]
  
<p>5. Укажите удобное название для виртуального порта и IP-адрес WebHMI. Нажмите "Next".</p>
+
<p>5. Specify a convenient name for the virtual port and IP address </p>
 
[[Файл:Vitrual_uart_4.png|500px]]
 
[[Файл:Vitrual_uart_4.png|500px]]
  
<p>6. Укажите какое количество виртуальных портов вы хотите создать и стартовый адрес для них. Нажмите "Next".</p>
+
<p>6. Specify the number of virtual ports you want to create and the starting address for them. Click 'Next'</p>
<p>WebHMI позволяет создать множество виртуальных портов. Для подключения дополнительных UART необходимо использовать внешний USB-хаб и USB-RS485 или USB-RS232 преобразователи.</p>
+
<p>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.</p>
 
[[Файл: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]]
  
<p>8. Откройте вкладку "Configuration" и нажмите кнопку "Settings".</p>
+
<p>8. Click the 'Configuration' tab and click 'Settings'.</p>
 +
 
 
[[Файл:Vitrual_uart_7.png|500px]]
 
[[Файл:Vitrual_uart_7.png|500px]]
  
<p>9. В окне настроек портов выберите нужный порт в списке слева. Справа выберите "Initiate connection to device server" и укажите порт, который вы увидели на шаге 2. В нашем случае это 8001. Нажмите "OK", затем "Close".</p>
+
<p>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'.
 +
</p>
 
[[Файл:Vitrual_uart_8.png|500px]]
 
[[Файл:Vitrual_uart_8.png|500px]]
  
<p>Если вы все сделали правильно то теперь у вас в системе появился виртуальный COM-порт COM4 который можно использовать в любом приложении для доступа к ПЛК.</p>
+
<p>If you did everything right, now you have a virtual COM-COM4 port in your system that can be used in any application to access the PLC.</p>
<p>Обратите внимание что все настройки самого порта указываются в "Connections" WebHMI. Все настройки (скорость, четность, стоп биты), указанные в Windows-приложениях будут проигнорированы.</p>
+
<p>Note that all port settings are specified in the 'Connections' of WebHMI. All settings (speed, parity, stop bits) specified in Windows applications will be ignored.</p>

Текущая версия на 09:59, 19 октября 2017

Другие языки:
English • ‎русский

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. Click the 'Configuration' tab and click 'Settings'.

Vitrual uart 7.png

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'.

Vitrual uart 8.png

If you did everything right, now you have a virtual COM-COM4 port in your system that can be used in any application to access the PLC.

Note that all port settings are specified in the 'Connections' of WebHMI. All settings (speed, parity, stop bits) specified in Windows applications will be ignored.