Figure 1 shows an application example for the GW-7552-B / GW-7552-M module. Figure 1 Application architecture of the GW-7552-B / GW-7552-M module The GW-7552-B / GW-7552-M Gateway is specially designed for the slave device of PROFIBUS DP protocol. In the Modbus protocol application, the GW-7552-B / GW- 7552-M can be a Modbus master device or slave device.
The main features and specification of GW-7552-B / GW-7552-M are described as below: 1.1 Features 16-Bit Microprocessor inside with 80MHz ● Siemens SPC3 PROFIBUS controller ● Supports PROFIBUS DP-V0 slave ● PROFIBUS transmission rate detect automatically ● Max transmission speed up to 12M bps for PROFIBUS and 115.2K bps for ●...
Page 6
Shows the power state PWR LED COM Port state: transmit or receive data Show error state ERR LED Show communication state of PROFIBUS RUN LED GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 6...
Page 8
Receive Data- of RS-422 Receive Data of RS-232 Transmit Data of RS-232 GND of RS-232 V+ of Power Supply(+10 to +30VDC) GND of Power Supply Table 4 PROFIBUS DB9 Female Connector GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 8...
Modbus network. 2.3.1 RS-232 connection The RS-232 port of the GW-7552-B / GW-7552-M has got three pins. The wiring of the RS-232 device with the RS232 port of the GW-7552-B / GW- 7552-M is shown in figure 4. GW-7552-B/GW-7552-M RS-232 device...
Page 10
2.3.2 RS-422 connection The RS-422 wiring connection is shown in figure 5. The GW-7552-B / GW-7552-M gateway can be a Modbus master or Modbus slave in a local RS-422 network. Depending on whether the gateway acts as a Modbus master or as a Modbus slave and on the number of devices connected to the RS-422 network device the four jumpers provided by the module has to be set according to table 5.
Page 11
Figure 6 Configuration of pull high/low resistor for the RS-422 port Figure 7 The positions of pull high/low resistors in GW-7552-B / GW-7552-M module 2.3.3 RS-485 connection The RS-485 wiring diagram is shown in figure 8. The GW-7552-B / GW-7552-M gateway can be a Modbus master or Modbus...
Page 12
RS-485 bus is less than 10 The GW-7552-B / GW-7552-M is Disabled a slave in RS-485 bus or the number of devices connected to the RS-485 bus exceeds 10 GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 12...
Page 13
Figure 9 Configuration of pull high/low resistor for the RS-485 port 2.3.4 PROFIBUS Connection The PROFIBUS interface of the GW-7552-B / GW-7552-M is a DB9 female connector. The connector uses the standard Profibus 9 pin assignment. It is recommended to use a standard PROFIBUS cable and connector (DB9 male).
Page 14
The number of stations in a Profibus network is restricted to 126. According to the PROFIBUS specification up to 32 stations are allowed per segment. A repeater has to be used to link the bus segments. GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 14...
2.4 Setting the Profibus Address The station address of GW-7552-B / GW-7552-M can be set by using either the dip switch or by writing it directly to the EEPROM. The dip switch covers a range from 0 to 255. The valid address range of a Profibus station spans from 0 to 126.
2.5 LED status indicator The GW-7552-B / GW-7552-M provides three LEDs to indicate the statuses of the GW-7552-B / GW-7552-M module. The position of LEDs and descriptions are shown in table 10 and figure 13.
Figure 13 LED position 2.6 Normal/Setting Dip Switch There is a dip switch on the back of the GW-7552-B module, as shown in Figure 14. The dip switch is used to set the GW-7552-B module works in operation mode or setting mode.
Page 18
GW-7552-M. Figure 14 Dip switch of the GW-7552-B There are two kinds of methods to enable the setting mode of the GW-7552-B. The user can change the position of the dip switch or set the control bit (please refer section 4.6.2 Output data area and communication command) to enable the setting...
3. Communication protocol transfer theorem 3.1 Profibus data exchange The GW-7552-B / GW-7552-M is a Profibus DP slave device. The GW-7552-B / GW-7552-M is first parameterized then configured and finally it goes into the data exchange mode (Figure 15). Figure 15 State machine of Profibus DP slave device The GW-7552-B / GW-7552-M exchanges data cyclically between internal DI、...
Page 20
Profibus master device to 、 internal DO、AO memory space, as shown in figure 17 Figure 17 the output data of Profibus master device send to the GW-7552-B / GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 20...
Page 21
Figure 18 the input data of Profibus master device receive from the GW-7552-B / GW-7552-M When the GW-7552-B / GW-7552-M acts as a Modbus slave device, it will send DO、AO data to input data area of Profibus master device and it will save data that receives from Profibus master device to internal DI、AI memory space, as...
GW-7552-M Figure 20 the input data of Profibus master device receive from the GW-7552-B / GW-7552-M 3.2 Modbus data exchange Modbus protocol belongs to Master-Slave communication and it uses query and response message to arrive at data exchange and device control, as shown in figure 21.
Page 23
Figure 21 Data exchange between the Modbus devices and the GW-7552-B / GW-7552-M When the GW-7552-B / GW-7552-M acts as a Modbus master device, it can get query message through module parameter and DO、AO data and send query message to Modbus slave device. It can also receive response message form Modbus slave device and then saving to internal DI、AI memory space, as...
Page 24
Figure 22 GW-7552-B / GW-7552-M output data to modbus slave devices Figure 23 GW-7552-B / GW-7552-M receive data from modbus slave devices When the GW-7552-B / GW-7552-M acts as a Modbus slave device, it can receive query message from Modbus master device and then saving to internal DO、AO memory space.
Figure 24 The GW-7552-B / GW-7552-M receive data from Modbus master device Figure 25 The GW-7552-B / GW-7552-M output data to Modbus master device 3.3 Communication protocol transfer In section 3.1 and 3.2, we can understand that data exchange is through DI、...
Page 26
GW-7552-M acts as a Modbus master device, the data exchange runs continuously between Profibus master、Modbus and the GW-7552-B / GW-7552- 、 M, as shown in figure 26 Figure 26 GW-7552-B / GW-7552-M (master mode) communication protocol transfers GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 26...
Page 28
When the GW-7552-B / GW-7552-M acts as a Modbus slave device, the data exchange runs continuously between Profibus master and the GW-7552-B / GW- 7552-M and the data exchange runs between Modbus master device and the GW- 7552-B / GW-7552-M, when GW-7552-B / GW-7552-M receive query message 、...
(Figure 30) or a multi-master system (Figure 31). The GW- 7552-B / GW-7552-M enables the integration of the Modbus devices into a PROFIBUS DP network. Figure 30 Mono-master system GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 30...
The parameters(ex: baud rate, message length, number of input / output data and etc. ) of each PROFIBUS DP device are described in a GSD file. The GSD file of the GW-7552-B / GW-7552-M can be form the ICP DAS companion CD-ROM (PATH --> CD: \PROFIBUS\GATEWAY\GW-7552 \GSD\).
Page 32
Click “Browse” button to choose where the GSD file located Step 3: Figure 33 choose the path where GSD file located. Step 4: Select the GSD file and click “OK” button. GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 32...
Figure 34 select the GSD file of the GW-7552-B to install Step 5: Check the window if the GW-7552-B and its details can be found, if yes then GW-7552-B is successfully added. Figure 35 Finish adding the GW-7552-B 4.3 The Configuration of the common parameters GW-7552-B / GW-7552-M has eleven common parameters.
Page 34
I/O safe mode = “Switch Safe Value” The GW-7552-B / GW-7552-M will set the internal DI and AI data to safe value and send safe values to Profibus master device. I/O safe mode = “Retain Last Value”...
Page 35
(please refer to section 4.6.2 Data Output Command). e. Modbus device ID is a Modbus address of the GW-7552-B / GW- 7552-M, when the GW-7552-B / GW-7552-M acts as a Modbus slave device.
Page 37
Start Address:The GW-7552-B / GW-7552-M and Modbus slave device exchange data from this starting address. d. NO. of Relay/Coil:It is data size that the GW-7552-B / GW-7552-M and Modbus slave device exchange. e. Module Type:The user can select data type for data exchange by this setting.
Change Word Order:When this setting is “Enable”, the GW-7552-B / GW-7552-M will change the data between the high word and low word for reading easily. g. (M) means the parameter is effective, when Modbus type of GW-7552-B / GW-7552-M is master. 4.5 Diagnostic messages The GW-7552-B / GW-7552-M can show maximally 10 diagnostic messages at the same time.
If the polling speed between the GW-7552-B / GW-7552-M device and the Modbus slave is faster than the data exchange rate between Profibus master and the GW-7552-B / GW-7552-M then the Profibus master will not get all the data from the Modbus slave and therefore a diagnostic message (“Profibus lose input data”) will be send by the GW-7552-B / GW-7552-M to the Profibus master...
Page 40
GW-7552-B / GW-7552-M by modify data of output module. Table 14 Output data area Bit Position Module Byte Description Data output command System SM DC Control bit setting module Output module select GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 40...
Page 41
(ex: “byte 2”=3, it this byte represent that the user want to trigger data output command of the third module ) GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 41...
GW-7552-B / GW-7552-M proceeds into data exchange state. Users can observe the status indicator LED to know the state of GW-7552-B / GW-7552-M. At the meantime, if there is any error occurs, GW-7552-B / GW-...
Step 1: Copy the GSD file and assign the GW-7552-B a valid station address (Please refer to the section 4.2 GSD file). Step 2: Connect the RS-232 port of the GW-7552-B module to a COM port of the PC and the Profibus port to a Profibus master (Figure 37).
Page 44
Figure 38 Add GW-7552-B , double click the GW-7552-B icon to choose “Profibus” and check the Profibus address is “1” then click “OK” Figure 39 Click “Parameter Data…” button to open the “Parameter Data” window GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 44...
Page 45
Figure 40 Users need to change “Modbus type” to slave for this example and click “OK” button Step 4: Set the GW-7552-B modules, as shown in figure 41 and 42. Select “System setting” module: “System setting” module always has to be selected otherwise no communication can be established between the gateway and the Modbus network.
Page 46
Figure 43 Click “Download” to download the setting into PROFIBUS master 4.8.1 Receiving data from a Modbus master device -- Start the test utility “MBRTU” (figure 44) on the PC. GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 46...
Page 47
Relay/Coil” module) of the input data area in the variable table of configuration program “Step 7 manager” have been changed to “FF” at this time, as shown in the below. GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 47...
Page 48
Figure 46 Receive “0xFF” in the input data area Table 15 Receive “0xFF” in the input data area Module Byte Data type Representation Value Input 0 Byte 0xFF Input module Input 1 Byte 0xFF GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 48...
Page 49
B8”). In this message, the user can know the value of DI0 & DI1 is “0” in the GW-7552-B. --Send output data to write DI of the GW-7552-B by the Profibus master The user needs to set “0xFE” & “0xDC” in byte 3 & byte 4 of output data area in the variable table of the configuration program “Step 7 Manager”...
Page 50
C6” again. Then MBRTU can receive response message (“01 02 02 FE DC F8 41”). In this message, the user can know the value of DI0 & DI1 have changed to “0xFE” & “0xDC” in the GW-7552-B, as shown in figure 47, 48, 49 & table 16.
Figure 50 install the utility Step 3: Click the “Next” button to continue. If you want to change the installation destination, click “Browse” button to set the installation path. GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 54...
Page 55
Figure 51 set the installation path Step 4: Click the “Next” button to confirm installation Figure 52 Confirm installation GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 55...
Page 56
Step 6: After finishing the installation of the Profibus/Modbus Gateway Utility, users can find the Utility as shown in the following screen shot. Figure 54 The path of Utility GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 56...
5.2 Utility introduction By this utility, the user can understand the module address of Profibus、Modbus and the GW-7552-B / GW-7552-M. The utility also support users set safe value easily. It introduces main window of the utility first as shown in figure 55.
Page 58
4. Data bit: 8 data bit 5. Stop bit: 1 stop bit 5.2.3 Module state: It can display the number of modules in the GW-7552-B / GW-7552-M and display module parameters in the window of the module parameter by click the module‟s ICON.
5.3.1 Space configuration in device: The user can select check box of the module to show memory address configuration of DI/DO/AI/AO in the GW-7552-B / GW-7552-M, as shown in figure 57. GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 59...
Page 60
The user can select check box of the module to show memory address configuration of I/O data area in the Profibus master station, as shown in figure Figure 58 Space configuration in profibus GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 60...
Page 61
Modbus ID is repeat in these modules. The data may be read and written by different modules at this time, it may make the data transmit and device control error easy because address configuration and Modbus ID overlap. GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 61...
There are 3 kinds of safe value setting. They are (1) Open a new setting、(2)Load from file、(3)Load from device, as shown in figure 60. Figure 60 The menu of safe value setting GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 62...
Page 63
“Input” button to show safe value setting of DI/AI, click “Save to File” button to open “save file dialog” to save safe value setting for backup, click “Save to Device” button to save safe value setting to EEPROM of the GW-7552-B / GW- 7552-M.
Figure 61 Safe value setting 5.5 Establish connection with GW-7552-B / GW-7552-M The connection of Utility and GW-7552-B / GW-7552-M is shown in figure 62. Please follow the steps to establish connection. Step 1: Wire Com Port of PC to RS-232 port of GW-7552-B / GW-7552-M.
Page 65
4.6.2 Output data area and communication command). Step 4: Open Utility.exe on PC. Figure 63 Open Utility Step 5: Set Com Port communication setting of Utility (please refer section 5.2.2 GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 65...
Page 66
Com Port settings) the same as Com Port setting of GW-7552-B / GW- 7552-M(please refer section 4.3 The Configuration of the common parameters) Step 6: Click “Communication=>Connect” button in menu. Figure 64 Communication menu Step 7: Module state shows green in the Utility now, it means the connection is complete.
Please confirm Setting of Start Address and NO. of Relay/Coil is correct (please refer section 4.4 The Configuration of the modules). f. Please confirm the output data put in correct address and have GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 67...
Page 68
0 to trigger the output command, when output data can not send to modbus device in output data area of Profibus master (please refer section 4.6.2 Output data area and communication command). GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 68...
Need help?
Do you have a question about the GW-7552-B and is the answer not in the manual?
Questions and answers