Varec Network Adapter 4000 Installation And Operation Manual Download Page 57

47

4000

Modbus Implementation

9 Modbus Implementation

9.1

Introduction

This protocol guide explains the operation of the Modbus protocol as described in the 

following Modicon document:

PI-MBUS-300 Rev B (1985) implemented in the Varec Model 4000 Advanced 

Technology Transmitter (ATT).

9.2

Implementation

The implementation of the Modbus protocol for the ATT provides a standard form of 

digital communications. An effort has been made to parallel current implementations to 

the greatest extent possible, so that the ATT communicates with existing Modbus 

masters.

Check compatibility carefully to ensure that the ATT is properly configured for the data 

format expected by the host computer. Exceptions made because of the unique 

requirements of the ATT application have been noted. This is no guarantee, however, 

that the interpretation made here will be the same as that followed by the Modbus 

master.

The ATT implementation of the Modbus protocol provides for the passing of measured 

and calculated variables, configuration information, and diagnostics in data registers. 

Data is sent in these registers as floating-point values, integer values, numeric codes 

related to configuration lists, status summary words (packed bits), or individual status 

flags (single bits).

One master and up to 31 ATTs may be multi-dropped on a single EIA485 

communication bus.

The Modbus functions implemented in the ATT are listed in Figure 9-1 on page 48.

9.3

Configuration

The Modbus port on the ATT must be configured to establish communications. The 

Model 1200 Handheld Interface allows the user to set the ATT Modbus port to match the 

Modbus master.

ATT addresses provide unique identification for the host. The ATT address is 

configurable through the Model 1200. This address may range from 1 to 254 and must 

be unique. Each ATT only responds when a query has been sent to its unique address 

by the host.

The Modbus protocol supports two modes of transmission, Remote Terminal Unit (RTU) 

or ASCII (American Standard Code for Information Interchange). The choice between 

these two modes is dependent on the preference of the host. RTU is often the preferred 

protocol because of its improved error detection capabilities and higher throughput. 

ASCII mode uses ASCII printable characters to represent hexadecimal values. This mode 

of transmission requires almost twice as many characters to pass information as does 

the RTU transmission mode. The ATT only supports the RTU mode of communications.

Summary of Contents for Network Adapter 4000

Page 1: ...USA Tel 1 770 447 9202 Fax 1 770 662 8939 www varec com IOM003GVAE0809 4000 Tank Gauge Transmitter Advanced Technology Transmitter for transmission of level and temperature data from the tankside to...

Page 2: ......

Page 3: ...Fax 770 662 8939 Trademarks acknowledged Varec Inc recognizes all other trademarks Trademarks of other products mentioned in this document are held by the companies producing them FuelsManager TankVi...

Page 4: ...be limited to repair or replacement under the standard warranty clause In no case shall the Seller s liability exceed that stated as Limitations of Remedy in the contract between the Seller and Buyer...

Page 5: ...ructions and safety guidelines presented in this manual when using this product If the user does not follow these instructions properly Varec cannot guarantee the safety of the system Note Comply with...

Page 6: ...Advanced Technology Transmitter iv Installation and Operations Manual...

Page 7: ...Communication 6 2 4 5 ATT EIA485 Wiring 7 2 4 6 ATT Mark Space Wiring 9 2 5 Connecting the RTD 10 2 5 1 Connecting the Handheld Terminal 10 2 5 2 Wiring Completion 10 2 5 3 Installation Checkout 10 2...

Page 8: ...Conditions 29 4 5 ATT Configuration Error Checking 29 4 6 Model 1200 Error Messages 30 4 7 Host Communication Loopback Tests 30 5 Specifications 31 5 1 Specifications and Physical Characteristics 31...

Page 9: ...Formats 49 9 5 Integer Registers 49 9 5 1 Integer Data 50 9 5 2 Integer Data 51 9 5 3 Character Data 51 9 5 4 Coded Data 52 9 5 5 Packed Bit Data 52 9 6 Floating Point Registers 53 9 6 1 Floating Poin...

Page 10: ...Tank Gauge Transmitter viii Installation and Operations Manual 10 2 4000GEFMO 63 10 3 4000LJFMO 63 10 4 4000MXFMO 63 10 5 4000WBFMO 64 10 6 4000GMFMO 64 Glossary 65...

Page 11: ...esents a data acquisition and communications system for use in liquid level measurement and or other measurement applications Liquid level measurement is provided by the Advanced Technology Transmitte...

Page 12: ...al communication protocols are supported Among them are Modbus and Mark Space 1 4 Configuration The Varec Model 1200 Handheld Terminal is used to configure the ATT It connects to the same ATTI bus use...

Page 13: ...the contents of the shipping container agrees with the packing list 2 1 2 Storage Prior to Installation If the ATT is to be stored prior to installation it should be repackaged in its shipping contai...

Page 14: ...ain that the word TOP cast into the housing lines up with the top of the Level Gauge back cover 4 Install the Level Gauge back cover with the transmitter in the Level Gauge Make certain that the slot...

Page 15: ...proof seals must be installed in all wiring entries Any unused entries must be plugged with pipe plugs and secured with Loctite or equivalent 2 4 1 ATT Wiring Wiring the ATT is described in the follo...

Page 16: ...o wire the ATT to the host computer depends on the type of host interface option ordered with the ATT Terminal Block One TB1 Terminal Block Two TB2 1 L ATTI expansion Bus power 12 S Space or EIA485 2...

Page 17: ...n reliably travel is dependent on baud rate communication speed wire quality environmental noise wiring configuration and the number of multi dropped ATTs The recommended wire for EIA485 systems is 18...

Page 18: ...ost Computer Interface MODBUS interface is certified by Honeywell Office Printer RS232 To FuelsManager or other MODBUS master Area 1 Area 0 FuelsManager RTU 8130 Model 4000 ATT Transmitters Model 4000...

Page 19: ...through the conduit entry along with the 48 VDC power wiring Connect the Mark line to terminal 11 M 485 and the Space line to terminal 12 S 485 on the terminal block assembly Figure 2 6 Typical Mark...

Page 20: ...aling of all ports is necessary to prevent moisture or other contamination from entering the wiring compartment 2 5 3 Installation Checkout After a thorough check that all connections are correctly ma...

Page 21: ...ected to the ATTI bus It can be physically attached via two banana plugs located inside the terminal block housing The ATT uses the Model 1200 in a different mode of operation Normally the Model 1200...

Page 22: ...f the ATT Enter a D to select Display Mode entries or an A to select Alter Mode entries and press F4 Enter If the Display Mode is selected with a D current status and configuration data may be examine...

Page 23: ...eys F1 through F4 immediately below the display Line 1 of the display contains the menu title Lines 2 and 3 are item display lines Line 4 is an error message status line If the item displayed on line...

Page 24: ...hich permits its modification When a specific set of parameters is available the F1 and F2 keys can be used to scroll through the valid selections When the desired selection is displayed pressing the...

Page 25: ...Setup will overwrite any old configuration in the ATT and should not be used if only some configuration parameters are to be changed Summary Menu1 Contains the ATT s process variable data and diagnos...

Page 26: ...Bad Comm Board3 True if communication board failed loopback test Bad Level Stat3 True if level is bad Bad Temp Stat3 True if temperature input is out of range Low Battery Stat3 True if battery voltage...

Page 27: ...re sensor attached None Copper RTD or Platinum RTD are valid Use F1 F2 to select Manual Temperature If there is no temperature sensor this is the value displayed and returned for temperature Noise Rej...

Page 28: ...to the Mark Space bus and will add the temperature portion of the reply to complete a 56 bit response Yes or No are valid Temp to Sim4 Temperature units to simulate on the traditional Mark Space repl...

Page 29: ...minal and your mind changes simply exit the 1200 Hand Held Terminal Main Menu using the QUIT command This works since no configuration is changed or used unless the EXIT AND SAVE command is executed f...

Page 30: ...High Level 80 0 0 Advisory Low Level 0 Critical Low Level 0 Level Deadband 0 1 0 Critical High Temp 500 Advisory High Temp 500 Advisory Low Temp 0 Critical Low Temp 0 Temp Deadband 1 Host Configurati...

Page 31: ...Low Level 0 Critical Low Level 0 Level Deadband 0 83 Critical High Temp 500 Advisory High Temp 500 Advisory Low Temp 0 Critical Low Temp 0 Temp Deadband 1 Host Configuration Type Mark Space Address 99...

Page 32: ...h Level 20 0 Advisory Low Level 0 Critical Low Level 0 Level Deadband 0 03 Critical High Temp 250 0 Advisory High Temp 250 0 Advisory Low Temp 0 Critical Low Temp 0 Temp Deadband 1 Host Configuration...

Page 33: ...Level 0 Critical Low Level 0 Level Deadband 0 03 Critical High Temp 250 0 Advisory High Temp 250 0 Advisory Low Temp 0 Critical Low Temp 0 Temp Deadband 1 Host Configuration Type Mark Space Address 9...

Page 34: ...ion establishes the same default parameters as the Imperial decimal 1900 quick setup with the exception that the sensor to emulate parameter is the 1800 MWT 3 5 7 0 20 Meters 1800 Series Transmitter Q...

Page 35: ...itical High Level 80 0 0 Advisory High Level 80 0 0 Advisory Low Level 0 Critical Low Level 0 Level Deadband 0 1 0 Critical High Temp 500 Advisory High Temp 500 Advisory Low Temp 0 Critical Low Temp 0...

Page 36: ...D Manual Temperature 0 0 Critical High Level 20 0 Advisory High Level 20 0 Advisory Low Level 0 Critical Low Level 0 Level Deadband 0 03 Critical High Temp 250 0 Advisory High Temp 250 0 Advisory Low...

Page 37: ...ipped with the battery turned off The battery is really low or bad Someone has actually turned the battery off from the host computer or via the Handheld Terminal if an extended power outage was antic...

Page 38: ...then use the EXIT AND SAVE option under the Main Menu BAD EEPROM The value written to EEPROM memory did not match the value read back from EEPROM memory This is a critical alarm Contact the factory B...

Page 39: ...een caused by a sudden power outage a failure in the EEPROM memory or an invalid configuration received from a host computer Status Condition Description FIELD CONFIG MODIFIED Set when the configurati...

Page 40: ...on INVALID ANSWER The operator was expected to enter either a Y for yes or an N for no and something different was entered INVALID FLOAT The operator entered an invalid floating point number The prope...

Page 41: ...densing Transient Lightning Meets ANSII IEEE C62 41 EMI Meets SAMA 33 1C Vibration Shock Meets SAMA PMC 31 1 Item Specification Housing Aluminum NEMA 4X NEMA 7 Bolts Plated carbon steel per ASTM A449...

Page 42: ...pe Absolute with Calibrated Level Calibration Level Software Configured Units of Measure Software Configured Direction of Rotation Software Configured Rotational Speed 1000 RPM Maximum Gear Ratio 1 1...

Page 43: ...llowing standards for explosion proof installations 5 2 2 Intrinsic Safety The ATT is not an intrinsically safe device and must not be opened or wired while power is applied Agency Acronym Agency Requ...

Page 44: ...tion and Operations Manual 5 3 Major System Assemblies and Components The major assemblies and components for the Model 4000 are identified in Table 5 1 and Table 5 2 and illustrated in Figure 5 1 Fig...

Page 45: ...t Batteries quantity 2 P117 01 004 4 Terminal Board Assembly 08 10702 5 GPE Terminal Board 08 11515 6 Mark Space Communications Module 08 10674 7 EIA 485 Communications Module 08 10677 8 Matrix Commun...

Page 46: ...Specifications Tank Gauge Transmitter 36 Installation and Operations Manual...

Page 47: ...1315 M4 Mark Space 48 MODBUS GM GSI Type MODBUS 20 Approvals CS Explosion Proof Class I Groups C D ETL tested to CSA standards FM Explosion Proof Class I Groups C D ETL tested to FM standards 30 Moun...

Page 48: ...Ordering Information Tank Gauge Transmitter 38 Installation and Operations Manual...

Page 49: ...tion count provided by the ATT and the count provided by the count register Circuitry is provided to monitor the health of the back up battery When the battery voltage indicates the battery is near th...

Page 50: ...ATT EIA485 Modbus Mark Space GPE Loop Communications TIWAY Communications L J Tankway Communications Varec Mark Space Matrix GSI Modbus 7 6 Level Measurement The HART Level Encoder utilizes a propriet...

Page 51: ...ent The ATT measures temperature directly using a high accuracy 16 bit analog to digital converter Temperature inputs can be either a 3 wire Copper or Platinum RTD Optionally the temperature can be ma...

Page 52: ...Varec field interfaces such as the Tank Polling Unit TSU or RTU 8130 The ATT automatically determines if it is being polled as an 1800 1900 transmitter When polled the ATT will respond based on the co...

Page 53: ...est message and places the Modbus reply in a Mark Space reply frame This option is only available with systems using the Model 6840 Tank Polling Unit 7 12 Compatibility with Varec Tank Polling Unit Th...

Page 54: ...Theory of Operation Tank Gauge Transmitter 44 Installation and Operations Manual...

Page 55: ...point on the ATTI bus to communicate with the Model 4040 The user may select any of the following parameters for display on each of the two lines Level default Temperature RTD default or Average Statu...

Page 56: ...mally use address 4 5 or 6 Active state jumper for each digital output Jumper determines if contact is N O or N C Default power condition for each digital output Jumper determines if contact is open o...

Page 57: ...r values numeric codes related to configuration lists status summary words packed bits or individual status flags single bits One master and up to 31 ATTs may be multi dropped on a single EIA485 commu...

Page 58: ...Code Status word Floating point Read output registers 04 Read Integer Code Status word Floating point Read input registers 05 Write Bits Force single output status 06 Write Integer Code Status word P...

Page 59: ...d in one of the following four formats Integer Data a scaled number from 0 to the maximum Modbus integer Character Data 2 ASCII characters per 16 bit register ex date password Coded Data Multiple choi...

Page 60: ...rectly interpreted these scaling factors must match the format expected by the host system Scaling of the integer parameters is accomplished through floating point registers or by using the Model 1200...

Page 61: ...calculated parameters has no effect on those parameters 9 5 3 Character Data Character data such as software version are returned in registers in ASCII data format Each Modbus register represents two...

Page 62: ...s have been packed this way for systems that prefer handling only register information These bits may also be read or written individually using a bit command The bits within the packed registers are...

Page 63: ...expected by the host In addition where possible data is available in both integer and floating point formats 9 6 2 The Two 16 bit Registers Format Function code 03 or 04 is used to read floating poin...

Page 64: ...g written into the Advisory High Temperature Alarm Setpoint register 12 000C Hex 9 6 6 Floating Point Data Hexadecimal representation 42 C8 00 00 Decimal equivalent 100 00 Floating point registers tha...

Page 65: ...Advisory Alarm OFF Bit 3 High Critical Alarm ON Bit 4 Unauthorized Mass Movement OFF Bit 5 Standard Density Alarm OFF Bit 6 Critical Zone Alarm ON 9 8 Exception Responses The exception responses retur...

Page 66: ...is a request to return query data Upon receiving a loopback message containing this code the ATT will echo the message sent by the host The entire message returned will be identical to the message tr...

Page 67: ...set of pull up or pull down resistors are required per twisted pair cable 9 12 Integer Register Map Register Number Type Description 0 Scaled Level 1 Scaled Temperature 2 Reserved 3 Reserved 4 Reserv...

Page 68: ...caled Adv High Level Setpoint 13 Scaled Crit High Level Setpoint 14 Scaled Level Deadband 15 Scaled Crit Low Temp Setpoint 16 Scaled Adv Low Temp Setpoint 17 Scaled Adv High Temp Setpoint 18 Scaled Cr...

Page 69: ...oat RTD Resist 106 Reserved Float 108 Reserved Float 110 Float Crit Low Level 112 Float Adv Low Level 114 Float Adv High Level 116 Float Crit High Level 118 Float Level Deadband 120 Float Crit Low Tem...

Page 70: ...d 223 Reserved 224 Reserved 225 Code Damping Value 226 Code A D Noise Reject Type 227 Reserved Reserved 228 Reserved 229 Reserved 230 Float Crit Low Level 232 Float Adv Low Level 234 Float Adv High Le...

Page 71: ...13 14 15 16 17 18 19 20 21 Level Temp RTD Resist Reserved Reserved Crit Low Level Adv Low Level Adv High Level Crit High Level Level Deadband Crit Low Temp Adv Low Temp Adv High Temp Crit High Level T...

Page 72: ...Modbus Implementation Tank Gauge Transmitter 62 Installation and Operations Manual...

Page 73: ...ransmitters the communication option is restricted to the GPE Level Protocol format This format utilizes what is referred to as short and long data responses regarding level temperature and status Bec...

Page 74: ...rmat because of its redundant dual port capabilities and the bipolar signal circuitry design The advanced circuitry allows the ATT to communicate without error at 9600 baud through 2 data ports simult...

Page 75: ...users advanced warnings of unusual situations ATT Varec Model 4000 Advanced Technology Transmitter ATTI Bus Unpowered non intrinsically safe HART compatible communication bus used on ATT Baud Rate A...

Page 76: ...ation and standards that are widely used IEEE 754 A floating point data format o K Kelvin A unit of measure for temperature readings typically applied to the measurement of liquefied gases 0 o C 273 1...

Page 77: ...he band that a temperature alarm must clear before the alarm is reset Temp Temperature TSU Tank Polling Unit A Varec interface unit that allows a host computer to interface to Varec Mark Space Remote...

Page 78: ...Tank Gauge Transmitter 68 Installation and Operations Manual...

Page 79: ...69 4000 NOTES...

Page 80: ...ax 1 770 662 8939 2004 Varec Inc All Rights Reserved This document is for information purposes only Varec Inc makes no warranties express or implied in this summary The names of actual companies and p...

Reviews: