B&B Electronics GW-7553 User Manual

GW-7553 PROFIBUS/Modbus TCP Gateway
User's Manual
High Quality, Industrial Data Acquisition, and Control Products
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 1
Warranty
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
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 2
Table of Contents
1. Introduction…………………………………………………………. 4
1.1 Features…………………………………………………………………………………... 5
1.2 Modules Support…………………………………………………………………………. 5
1.3 Specification……………………………………………………………………………… 5
2. Hardware……………………………………………………………. 7
2.1 Block Diagram of GW-7553…………………………………………………………….. 7
2.2 Pin Assignment…………………………………………………………………………... 7
2.3 Wiring……………………………………………………………………………………. 9
2.4 Setting the PROFIBUS Address………………………………………………………. 12
2.5 LED status indicator……………………………………………………………………. 13
2.6 Normal/Setting DIP switch…………………………………………………………….. 14
3. Communication protocol transfer theorem……………………… 16
3.1 PROFIBUS data exchange…………………………..…………………………………. 16
3.2 Modbus data exchange…………………………………………………………………. 19
3.3 Communication protocol transfer………………………………………………………. 22
4. Communication……………………………………………………. 26
4.1 Field of application…………………………………………………………………….. 26
4.2 GSD file………………………………………………………………………………… 27
4.3 The Configuration of the common parameters…………………………………………. 30
4.4 The Configuration of the modules……………………………………………………… 31
4.5 Diagnostic messages……………………………………………………………………. 34
4.6 I/O data exchange……………………………………………………………………….. 35
4.7 Establish connection with GW-7553……………………………………………………. 37
4.8 Data exchange example—Modbus RTU……………………………………………….. 39
4.9 Data exchange example—Modbus TCP………………………………………………... 49
5. Application of Utility………………………………………………. 60
5.1 Install Utility……………………………………………………………………………. 60
5.2 Utility introduction……………………………………………………………………… 63
5.3 Memory address configuration of the module………………………………………….. 65
5.4 Safe value setting……………………………………………………………………….. 67
5.5 IP setting………………………………………………………………………………… 69
5.6 Establish connection with GW-7553……………………………………………………. 70
6. Troubleshooting……………………………………………………. 73
7. Dimensions…………………………………………………………. 74
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 3
1. Introduction
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:
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 4
1.1 Features
16-bit Microprocessor inside with 80MHz
Profichip VPC3+C PROFIBUS controller
Support PROFIBUS DP-V0 slave
PROFIBUS transmission rate detect automatically
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
1.3 Specification
COM Port specs:
Serial port - RS-232
Serial port interface: screw terminal block
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 5
Baud Rate2400/4800/9600/19200/38400/57600/115200 bps
Data Format: 7/8 data bits, None/Odd/Even parity bit, 1/2 stop bit
PROFIBUS specs:
PROFIBUS interface connector: D-Sub 9-pin female
Baud Rate: 9.6k/19.2k/45.45k/93.75k/187.5k/500k/1.5M/3M/6M/12Mbps
Address Setting: 0~126 (set by DIP switch or EEPROM)
Ethernet specs:
10/100Base-TX (Auto-negotiating, Auto_MDIX, LED indicator)
Power requirement:
Unregulated +10 ~ +30 VDC
Power reverse protection, Over-Voltage brown-out protection
Power consumption 2.5W
Module specs:
Dimensions: 119mm x 72mm x 33mm
Operating temperature: -25 ~ 75 ºC
Storage temperature: -30 ~ 85 ºC
Humidity5 ~ 95% RH, non-condensing
LED Status Indicators(Table 2)
Table 2: LED status indicator
Show the power state
PWR LED
Show data state
ERR LED
RUN LED
Show error state
Show communication state of PROFIBUS
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 6
2. Hardware
2.1 Block Diagram of GW-7553
Figure 2 Block diagram of GW-7553
2.2 Pin Assignment
Figure 3 Pin assignment of GW-7553
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 7
Table 3 9-pin screw terminal block
Pin Name Description
1 CTS Clear to Send of RS-232
2 RTS Request to Send of RS-232
3 RX Receive Data of RS-232
4 TX Transmit Data of RS-232
5 GND GND of RS-232
6 - N/A
7 - N/A
8 +VS V+ of Power Supply(+10 ~ +30 VDC)
9 GND GND of Power Supply
Table 4 RJ-45 socket
Pin Name Description
1 TX+ TX+ output
2 TX- TX- output
3 RX+ RX+ input
4 - N/A
5 - N/A
6 RX- RX- input
7 - N/A
8 - N/A
Table 5 PROFIBUS DB9 Female Connector
Pin Name Description
1 - N/A
2 - N/A
3 B Non-inverting Bus Line
4 ISODE Isolated DE output for use in PROFIBUS
applications where the state of the isolated drive enable node needs to be monitored.
5 GND Power supply ground for the first node and the last
node
6 VP +5V Power Supply for the first node and the last
node
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 8
Pin Name Description
port
7 - N/A
8 A Inverting Bus Line
9 - N/A
2.3 Wiring
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.
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 9
Figure 5 Ethernet connection
2.3.3 PROFIBUS Connection
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)
9.6, 19.2, 45.45,93.75 1200
187.5 1000 500 400
1500 200
3000, 6000, 12000 100
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 10
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
shown in figure 7.
Figure 6 PROFIBUS connection
Terminator Switch
Figure 7 PROFIBUS connector
Terminator ON
Terminator OFF
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 11
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.
255 1. Slave address in the EEPROM is set to 126.
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 12
Figure 8: DIP switch
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.
Table 9: LED status description
LED Name Status Description
When the GW-7553 acts as a Modbus Slave device
flash
PWR
on
off Power supply has failed.
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 13
and receiving query message form Modbus Master device, PWR led will flash.
Power supply is ok. The firmware has loaded.
LED Name Status Description
When the GW-7553 connects with the utility tool, it
flash
will flash fast (flash once about 55ms). When the GW-7553 has diagnostic message, it will flash slowly (flash once about 220ms).
ERR
RUN
Connection error between PROFIBUS Master and
on
off
on
off GW-7553 module is not in a data exchange mode.
Slave or
PROFIBUS system has not been configured
correctly.
Normal operation PROFIBUS system has been configured correctly
Data exchange mode Normal operation.
Figure 9 LED position
2.6 Normal/Setting DIP switch
There is a DIP switch on the back of the GW-7553 module, as shown in Figure 10.
The DIP switch is used to set the GW-7553 module works in operation mode or
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 14
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
the GW-7553, as shown in table 10.
Table 10 Mode of GW-7553
Mode SM(control bit)=0 SM(control bit)=1 DIP switch=Normal operation mode setting mode DIP switch =Setting setting mode setting mode
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 15
3. Communication protocol transfer theorem
3.1 PROFIBUS data exchange
The GW-7553 is a PROFIBUS DP Slave device. The GW-7553 is first parameterized then configured and finally it goes into the data exchange mode
(Figure 11).
Figure 11 State machine of PROFIBUS DP Slave device
The GW-7553 exchanges data cyclically between internal DI、DO、AI、AO
data and PROFIBUS Master device in data exchange mode, as shown in figure 12.
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 16
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 DIAI data to
input data area of PROFIBUS Master device and it will save data that receives from PROFIBUS Master device to internal DOAO memory space, as shown in
figure 13
14.
Figure 13 The output data of PROFIBUS Master device send to the GW-7553
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 17
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 DOAO data to input data area of PROFIBUS Master device and it will save data that receives
from PROFIBUS Master device to internal DIAI memory space, as shown in
figure 15
16.
Figure 15 The output data of PROFIBUS Master device send to the GW-7553
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 18
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
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 19
When the GW-7553 acts as a Modbus Master device, it can get query message through module parameter and DOAO 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 shown in figure 18
19.
Figure 18 GW-7553 output data to Modbus Slave devices
Figure 19 GW-7553 receive data from Modbus Slave devices
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 20
hen the GW-7553 acts as a Modbus Slave device, it can receive query message
W from Modbus Master device and then saving to internal DOAO memory space.
It can also send response message to Modbus Master device through internal DI
AI data, as shown in figure 20
21.
Figure 20 The GW-7553 receive data from Modbus Master device
Figure 21 The GW-7553 output data to Modbus Master device
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 21
3.3 Communication protocol transfer
In section 3.1 and 3.2, we can understand that data exchange is through DI DOAIAO 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 MasterModbus and
the GW-7553, as shown in figure 22
23.
Figure 22 GW-7553 (master mode) communication protocol transfers
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 22
Figure 23 GW-7553 (master mode) flowchart
GW-7553 PROFIBUS/Modbus TCP Gateway User Manual (Version 1.00, Dec/2008) PAGE: 23
Loading...
+ 52 hidden pages