Page 3
Version Information The document has the following modifications: Date Version Modify content Author 20180301 V1.0 release version 20180801 V1.1 update content Added related descriptions used 20190520 V1.2 in Step7 20190924 V1.3 Freeport mode added Added the application of Freeport mode in TIA/STEP7 20191118 V1.4 V5.5/STEP 7-MicroWIN...
Page 4
4. ODOT-PNM02 V2.0 hardware revision, and the two serial ports could independently set working mode, but the converter function does not support IRT and MRP. 5. ODOT-PNM02 V2.1 supports 200 slots for reading and writing commands. http:// www.odotautomation.com TEL: +86-0816-2538289...
Page 7
Notice: The product marked as ODOT-PNM02, and the GSD file uses the GSD configuration of PNM02 V1.5 GSDML-V2.33-ODOT-PNM02-20191008.xml. The product marked as ODOT-PNM02 V2.0...
Page 8
1.2 The main technical parameters ◆ Installation method:35mm standard rail installation ◆ dimension:30*80*110mm ◆ Support standard ProfiNet I/O Device V2.3 ◆ Profiet data area: the max input is 1440 bytes, and the max output is 1440 bytes. ◆ It supports RT (synchronization), does not support IRT (isochronous synchronization), MRP (media redundancy protocol), and MRPD (media path planning redundancy) functions.
Page 10
1.3 Technical parameters General Parameters Module Description Modbus or private protocol to Profinet protocol converter Power supply 19.2-28.8VDC (nominal: 24VDC) Power protection Anti-reverse protection Power consumption Max.86mA@24VDC The isolation voltage between system power and PE is AC 500V The isolation voltage between I/O channel and PE is AC 500V Isolation The isolation voltage between system power and I/O channel AC 500V...
Page 11
Ethernet Parameters Number of Network 2*RJ45(Port1、Port2) Ports Protocol PROFINET Standard Protocol ProfiNet I/O Device Network parameter 10/100Mbps, Self-adaption, Full-Duplex Data Area a maximum of 1440 bytes for input and 1440 bytes for output Default IP Address 192.168.0.254 Default Devices pnmb-address Name Supported Not supported...
Page 12
2.Hardware description 2.1 Appearance The upper panel has two ProfiNet interfaces and power connection terminals. PORT1 and PORT2, the two interfaces have the same function. These two interfaces have the switch function, that is, the host computer can access the equipment connected to PORT2 through the PORT1 interface, as shown in the figure below (the computer IP is 192.168.0.92, the computer is connected to the PORT2 port, Siemens S7 -1200 connects http:// www.odotautomation.com...
Page 13
to PORT1), the upper computer software can search for devices in the same ProfiNet network. http:// www.odotautomation.com TEL: +86-0816-2538289 13 / 98...
Page 14
2.2 Indicator LED description The equipment has 6pcs of LED status indicators, the symbol definition and status description are shown in the table below. Symbol Definition Status Description ON (Red) Power supply is normal Power indicator OFF (Red) Power supply is abnormal ON (Red) Device failure Device status...
Page 15
Serial port1 1 (TX) Serial port1 1 (RX) Shield ground 2TA+ Serial port 2 (A+) Serial port2 (TX+) 2TB- Serial port 2 (B-) Serial port2 (TX-) Serial port2 (RX+) Serial port2 (RX-) Common ground (signal ground) Serial port 2 (TX) Serial port 2 (RX) Shield ground The definitions of power wiring terminals are shown as below:...
Page 16
2.4 External terminal resistance According to the actual situation on site, a 120Ω terminal resistor needs to be connected to the serial port of the gateway. The RS485 bus supports a maximum of 32 nodes without relays. The nodes are connected by a "daisy chain"...
Page 18
3. Product application The converter ODOT-PNM02 V2.1, it requires to use ODOT IO CONFIG software to configure serial port parameters and read & write commands of slave devices. 3.1 Converter working mode Each serial port of the converter has 3 working modes: Modbus master, Modbus slave, and freed mode.
Page 19
M/S/F: baud rate. It can select standard baud rate or customized baud rate. Default value: standard baud rate. M/S/F: standard baud rate. Serial port baud rate, 300-500000bps is optional. The default value is 9600bps. M/S/F: customized baud rate. 0, 300-500000bps can be set. The default value is 9600bps.
Page 20
Control Output. M: Control mode: level trigger (continuous effective) and rising edge trigger (single trigger) are optional. The default is level trigger (continuous effective). This value is valid only in module control enable mode. M: first output data after power on (command): Enable and disable are optional. This default is enabled.
Page 21
and then take corresponding adjustment methods. For detailed description, please see "Modbus Error Code Table". 3. Module control output: 8~48 channels are available. When the parameter (M: module control) of the serial port is set to enable mode, the output control read and write channels of this command is effective.
Page 22
Data length error, the data length exceeds the 0x03 illegal data value max allowed value 125(Word) or 2000(Bit), please modify the data length Check if the range of data value meets slave 0x04 data processing error requirements the length of the Increase the received character interval and 0x05 application layer does...
Page 23
S: Modbus slave S: read coil(0xxxx) supports 1~1024Bytes optional S: read hold register(4xxxx) supports 1~512words optional S: write coil(0xxxx) supports 1~1024Bytes optional S: write the discrete input(1xxxx) supports 8~1024Bytes optional S: write input register(3xxxx) supports 1~512words optional S: write hold register(4xxxx) supports 1~512words optional S: diagnosis module The slave input status of the module can monitor communication failures.
Page 24
feedback Send frame length - Send_Data_Len_Feedback uint16_t feedback Serial port status COM_Status uint16_t Received error frame Error_Counter uint16_t count Total received data frame Received_Counter uint16_t count The current length of Received_Data_Len uint16_t received frames in bytes Output control word Control_Word uint16_t Output data Sent frame bytes length...
Page 25
3. In answer mode, the Busy bit is set to 1 when the serial port sends data. 3.1 When the serial port receives the answer within the timeout period, the Busy bit is cleared and the Done bit is 1. The Received_Counter count is increased by 1. If the received frame has a parity error, the Parity_Error bit is set to 1 and the Error_Counter count is increased by 1.
Page 26
3.4 Use in the IO Config software and serial port debug menu Double-click the installation package and click one by one to install the configuration software. After the installation is complete, you can view the configuration software shortcut key on the desktop and double-click the configuration software to open the software.
Page 27
3.Select the gateway and click Configuration Parameters to view the default serial port parameters of serial port 1 and serial port 2. The default working mode on the serial port of the gateway is Modbus master, serial port parameters: 9600bps, N 8 1. http:// www.odotautomation.com TEL: +86-0816-2538289 27 / 98...
Page 28
4.Right-click PN-MBL V3.1——Module manager, in the pop-up window click on the Modbus slave in master mode and diagnostics, Modbus slaves are added based on the actual number of serial ports mounted on the gateway.Suggestion: The M:Modbus diagnostic module is added to the back of the Modbus slave station to facilitate the corresponding input and output addresses in the TIA.
Page 29
The main configuration parameters of Modbus slave are serial port and slave address. The default serial port is COM1, and the Modbus diagnostic command has serial port number options. http:// www.odotautomation.com TEL: +86-0816-2538289 29 / 98...
Page 30
Right click the Modbus slave, then click the Submodule Manage, Read or write instructions could be added based on the slave device data address, the click the OK. Right click the Modbus diagnostic, then click the Submodule Manage, the diagnostic module could be added as needed: Status input, Error code input, Polling time input, Control output, click the OK.
Page 31
After completing the configuration, right click the PN-MBL V2.1, then click the Download Params. If multiple stations are the same and the read and write commands on the serial ports are the same, it could quickly configure them by copying and pasting. After all parameters are configured, click the Address Map of PN-MBL V3.1 to view the total byte length of all inputs and outputs.
Page 32
The serial port parameters of the ODOT-PNM02 V2.1 gateway are configured, next, it could do PN communication with Siemens PLC. If the PLC is not available, set M/S/F: Serial Port debug Menu in the configuration parameter to enable, that is, the IO Config software could be used for online debugging.
Page 33
start address according to the needs of use. After completing the configuration, right click the PN-MBL V2.1, then click the Download Params. http:// www.odotautomation.com TEL: +86-0816-2538289 33 / 98...
Page 34
The information output logs indicates that the configuration is downloaded successfully, right click the PN-MBL V2.1, then click the Online. The Modbus Slave software is used to simulate the RS485 device on the serial port, select the read/write command to be monitored and click Process data to view the status of the slave device at the monitored value.
Page 36
Select the module error code input under the Modbus diagnostic module and click process data to view the error code of the corresponding read/write commands. http:// www.odotautomation.com TEL: +86-0816-2538289 36 / 98...
Page 38
3.5 Modify the device name 3.5.1 Use the TIA modify the device name 1、Power on Siemens PLC and ODOT-PNM02 V3.1, At the same time, use network cables to connect to the PC. Open the Portal software, click to the Oline access, find the local network card, double-click Update accessible devices, Siemens PLC and ODOT-PNM02 gateways will be searched.
Page 40
PG/PC interface. 2. Click "PLC" → "Edit Ethernet node", in the "Edit Ethernet node" page, click browse, in the "Browse network" page, it could see the scanned ODOT-PNM02 module, the default name of the module is "pnmb-address", select the module, click "flash", The "SF"...
Page 41
Note: Changing the device name is mainly used when multiple ODOT-PNM02 modules exist on the network. If there is only one ODOT-PNM02 module on the network, it could directly use its factory default name pnmb-address in the subsequent configuration without changing the device name.
Page 42
3.5.3 Use STEP 7-MicroWIN SMART modify the device name Open the STEP 7-MicroWIN SMART software, click the Tools, click the Find PROFINET Devices, select local network card, all PROFINET devices are automatically scanned, the IP address and device name of the gateway could be viewed.
Page 44
Topology of free port transparent mode http:// www.odotautomation.com TEL: +86-0816-2538289 44 / 98...
Page 45
This chapter will be written with SIEMENSS7-1200 CPU1212DC/DC/DC as the PROFINET Controller, TIA is used as the configuration software, this section provides an example of how to configure ODOT-PNM02 V2.1. 4.1.1 IO Config configure the parameters of serial port 1.Double-click the IO Config to open the software.
Page 46
3.Select the gateway and click Configuration Parameters to view the default serial port parameters of serial port 1 and serial port 2. The default working mode on the serial port of the gateway is Modbus master, serial port parameters: 9600bps, N 8 1. http:// www.odotautomation.com TEL: +86-0816-2538289 46 / 98...
Page 47
4.Right-click PN-MBL V2.1——Module manager, in the pop-up window click on the Modbus slave in master mode and diagnostics, Modbus slaves are added based on the actual number of serial ports mounted on the gateway. Suggestion: The M: Modbus diagnostic module is added to the back of the Modbus slave station to facilitate the corresponding input and output addresses in the TIA.
Page 48
5.Modbus slave commands mainly have serial port and slave address parameter settings. The default serial port is COM1, Modbus diagnostic commands could set the serial port. Right-click the Modbus slave, then click the Submodule manager, and add read or write commands according to the data address of the slave device, and click OK.
Page 49
Right-click Modbus diagnostics, then click the Submodule manager, diagnostic module commands could be added as needed: status input, error code, polling time input, control output, click OK. After completing the configuration of a station, right-click PN-MBL V2.1, click Download Params. If there are multiple stations with the same device, the serial port side has the same read/write commands, which could be quickly configured by copying and pasting.
Page 50
7.After all parameters are configured, then click the address Map in PN-MBL V2.1 to view the total byte length of all inputs and outputs. As shown in the figure, the input is 39 bytes and the output is 8 bytes. http:// www.odotautomation.com TEL: +86-0816-2538289 50 / 98...
Page 51
4.1.2 Configure the master mode in TIA 1.Confirm the XML folder in the product CD and confirm that the following files are in the folder, if not, please contact the supplier to request them. 2.Open the TIA V16 software, click Create New Project, and create a new project named "PNM02 V2.1 TEST".
Page 52
Appear the "PLC device IP address" and "pnmb-address device IP address", click the Online & Diagnostics under the “pnmb-address", the "Assign ProfiNet device name" could be set in the "Function" drop-down menu to access the gateway module for later configuration. http:// www.odotautomation.com TEL: +86-0816-2538289 52 / 98...
Page 53
4.Click the Add new device, Select Controller CPU 1212C DC/DC/DC (6ES7 212- 1AE40-0XB0 V4.4), click the OK. http:// www.odotautomation.com TEL: +86-0816-2538289 53 / 98...
Page 54
4.Click the Add new device, Select Controller CPU 1212C DC/DC/DC (6ES7 212- 1AE40-0XB0 V4.4), click the OK. http:// www.odotautomation.com TEL: +86-0816-2538289 54 / 98...
Page 55
6.In the device configuration interface, click on "Options". → “Manage general station description files”,Select the path,find the “GSDML-V2.33-ODOT-PNM02-V2.0-20220412”,add the GSD file. After success, click "Close" to exit the Manage general station description files dialog. http:// www.odotautomation.com TEL: +86-0816-2538289 55 / 98...
Page 56
7.Click Device Configuration under PLC— “Network view”. Click on it in the hardware catalog “Other field devices→PROFINET IO→Gateway→Odot Co., Ltd→Serial Gateway →Modbus Gateway ",find the“PNM02L V2.1”,the GSD file was added successfully. 8.Drag and drop the PNM02L V2.1 module from the hardware catalog into the network view.
Page 57
9.Connect the network of the PNM02 gateway to the PN interface of the S7-1200 PLC. Select the PN port of the PNM02 gateway and click Ethernet address to set the parameters. Set the gateway IP address and enter the ProfiNet device name that was set for online access. Note: The device name must be the same as the previous device.
Page 58
10.Double-click the gateway to enter the Device View, in the device view, need to configure the maximum number of input and output bytes command. It could be larger than the address table monitored in IO Config. (Input 64 bytes, output 8 bytes) .At this time, the hardware configuration has been basically completed, save the project, compile.
Page 59
Check whether the project is error-free, and click download when there is no error. After the download is successful, open the monitoring table to monitor the data collected by the gateway. Modbus Slave software is used to simulate the serial port RS485 side device. http:// www.odotautomation.com TEL: +86-0816-2538289 59 / 98...
Page 60
4.2 MODBUS configuration of slave mode 4.2.1 IO Config configure the parameters of serial port 1.Double-click the IO Config to open the software. 2.Click the Tools——Search the devices or shortcut icon ,in the pop-up window, select the local network card, Click the Search, in the list of Devices, select a device with PN-MBL V2.1 and click Upload to create a gateway project.
Page 61
3.Select the gateway and click Configuration Parameters to view the default serial port parameters of serial port 1 and serial port 2. The default working mode on the serial port of the gateway is Modbus slave, serial port parameters: 9600bps, N 8 1. 4.Right-click PN-MBL V3.1 and click Module Management, add S: Modbus slaves, the default serial port is COM1.
Page 62
5.right-click the S: Modbus slave, the click the submodule manager, read or write commands and diagnostic modules could be added. http:// www.odotautomation.com TEL: +86-0816-2538289 62 / 98...
Page 63
The start address could be set for each command. 6.After the configuration is complete, right-click PN-MBL V2.1 and click Download Params. http:// www.odotautomation.com TEL: +86-0816-2538289 63 / 98...
Page 64
7.After all parameters are configured, click the address map of PN-MBL V2.1 to view the total bytes of all inputs and outputs. As shown in the figure, input 18 bytes, output 4 bytes. http:// www.odotautomation.com TEL: +86-0816-2538289 64 / 98...
Page 65
4.2.2 Configure the slave mode in TIA 1→9 refers to 1→9 in 4.1.2 (master mode). 10.Double-click the gateway to enter the Device View, the maximum number of input and output bytes in the device view could be configured in the device view, which could be larger than the address table monitored in IOCONFIG.
Page 66
12.After the download is successful, open the monitoring table. Modbus Poll is used to simulate the master RS485 device on the serial port side. http:// www.odotautomation.com TEL: +86-0816-2538289 66 / 98...
Page 67
4.3 Configure the Freed mode 4.3.1 Report mode 4.3.1.1 IO Config configure the parameters of serial port 1.Double-click the IO Config to open the software. 2.Click the Tools——Search the devices or shortcut icon ,in the pop-up window, select the local network card, Click the Search, in the list of Devices, select a device with PN-MBL V2.1 and click Upload to create a gateway project.
Page 68
3.Select the gateway and click Configuration Parameters to view the default serial port parameters of serial port 1 and serial port 2. The default working mode on the serial port of the gateway is Freed mode, serial port parameters: 9600bps, N 8 1. http:// www.odotautomation.com TEL: +86-0816-2538289 68 / 98...
Page 69
4.Right-click PN-MBL V2.1, then click the Module Management. Added F: Free Port - Control and Status Module, the default serial port is COM1, default communication mode: Report. http:// www.odotautomation.com TEL: +86-0816-2538289 69 / 98...
Page 70
Right-click F: Free Port - Control and Status Module, click Submodule Manager, add the input data module. After the configuration is complete, right-click PN-MBL V2.1 to download the configuration. http:// www.odotautomation.com TEL: +86-0816-2538289 70 / 98...
Page 71
5.After all parameters are configured, click the address map in PN-MBL V2.1 to view the total bytes of all inputs and outputs. As shown in the figure, input 20 bytes, output 4 bytes. http:// www.odotautomation.com TEL: +86-0816-2538289 71 / 98...
Page 72
4.3.1.2 Configure the Freed mode in TIA 1→9 refers to 1→9 in 4.1.2 (master mode). 10.Double-click the gateway to enter the Device View, the maximum number of input and output bytes in the device view could be configured in the device view, which could be larger than the address table monitored in IOCONFIG.
Page 73
12.After the download is successful, open the monitoring table. Serial Port Utility is used to simulate the master RS485 device on the serial port side. IW68~IW78 are status data, IW80 is stored input data. http:// www.odotautomation.com TEL: +86-0816-2538289 73 / 98...
Page 74
4.3.2 Request-Respond mode 4.3.2.1 IO Config configure the parameters of serial port 1.Double-click the IO Config to open the software. 2.Click the Tools——Search the devices or shortcut icon ,in the pop-up window, select the local network card, Click the Search, in the list of Devices, select a device with PN-MBL V2.1 and click Upload to create a gateway project.
Page 75
3.Select the gateway and click Configuration Parameters to view the default serial port parameters of serial port 1 and serial port 2. The default working mode on the serial port of the gateway is Freed mode, serial port parameters: 9600bps, N 8 1. 4.Right-click PN-MBL V2.1, then click the Module Management.
Page 76
Right-click F: Free Port - Control and Status Module, click Submodule Manager, add the input data module. After the configuration is complete, right-click PN-MBL V2.1 to download the configuration. http:// www.odotautomation.com TEL: +86-0816-2538289 76 / 98...
Page 77
7、 After all parameters are configured, click the address map in PN-MBL V2.1 to view the total bytes of all inputs and outputs. As shown in the figure, input 44 bytes, output 20 bytes. http:// www.odotautomation.com TEL: +86-0816-2538289 77 / 98...
Page 78
4.3.2.2 Configure the Freed mode in TIA 1→9 refers to 1→9 in 4.1.2 (master mode). 10.Double-click the gateway to enter the Device View, the maximum number of input and output bytes in the device view could be configured in the device view, which could be larger than the address table monitored in IOCONFIG.
Page 79
to simulate the master RS485 device on the serial port side. The 6 words starting from the IW68 address are the status data, and the 7 words starting from the 7th word is the stored input data. The first 2 words of the QW100 are the control data, and the 3rd word is the output data.
Page 80
5、Firmware upgrade The ODOT-PNM02 V2.1 gateway supports network port upgrade. Installing and upgrading Software: Firmware Update Tool V1.0.0.8 After the installation is complete, open the upgrade software. Select Ethernet interface and Device IP: 192.168.0.254. Click Read Device Info to read the firmware information of the gateway.
Page 81
Select the 0# coupler, tick"√", click Start, and click Run APP when finished. Or select Automatic Skip (to APP) and click Start. http:// www.odotautomation.com TEL: +86-0816-2538289 81 / 98...
Page 82
6.Appendix 6.1 Modbus-RTU Introduction to Agreement For you, you only need to understand that Modbus has 8 important function codes corresponding to 4 areas: 4 for reading, 2 for writing a single bit or register, and 2 for writing multiple bits or multiple registers. (Address description uses PLC address) 6.1.1 Modbus Storage area The storage area of the controller (or Modbus device) involved in...
Page 83
it a little bit. After reading a few messages, you will know its structure, and you can inquire about it when you need it. (1) Read output coil status Function code:01H Master query message format: Start Start High function Low number address address address...
Page 84
(2) Read discrete input state Function code:02H Master inquiry message format: Start High function Start Low number address address number of code address low of coils high coils 0x11 0x02 0x00 0xC4 0x00 0x16 xxxx Function: Read the status of the slave input coil 1XXXX. Note: The start address of some equipment coils is 10000, which corresponds to the address 10001 in the equipment, which will be extended sequentially.
Page 85
number number 0x11 0x03 0x00 0x6B 0x00 0x03 xxxx Function: Read the value of the slave holding register 4XXXX. Note: Some device registers start address 40000 corresponds to 40001 address in the device, and it is postponed sequentially. This example: read the value of the holding register of the slave station 0x11, the starting address is 0x006BH=107, and the number of registers is 0x0003;...
Page 86
This example: Reading the value of the input register of slave station 0x11, starting at 0x0008H Note: In some devices, the starting address of the register 30000 corresponds to the address 30001 in the device, and it is extended sequentially. This example: read the input register value of slave station 0x11, the starting place is 0x0008H, and the register number is 0x0001;...
Page 87
Function: Force the value of 0x01(17) slave coil 0XXXX. In some devices, the coil start address 00000 corresponds to the address 00001 in the device, which is sequentially extended. Disconnect mark=FF00,Set coil ON。 Disconnect mark=0000,Set coil OFF。 Example: The starting address is 0x00AC=172. Force the No. 17 slave coil 0172 to ON.
Page 88
Example: preset the single holding register 40135 of No. 17 slave to 0x039E; Response format: original text return register register function coil address register start address number number code high address low high 0x11 0x06 0x00 0x87 0x03 0x9E xxxx Function: Preset No.
Page 89
0x11(17) slave station 10 coils 00019-00028; CDH→00019-00026; 00H →00027-00028; Slave response format: High bit of function Low bit of coil High number of Low number of address coil start code start address coils coils address 0x11 0x0F 0x00 0x13 0x00 0x0A xxxx (8) Preset multiple registers...
Page 90
Response format: register register function Start register Start register address number number code address high address Low high 0x11 0x10 0x00 0x87 0x00 0x02 xxxx http:// www.odotautomation.com TEL: +86-0816-2538289 90 / 98...
Page 91
6.2Brief introduction of serial network topology 6.2.1 RS232 RS232 is one of the serial communication interfaces of industrial control, and it is widely used to connect computer serial interfaces and peripherals. RS232 uses a signal line and a signal return line to form a common ground transmission form.
Page 92
It is meaningless, and a voltage lower than -15V or higher than +15V is also meaningless. RS232 interface classification: DB9 male connector The upper left corner is 1, the lower right corner is 9 9-pin RS232 serial port (DB9) Name Effect Carrier detect Receive data...
Page 93
characteristics, it can only realize point-to-point communication. The RS232 communication wiring diagram is shown in the figure: 6.2 RS422 The full name of RS422 interface standard is "Electrical Characteristics of Balanced Voltage Digital Interface Circuit", which defines the characteristics of the interface circuit. RS422 adopts four-wire plus ground wire (T+, T-, R+, R-, GND), full-duplex, differential transmission, multi-point communication data transmission protocol.
Page 94
communication. The maximum transmission distance of RS-422 is 4000 feet (about 1219 meters), and the maximum transmission rate is 10Mb/s. The length of the balanced twisted pair is inversely proportional to the transmission rate, and the maximum transmission distance is only possible when the rate is below 100kb/s.
Page 95
connect Receiving Must positive connect Send positive Must connect The upper left corner is 1, the lower right corner is 9 The RS422 communication wiring diagram is shown in the figure: 6.3 RS485 Since RS-485 is developed on the basis of RS-422, many electrical regulations of RS-485 are similar to RS-422.
Page 96
two-way communication. RS485 is a standard that defines the electrical characteristics of drivers and receivers in a balanced digital multipoint system. It uses a combination of balanced drivers and differential receivers to enhance the ability to resist common mode interference, that is, to resist noise interference.
Page 97
required to be approximately equal to the characteristics of the transmission cable. impedance. In short-distance transmission, no terminating resistor is needed, that is, no terminating resistor is generally required below 300 meters. The terminating resistor is connected to the two ends of the transmission cable. RS485 9-pin pin definition: Name Effect...
Need help?
Do you have a question about the ODOT-PNM02 V2.1 and is the answer not in the manual?
Questions and answers