User Tools

Site Tools


virtual_uart

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
virtual_uart [2018/07/30 08:50] emozolyakvirtual_uart [2022/01/14 19:38] (current) – ↷ Links adapted because of a move operation 127.0.0.1
Line 1: Line 1:
 ====== Virtual UART function ====== ====== Virtual UART function ======
-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.+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: 
 + 
 +{{ network:virtual_application_usage.png?direct&600 |}}
  
 Suppose that we need to update the program in the controller Delta DVP-10SX. It is connected to WebHMI using RS-485. 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. 1. Open the connection settings and change Mode from Normal to Virtual UART.
-{{norm_virutlal_mode_sw.png}}+{{network:norm_virutlal_mode_sw.png}}
  
 2. Save changes 2. Save changes
Line 11: Line 13:
 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. 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.
  
-{{tcp_port_for_virtual_serial.png?600}}+{{network:tcp_port_for_virtual_serial.png?600}}
  
 3. Download and setup the driver [[http://www.perle.com/downloads/trueport.shtml | Perle TruePort]] for your OS. 3. Download and setup the driver [[http://www.perle.com/downloads/trueport.shtml | Perle TruePort]] for your OS.
Line 17: Line 19:
 4. Launch TruePort Management Tool. Press "Add..." to add new virtual serial port. 4. Launch TruePort Management Tool. Press "Add..." to add new virtual serial port.
  
-{{vitrual_uart_add.png?500}}+{{network:vitrual_uart_add.png?500}}
  
 5. Specify a convenient name for the virtual port and IP address 5. Specify a convenient name for the virtual port and IP address
  
-{{vitrual_uart_ip.png?500|}}+{{network:vitrual_uart_ip.png?500|}}
  
 6. Specify the number of virtual ports you want to create and the starting address for them. Click 'Next' 6. Specify the number of virtual ports you want to create and the starting address for them. Click 'Next'
Line 27: Line 29:
 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. 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_com.png?500}}+{{network:vitrual_uart_com.png?500}}
  
 7. Select the port that you just created and click "Properties". 7. Select the port that you just created and click "Properties".
  
-{{vitrual_uart_prop.png?500}}+{{network:vitrual_uart_prop.png?500}}
  
  
 8. Click the 'Configuration' tab and click 'Settings'. 8. Click the 'Configuration' tab and click 'Settings'.
-{{vitrual_uart_settings.png?500}}+ 
 +{{network:vitrual_uart_settings.png?500}}
  
 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'. 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'.
-{{::virt_uart_port_lite_mode.png?direct&400|}}+ 
 +{{network:virt_uart_port_lite_mode.png?500|}}
virtual_uart.1532940619.txt.gz · Last modified: 2018/07/30 08:50 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki