Varec TankGate Interface 8315 Series Installation & Operation Manual Download Page 40

8315 L&J Tankway Software Description

TankGate Interface

30 

Installation and Operations Manual

TankGate responds to the following Function Codes:

There are two methods for data addressing within the TankGate

•The TankGate has a fixed Modbus Map of selected parameters

•Gateway Block (GWBLK) software blocks can be configured to set the data address

4.5.2

Fixed Modbus Map

For each version of the TankGate, there is a fixed map of data registers. A partial 

example is shown below:

Function Code

Description

Comments

3

Read Output 

Register

FC 3 and FC 4 are treated the same.  Use either FC 3 or FC 4 

to read data from the TankGate

4

Read Input 

Register

5

Force Single 

Output 

Status

FC 4 and FC 6 are treated the same.  Use either FC 5 or FC 6 

to write data to the TankGate

6

Preset Single 

Register

15

Force 

Multiple 

Outputs

FC 15 and FC 16 are treated the same.  Use either FC 15 or 

FC 16 to write multiple registers to the TankGate

16

Preset 

Multiple 

Registers

Address 

  Type 

Number 

Parameter      

Data Type 

5000

WV1900 

0

Command        

 CODED 

5001

WV1900

0

Level          

 REAL 

5003

WV1900

0

Temp           

 REAL 

5005

WV1900

0

Value          

 REAL 

5007

WV1900

0

Status         

 HEX 

5008

WV1900

0

PntStatus      

 IHEX 

5009

WV1900

0

Elapse         

 TIME 

5011

WV1900

1

Command        

 CODED 

5012

WV1900

1

Level          

 REAL 

5014

WV1900

1

Temp           

 REAL 

5016

WV1900

1

Value          

 REAL 

Summary of Contents for TankGate Interface 8315 Series

Page 1: ...Norcross Atlanta GA 30092 USA Tel 1 770 447 9202 Fax 1 770 662 8939 www varec com IOM035GVAE0405 8315 Series TankGate Interface Data Communication Gateway for L J Tankway MCG 1000 MCG 1500 MCG 2000 D...

Page 2: ......

Page 3: ...opying recording or otherwise without the prior written permission of the Publisher Varec Inc 5834 Peachtree Corners East Norcross Atlanta GA 30096 USA Trademarks acknowledged Varec Inc recognizes all...

Page 4: ...mitations of Seller s Liability In the event that a court holds that this document created some new warranties Seller s liability shall be limited to repair or replacement under the standard warranty...

Page 5: ...pment which can cause injury to personnel may result if this precaution is not followed Safety Precautions READ AND UNDERSTAND THIS INSTRUCTION MANUAL BEFORE INSTALLING OPERATING OR PERFORMING MAINTEN...

Page 6: ...scribes the TankGate Communications module components and configuration Chapter 4 Software This chapter describes the TankGate software components such as communications and functional relationships b...

Page 7: ...2 2 Motherboard Description 6 2 2 1 Power Supply 7 2 2 2 Switches and Indicators 10 2 2 3 Communications 11 2 3 TankGate Communications Cable 14 3 8315 L J Tankway Interface Module 15 3 1 Features 15...

Page 8: ...4 6 Clock CLK 34 4 6 1 Parameters 34 4 7 Communications COM 35 4 7 1 Parameters 35 4 7 2 Application 36 4 8 Floating Point Register FPREG 37 4 8 1 Parameters 37 4 9 Emulator EMU 38 4 9 1 Parameters 3...

Page 9: ...Mounting the TankGate 67 5 3 2 Mounting the Enclosure 68 5 3 3 Select the Unit address 68 5 3 4 Wiring Up Power 68 5 3 5 Grounding 68 5 3 6 Installing Communications 68 6 Using ViewRTU 71 6 1 Overview...

Page 10: ...TankGate 97 7 2 1 LED Displays under normal conditions 97 7 2 2 LED Displays under Abnormal Conditions 98 7 2 3 Using the TankGate Push buttons 98 7 2 4 Performing a Hard Reset 99 7 3 Maintenance 101...

Page 11: ...ries database simple and straightforward 1 1 Versions The TankGate is available in a number of versions that can interface to a variety of field devices and intelligent instrumentation via interface m...

Page 12: ...ead level temperature and status data from gauge transmitter 1 4 3 Host Communication Host comm ports 1 Comm type Com 0 RS 232C Baud Rate 9600 baud Protocol Modbus RTU protocol Mode RTU mode master an...

Page 13: ...9 Humidity 5 95 non condensing 1 4 10 Storage temperature 40 212 F 40 100 C 1 4 11 Mechanical Construction Dimensions HxDxW 2 5 64 mm x 8 6 220 mm x 5 2 133 mm Material Aluminum Powder coated Gauge tr...

Page 14: ...Overview TankGate Interface 4 Installation and Operations Manual...

Page 15: ...5 8300 Hardware 2 Hardware The TankGate consists of an enclosure motherboard single tank gauge interface module and connectors Figure 2 1 TankGate hardware components...

Page 16: ...lly for real time embedded applications the P includes timer counters an interrupt controller and chip select circuitry It also includes 2 serial channels that are designated as COM0 and COM1 2 2 Moth...

Page 17: ...nal block J4 Field Power terminal block J3 Auxiliary DC Power Output terminal block J8 AC Power fuses 500 mA 250V 5x20 mm F1 F2 Field Voltage Selection Jumper W3 EARTH NEUTRAL LINE SURGE GND A TXD B R...

Page 18: ...terminal block referred to as VFIELD is used to provide power for field instruments The output is configurable using jumpers Jumper W3 discussed below Figure 2 5 field Power terminal block 2 2 1 4 Au...

Page 19: ...he Field Voltage Selection Jumper W3 determines the voltage available at the VFIELD terminals J3 The Field Voltage can be configured for 24 VDC or 48VDC At 24VDC EARTH NEUTRAL LINE SURGE GND A TXD B R...

Page 20: ...et A special form of Reset is available for occasions when the battery backed up data base must be re initialized This type of reset the Hard Reset can be performed before a database is downloaded fro...

Page 21: ...ng local programming or communications to a host system The protocol defaults to TankGate Slave at the 9600 baud 8 data bits and no parity for use with ViewRTU or FuelsManager Figure 2 11 Com 0 J7 Ter...

Page 22: ...ndshaking Switch SW1 affects the operation of COM1 Figure 2 12 Com1 SW2 Switch 2 2 3 4 COM1 Hardware Handshaking Switch SW1 For RS 232 there are two different settings One setting is used if hardware...

Page 23: ...tes RS 232 No A UP towards the RS 232 side Use with a PC Signals at terminal block J5 will be RS 232 RS 232 Yes B UP towards the RS 232 side Use to communicate to systems that require Request To Send...

Page 24: ...RXD GND 2 3 5 DB9 Female Pin Signal 2 3 5 RXD TXD GND NOTE Signals on RS485 RS232 converter may have different designations Refer to OFM manual for the converter for more information A B GND TANK GATE...

Page 25: ...rk Space protocol to communicate There are a number of transmitters that are Mark Space compatible including L J MCG 1000 L J MCG 1500 L J MCG 2000 Note The 8315 TankGate uses the 8215 communications...

Page 26: ...ption The components of the 8315 are illustrated in the following figure This section explains how to connect field wiring and to configure jumper settings Unit ID DIP Switch SW 1 LED Indicators D1 D5...

Page 27: ...otherboard Set to 1 for P1 2 for P2 3 for P3 and 4 for P4 Refer to the following figures Figure 3 4 ID DIP Switch settings 3 2 2 LED Indicators D1 D6 The LED displays indicate the status of the Model...

Page 28: ...Model 8315 LED Indicators 3 2 3 External Power Connector 48V J2 Connect the 48 VDC External Power as shown below Figure 3 6 External Power Connector 3 2 4 Surge Shield Ground Connector J4 Connecting...

Page 29: ...al block J3 A schematic illustrating the terminal connections of the Model 8315 is shown below Figure 3 7 Model 8315 Input Circuit Connect the field wiring Connect the wiring following the diagram bel...

Page 30: ...8315 L J Tankway Interface Module TankGate Interface 20 Installation and Operations Manual...

Page 31: ...ing based on real time events and interrupts message passing and task priorities Its capabilities also include timed suspension of tasks queue handlers and interrupt processing tasks 4 1 2 Real Time C...

Page 32: ...a Scanning Task The Data Scanning Task is dedicated to the scanning of field input data from tank gauges The input data is stored in arrays that are subsequently accessed by the Point Executive 4 1 7...

Page 33: ...nly has to add Software Blocks using ViewRTU and then configure a few parameters in order to perform a desired function The purpose of this section is to explain the parameters of each software Block...

Page 34: ...e data values In the case of the AI software block each point manages a single input channel The PARAMETER field represents the items in the data structure of the point type Examples of parameters inc...

Page 35: ...value 0 to 65535 IEEE floating point 32 bit value with mantissa and exponent Time Unsigned Long Integer representing the number of milliseconds since Jan 1 1970 Tag ASCII character strings variable i...

Page 36: ...ch Software Block about the particular use of the PntStatus parameter Elapse Parameter The Elapse parameter usually indicates the time of the last point execution It is used as the basis for automatic...

Page 37: ...ut the data In a typical system this results in a significant improvement in the throughput rate for data When FuelsManager is the Host system the Change of State method has the advantage of being ver...

Page 38: ...TU Slave protocol used with FuelsManager supports either method Note The Modbus protocol is Scan based Therefore the Report and Maxtime parame ters have no meaning Deadband LevelDeadband TempDeadband...

Page 39: ...bus Slave uses the GWBLK Gateway Block as a lookup table for data addresses The Gateway Block allows the user to specify data address and point reference combinations This allows the TankGate to be us...

Page 40: ...and FC 4 are treated the same Use either FC 3 or FC 4 to read data from the TankGate 4 Read Input Register 5 Force Single Output Status FC 4 and FC 6 are treated the same Use either FC 5 or FC 6 to wr...

Page 41: ...ed to provide the data for the reply to the master If the data address is not in any GWBLK point then data will be read using the prevailing Address Mode The Gateway Block GWBLK allows the user to spe...

Page 42: ...8315 L J Tankway Software Description TankGate Interface 32 Installation and Operations Manual In this example the Modbus register map is configured according to the following table...

Page 43: ...t 102 103 WV1900 01 Level 104 105 138 139 WV1900 02 Level WV 1900 19 Level 200 201 WV1900 00 Temp Temperature is in IEEE Floating Point Format 202 203 WV1900 01 Temp 204 205 238 239 WV1900 02 Temp WV1...

Page 44: ...e listed and described below Configuration Parameters Function TZ Time Zone string Dynamic Parameters Function SysTime System Time in the form MM DD YY HH MM SS Writing to this value will change the s...

Page 45: ...re 0 3 The ComPort parameter should never be modified by the user BaudRate Baud Rate for communications to either the Host or Slave system Valid values are 1200 2400 2400 9600 19200 Changing the BaudR...

Page 46: ...ce while communicating to a Host system on the other RespDelay Time in milliseconds that RTU will delay a response to the Host The default is 50 msec SynchMax The SynchMax is used by some slave protoc...

Page 47: ...er point provides four bytes of storage in IEEE floating point format It is often used for inter point communications where no other means is provided 4 8 1 Parameters The database parameters used by...

Page 48: ...set to EMU 00 LevelUnits Specifies the engineering units for the level data F feet m Millimeters M Meters I Inches P ft in 16ths The LevelUnits need to match the units specified during the gauge setup...

Page 49: ...rences for TankView System Addresses 1 50 EMU 1 is associated with System Addresses 51 100 A EMUGW gateway point is automatically created when the protocol for a COM point is set to TSU Slave Dynamic...

Page 50: ...mples include IDAddress to respond to ModeOperational Mode BaudRateBaud Rate used to communicate with TankView ComParamsDefines the number of data bits and the parity used by the com port Examples inc...

Page 51: ...keeps track of the number of requests and number of errors associated with the EMU Slave protocol The current tank number ID and the point associated with the tank number LevelRef are updated as reque...

Page 52: ...point such as its use location operating information etc The default description is set to GS200 00 FastScanMode Places the GS2000 point in the Fast Scan mode Values are Enable or Disable ID Physical...

Page 53: ...presenting the tank temperature The Temperature will be presented in Fahrenheit or Celsius depending upon the TempConvert parameter of the WVSCAN point Alarm Gauge Alarms Not used for the GS2000 point...

Page 54: ...from Metric to English or vice versa can be performed be setting the LevelConvert and the TempConvert parameters in the WVSCAN point associated with the GS2000 point The Level can be offset by enterin...

Page 55: ...ed for the channel The default is 0xFF all COM ports DataMode Integer HEX value that controls the data returned to a Modbus Host 0 Use parameter values 0x01 Convert to Integer 0x02 Return 0xFF if the...

Page 56: ...ch bits in the Filter the data is considered invalid and the a read from a modbus host will result in the data being set to 0xFFFF When Block Read or Write requests are received then the way in which...

Page 57: ...ger Register point provides two bytes of storage It is often used for inter point communications where no other means is provided 4 13 1 Parameters The database parameters used by the IREG point are l...

Page 58: ...e Modbus Slave protocol handler The bits have the following meanings 0x01 Set Param Indexing mode 0x02 Integer Swap mode 0x04 Swap CRC bytes 0x08 ASCII mode 0x20 Wonderware Mode 0x80 Ignore any traili...

Page 59: ...the MODGW point or any other points created automatically by the RTU The MODGW point provides information about the current command and data address requested by the Modbus master system The MODGW pr...

Page 60: ...e X term PntRef2 is the Y term and PntRef3 is the Z term If a reference is not specified then it is not used in the equation A Constant that is multiplied with RefValue1 B Constant that is multiplied...

Page 61: ...n floating point format RefValue1 RefValue2 RefValue3 RefValue1 3 are the values of the PntRef1 3 parameter references The references can be to any point that produces a floating point value Value1 Va...

Page 62: ...ytes of data and can include any printable ASCII character DBFile The database file name DBFile is the name of the RCF database configuration file DBVer The database version PntEnable Disable Enable e...

Page 63: ...ter Gauge data filter constant The Filter is used when scanning data from an L J gauge A buffer is maintained for the last 8 readings The Filter determines how many of the reading in the buffer are us...

Page 64: ...alue representing the tank temperature in Fahrenheit PntStatus Integer HEX value indicating status of point Values are 0x0001 Dual Band Error 0x0002 Scan Timeout 0x0004 Internal Module Error 0x0008 Mi...

Page 65: ...adings determined by the Filter parameter Thus small changes less than the LevelFilter result in the Level being updated immediately Large changes must pass through the filter and will not be seen unt...

Page 66: ...undefined Filter Gauge data filter constant The Filter is used when scanning data from an L J gauge A buffer is maintained for the last 8 readings The Filter determines how many of the reading in the...

Page 67: ...int on the Model 8315 and verifies it is scanning for gauges If the Model 8315 fails the 0x4000 and the 0x0010 bits of the PntStatus will be set to indicate the failure Dynamic Parameters Function Lev...

Page 68: ...n until the reading stabilizes The same strategy is applied to the Temp parameter value using the TempFilter parameter Since the LevelFilter and TempFilter are associated with the LJSCAN point it appl...

Page 69: ...ta filter constant The Filter is used when scanning data from an L J gauge A buffer is maintained for the last 8 readings The Filter determines how many of the reading in the buffer are used when calc...

Page 70: ...tors the LJ2000 point on the Model 8315 and verifies it is scanning for gauges If the Model 8215 fails the 0x4000 and the 0x0010 bits of the PntStatus will be set to indicate the failure Dynamic Param...

Page 71: ...es The same strategy is applied to the Temp parameter value using the TempFilter parameter Since the LevelFilter and TempFilter are associated with the LJSCAN point it applies to all LJ1000 LJ1500 and...

Page 72: ...the number of milliseconds the scanner will delay between each poll Default is 500 LevelConvert Determines the units in which the level data will be displayed F feet M Meters m Millimeters TempConvert...

Page 73: ...setting the LevelConvert and TempConvert the Level and Temp can be changed from English to Metric or vice versa If the LevelConvert and TempConvert are not set no conversion will be performed The use...

Page 74: ...8315 L J Tankway Software Description TankGate Interface 64 Installation and Operations Manual...

Page 75: ...aker or switch The power switch should be locked in the OFF position and labeled to prevent other personnel from turning the power on during installation Before turning on power when installation is c...

Page 76: ...ankGate installation procedure includes the installation of these individual components TankGate installation includes the following steps 1 Mounting the TankGate section 3 3 1 2 Mounting the Enclosur...

Page 77: ...the TankGate Before mounting the TankGate make certain that any enclosure used can house the TankGate Refer to the dimensional drawing below all dimensions are in inches Figure 5 1 Mounting the TankGa...

Page 78: ...d connection is connected to the G terminal ground of connector J2 see below Install cover 5 3 5 Grounding To allow use in harsh industrial environments the TankGate incorporates ANSI IEEE surge prote...

Page 79: ...ED on the tank gauge interface module should toggle on and off If the CPU indicator is not flashing turn off system power and proceed with the Troubleshooting and Calibration chapter Establishing Host...

Page 80: ...Installation TankGate Interface 70 Installation and Operations Manual...

Page 81: ...irements needed to run the ViewRTU application are listed below 386 486 Pentium Personal Computer Microsoft Windows NT 2000 or XP 96 MB RAM 2 MB free disk space 1 Com Port 6 3 Installing ViewRTU To in...

Page 82: ...ltiple versions of the TankGate For example MSTG1_00 DVR is a definition file that is compatible with TankGate firmware version 1 00 Select the version that matches the version of firmware in the Tank...

Page 83: ...h defined point Point Icon Selection Area All the point icons are displayed in the Point Icon Selection Area Point icons are visual representations of various software functions When a new file is ope...

Page 84: ...e or the name does not exist in the directory the user is prompted to enter a configuration file name 6 5 1 4 Save As The Save As option is used to save the currently opened file under a different nam...

Page 85: ...ected point type Once entered the point quantity is displayed in the Summary Spreadsheet Multiple points of the selected type may be created simultaneously by entering the number in the Quantity edit...

Page 86: ...information are explained in greater detail in the Application section 6 5 2 3 Delete This option lets the user delete one point at a time The user is able to delete an existing point by clicking on...

Page 87: ...used to download TankGate data Click the Download push button to download data to the TankGate 6 5 3 2 Upload Database from TankGate The Upload option is used to upload configuration data from the Ta...

Page 88: ...n the duration of the ViewRTU program To enter the password Select Config and click on Password Click on the edit box in the Password dialog Type in the password Click on OK Figure 6 14 Configuration...

Page 89: ...Old Password edit box enter the current password In the New Password edit box enter the new password In the Retype New Password edit box confirm the entry by reentering the new password Click on OK N...

Page 90: ...ations Setup dialog This dialog box allows the user to enter the specifications of the TankGate s communication port When OK is selected the setup data is stored as the default setup next time ViewRTU...

Page 91: ...box appears when the option is selected Figure 6 19 TankGate search dialog TankGate search dialog This dialog box lists the address description and current status of each TankGate From this dialog box...

Page 92: ...fy the directory to export the data to The user must create and then select the subdirectory for the export operation We suggest that you organize the directories with names corresponding to the TankG...

Page 93: ...e help screens contained in the help system 6 5 6 3 About VRTU The About RTU option displays a dialog box describing the copyright information and the application version number 6 6 Using ViewRTU By u...

Page 94: ...n describes how to enter a point s parameters Parameters are entered from the Spreadsheet Mode window 6 6 1 3 Creating and Editing Connections This section describes how to create connections between...

Page 95: ...of the window This window contains two list boxes and a series of push buttons The top list box contains the configuration parameters of the point while the bottom list box contains Dynamic and Comma...

Page 96: ...Point Connections dialog box Next The Next push button allows the user to step through the list of points The user is able to view the Edit Point window of the following point number Selecting Next a...

Page 97: ...the user is able to enter a value for the selected parameter The dialog box varies according to the selected parameter In some dialog boxes the user is able to enter the name or data directly in the...

Page 98: ...e is one of the methods used to configure points This method is the most beneficial when editing and viewing multiple points of the same type Spreadsheets of each defined point are found in the Spread...

Page 99: ...ser is able to add configure and edit points The user is able to select and enter the parameters for each point or group of points The user can also export import files and control the selection of di...

Page 100: ...Menu Copy The Copy option allows the user to copy data from a one or more selected cells Select one or more cells to copy To select one or more rows click on the number s To select one or more column...

Page 101: ...similar to the Paste menu selection The only difference is that the Paste Dnld selection downloads the updated data parameters Set Value The Set Value option allows the user to enter or select a valu...

Page 102: ...value are set to the value The Options Menu Figure 6 35 Spreadsheet Mode The Options Menu Import The Import option allows the user to import a point or group of points that match the current point typ...

Page 103: ...default View setting is the Config parameter type Hide Row Col The Hide Row Col option allows the user to hide selected rows or columns Note The Copy and Paste operations do not affect hidden rows and...

Page 104: ...er to reveal all of the rows or columns that are currently hidden 6 6 5 Creating and Editing Connections Several methods can be used to display this window depending on the user s current location in...

Page 105: ...of data The program can determine if a reference is valid but it cannot determine if the reference is meaningful The Input Data parameters which are located on the left side of the software block are...

Page 106: ...ft clicking on the input source or the output destination icon allows the user to step through each corresponding Point Connections window if applicable Note Double right clicking on the input source...

Page 107: ...Operations are normal if the Run I O and On line indicators are flashing the table below represents the normal conditions for the Run Output and On line indicators TankGate LED Indicators 7 2 1 1 Run...

Page 108: ...tion to the problem 7 2 3 Using the TankGate Push buttons 7 2 3 1 Reinitializing System Hardware To reinitialize the system hardware Press the RESET Switch This action causes it to go to a known start...

Page 109: ...switch to 15 all switches Closed On This action initiates the Hard Reset Procedure Figure 7 1 Set the ID DIP switch to 15 2 Press the Reset button Figure 7 2 Switches SW3 on the TankGate motherboard 3...

Page 110: ...dication from the LEDs 6 After 10 seconds the address of the TankGate will be set to the ID DIP Switch set ting The LEDS will flash for 5 seconds to indicate that the address is about to be set Figure...

Page 111: ...placement of questionable components The following standard procedure can be used for repairing the TankGate 7 3 0 1 Replacing a defective component or module Turn off main power Open the enclosure do...

Page 112: ...Troubleshooting TankGate Interface 102 Installation and Operations Manual...

Page 113: ...Communications Interface Rackbus protocol 10 x Whessoe Varec Mark Space Interface 11 1 Current Loop Interface Whessoe Bus 11 2 Current Loop Interface GPE 12 x Saab TRL2 Interface 14 x Enraf BPM GPU I...

Page 114: ...ue REAL 4002 SCALER 0 Value1 INTEGER 4003 SCALER 0 PntStatus UBYTE 4004 SCALER 0 Elapse TIME 4006 SCALER 1 Value REAL 4008 SCALER 1 Value1 INTEGER 4009 SCALER 1 PntStatus UBYTE 4010 SCALER 1 Elapse TI...

Page 115: ...R 1023 IREG 0 Value24 UINTEGER 1024 IREG 0 Value25 UINTEGER 1025 IREG 0 Value26 UINTEGER 1026 IREG 0 Value27 UINTEGER 1027 IREG 0 Value28 UINTEGER 1028 IREG 0 Value29 UINTEGER 1029 IREG 0 Value30 UINT...

Page 116: ...points There are a total of 52 registers available per IREG point The addresses are sequential The addresses range from 1000 to 1529 3000 FPREG 0 Value1 REAL 3002 FPREG 0 Value2 REAL 3004 FPREG 0 Val...

Page 117: ...ue29 REAL 3058 FPREG 0 Value30 REAL 3060 FPREG 0 Value31 REAL 3062 FPREG 0 Value32 REAL 3064 FPREG 0 Value33 REAL 3066 FPREG 0 Value34 REAL 3068 FPREG 0 Value35 REAL 3070 FPREG 0 Value36 REAL 3072 FPR...

Page 118: ...G 0 Value49 REAL 3098 FPREG 0 Value50 REAL 3100 FPREG 0 PntStatus IHEX 3101 FPREG 0 Elapse TIME There are a total of 10 FPREG points There are a total of 102 registers available per FPREG point The ad...

Page 119: ...i 8300 NOTES...

Page 120: ...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: