Modbus485 to Profinet gateway connects NB+30S motor intelligent protector
[Copy link]
The main object of control in this case is the display and alarm of various parameters of the ZNB+30S motor intelligent protector. The main PLC uses Siemens CPU, and the Modbus485 to Profinet gateway module monitors data and controls field equipment. The equipment uses ZNB-30S motor intelligent protector, and the gateway that connects the motor protector to the Siemens PLC uses the Modbus485 to Profinet gateway. The following content is the configuration process of the Modbus485 to Profinet gateway.
1. First, copy the GSD file of the Modbus485 to Profinet gateway to any location, create a new project "Gateway Test" in Botu and enter Devices and Networks, select Manage General Station Description File and install the GSD file;
2. Select Modbus485 to Profinet gateway;
3. Configure the Modbus485 to Profinet gateway into the network;
4. Set the device name and IP address of the Modbus485 to Profinet gateway in the Profinet network;
5. Confirm the total amount of data used by the protector parameters, add the corresponding data length in the configuration, and configure 8 registers (16 bytes of input and output);
6. After the configuration is completed, download it to the PLC. The communication application format of the slave station is shown in the figure below;
7. Query data frame, read data (function code 03). This function allows users to obtain recorded data and equipment collection and system parameters. The following table shows 5 collected data read from machine No. 1. The addresses in the device are 0100H-0104H respectively;
8. From the above case, we can see that the slave power address is 1, the power code is 03, and the number of registers read is 5. Then we can start the configuration of Modbus485 to Profinet gateway. First, open the software and create a new project as shown in the figure;
9. The IP address and device name of the Modbus485 to Profinet gateway must be consistent with those in the configuration software;
10. Set the parameters of Modbus485 to be consistent with the slave station. In this example, the baud rate is 9600, 8 data bits, 1 stop bit and no parity (Note: if the parity bit is not no parity, then the data bit should be 9, and the output command polling mode can be selected as single send, continuous send, pulse send, etc. according to the needs);
11. Select Insert Node in ModbusRTU;
12. Fill in the slave address 1;
13. Insert the function code at Node;
14. You can check whether the selection is correct at the function code on the right;
15. The starting address of the example in the manual is 100H, which needs to be converted into a decimal address of 256, and the data of the 5 addresses read continuously is filled in;
16. The memory mapping start address corresponds to the IQ address in the diagram. In this example, the I address is 68-83. If the address is 0, the data of register address 256 will be mapped to IW68, and the subsequent data will be arranged in sequence accordingly. It should be noted that after configuring the device name and IP and downloading it to the Modbus485 to Profinet gateway, you need to restart the power supply for the configuration to take effect.
|