Skip to main content

Ethernet pass-through – komunikacja PC ze sterownikiem przez HMI

Streszczenie: Funkcja Ethernet pass-through: komputer komunikuje się ze sterownikiem PLC podłączonym szeregowo do HMI przez wirtualny port COM i sieć Ethernet, bez przepinania kabli. Instalacja sterownika wirtualnego portu w Project Manager i przykład z PLC Fatek.
EN: Ethernet pass-through: the PC communicates with a PLC connected to the HMI through a virtual COM port over Ethernet; setup example with a Fatek PLC.

Dotyczy: panele HMI Weintek MT8000 i nowsze; Project Manager / Utility Manager
Źródło: Weintek FAQ (materiały producenta), oryginalny tytuł: „Ethernet Pass-Through Communication”

MT8000 provides Ethernet pass-through communication which allows PC to link to the PLC through the HMI. In this situation, the role of HMI is similar to a converter. 

image.png

First, a virtual serial port must be created on PC. The application program on PC can communicate with PLC through this virtual serial port. 

Instructions are as follows:
1. Open Project Manager and click the [ Pass-through] button ; 

image.png

2. Check the [Ethernet] radio box, and click [ Install] button to install the virtual serial port driver ; 

image.png

3. Installing driver ... 

image.png

4. Click [ Continue Anyway]

image.png

5. Virtural seriel port installation completed. A new virtual COM port number is found ; 

image.png

6. Check out the [ Computer Management] to see if the virtual COM port is
successfully installed. 

image.png

7. Select the [ Virtual Serial Port] and click right key . Select [Properties ] to change COM port number ; 

image.png

8. Take communication between Fatek PLC and MT8000 for example, if the MT8000 HMI IP address is 192.168.1.200, the PLC parameter settings are as follows : 

image.png

9. In the [ Pass-through] window, setup the HMI IP address : 192.168.1.200 ; Set the COM port number to COM1, which is the communication port number between MT8000 and the PLC ; The COM port type is RS232, which is the communication port type between MT8000 and the PLC ; These settings are according to the window shown above ; Click [ Apply] button. 

image.png

10. Open the Fatek PLC software : WinProladder ; Select [On-Line] under PLC menu ; 

image.png

11. Set the COM port ; 

image.png

12. Set the COM port number to COM3, which is the Virtual Serial Port number that you get in step 5 ; 

image.png

13. Connection succeeded ; 

image.png

14. PC-HMI-PLC connection example ; 

image.png

 

Słowa kluczowe

Ethernet pass-through, przelotowa komunikacja, wirtualny port COM, virtual serial port, programowanie PLC przez HMI, Project Manager, Fatek, port 2000, MT8000, Ethernet Pass-Through Communication