Varec 4000 manual Functions and Data Formats, Integer Registers, Term Definition

Page 57

4000

Modbus Implementation

 

 

9.4Functions and Data Formats

The Modbus data in the ATT is arranged in integer registers, floating point registers, and status bits. The assignments for these registers are found at the end of this appendix.

Function codes 03, 04, 06, and 16 are used with integer registers.

Because of the multiple Modbus hosts available today, the ATT supports two floating-point data formats: a two 16- bit register format and a one 32-bit register format. These two formats provide maximum system flexibility. In the two 16-bit registers format, function codes 03 and 04 are used to read floating-point registers while function code 16 is used to write floating-point registers. In the one 32-bit register format, function code 65 is used to read floating- point registers, while function code 66 is used to write floating-point registers.

Function codes 01, 02, 05, and 15 are used with status bits.

A complete description of all the preceding commands, except floating point, can be found in the Modicon Modbus Protocol Reference Guide, document number PI-MBUS-300 Rev B.

9.5Integer Registers

Integer registers are the most commonly used type of Modbus data and are supported by most Modbus hosts. In the ATT implementation, the Modbus registers are arranged 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 choice configuration data chosen from a coded list

Packed Bit Data - Register form of 16 packed single bits

The integer, character, and coded data registers contain all of the information needed to configure and read process data. Any integer register may be read with function code 03 or function code 04. These same registers may be written one at a time with function code 06 or multiple registers can be written with function code 16.

For future compatibility, the ATT accepts reads and writes to reserved registers. Writes to reserved registers have no effect. Reads from reserved registers return a zero (0).

Term

Definition

Address

User-assigned address of the slave device

 

 

Function Code

Function the slave is to perform

 

 

Start Register (H)

High-order data address byte of the number of registers to read

 

or write

 

 

Start Register (L)

Low-order data address byte of the first register to read or write

 

 

Number of Registers (H)

High-order byte of the number of registers to read or write

 

 

Number of Registers (L)

Low-order byte of the number of registers to read or write

 

 

Byte Count

Number of data bytes

 

 

Data MSB

Data register's most significant byte

 

 

Data LSB

Data register's least significant byte

 

 

Status Bit (H)

High-order data address byte of the first bit to read or write

 

 

Status Bit (L)

Low-order data address byte of the first bit to read or write

 

 

Error Check

Message checksum CRC (Cyclical Redundancy Check)

 

 

47

Image 57
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 ManualConfiguration OperationConstruction Installation Part Number Gauge Adapter Kit Mounting the EquipmentATT Wiring WiringWiring Preparation Connecting Input PowerTerminal 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 WiringConnecting the Handheld Terminal Connecting the RTDWiring Completion Installation CheckoutConfiguration Parameters Configuration1200 Hand Held Terminal Function Key DescriptionTerminal 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 Imperial Fractional 1900 Quick Setup Defaults General ConfigurationHost Configuration Imperial Decimal 1900 Quick Setup Defaults 3 0-20 Meter 1900 Quick Setup Defaults 4 0-30 Meter 1900 Quick Setup Defaults Imperial Decimal 1800 Series Transmitter Quick Setup Imperial Fractional 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 and Troubleshooting MaintenanceBattery Replacement Troubleshooting ATT Error Status ConditionsError Message Description ATT Configuration Error Checking ATT Status ConditionsStatus Condition Description Host Communication Loopback Tests Model 1200 Error MessagesSpecifications and Physical Characteristics SpecificationsInput Power EnvironmentalLevel Measurement Intrinsic Safety Safety Agency ApprovalsExplosion Proof Agency Acronym RequirementMajor System Assemblies and Components Assembly/Component Part NumberCommunications Order CodesOrder Codes CPU Board Theory of OperationStatus Inputs and Outputs Back-up BatteryAtti Communications Port Host Communications InterfacesEncoder Battery Backup Temperature MeasurementHost Communication Mark/Space Host Interface Function NumberNumber Exception Compatibility with Varec Tank Polling Unit Modbus Support over Mark/Space Host InterfaceTheory of Operation Model 4040 Display Unit ATT Family of ProductsModel 4050 Digital Input/Output Unit Relay SpecificationsDigital Outputs Digital InputsModbus Implementation IntroductionImplementation Modbus Implementation Functions and Data Formats Integer RegistersTerm Definition Integer Data Host RequestATT Response Character Data Packed Bit Data Coded DataFloating-Point Data Floating-Point RegistersTwo 16-bit Registers Format Floating Point DataOne 32-bit Register Format Status Bit Data Status BitsException Responses Exception Response ReasonData Out of Range Loopback TestHardware 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.1 4000TIFMO Optional Interfaces10.2 4000GEFMO 10.3 4000LJFMO10.6 4000GMFMO 10.5 4000WBFMOAdv Hi Level GlossaryDband TSU Tank Gauge Transmitter 4000 Your official representative Your offical representative