RS232 to PROFINET protocol gateway module is used in the field of industrial control and industrial automation, which is used to realize flexible connection between devices, realize intelligent control, and realize precise control between devices.
RS232: A communication wiring specification.
Profinet: An Industrial Ethernet network from Siemens.
This product enables data communication between the Profinet network and the RS232 485, can connect three RS-232 485 networks to the Profinet network, and supports different communication baud rates and other settings. i.e. convert an RS232 485 device into a PROFINET device.
Wide application: This product is widely used in: RS-232 485 interface inverter, intelligent high and low voltage electrical appliances, power measurement devices, intelligent field measurement equipment, instruments, PLC, DCS, FCS, etc.
Simple configuration: Users do not need to know the details of RS232 485 and PROFINET, they only need to refer to the manual and configure the gateway according to the requirements, without the need for complex programming, and the connection function can be implemented in a short time.
The RS232-PROFINET product uses the GSD file "GSDML-V2."33-bx-602-pn", as shown in the figure:
Select the gsd path and select the installation file.
Device configuration. Double-click the device and network, and then drag and drop Add Device module in the network view as shown in the following figure.
Add a module device.
After adding the device module, it is shown in the following figure:
To create a PN network, double-click Device to enter the submodule Add.
Change the IP address and device name as if flashed on the left.
After the configuration is complete, configure the gateway to the PLC and configure the gateway free port.
Select PNIO for fieldbus type to set the serial port parameters.
Set the gateway IP address and name, and set the serial port mode selection.
Set the serial port mode selection.
Set the serial port parameters.
Right-click to add a node in the subnet, the address does not take effect in serial port mode, and the default can be done.
Right-click on the node to add the next step, and select this option according to the previous mode.
Master-slave mode: You can add swap commands in master-slave mode.
The exchange command is divided into two parts: request and response, and the gateway will first send a request to the slave device after powering on, and the slave will continue to send the message after receiving and replying to it.
If the slave device does not answer, it will set the parameters according to the above figure to perform the next action.
There are 4 sending modes in this mode.
1 cycle send.
2. Data change sending.
3 Sent only once after startup.
4. Trigger data to change the format of sending and adding data.
1 Add data, add data with a fixed byte length that exceeds the byte length will not be displayed.
2 Add variable data, add a length range, the data in this length range will be sent, and more than that, it will be discarded
3 Add a byte constant, add a byte of fixed data.
4. Add a word constant, add a word (two bytes) of fixed data
5 Add a two-word constant, add two words (four bytes) of fixed data
6 Add a checksum response.
You can set the trigger byte and upload the data if the trigger byte data changes in the trigger mode
Producer-consumer model.
In this mode, sending and receiving are separated and do not affect each other.
node becomes Add Producer and Consumer (Consumption = Receiving) (Production = Sending).
The producer's sending mode is the same as the previous master-slave pattern.