First, communication introduction
1, the sea is the PLC network communication features:
1.1CPU host with two communication ports (RS232 + RS485), can be extended to 5 communication ports, each communication port can be programmed and connected, and can be used as a master or slave. Support 1: N, N: 1, N: N networking method, support various human-machine interfaces and configuration software, and can be networked with any third-party equipment (inverter, instrument, barcode reader, etc.) with communication functions.
1.2 Communication function Powerful: HAIWELL PLC variety of hosts built-in Modbus RTU / ASCII protocol, free communication protocols, and Haiwellbus high-speed communication protocols. This means that as long as the instrumentation supports one of the three types of communication protocols, it is possible to communicate with the Sea for PLC.
1.3 Convenient communication instruction system: You can complete the complex communication function if you use the communication protocol, you can complete the complex communication function, or you have to worry about the communication port conflict, send reception control, communication interrupt processing, etc. Mixed use of various agreements to easily complete the various data exchange you need.
1.4 Sea When the PLC is used as a slave, do not write any procedures.
2, the network communication characteristics of the sea for wireless modules
2.1 Modules No Users need to configure the ZigBee parameters, simply use the DIP DIP switch (setting PANID, coordinator, or router identity) with the module (setting PANID, coordinator, or router identity) to form multiple independent communication networks. Be
2.2 Support Module After power-down, re-power the network, and configure it for a long time.
2.3 The host machine can wirelessly download the PLC, monitoring, etc. in the wireless networking mode.
2.4 On the basis of the retransmission mechanism of the ZigBee protocol itself, the response retransmission mechanism is added on the application layer. If the main station does not receive the reception response within a period of time, the data is transmitted again, and the stability of communication is further improved.
Second, hardware network
1, network diagram
2, hardware introduction
2.1 Introduction to the gateway
H01TCP-4 is a powerful hardware protocol gateway that converts various protocols of the device to standard Modbus RTU or Modbus TCP protocols. It is convenient for multiple protocol equipment for network unified monitoring. Used for on-site Ethernet network networking, convenient configuration, touch screen, etc., etc., for network monitoring.
H01TCP-4 has two network ports, network port 1 default IP address 172.24.13.88 (fixed); Net port 2 default IP address 192.168.1.88. With 4 straps of Isolated RS485 communication ports, support a variety of communication protocols, which makes it easy for users to build communication networks.
The gateway interface describes the following:
2.2 H01ZB module introduction
H01ZB is an extension module for supporting wireless communication between PLC hosts, which is simple to configure.
The top five bits 1 to 5 of the module's dial switch are used to set the network ID, so 31 networks can be formed. This example uses all the H01ZB modules of all the networks to use the router, and the network ID setting is set to be, this example is set to 1, so you only need to set the No. 1 DIT switch in 1-5 digits. The rest is set to OFF.
2.3 PC2ZB module introduction
PC2ZB is an extension module for wireless communication for PC. By this module, HaiwellHappy and other host machine software and the extended manner such as an extended H01ZB can be operated in a wireless manner. The module is convenient, no user configures the ZigBee parameter, and multiple independent communication networks can be formed through the DIP DIP switch comes with the module (setting PANID, coordinator or router identity). The PC2ZB PANID is set to match the H01ZB, and the H01ZB PANID is 1, so that this example PC2ZB is also set to 1.
The PC2ZB supply voltage is 5VDC, and the USB port supplied with the module is generally directly connected to the upper machine connection through the USB / RS232 / RS485. This case gateway has four RS485 communication ports, so the PC2ZB communicates with the RS485 and the gateway to connect the pins 6, 8 of the serial port to the A1, B1 of the gateway, respectively.
In this case, the PC2ZB module is used as a coordinator, and the network ID is set to the same No. 1 ID as the H01ZB module, so it only needs to be dially ON, and the rest is OFF.
Third, hardware physical connection map
1, the sea is the hardware connection map of PLC and H01ZB module
2, the gateway and the hardware connection map of the PC2ZB module
Fourth, H01TCP parameter settings (computer-side IP settings)
There are two network ports of the gateway, and the network port 1 default IP address 172.24.13.88 (fixed) .1.88. When uploading and downloading the program, the computer's IP parameters need to be set to and the gateway in the same network segment, below is the specific steps:
4.1, online neighbors right click attribute
4.2, local connection, right hit attribute
4.3, double-click TCP / IP, set the IP address of the host into the IP address of the gateway in the same network segment (the gateway's network port 2 default IP address is 192.168.1.88), click OK
V. H01TCP software configuration
The parameter setting of the gateway, only the main communication parameters are introduced, and the rest can refer to the gateway's manual, the manual can go to the official website of the sea -. 1882. Download Center -. 1882.haiwell (Sea) The intelligent gateway manual is downloaded.
5.1 Double-click icon
5.2 Newly built a driver, using the N-series host, so the driver selection Haiwell HN PLC, named the test, click OK
5.3 Right-click New Channel, select the serial port (that is, the COM port, COM1, COM2, COM3, COM4) above the gateway, select the COM1; because the parameters of the H01ZB and PC2ZB modules are 38400, N, 8, 2, which is also selected. Being the same parameters, click OK
This is more important to this 38400 baud rate, that is, the baud rate is set to consistent with the PC2ZB default 38400 N 8 2. More complete detailed gateway H01TCP-4 software operations, you can view in H01TCP-4, and details are not described here. , Reading the full text, the technology area
Application of Hinet Intelligent Gateway in Industrial Equipment Automation Detection and Control Equipment
Sea as PLC network communication, gateway H01TCP-4 network design with wireless zigbee
China Unicom: 4G business ARPU will step into the smooth period after falling to 40 yuan, and lay out in advance 5G
China Unicom revenue and profits after mixing have achieved good results, but they still have no realization.
Ethernet communication design between S7-300 through the CP343-1 module
Our other product: