Page 1
G1003 HART to Modbus Gateway User Manual Microcyber Corporation...
Page 2
Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions. Microcyber Corporation 2015 The technical data may change at any time.
Page 4
4.2 O ....................16 VERVIEW OF ONFIGURATION OFTWARE 4.3 S ................18 OFTWARE ONFIGURATION AND ARDWARE ONNECION 4.4 B ................20 ASIC ARAMETER ONFIGURATION FOR ODBUS HANNEL 4.5 B HART C ................21 ASIC ARAMETER ONFIGURATION OF HANNEL 4.6 P HART C ................
The gateway realizes protocol converting from HART to Modbus RTU / ASCII. Supporting to connect multi HART slave devices into Modbus network. In the gateway, HART terminal is master station, Modbus terminal is slave station. Figure 1 G1003 HART to Modbus Gateway Product Diagram 1.1 Outline Structure 1.1.1 Gateway Dimension Figure 114.5...
Modbus gateway, easily realize the function that Modbus master station accesses to HART network data. Modbus Master Modbus Remote IO G1003 HART Slave Figure 11 Topology Connection for Gateway Application 3.1 Working Modes of the Gateway The HART to Modbus gateway has four working modes, respectively is normal working mode, HART modem mode, configuration mode and debugging mode.
3.1.2 HART Modem Mode The Gateway transfers all the data between HART master system and slave network by unvarnished transmission mode. The gateway may be completely used as HART modem. Modbus channel transmits data according to HART channel’s communication parameters (baud rate: 1200bps, 8-bit data bit, odd parity, 1-bit stop bit).
slave device, the data will be temporarily stored into data input area inside the gateway; When the gateway needs to send a user configuration command to HART slave device, the data will be read from data output area inside the gateway. After the HART to Modbus gateway is powered on, it will send HART command 0 to query if the configured device is online, and set whether online mark of the corresponding device by judging whether there’s response from slave device.
all occupy the Modbus channel, namely the three hardware interfaces can be connected at the same time, but cannot communicate at the same time. 3.4 Data Area inside the Gateway Internal data area of the HART to Modbus gateway is shared by HART channel and Modbus channel.
3.4.2 Partition of Internal Data Area Partition of data area inside the HART to Modbus gateway is shown in Figure13: Function code: Data output area 0x03/0x06/0x10 Data input area Data Area Basic data of addr 0 HART slave device Function code:0x04 Basic data of addr 1 HART slave device Basic data of addr 2 HART slave device Basic data of addr 15 HART slave device...
Page 17
in the table below: Table 9 Basic Data Information of Each HART Slave Device Data Area Data Byte Description Data Resource Byte Offset Type Number Byte Auto-polling mode command status Produced by Gateway Byte Response Code (RC) HART response frame Byte Device status (DS) HART response frame...
Page 19
Data Output Area Frame Frame Write data head Frame Frame Read data head Data Input Area Figure 14 Data Input / Output Area Access When sending self-defined HART command package, the data of data domain is written by the user in data output area, and the user shall ensure its correctness. - 15 -...
4.1 Install and Start Configuration Software Before configuring the HART to Modbus gateway, Modbus General Configuration tool must be installed (You can download the latest version from www.microcyber.cn/en). Then run file “Modbus General Configuration tool.exe”, following installation notes, you may install the software smoothly.
Page 21
Figure 15 Main Interface of Configuration Software ① Menu Bar File, the user executes menu "File"- >"Exit" or click close button at top right corner of the window, the configuration software will exit; Tool, include “Language Setting” function, support Chinese and English ...
Figure 16 Device List Interface ④ Device Information Display manufacturer information ID, device type ID and protocol type, etc. ⑤ Parameter Area Display device configuration parameters by sort in the form of table, and can view and configure the gateway parameters through this parameter area. ⑥...
Page 23
Device with the left button with the left button, or use “Search All Devices” the list to search devices with the left button. (5) Until now, G1003 shall be shown in the tree list of “Host->COMx”at the left side of configuration software. Click G1003 with the left button, the configuration software shall read out gateway’s all the current configuration parameters, and show in the...
Figure 19 Interface for G1003 On-line 4.4 Basic Parameter Configuration for Modbus Channel Here it describes basic paramete configuration for Modbus channel, and the paramaters are effetice when the gateway is working at mormal mode. Choose “Modbus Configuration” in “Parameter List” in the parameter zone of configuraiton software, and it will show current configuration of Modbus channel, as Figure 20.
Table 12 Modbus Configuration Parameter Description Parameter Name Parameter Description Baud Rate 300,600,1200,2400,4800,9600,19200,38400,57600,115200bps, optional 7 bits or 8 bits, optional (When the communication mode is set as RTU, 7 Data Bits bits is unmeaning.) Parity None, Even or Odd, optional. Stop Bits 1 bit or 2 bits, optional CRC Byte Order...
Choose HART network’s topology connection is point to point or Network Mode multi-drop mode. In point to point mode, gateway can only communicate with HART slave with address 0. Master Type Choose gateway to work as primary or secondary master. It is used to configure short address (polling address)of slave Short Addr List device in HART network, range is 0-15.And it has many options.
choosing a command, the user may modfy the command property and uses “Modify”to finish it. “Delete”shall delete the selected command. And each added command shall have the same property: Custom HART command parameter’s description is shown as following: Table 14 Custom HART Command Parameter Description Parameter Name Parameter Description Current command index, range is 0-99;...
without conflict, according to use’s configuration type length in input output zone. Click to finish the automatic distribution. 4.6.2 Address Conflict Detection Through conflict detection function The user may check distribution status for all the configured commands’ input and output data in memory, to check if there is a conflict. Click to see Figure 23.
(2) Use a serial line (or 485/422 convert serial line)to connect gateway’s RS232 interface and PC serial port, and then power the gateway on, at this time, the gateway is under debugging mode. (3) Start configuration software, after G1003 is powered on, click to see memory display shown as Figure 24.
.xml file, shown as Figure 25. Figure 25 Library File Save Choose “HART” in the library type, and input the name G1003, and click “Save”, then G1003.xml file has beed added to HART index under the tree list in the left.
Page 31
Figure 26 Modbus Parameter Configuration Example HART configuration data is shown as Figure 27, and after the configuration, the user shall click “Download the current page parameters”. Figure 27 HART Parameter Configuration Example To configure 2 HART custom commands, command 2 and command 34: Command 2 is to read loop current value and range percentage and command 34 is to write damping value.
HART commands and obtain device info with with slave address 0. 4.9.2 Verificaion The user shall connect a HART pressure transmitter to G1003’s HART interface, and connect RS232 (or RS485/RS422 via 485/422 to RS232 converter), shown as Figure 29. 24VDC...
Page 33
Figure 30 Memory Display Command 2 is “Read loop current and percent of range”, and there is only response data and no request data. The first 4 byte groups make up the floating current valve, and the last 4 byte groups make up the floating percentage. Command 34 is “Write PV damping value”...
Chapter 5 Gateway Status Shown as Figure 31, click the configuration software tool bar’s gateway status monitor the user may check gateway’s current working status and if the slave device in HART network is on-line or not. Figure 31 Gateway Status Monitor The current working mode represents gateway’s present working mode, and the user may judge if the MC is at the requested position.
Chapter 6 Gateway Maintenance Simple Maintenance Normal Abnormal Colour Reasons Solution Status Status Power failure Check power and connection Yellow Internal failure Contact technical support Check configuration Wrong gateway parameter, if there is HART configuration command in the configuration Yellow Gateway is under Flickering...
Chapter 7 Technical Specificaions 7.1 Performance Name Description Gateway Power 9~30VDC Modbus Interface RS-232/RS-422/RS485 HART Interface HART digital signal Consumption Interface Input ≥5KΩ Inpedance HART Interface Voltage 50VDC Insulation Value 500mVpp (500Ω) HART Output Amplitude Humidity Range (5~95)%RH Working Temperature -20℃~70℃...
Modbus Communication Support Modbus slave RTU and ASCII communication mode Mode Modbus Function Code 0x03/0x04/0x06/0x10 7.2 Default Communication Parameter Modbus Default Communication Parameter Normal working mode / HART Modem mode configuration mode debug mode Baud Rate 19200 1200 Date Bits Rarity Even Stop Bits...
Appendix A Gateway Memory and Register Description Corresponding Gateway Function Type Modbus register Usage description Register repair memory offset address InData 2000 ~ 6999 1000 ~ 3499 User defined HART command data input field, to cache response data from HART slave device 7000 3500 H State byte indicating if Command 0,3,13,14,15 is sent successfully...
Page 39
32 bit Floating point 0x42 0x01 0x47 0xAE data (32.32) When a HART slave station device that connected with G1003’s HART interface off-line (power down), G1003 will keep the latest HART slave station device information before power down. - 35 -...
Appendix B HART Protocl HART protocol, proposed by Rosemount, is a kind of communication protocol used between intelligent instrument and control cabnet device. It’s a transitional protocol from 4~20mA analogue signal to digital signal. To overlay a digital signal on 4~20mA analogue signal, the original analogue signal is still valid, and they two will not affect each other.
Page 41
field end) HART application layer includes three kinds of HART command. It’s used to operate data, including universal command, common command and special command. HART universal command is introduced as below: Command 0: Read Unique Identifier Request Data Bytes Byte Format Description...
Page 42
Command 1: Read Primary Variable Request Data Bytes Byte Format Description None Response Data Bytes Byte Format Description Enum Primary Variable Units Float Primary Variable Command 2: Read Loop Current and Percent of Range Request Data Bytes Byte Format Description None...
Page 43
Enum Quaternary Variable Units Code 20-23 Float Quaternary Variable Command 4: Reserved Command 5: Reserved Command 6: Write Polling Address, that is Device Short Address Request Data Bytes Byte Format Description Unsigned-8 Polling Address of Device Enum Loop Current Mode Response Data Bytes Byte...
Page 45
Enum Slot 3: Units Code 28-31 Float Slot 3: Device Variable Value Bits Slot 3: Device Variable Status Unsigned-8 Slot 4: Device Variable Code Enum Slot 4: Device Variable Classification Enum Slot 4: Units Code 36-39 Float Slot 4: Device Variable Value Bits Slot 4: Device Variable Status Unsigned-8...
Page 46
Command 12:Read Message Request Data Bytes Byte Format Description None Response Data Bytes Byte Format Description 0-23 Packed Message Command 13:Read Tag, Descriptor, Date Request Data Bytes Byte Format Description None Response Data Bytes Byte Format Description Packed 6-17 Packed Descriptor...
Page 47
Command 15:Read Device Information Request Data Bytes Byte Format Description None Response Data Bytes Byte Format Description Enum PV Alarm Selection Code Enum PV Transfer Function Code Enum PV Upper and Lower Range Values Units Code Float PV Upper Range Value(URV) 7-10 Float PV Lower Range Value(LRV)...
Page 48
Command 18:Write Tag, Descriptor, Date Request Data Bytes Byte Format Description Packed 6-17 Packed Descriptor 18-20 Date Date code Response Data Bytes Byte Format Description Packed 6-17 Packed Descriptor 18-20 Date Date code Command 19:Write Final Assembly Number Request Data Bytes Byte Format...
Page 49
Response Data Bytes Byte Format Description Same as Command 0 Read Unique Identifier. Command 22:Write Long Tag Request Data Bytes Byte Format Description 0-31 Latin-1 Long Tag Response Data Bytes Byte Format Description 0-31 Latin-1 Long Tag Command 38:Reset Configuration Changed Flag Request Data Bytes Byte Format...
Page 50
Response Data Bytes Byte Format Description Bits or Enum Device-Specific Status Bits Extended Device Status Bits Device Operating Mode,0x00 Bits Standardized Status 0 Bits Standardized Status 1 Bits Analog Channel Saturated Bits Standardized Status 2 Bits Standardized Status 3 Bits Analog Channel Fixed 14-24 Bits or Enum...
Appendix C Modbus Protocl Statement: The objective of this document is only to present the MODBUS protocol to users. 1) Modbus protocol is mainly used between controllers. By Modbus, two controllers can communicate with each other or they can rely on network (e.g. Ethernet) to communicate with other devices.
Page 52
3) Modbus defines two kinds of Character transfer mode: ASCII mode、 RTU (binary system) mode, and they cannot be mix-up.This product is suitable for these two modes. Features RTU mode ASCII mode Coding binary system ASCII(Print character:0-9,a-z,A-Z) Each character start bit:1BIT start bit:1BIT...
Need help?
Do you have a question about the G1003 and is the answer not in the manual?
Questions and answers