Varec 4000 manual Modbus Implementation, Introduction

Page 55

4000

Modbus Implementation

 

 

9 Modbus Implementation

9.1Introduction

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.2Implementation

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 46.

9.3Configuration

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.

45

Image 55
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 Introduction Using This ManualOperation ConfigurationConstruction Installation Part Number Gauge Adapter Kit Mounting the EquipmentConnecting Input Power WiringATT Wiring Wiring PreparationTerminal Block One TB1 Terminal Block Two TB2 Connecting Host CommunicationTypical EIA485 Wiring ATT EIA485 WiringTypical EIA485 System Wiring Typical Mark/Space Field Wiring ATT Mark/Space WiringInstallation Checkout Connecting the RTDConnecting the Handheld Terminal Wiring CompletionFunction Key Description ConfigurationConfiguration Parameters 1200 Hand Held TerminalTerminal Mode Configuration 1200 Hand Held Terminal Terminal Mode OperationMenu Operation Main Menu Description Main MenuSummary Menu Description Summary MenuConfiguration Menu Description Configuration MenuHost Menu Description Host MenuQuick 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 8 0-30 Meters 1800 Series Transmitter Quick Setup Imperial Fractional 1800 Series Transmitter Quick SetupImperial Decimal 1800 Series Transmitter Quick Setup 7 0-20 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 Host Communication Loopback Tests Model 1200 Error MessagesEnvironmental SpecificationsSpecifications and Physical Characteristics Input PowerLevel Measurement Agency Acronym Requirement Safety Agency ApprovalsIntrinsic Safety Explosion ProofMajor System Assemblies and Components Assembly/Component Part NumberCommunications Order CodesOrder Codes CPU Board Theory of OperationHost Communications Interfaces Back-up BatteryStatus Inputs and Outputs Atti Communications PortTemperature Measurement Encoder Battery BackupHost Communication Function Number Mark/Space Host InterfaceNumber Exception Compatibility with Varec Tank Polling Unit Modbus Support over Mark/Space Host InterfaceTheory of Operation Model 4040 Display Unit ATT Family of ProductsDigital Inputs Relay SpecificationsModel 4050 Digital Input/Output Unit Digital OutputsIntroduction Modbus ImplementationImplementation Modbus Implementation Integer Registers Functions and Data FormatsTerm Definition Host Request Integer DataATT Response Character Data Packed Bit Data Coded DataFloating Point Data Floating-Point RegistersFloating-Point Data Two 16-bit Registers FormatOne 32-bit Register Format Exception Response Reason Status BitsStatus Bit Data Exception ResponsesLoopback Test Data Out of RangeHardware Implementation Register Number Type Description Integer Register MapRegister Number Sw Ver0-1 Noise Reject Type Status Bit Register Map Floating Point Register MapModbus Implementation 10.3 4000LJFMO Optional Interfaces10.1 4000TIFMO 10.2 4000GEFMO10.6 4000GMFMO 10.5 4000WBFMOAdv Hi Level GlossaryDband TSU Tank Gauge Transmitter 4000 Your official representative Your offical representative