Varec 4000 manual Data Out of Range, Loopback Test, Hardware Implementation

Page 64

Modbus Implementation

Tank Gauge Transmitter

 

 

9.9Data Out of Range

When integer data calculated by the ATT is outside the minimum or maximum scale points or is otherwise out of range, the value returned is that of the maximum Modbus integer + 1. For example, if the maximum Modbus integer is 65,534 (as used in our previous examples) the "data out of range" value is 65,535. The "data out of range" convention does not apply to the status bits, packed status bits, character data, and coded data.

The following error conditions will also cause the ATT to return scaled integer values of maximum Modbus integer + 1.

Off-line Mode

Strap Error

No CALC

API Correction Error

CALC Error

This permits a host to detect a serious failure without monitoring other ATT status bits.

9.10Loopback Test

In accordance with the Modbus specification, function code 8 initiates a loopback test. The purpose of this test is to check the communication system. It does not affect the operation of the ATT. The ATT supports only diagnostic code

00.This 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 transmitted by the host field-per-field. An example of a loopback message is as follows:

Host Request

Address

Function

Code HO

Code LO

Data

Data

Error

 

Code

 

 

 

 

Check

 

 

 

 

 

 

 

01

08

00

02

F3

26

XX

 

 

 

 

 

 

 

ATT Response

 

 

 

 

 

Address

Function

Code HO

Code LO

Data

Data

Error

 

code

 

 

 

 

Check

01

08

00

00

F3

26

XX

 

 

 

 

 

 

 

9.11Hardware Implementation

The ATT uses a 2-Wire EIA485 hardware interface to communicate with the Modbus master. EIA485 is a high speed differential communications network which allows up to 32 devices to operate on one network. The ATT and Modbus master share a twisted pair of wires to communicate.

The communication distance EIA485 can 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-gauge or larger, shielded, twisted pairs. The shield should be earth grounded at the Modbus master (control system or computer end). The shield at the ATT should be open. The ATT- power line acts as a common reference tie to the Modbus master

Termination resistors of 120 Ohms are shown at each end of the communication bus to minimize reflections on the line. Termination resistors may not be necessary at baud rates of 9600 bits per second or slower. Pull-up and pull- down resistors are also shown at the Modbus master end of the cable. These resistors minimize the affects of noise when the lines are idle. Only one set of pull-up or pull-down resistors are required per twisted pair cable.

54

Installation and Operations Manual

Image 64
Contents Installation Operations Manual Page Copyright Disclaimer of Warranties Safety Precaution Definitions Safety Precautions Tank Gauge Transmitter Introduction Tank Gauge Transmitter Glossary Tank Gauge Transmitter Viii Using This Manual IntroductionOperation ConfigurationConstruction Installation Mounting the Equipment Part Number Gauge Adapter KitWiring ATT WiringWiring Preparation Connecting Input PowerConnecting Host Communication Terminal Block One TB1 Terminal Block Two TB2ATT EIA485 Wiring Typical EIA485 WiringTypical EIA485 System Wiring ATT Mark/Space Wiring Typical Mark/Space Field WiringConnecting the RTD Connecting the Handheld TerminalWiring Completion Installation CheckoutConfiguration Configuration Parameters1200 Hand Held Terminal Function Key DescriptionTerminal Mode Configuration Terminal Mode Operation 1200 Hand Held TerminalMenu Operation Main Menu Main Menu DescriptionSummary Menu Summary Menu DescriptionConfiguration Menu Configuration Menu DescriptionHost Menu Host Menu DescriptionQuick Setup General Configuration Imperial Fractional 1900 Quick Setup DefaultsHost Configuration Imperial Decimal 1900 Quick Setup Defaults 3 0-20 Meter 1900 Quick Setup Defaults 4 0-30 Meter 1900 Quick Setup Defaults Imperial Fractional 1800 Series Transmitter Quick Setup Imperial Decimal 1800 Series Transmitter Quick Setup7 0-20 Meters 1800 Series Transmitter Quick Setup 8 0-30 Meters 1800 Series Transmitter Quick SetupImperial Modbus Quick Setup Defaults Metric Modbus Quick Setup Defaults Maintenance Maintenance and TroubleshootingBattery Replacement ATT Error Status Conditions TroubleshootingError Message Description ATT Status Conditions ATT Configuration Error CheckingStatus Condition Description Model 1200 Error Messages Host Communication Loopback TestsSpecifications Specifications and Physical CharacteristicsInput Power EnvironmentalLevel Measurement Safety Agency Approvals Intrinsic SafetyExplosion Proof Agency Acronym RequirementAssembly/Component Part Number Major System Assemblies and ComponentsOrder Codes CommunicationsOrder Codes Theory of Operation CPU BoardBack-up Battery Status Inputs and OutputsAtti Communications Port Host Communications InterfacesTemperature Measurement Encoder Battery BackupHost Communication Function Number Mark/Space Host InterfaceNumber Exception Modbus Support over Mark/Space Host Interface Compatibility with Varec Tank Polling UnitTheory of Operation ATT Family of Products Model 4040 Display UnitRelay Specifications Model 4050 Digital Input/Output UnitDigital Outputs Digital InputsIntroduction Modbus ImplementationImplementation Modbus Implementation Integer Registers Functions and Data FormatsTerm Definition Host Request Integer DataATT Response Character Data Coded Data Packed Bit DataFloating-Point Registers Floating-Point DataTwo 16-bit Registers Format Floating Point DataOne 32-bit Register Format Status Bits Status Bit DataException Responses Exception Response ReasonLoopback Test Data Out of RangeHardware Implementation Integer Register Map Register Number Type DescriptionRegister Number Sw Ver0-1 Noise Reject Type Floating Point Register Map Status Bit Register MapModbus Implementation Optional Interfaces 10.1 4000TIFMO10.2 4000GEFMO 10.3 4000LJFMO10.5 4000WBFMO 10.6 4000GMFMOGlossary Adv Hi LevelDband TSU Tank Gauge Transmitter 4000 Your official representative Your offical representative