All products manufactured by ICP DAS are under warranty regarding
defective materials for a period of one year from the date of delivery to the
original purchaser.
Warning
ICP DAS assumes no liability for damages resulting from the use of this
product. ICP DAS reserves the right to change this manual at any time
without notice. The information furnished by ICP DAS is believed to be
accurate and reliable. However, no responsibility is assumed by ICP DAS
for its use, or for any infringements of patents or other right of third parties
resulting from its use.
Copyright
Copyright 2008 by ICP DAS. All rights are reserved.
Trademark
The names used for identification only may be registered trademarks of
their respective companies.
List of Revision
Date Author Version Revision
2008/12/31 Raiden 1.00 Release
PROFIBUS and Modbus are two kinds of famous protocols and are wildly used in
the fields of factory and process automation. The GW-7553 is a PROFIBUS to
Modbus TCP gateway. By using this module, users can easily put the Modbus TCP
devices into PROFIBUS network.
Figure 1 shows an application example for the GW-7553 module.
Figure 1 Application architecture of the GW-7553 module
The GW-7553 Gateway is specially designed for the slave device of PROFIBUS DP
protocol. In the Modbus protocol application, the GW-7553 can be a Modbus Master
device or Slave device. The Modbus devices can exchange data with the PROFIBUS
Master device via the GW-7553 module.
The main features and specification of GW-7553 are described as below:
● Max transmission speed up to 12 Mbps for PROFIBUS and 115.2 kbps for
COM Port
● Support Modbus RTU, ASCII and TCP format
● Support Modbus Master/Slave mode
● Support safe value setting
● COM Port driver has 1K bytes QUEUE input buffer & 512 bytes QUEUE
output buffer
● Max length of output/input data is 131/128 Bytes
● Ethernet Port: 10/100 Base-TX
● 2500Vrms High Speed iCoupler Isolation Protection for PROFIBUS network
● 3000VDC Isolation Protection on the PROFIBUS side
● Provide LED indicators
● Built-in Watchdog
● Mountable on DIN Rail
1.2 Modules Support
Only the following Modbus commands are supported by the gateway.
Table 1: Modbus function codes
Code Name Description
01 Read Coil Status Read the ON/OFF status of discrete outputs in the slave
02 Read Input Status Read the ON/OFF status of discrete inputs in the slave
03 Read Holding Registers Read the binary contents of holding registers in the slave
04 Read Input Registers Read the binary contents of input registers in the slave
05 Force Single Coil Write a single output to either ON or OFF in the slave
06 Preset Single Register Write an integer value into a single register in the slave
15 Force Multi. Coils
Write each coil in the sequence of coils to either ON or
OFF in the slave
16 Preset Multi. Registers Write a block of contiguous registers in the slave
GW-7553 supports PROFIBUS to Serial or Ethernet communication. It is
recommended to use only one communication interface (RS-232 or Ethernet) of
the Gateway at the same time. The following section describes the connection
interface of GW-7553.
2.3.1 RS-232 connection
The RS-232 port of the GW-7553 has got three pins. The wiring of the RS-232
device with the RS-232 port of the GW-7553 is shown in figure 4.
GW-7553
RS-232
RS-232 device
Figure 4 RS-232 wiring diagram
2.3.2 Ethernet connection
The user can connect GW-7553 with the other device to the same sub network
or same Ethernet Switch, as shown in figure 5.
The PROFIBUS interface of the GW-7553 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). As with every
serial bus the rate of safe data transmission in a PROFIBUS network decreases
with increasing distance between Master and Slave. Table 6 shows the
transmission rate and range for a cable with the following properties:
1. Impedance :135~165 Ω
2. Capacity : lower than 30 pF/m
3. Loop resistance : lower than 110 Ω/km
4. Wire diameter : greater than 0.65 mm
5. Core cross-section : greater than 0.34 mm
Table 6 Transmission rate decreasing with increasing transmission distance
2
Transmission Rate(kbps) Transmission Distance per Segment (meter)
In order to minimize the reflection effect of signal transmission, both ends (first
node and last node) of a PROFIBUS segment needs to be equipped with an
active terminal resistor as shown in figure 6. A standard PROFIBUS connector
is usually already equipped with a terminal resistor. The user therefore only has
to switch on the resistor of the devices stationed at the ends of a segment as
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.
2.4 Setting the PROFIBUS Address
The station address of GW-7553 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. Table 7
shows three examples of setting the station address by using the DIP switch. The
DIP switches are accessed by opening the modules housing (Figure 8). Table 8
explains which address will be used by the module after power on, if the DIP
switch address setting differs from the address stored in the EEPROM.
Table 7: DIP switch setting example
Station address
1 2 3 4 5 6 7 8
1 1 0 0 0 0 0 0 0
10 0 1 0 1 0 0 0 0
126 0 1 1 1 1 1 1 0
DIP switch (SW1)
Note: 1=>ON, 0=>OFF
Table 8: The Address setting of the GW-7553
DIP switch Setting Description
1. The address setting of the EEPROM is ignored.
0~125
126-254
2. The address can not be set by the PROFIBUS configuration
tool.
1. The address setting of the DIP switch is ignored.
2. If the address in the EEPROM is 126, the PROFIBUS
configuration tool can set a new address and save it to the
EEPROM.
Each Slave must have a unique valid address (1 to 125) in order to be able to
communicate with the Master. To change the address by using the configuration
tool it is necessary to first set the address stored in the EEPROM to 126. This is
done by setting the DIP switch to 255 in the power off state. Switching the
module on is forcing the module to change its address in the EEROM to 126. In
the next step switch the module off and change the DIP switch setting to any
value from 126 to 254. This step is necessary in order to prevent the module to
change its address in the EEPROM to 126 every time it is powered on. The
configuration tool can now assign the Slave a new address.
2.5 LED status indicator
The GW-7553 provides three LEDs to indicate the statuses of the GW-7553
module. The position of LEDs and descriptions are shown in table 9 and figure 9.
setting mode. In the normal situation, it needs to set the DIP switch to the “Normal”
position. In this case, the GW-7553 module can communicate with Modbus devices.
When the user sets the DIP switch to the “Setting” position, the GW-7553 module can
communicate with the utility to set the safe value and network configuration.
Figure 10 DIP switch of the GW-7553
PS:
There are two kinds of methods to enable the setting mode of the GW-7553. 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 mode of
Figure 12 Data exchange between PROFIBUS Master device and GW-7553
The GW-7553 downloads the parameter and configuration from PROFIBUS
Master device to be the module parameters. The GW-7553 and PROFIBUS
Master device have different data type and data address, the GW-7553 can transfer
different data format to PROFIBUS Master device through module parameters.
When the GW-7553 acts as a Modbus Master device, it will send DI、AI data to
input data area of PROFIBUS Master device and it will save data that receives
from PROFIBUS Master device to internal DO、AO memory space, as shown in
、
figure 13
14.
Figure 13 The output data of PROFIBUS Master device send to the GW-7553
Figure 14 The input data of PROFIBUS Master device receive from the GW-7553
When the GW-7553 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 shown in
figure 15
、
16.
Figure 15 The output data of PROFIBUS Master device send to the GW-7553
Figure 16 The input data of PROFIBUS Master device receive from the GW-7553
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 17.
Figure 17 Data exchange between the Modbus devices and the GW-7553
In section 3.1 and 3.2, we can understand that data exchange is through DI、
DO、AI、AO memory space of the GW-7553 between PROFIBUS Master、
Modbus and the GW-7553. When the GW-7553 acts as a Modbus Master device,
the data exchange runs continuously between PROFIBUS Master、Modbus and
the GW-7553, as shown in figure 22
、
23.
Figure 22 GW-7553 (master mode) communication protocol transfers