ICPDAS GW-7552-B, GW-7552-M User Manual

GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 1
GW-7552-B / GW-7552-M
PROFIBUS/MODBUS GATEWAY
User's Manual
High Quality, Industrial Data Acquisition, and Control Products
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 2
Warranty
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 2013 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
2012/04/03
Raiden
1.40
Release
2013/05/30
Elliot
1.50
Release
2017/05/15
Eric
1.60
Add GW-7552-M information. Update 4.2 , 4.8
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 3
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-7552-B / GW-7552-M…………………………………………... 7
2.2 Pin Assignment……………………………………………………………………………7
2.3 Wiring and Jumper Setting Instructions………………………………………………….. 9
2.4 Setting the Profibus Address……………………………………………………………. 15
2.5 LED status indicator…………………………………………………………………….. 16
2.6 Normal/Setting Dip Switch……………………………………………………………... 17
3. Communication protocol transfer theorem……………………… 19
3.1 Profibus data exchange………………………………………………………………….. 19
3.2 Modbus data exchange………………………………………………………………….. 22
3.3 Communication protocol transfer……………………………………………………….. 25
4. Communication……………………………………………………. 30
4.1 Field of application……………………………………………………………………… 30
4.2 GSD file…………………………………………………………………………………. 31
4.3 The Configuration of the common parameters…………………………………………..33
4.4 The Configuration of the modules……………………………………………………….36
4.5 Diagnostic messages……………………………………………………………………..38
4.6 I/O data exchange……………………………………………………………………….. 39
4.7 Establish connection with GW-7552-B / GW-7552-M…………………………………. 42
4.8 Data exchange example…………………………………………………………………. 43
5. Application of Utility………………………………………………. 54
5.1 Install Utility……………………………………………………………………………..54
5.2 Utility introduction……………………………………………………………………… 57
5.3 Memory address configuration of the module…………………………………………...59
5.4 Safe value setting……………………………………………………………………….. 62
5.5 Establish connection with GW-7552-B / GW-7552-M…………………………………. 64
6. Troubleshooting……………………………………………………. 67
7. Dimensions…………………………………………………………. 69
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 4
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-7552-B / GW-7552-M is a Profibus to Modbus gateway. By using this module, users can easily put the Modbus devices into Profibus network.
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 Modbus devices can exchange data with the Profibus master device via the GW-7552-B / GW-7552-M module.
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 5
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
COM Port
Supports Modbus RTU/ASCII format
Supports Modbus master/slave mode
Supports 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/132 Bytes
Built-in self-tuner ASIC controller on RS-422/485 port
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
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 6
COM Port specs:
Serial port - RS-232/RS-422/RS-485 Serial port interface: 14-pin screw terminal block 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)
Power requirement:
Unregulated +10V ~ +30V DC
Power reverse protection, Over-Voltage brown-out protection Power consumption 2.5W
Module specs:
Dimensions:
GW-7552- B : 119mm X 72mm X 33 mm GW-7552-M : 118mm X 102mm X 26.5 mm
Operating temperature: -25 ~ 75 ºC Storage temperature: -30 ~ 85 ºC Humidity5 ~ 95%, non-condensing
LED Status Indicators(Table 2)
Table 2: LED status indicator
PWR LED
Shows the power state COM Port state: transmit or receive data
ERR LED
Show error state
RUN LED
Show communication state of PROFIBUS
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 7
2. Hardware
2.1 Block Diagram of GW-7552-B / GW-7552-M
Figure 2 Block diagram of GW-7552-B / GW-7552-M
2.2 Pin Assignment
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 8
Figure 3 Pin assignment of GW-7552-B / GW-7552-M
Table 3 14-pin screw terminal block
Pin
Name
Description
1
D+
Data+ of RS-485
2
D-
Data- of RS-485
3
-
N/A 4 TX+
Transmit Data+ of RS-422
5
TX-
Transmit Data- of RS-422
6
RX+
Receive Data+ of RS-422
7
RX-
Receive Data- of RS-422
8
-
N/A 9 RX
Receive Data of RS-232
10
TX
Transmit Data of RS-232
11
GND
GND of RS-232
12
-
N/A
13
+VS
V+ of Power Supply(+10 to +30VDC)
14
GND
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: 9
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 7 -
N/A 8 A
Inverting Bus Line
9
-
N/A
2.3 Wiring and Jumper Setting Instructions
The GW-7552-B / GW-7552-M module supports PROFIBUS to Serial Port communication. It is recommended to use only one serial port (RS232, RS485 or RS422) of the Gateway at the same time. The following section describes the necessary steps to be taken to connect one of the three COM port types to a 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.
Figure 4 RS-232 wiring diagram
GW-7552-B/GW-7552-M
RS-232 COM port
RS-232 device
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) 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. The jumpers set the pull high and pull down resistors for the RS-422 port (Figure 6, Figure 7).
Figure 5 RS-422 connection
Table 5 Jumper position for the RS-422 port
Pull high/low resistor
Condition
Enabled
(default)
The GW-7552-B / GW-7552-M is the
master in RS-422 bus or
the number of devices connected to
the RS-422 bus is less than 10
Disabled
The GW-7552-B / GW-7552-M is a
slave in RS-422 bus or
the number of devices connected to
the RS-422 bus exceeds 10
RS-422 port
GW-7552-B/GW-7552-M
RS-422 port
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) 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
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 12
slave in a local RS-485 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-485 network device the four jumpers provided by the module has to be set according to Table 6. The jumpers set the pull high and pull down resistors for the RS-485 port (Figure 9).
Figure 8 RS-485 connection
Table 6 Jumper position for the RS-485 port
Pull high/low resistor
Condition
Enabled
(default)
The GW-7552-B / GW-7552-M is
the master in RS-485 bus or
the number of devices connected
to the RS-485 bus is less than 10
Disabled
The GW-7552-B / GW-7552-M is
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
RS-485 Port
RS-485
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) 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). As with every serial bus the rate of safe data transmission in a Profibus network decreases with increasing distance between master and slave. Table 7 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.65mm
5. Core cross-section : greater than 0.34mm2
Table 7 Transmission rate decreasing with increasing transmission distance
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
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
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 14
active terminal resistor as shown in figure10. 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 figure11.
Figure 10 PROFIBUS connection
Figure 11 PROFIBUS connector
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.
Terminator Switch
Terminator OFF
Terminator ON
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 15
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. Table 8 shows three examples of setting the station address by using the dip switch. The dip switches are accessed by opening the modules housing (Figure
12). Table 9 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 8: Dip switch setting example
Station address
DIP SWITCH(SW1)
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
Table 9: The Address setting of the GW-7552-B / GW-7552-M
Dip Switch Setting
Description
0~125
1. The address setting of the EEPROM is ignored.
2. The address can not be set by the PROFIBUS configuration
tool.
126-254
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-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 16
Figure 12: 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-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.
Table 10: LED status description
LED Name
Status
Description
PWR
flash
When the GW-7552-B / GW-7552-M acts as a Modbus slave device and receiving query message form Modbus master device, PWR led will flash.
on
Power supply is ok. The firmware has loaded.
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 17
LED Name
Status
Description
off
Power supply has failed.
ERR
flash
When the GW-7552-B / GW-7552-M connects with the utility tool, it will flash fast (flash once about 55ms). When the GW-7552-B / GW-7552-M has diagnostic message, it will flash slowly (flash once about 220ms).
on
Connection error between Profibus master and
slave or
Profibus system has not been configured correctly.
off
Normal operation PROFIBUS system has been configured correctly
RUN
on
Data exchange mode Normal operation.
off
GW-7552-B / GW-7552-M module is not in a data exchange mode.
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. In the normal situation, it needs to set the dip switch to the Normal position. In this case, the GW-7552-B module can communicate with Modbus devices. When the user sets the dip switch to the Setting position, the GW-7552-B module
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 18
can communicate with the utility tool to set the safe value.
GW-7552-M module only can connect to Utility via setting the control bit (please refer section 4.6.2 Output data area and communication command) to enable the setting mode of the GW-7552-M.
Figure 14 Dip switch of the GW-7552-B
PS:
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 mode of the GW-7552-B, as shown in table 11.
Table 11 Mode of GW-7552-B
Mode
SM(control bit)=0
SM(control bit)=1
Dip switch=Normal
operation mode
setting mode
Dip switch =Setting
setting mode
setting mode
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 19
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 DOAI、AO data and Profibus master device in data exchange mode, as shown in figure 16.
GW-7552-B / GW-7552-M PROFIBUS/MODBUS GATEWAY User Manual (Version 1.60, May/2017) PAGE: 20
Figure 16 Data exchange between Profibus master device and GW-7552-B / GW-7552-M
The GW-7552-B / GW-7552-M downloads the parameter and configuration from Profibus master device to be the module parameters. The GW-7552-B / GW­7552-M and Profibus master device have different data type and data address, the GW-7552-B / GW-7552-M can transfer different data format to Profibus master device through module parameters. When the GW-7552-B / GW-7552-M 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 17、18.
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: 21
GW-7552-M
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 DIAI memory space, as shown in figure 19、20.
Figure 19 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: 22
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.
Loading...
+ 49 hidden pages