IOM035GVAE0405 8315 Series TankGate Interface Data Communication Gateway for L&J Tankway (MCG 1000, MCG 1500, MCG 2000) Devices Installation & Operations Manual www.varec.com Varec, Inc.
8300 Copyright All rights reserved. Printed in the United States of America. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means- electronic, mechanical, photocopying, 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.
TankGate Interface Disclaimer of Warranties The contract between the Seller and the Buyer states the entire obligation of the Seller. The contents of this document shall not become part of or modify any prior or existing agreement, commitment or relationship between the Seller and Buyer. There are no express or implied warranties set out in this document. The only warranties that apply are those in the existing contract between the Seller and Buyer. Varec, Inc. products have not been tested by Varec, Inc.
8300 Safety Precaution Definitions Caution! Damage to equipment may result if this precaution is disregarded. Warning! Direct injury to personnel or damage to equipment 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 MAINTENANCE ON THE VAREC 2900 FLOAT & TAPE TRANSMITTER.
TankGate Interface Preface This manual is intended for users of the TankGate. The Operating instruction Manual contains eight chapters and an appendices. Chapter 1 - Overview This chapter provides a general overview of the TankGate such as features and product specifications. Chapter 2 - Hardware This chapter describes the TankGate hardware components such as functional relationships between motherboard and Communications module. It also provides specific configuration information for the motherboard.
8300 Contents Contents 1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.1 Versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.3 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.
Contents TankGate Interface 4.1.7 Database Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.1.8 System Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.2 TankGate Software Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.2.1 TankGate 8315 Software Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.3 Database Organization . . . . . . . . . . . . . . . . . .
8300 Contents 4.16.1 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 4.17 L&J MCG1000 Tank Gauge (LJ1000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 4.17.1 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 4.17.2 Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 4.18 L&J MCG1500 Tank Gauge (LJ1500) . . . . . . . . . . . .
Contents TankGate Interface 7 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 7.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 7.2 Troubleshooting the TankGate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 7.2.1 LED Displays under normal conditions . . . . . . . . . . . . . . . . . . . . . . . . . . 97 7.2.2 LED Displays under Abnormal Conditions . . . .
8300 1 Overview Overview The TankGate (83x series) unit acts as a tank gauge interface for data acquisition and host gateway for tank farm, pipeline or refinery applications. Options are available for interfacing to nearly any brand of tank gauge equipment or technologies, making it possible to integrate float and tape transmitters, HTG, servo, magnetostrictive and radar gauges.
Overview 1.4 TankGate Interface Specifications 1.4.1 1.4.2 1.4.3 1.4.4 1.4.
8300 Overview 1.4.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.
Overview 4 TankGate Interface Installation and Operations Manual
8300 2 Hardware Hardware The TankGate consists of an enclosure, motherboard, single tank gauge interface module and connectors.
Hardware 2.1 TankGate Interface Hardware Block Diagram A TankGate hardware functional block diagram is shown below. This diagram shows the relationship between major subsystems and components in the TankGate. Figure 2-2: TankGate functional block diagram Tank Gauge Interface Circuitry NOVRAM 128 K PROM 256 k Serial 1 COM 1 RS-232/RS-485 Serial 0 COM 0 RS-232 uP The heart of the TankGate is an Intel 80C188EB microprocessor operating at 18.432 MHz.
8300 Hardware • Communications Figure 2-3: The TankGate motherboard HARDWARE HANDSHAKING A EARTH B NEUTRAL LINE SURGE GND RESET VFIELD + RS232 COM1 A/TXD B/RXD RS485 COM1 GND RTS CTS TXD COM 0 RXD GND VFIELD=24V +15V +5V GND AUX POWER VFIELD=48V -15V 2.2.
Hardware TankGate Interface 2.2.1.1 Unit AC Input Power terminal block (J2) The Unit AC power terminal block is used to provide AC power to the TankGate. The power requirements for the TankGate are 100-240 VAC, 50/60 Hz.
8300 Hardware +15 and -15 Volts. These are rated 210 mA, 50 mA, and 5 mA, respectively. The DC Power terminal block is shown below: Figure 2-6: DC Input voltage terminal block HARDWARE HANDSHAKING A CTS EARTH B NEUTRAL LINE SURGE GND TXD RESET VFIELD + RS232 - A/TXD RXD B/RXD RS485 COM1 GND RTS CTS TXD GND COM 0 RXD GND +15V +5V GND AUX POWER VFIELD=48V VFIELD=24V J7 +15V +5V GND J8 AUX POWER -15V 2.2.1.
Hardware TankGate Interface there is 230 mA of field power available. At +48VDC, there is 230 mA of field power available. Figure 2-8: Selection Jumper W3 HARDWARE HANDSHAKING A EARTH B NEUTRAL LINE SURGE GND J7 RESET VFIELD + RS232 COM1 A/TXD B/RXD RS485 VFIELD=48V COM1 GND RTS CTS VFIELD=24V TXD COM 0 RXD GND +15V +5V GND W3 AUX POWER VFIELD=48V VFIELD=24V -15V J8 2.2.2 Switches and Indicators 2.2.2.
8300 Hardware 2.2.3 Communications The Communications installation requires connection of the appropriate communication cable to one of two connectors. The available options include RS-232 and RS-485 communications.
Hardware TankGate Interface 2.2.3.2 COM1 (RS-232/RS-485) (J5) Note! On some versions of the TankGate, COM1 is not available RS-232 is one of the two types of high-speed serial communications channels available to interface to Host systems using several different protocols. RS-232 will operate at distances up to 100 feet, while RS-485 allows multidrop communications at distances up to 4000 feet. RS-232 can be used for flexibility in configuring other types of communications links.
8300 Hardware For RS-485, set the Hardware Handshaking Switch SW1 to the ‘A’ position. Refer to the following table: Communication Physical Layer Hardware Handshaking SW1 Setting SW2 Setting Notes RS-232 No A UP (towards the RS232 side) Use with a PC. Signals at terminal block J5 will be RS-232 RS-232 Yes B UP (towards the RS232 side) Use to communicate to systems that require Request To Send (RTS) in order to transmit (Modems, Radios, etc.
Hardware 2.3 TankGate Interface TankGate Communications Cable The layout for the RS-232 cable between the PC and the TankGate is shown in the following illustrations Figure 2-14:Com 1 Cable without RTS/CTS PC TANK GATE 2 TXD Com 0 (RS-232) Pin Signal 2 3 RXD 5 GND RXD 3 TXD 5 GND J7 DB9 Female R5485 / R5238 Converter TANK GATE Com 1 (RS485) PC A A B B GND GND J6 NOTE! Signals on RS485 / RS232 converter may have different designations.
8300 3 8315 L&J Tankway Interface Module 8315 L&J Tankway Interface Module 3.1 Features • Supports up to 50 tanks • Communicates using L&J Tankway protocol • Interfaces to L&J Tankway compatible Tank Gauge transmitters • ANSI/IEEE surge protection The Model 8215 interface with tank gauge transmitters uses Whessoe-Varec’s Mark/ Space protocol to communicate.
8315 L&J Tankway Interface Module TankGate Interface Figure 3-2: Model 8315 TankGate 3.2 Description The components of the 8315 are illustrated in the following figure. This section explains how to connect field wiring and to configure jumper settings.
8300 8315 L&J Tankway Interface Module Figure 3-3: Model 8315 L&J Tankway Interface ID DIP Switch (SW1) LED indicators (D1 D6) +48-65 VDC power fuse (1 A 250V TR5) (F1) External Power Connector (+48 - 65 VDC) (J2) Field wiring terminal block (J3) Surge/Shield ground connector (J4) Transmit Line Fuse (63 mA 250V TR5) (F2) 3.2.1 ID DIP Switch (SW1) The ID DIP Switch is a binary switch that sets the unit ID number (1-4). This value is set to the port number on which the Model 8315 is installed (e.g.
8315 L&J Tankway Interface Module TankGate Interface • COM: Communication between the TankGate and the host computer • TXD: Transmitting data to tank gauge • RXD: Receiving data from tank gauge • +5V: Indicates interface module power • +VEXT: Indicates external power Figure 3-5: 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.
8300 8315 L&J Tankway Interface Module 3.2.5 Field Wiring terminal 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 below. Figure 3-8: L & J Engineering, Inc.
8315 L&J Tankway Interface Module 20 TankGate Interface Installation and Operations Manual
8300 4 8315 L&J Tankway Software Description 8315 L&J Tankway Software Description The TankGate software platform is based on a real-time, multi-tasking operating system. The software consists of I/O scanning functions for data acquisition, a database/database manager and communication functions for data transfer. Figure 4-1: Software Block Diagram 4.1 Software Features 4.1.
8315 L&J Tankway Software Description 4.1.4 TankGate Interface Communications There are two communications tasks - one for each of the communication channels. COM ports 0 and1 are used to interface to external devices or host systems. Refer to the Hardware Chapter for the location of these ports. COM0 and COM1 COM 0 and 1 can be configured for communications to Host systems using a variety of protocols. For COM 0 and 1 the communication interfaces include the following: 4.1.
8300 8315 L&J Tankway Software Description 4.2 TankGate Software Blocks The user can configure pre-defined subprograms known as Software Blocks. These software blocks program the TankGate to perform various tasks, such as scaling an analog input value, or scanning level, temperature and status information from a tank gauge. Various software blocks are available depending on the communication module. Each Software Block contains all the logic, constants and data to perform a particular function.
8315 L&J Tankway Software Description 4.3 TankGate Interface Database Organization Points are the individual instances of software blocks. Examples include Whessoe Varec 1900 (WV1900) and SCALER points. In both cases the user configures the Config parameters and is provided real time data through the Dynamic parameters. 4.3.1 Point Format Data parameters in the TankGate are addressed using a “Type.Number.Parameter” format. For example, “WV1900.02.
8300 8315 L&J Tankway Software Description Note! 4.3.2.2 ViewRTU inserts default values for the Config parameters when the point is first defined. It is usually only necessary to fill in a few configuration parameters, such as channel numbers, to configure references and to configure links to other points.
8315 L&J Tankway Software Description TankGate Interface PntCheckSum Parameter The PntCheckSum is a CRC-16 checksum of the Configuration Parameters of a point. Most points have the PntCheckSum parameter; a few like the CLK (Clock) Point, DIAG (Diagnostics) Point, and the register points (BREG, IREG, and DREG) do not. Any time a Configuration Parameter is changed, the TankGate re-calculates the checksum. The PntCheckSum is used at initialization to validate each point in the database.
8300 8315 L&J Tankway Software Description 4.4 Gathering Point Data For Host to TankGate communications, there are two primary methods for gathering point data. These methods are listed below: 4.4.1 Standard Request-Response Format The Host issues scan requests, and the TankGate responds with the data. The Scan method has the advantage of being deterministic, the response time to a particular request will always be the same.
8315 L&J Tankway Software Description 28 TankGate Interface Parameter Description Deadband LevelDeadband TempDeadband Affects the Change of State processing. It allows users to filter out insignificant changes, freeing the communications link to send other data Note! Not all Host protocols support the Change of State method. The RTU Slave protocol used with FuelsManager supports either method. Note! The Modbus protocol is Scan-based. Therefore, the Report and Maxtime parameters have no meaning.
8300 8315 L&J Tankway Software Description 4.5 Modbus Communications The TankGate is capable of communicating with Modbus compatible devices. It is possible to communicate with both Modbus Masters and Slave devices. The TankGate is flexible, allowing communications with devices that strictly comply with the Modicon Modbus protocol, as well as devices with more advanced Modbus implementations such as Honeywell’s APM-SIO.
8315 L&J Tankway Software Description TankGate Interface TankGate responds to the following Function Codes: 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 6 Preset Single Register 15 Force Multiple Outputs 16 Preset Multiple Registers FC 4 and FC 6 are treated the same.
8300 8315 L&J Tankway Software Description Address 4.5.3 Type Number Parameter Data Type 5018 WV1900 1 Status HEX 5019 WV1900 1 PntStatus IHEX 5020 WV1900 1 Elapse TIME GWBLK method The GWBLK is the preferred means to address data in the TankGate. The GWBLK has a great deal of flexibility. Data can be scaled, or grouped using the GWBLK. The Gateway Block (GWBLK) allows the user to specify data address and point reference combinations.
8315 L&J Tankway Software Description TankGate Interface In this example, the Modbus register map is configured according to the following table: 32 Installation and Operations Manual
8300 8315 L&J Tankway Software Description Data Address Parameter Comments 100-101 WV1900.00.Level Level is in IEEE Floating point format. 102-103 WV1900.01.Level 104-105 WV1900.02.Level . . . . . . 138-139 WV 1900.19.Level 200-201 WV1900.00.Temp 202-203 WV1900.01.Temp 204-205 WV1900.02.Temp . . . . . . 238-239 WV1900.19.Temp 300 WV1900.00.PntStatus 301 WV1900.01.PntStatus 302 WV1900.02.PntStatus . . . . . .319 . .WV1900.19.
8315 L&J Tankway Software Description 4.6 TankGate Interface Clock (CLK) The Clock point provides access to the System Clock. Standard time format is in the form of MM/DD/YY HH:MM:SS. 4.6.1 Parameters The database parameters used by the CLK point are 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 system time. SysTicks Time if “ticks” format.
8300 8315 L&J Tankway Software Description 4.7 Communications (COM) The Communications point reports the status and controls the operation of the communications interfaces. COM points are automatically created by the system at initialization. 4.7.1 Parameters The database parameters used by the COM point are listed and described below: Configuration Parameters Function Protocol Protocol handler assigned to the ComPort.
8315 L&J Tankway Software Description 4.7.2 TankGate Interface Configuration Parameters Function 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 protocols for autosynchronization of the BaudRate. The SynchMax is used to determine if the BaudRate is correct. If the SynchMax is zero, then no synchronization is attempted. DirectPort The DirectPort is used then the Protocol is set to Direct.
8300 8315 L&J Tankway Software Description 4.8 Floating Point Register (FPREG) The Floating Register 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.
8315 L&J Tankway Software Description 4.9 TankGate Interface Emulator (EMU) The Emulator point allows the TankGate to emulate a Whessoe-Varec Model 6820 Tank Scanning Unit (TSU). This point provides access for level, temperature data, and gauge status information from any type of tank gauge interface supported by the TankGate. 4.9.
8300 8315 L&J Tankway Software Description Dynamic Parameters Function PntStatus Byte value indicating status of point Values are: Dynamic ParametersFunction PntStatusByte value indicating status of point Values are: 0: No error 15: Invalid Type for PntRef 16 Invalid Number for PntRef 17 Invalid Param for PntRef 19: PntRef point does not exist 25: PntRef is not defined PntCheckSum 4.9.2 CRC-16 Checksum for point's static Configuration parameters.
8315 L&J Tankway Software Description TankGate Interface 4.10 EMU Gateway (EMUGW) The EMU Gateway point is used to manage scanning functions for the EMU point. Statistics are maintained for the communications between the Series 8130 and the tank gauging software (TankView or System IV). Special firmware is required on the TankGate to support the emulation functions. 4.10.
8300 8315 L&J Tankway Software Description Dynamic Parameters Function Addr Displays the tank number of the currently selected tank. LevelRef The reference point for level and temperature data for the tank currently requested by TankView Flags Hex value representing the operational status NumRequests Number of requests from TankView or Entis NumComErrors Number of errors Elaspe Time of last request PntCheckSum CRC-16 Checksum for point’s static Configuration Parameters. 4.10.
8315 L&J Tankway Software Description TankGate Interface 4.11 Gauging Systems Inc. Model 2000 Interface (GS2000) The GS2000 point provides an interface to GSI 2000 Tank Gauge transmitters. This point provides both level and temperature data. Point and gauge status information is also available in this point block. This Software Block executes on the Model 8210 Mark/Space Interface Module. 4.11.
8300 8315 L&J Tankway Software Description Configuration Parameters Function TempOffset Specifies the amount of offset to add to the Temp. The default is 0. Report Causes automatic notification to the Host (in response to a Change of State Request) when the Value changes State. Parameter value can be High, Low or No. Report=No disables notification. Points with Report = High will be sent before points with Report = Low. The default is High.
8315 L&J Tankway Software Description TankGate Interface Dynamic Parameters Function Raw2 Raw data from gauge. Value reported as hexidecimal value. 4.11.2 Application The GS2000 point provides an interface to GSI Model 2000 Tank Gauge Transmitters. Tank gauges are connected directly to a TankGate. At startup, a WVSCAN point is automatically created to manage the scanning task. The ID must match the unit address of the GSI Model 2000. The SpeedMode must match the configuration of the transmitter.
8300 8315 L&J Tankway Software Description 4.12 Gateway Block (GWBLK) The Gateway Block point is used for compatibility with Modbus Master devices. Rather, the user configures a GWBLK to function as a look-up table. The GWBLK point lets the user specify which point references will respond to data addresses in the request from a Host. The GWBLK point contains a cross-reference table for database parameters and data addresses. 4.12.
8315 L&J Tankway Software Description TankGate Interface Configuration Parameters Function Addr1 PntRef1 Size1 Filter1 Addr10 PntRef10 Size10 Filter10 Addr1 is the Data Address and PntRef1 is the corresponding database parameter that will be used for a response. The default Size is 1. See the discussion below for more detail on the Size parameter. The Filter is used to determine if the data is valid.
8300 8315 L&J Tankway Software Description 4.13 Integer Register (IREG) The Integer Register point provides two bytes of storage. It is often used for inter-point communications where no other means is provided. 4.13.
8315 L&J Tankway Software Description TankGate Interface 4.14 Modbus Gateway (MODGW) The Modbus Gateway provides dynamic and statistical information for the communications between the Model 8310 and the Modbus masters. 4.14.1 Parameters The database parameters used by the MODGW point are listed and described below: Configuration Parameters Function ID Slave Address that the Modbus Slave protocol handler will respond to. The default is to match the Unit Address of the TankGate.
8300 8315 L&J Tankway Software Description Dynamic Parameters Function Command Current command. Values include: 1 - Read Output Status 2 - Read Input Status 3 - Read Output Registers 4 - Read Input Registers 5 - Force Single Coil 6 - Preset Single Register 15 - Force Multiple Coils 16 - Preset Multiple Registers Addr Data Address for current request Elapse Time of the last request from the master PntCheckSum CRC-16 Checksum of point's static Configuration Parameters 4.14.
8315 L&J Tankway Software Description TankGate Interface 4.15 Scaler Point (SCALER) The Generic Scaling point allows the user to perform math functions in the TankGate. The SCALER point monitors one or more database reference values and performs an equation in the form: Value = Ax + By + Cz + K Note! A, B, C & K are user entered constants. Note! x, y & z are inputs from other database points. 4.15.
8300 8315 L&J Tankway Software Description Dynamic Parameters Function 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.
8315 L&J Tankway Software Description TankGate Interface 4.16 System Information (SYS) The System Information Point lists the hardware and software specifications of the system. Other information includes the hardware version and any connected devices. 4.16.1 Parameters The database parameters used by the SYS point are listed and described below: 52 Configuration Parameters Function RTUTag RTUTag can contain 15 bytes of data and can include any printable ASCII character.
8300 8315 L&J Tankway Software Description 4.17 L&J MCG1000 Tank Gauge (LJ1000) The LJ1000 point provides an interface to L & J MCG1000 Tank Gauge transmitters. This point provides both level and temperature data. Point and gauge status information is also available in this point block. This point executes on the Model 8315 Tank Gauge Interface module. 4.17.
8315 L&J Tankway Software Description TankGate Interface Configuration Parameters Function Maxtime Specifies the maximum time (in secs) between automatic Change of State data being sent to the Host in response to a Change of State Request. Report must be set to either Low or High for the Value parameter to be sent in response to a Change of State Request. A value of 0 disables this option. Non-zero values cause responses to be sent even if the value has not changed since the last message.
8300 8315 L&J Tankway Software Description 4.17.2 Application The LJ1000 point provides an interface to L&J MCG1000 Direct Digital Gauges. L&J Model 1000 Tank gauge transmitters are connected directly to a Model 8315 Tank Gauge Interface Module. The Model 8315 is automatically detected at startup, and an LJSCAN point is automatically created to manage the scanning task. The Module parameter determines which Model 8315 will be used. The ID must match the unit address of the MCG 1000.
8315 L&J Tankway Software Description TankGate Interface 4.18 L&J MCG1500 Tank Gauge (LJ1500) The LJ1500 point provides an interface to L & J MCG1500 Tank Gauge transmitters. This point provides both level and temperature data. Point and gauge status information is also available in this point block. This point executes on the Model 8315 Tank Gauge Interface module. 4.18.
8300 8315 L&J Tankway Software Description Configuration Parameters Function Maxtime Specifies the maximum time (in secs) between automatic Change of State data being sent to the Host in response to a Change of State Request. Report must be set to either Low or High for the Value parameter to be sent in response to a Change of State Request. A value of 0 disables this option. Non-zero values cause responses to be sent even if the value has not changed since the last message. The maximum is 255 seconds.
8315 L&J Tankway Software Description TankGate Interface Scanning begins when the Module is assigned. The DevType must match the configuration of the transmitter. Conversion from English to Metric can be performed be setting the LevelConvert and the TempConvert parameters in the LJSCAN point associated with the LJ1500 point. Filtering is performed using the LevelFilter and TempFilter parameters of the associated LJSCAN point.
8300 8315 L&J Tankway Software Description 4.19 L&J MCG2000 Tank Gauge (LJ2000) The LJ2000 point provides an interface to L & J MCG2000 Tank Gauge transmitters. This point provides both level and temperature data. Point and gauge status information is also available in this point block. This point executes on the Model 8315 Tank Gauge Interface module. 4.19.
8315 L&J Tankway Software Description TankGate Interface Configuration Parameters Function Maxtime Specifies the maximum time (in secs) between automatic Change of State data being sent to the Host in response to a Change of State Request. Report must be set to either Low or High for the Value parameter to be sent in response to a Change of State Request. A value of 0 disables this option. Non-zero values cause responses to be sent even if the value has not changed since the last message.
8300 8315 L&J Tankway Software Description Scanning begins when the Module is assigned. The DevType must match the configuration of the transmitter. Conversion from English to Metric can be performed be setting the LevelConvert and the TempConvert parameters in the LJSCAN point associated with the LJ2000 point. Filtering is performed using the LevelFilter and TempFilter parameters of the associated LJSCAN point.
8315 L&J Tankway Software Description TankGate Interface 4.20 L&J Scanner (LJSCAN) The L&J Scanner point is used in conjunction with L&J Tank (LJ1000, LJ1500 and LJ2000) gauge points. This point provides dynamic and statistical data for the Model 8315 tank gauge interface module and L&J tank transmitters. 4.20.
8300 8315 L&J Tankway Software Description Dynamic Parameters Function NumTimeouts Number of unresponded requests issued before the scanner timed out. NumScanList Number of points in the Scan List PntStatus Byte value indicating status of point. Values are: 0: No Error PntCheckSum CRC-16 Checksum for point’s static Configuration Parameters 4.20.2 Application The LJSCAN point monitors the status of the Model 8315 Tank Gauge Interface. The LJSCAN point is created automatically by the Model 8315.
8315 L&J Tankway Software Description 64 TankGate Interface Installation and Operations Manual
8300 5 Installation Installation Before attempting installation, review the Safety Precautions below. Installation and maintenance personnel should become familiar with any hazards present as well as any agency requirements before working with any equipment. 5.1 General Safety Guidelines The user should follow safety guidelines provided by the Occupational Safety and Health Administration (OSHA) for additional protection.
Installation 5.3 TankGate Interface Installation Standard systems are shipped with the motherboard and tank gauge interface module installed. The TankGate installation procedure includes the installation of these individual components. TankGate installation includes the following steps: 66 1. Mounting the TankGate (section 3.3.1) 2. Mounting the Enclosure (section 3.3.2) 3. Wiring up Power (section 3.3.3) 4. Grounding the TankGate 8130 (section 3.3.4) 5. Installing Communications (section 3.3.
8300 Installation Mounting 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). 197 204 Figure 5-1: Mounting the TankGate inside the enclosure. 125 5.3.
Installation TankGate Interface 5.3.2 Mounting the Enclosure The recommended standard housing for the TankGate is a NEMA TYPE 4 enclosure. This enclosure is suitable for both indoor and outdoor applications. 5.3.3 Select the Unit address Switch SW1 sets the TankGate’s one byte, binary address (0-15). Switch SW1-1 is the most significant bit (MSB) while switch SW1-4 is the least significant bit (LSB). When a switch is in the ON or CLOSED position, the resulting bit is a one.
8300 Installation RS-485 Communications • To install the RS-485 communications option, connect a single twisted wire pair to J5 (COM1). Note! When using COM1, Switch SW2 must be set for RS-485 mode. Power-Up Before the field cables are attached, perform an initial system verification. Initial system verification • Connect the power cable to power connector P1, then connect an RS-232 cable from a PC with ViewRTU to J7 (COM0). • Power up the unit.
Installation 70 TankGate Interface Installation and Operations Manual
8300 6 Using ViewRTU Using ViewRTU 6.1 Overview This chapter describes the software used to configure the TankGate. This chapter describes each of the menus found in the menu bar. Additionally, the chapter describes the system requirements and the installation procedure. Use this chapter in accordance with the TankGate Software Blocks section. ViewRTU software, a Microsoft Windows application, is designed to configure and view data points in the TankGate.
Using ViewRTU TankGate Interface • Double-click on the icon to execute the ViewRTU application. If more than one TankGate definition file (DVR) exists, the following dialog box is displayed. Figure 6-1: ViewRTU Version Selection dialog Each version file contains setup information that matches the firmware in the TankGate. This information allows a single version of ViewRTU to configure multiple versions of the TankGate. For example, MSTG1_00.
00 Using ViewRTU 6.4.1 ViewRTU window This main window allows the user to perform the commands necessary to configure the TankGate. The ViewRTU window contains the standard Windows components such as the Application Control menu, minimize/maximize icon buttons, title bar and menu bar. The System Status area Displays the system version as well as general information about the configuration file. The TankGate file name is found in both the System Status area and the title bar.
Using ViewRTU TankGate Interface 6.5.1.2 Open The user is able to select an existing configuration file by clicking on the Open push-button from the tool bar, or by selecting Open from the File menu. When selected, a dialog box appears displaying a list of configuration files. All configuration files are identified by the RCF extension. Once a file is selected, the point configuration data of the selected file is displayed.
8300 Using ViewRTU Select Point to Add dialog box This dialog box displays a list of available point types, the point number, quantity and the corresponding point icon. The point icon is then added to the Point Icon Selection Area if it does not already exist. The Point Type lists the currently selected point. The user can select the desired point by selecting the point from the scroll list. The Point Number defaults to “0” if the point type has just been defined.
Using ViewRTU TankGate Interface Once a point is selected, the Edit Point dialog box appears: Figure 6-7: Edit Point dialog Edit Point dialog This dialog box contains all dynamic and configurable field information. The user is able to edit point data. Exiting this dialog box returns the user to the main window. Note! 6.5.2.3 Several other methods can be used to display the Edit Point dialog box. These methods and other information are explained in greater detail in the Application section.
8300 Using ViewRTU 6.5.3 The Config Menu Figure 6-9: The Configuration Menu 6.5.3.1 Download Database to RTU The Download Database to RTU option is used to download configuration data to the TankGate. The following dialog box appears: Figure 6-10:Dialog 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 TankGate.
Using ViewRTU TankGate Interface 6.5.3.3 Spreadsheet The Spreadsheet option is used to configure, download, and upload point data points in spreadsheet mode. Figure 6-13:Spreadsheet Mode Edit window 6.5.3.4 Password The user can use the Password option to gain access to a protected file. Once a password has been assigned, the user must enter the password when attempting to edit the TankGate configuration file. This password is only entered once in the duration of the ViewRTU program.
8300 Using ViewRTU • Click on OK. Figure 6-15:Change Password dialog Note! 6.5.3.7 Make sure that you write down the password and store it in a secure place. Changing the Password Changing the Password • Select Config and click on Modify Change Password. The Change Password dialog appears, as illustrated in ‘creating a password’. • In the Old Password edit box, enter the current password. • In the New Password edit box, enter the new password.
Using ViewRTU TankGate Interface appears. This example dialog box contains the default settings for communications setup. Figure 6-17:Port Communications Setup dialog Port Communications 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 is executed. 6.5.4.2 Status The Status option is provided so the user is able to observe communications data.
8300 Using ViewRTU 6.5.4.3 Connect The Connect option is used when the user needs to search for a specific TankGate. The following dialog 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 the user can select an TankGate and establish communications with the selected TankGate. 6.5.
Using ViewRTU TankGate Interface 6.5.5.1 Convert Configuration Files The Convert Configuration Files option is used once the Download Firmware option has been executed. This option converts configuration files from one version to another. When selected, the following dialog box appears. Figure 6-21:Convert ViewRTU versions dialog Convert ViewRTU versions dialog This dialog box allows the user to convert a file. The user has the option of first analyzing the effects of converting the file.
8300 Using ViewRTU points are imported from the file ‘AI.CSV’. The user must select the subdirectory to import the data from. The CSV file data can also be imported using the Spreadsheet mode. 6.5.5.4 View I/O List The View I/O List option allows the user to create a list of the I/O points connected to the TankGate. The list is limited by listing points that have the Chan or Module parameters. These parameters are always used in cases where I/O is involved.
Using ViewRTU TankGate Interface Configuring the point involves entering configuration parameters. In some cases, connections to other points are required in order to perform a task. Creating connections involves setting references to allow data to be transferred between points. 6.6.1 Overview An outline of the section is listed below: 6.6.1.
8300 Using ViewRTU Several methods can be used to display this window depending on the user’s current location in the program: • If in the Main window, select Edit from the Point menu. Select the desired point type and corresponding point number. • If in the main window, double-right click on the point icon. • If in the Point Connections window, double-left click on the focus point icon. • If in the Point Connections window, double-right click on a point icon other than the focus point icon.
Using ViewRTU TankGate Interface Clicking the Minimize shrinks the window so that only one or more selected list box parameters are displayed. The user may have multiple minimize windows opened simultaneously. This capability is useful for testing and debugging. Minimizing the Edit Point Window • Highlight by single-clicking the left mouse button on one or more parameters. • Click on the Minimize push-button.
8300 Using ViewRTU Upload The Upload push-button allows the user to upload the entire point data from the TankGate. 6.6.3 To modify a Value Figure 6-25:Edit Point dialog (adding a value) To modify a value • Double-click the desired parameter to enter a new value. The following example Modify Point dialog box appears. Figure 6-26:Edit point parameter value dialog Edit point parameter value dialog From this dialog box, the user is able to enter a value for the selected parameter.
Using ViewRTU TankGate Interface To modify a Reference • In the Edit Point Window Double-click the desired reference parameter to enter a new value. The following dialog box appears. • In the Point Connections Window drag and drop the point icon onto the PntRef. The following dialog box appears. Figure 6-27:Edit point parameter reference dialog Edit point parameter reference dialog This dialog box is used to select a new point reference, corresponding point reference number, and/or parameter.
8300 Using ViewRTU Adding Multiple Points • Double-click on the desired point type in the Spreadsheet Summary. The following example Spreadsheet Mode window appears. Figure 6-28:Spreadsheet Mode Window Note! 6.6.4.2 Refer to the following Entering Point Data section for a description of the Spreadsheet Mode window. Entering Point Data This section explains the window used to configure multiple points of a single point type.
Using ViewRTU TankGate Interface The Point Menu This menu contains the same menu options found in the main window’s menu bar. Refer to The Point Menu section for a description of the menu options. Figure 6-30:Spreadsheet Mode: The Point Menu This option is useful for creating, deleting and editing points without having to exit out of the Spreadsheet mode. The Edit Menu Figure 6-31:Spreadsheet Mode: The Edit Menu Copy The Copy option allows the user to copy data from a one or more selected cells.
8300 Using ViewRTU • Select the Paste option from the Edit menu. Figure 6-32:Spreadsheet Mode: Copying and Pasting point parameter data rows. Note! If the number of rows and columns in both selections do not match, the extra copied cells are truncated. Incompatible cells containing different data types are not copied; instead a warning is displayed. Paste & Dnld The Paste & Dnld option is very similar to the Paste menu selection.
Using ViewRTU TankGate Interface • Click on each desired cell or column. • Select Set Value from the Edit menu. The following dialog box appears: Figure 6-34:Spreadsheet Mode: Editing point parameter values using auto increment Each value in the column is incremented by one for the range of rows selected. All cells that are selected and match the data type of the value are set to the value.
8300 Using ViewRTU View The View option allows the user to display selected parameter types. Selecting this option displays the following View Point Parameters dialog box. Figure 6-36:Spreadsheet Mode: Viewing selected parameter types dialog The user is able to select any combination of parameter types. The user is able to select any combination of classifications. The classifications are described briefly below. .
Using ViewRTU TankGate Interface The selected rows or columns are indicated by a ‘+’ in the row or column buttons heading. The following dialog box illustrates this feature. Figure 6-37:Spreadsheet Mode: Hiding columns The user can unhide a row or column by clicking on the associated ‘+’. To unhide all the rows/columns, the user can select the Unhide All option from the Options menu. Unhide All The Unhide All option allows the user to reveal all of the rows or columns that are currently hidden. 6.6.
8300 Using ViewRTU Displaying the Point Connections window. • Double-click on one of the icons to display the Point Connections window. The following example Point Connections window appears. Figure 6-39:Point Connections Window Point Connections Window This graphic display visually illustrates the reference connections of the focus point. From this display, the user is able to select reference points, create connections between these points, and enter configuration parameters.
Using ViewRTU 96 TankGate Interface Note! Double-left 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 or the output destination icon allows the user to view the point’s Edit Point window.
8300 7 Troubleshooting Troubleshooting 7.1 Overview This chapter describes the procedures used to isolate hardware faults. Three pushbuttons and eight status Led provide verification of TankGate proper operation. If the TankGate is not functioning normally, the user is able to troubleshoot the device by performing one or more procedures using the three push-buttons. These push-buttons and indicators are also described in the Motherboard & I/O Expansion Module Configuration chapter. 7.
Troubleshooting TankGate Interface by observing the RUN Indicator duty cycle. Under normal conditions, this indicator flashes once every second. 7.2.1.2 Communications indicator The Communications indicator provides communication line status. When it is toggling, the system is exchanging data. As the system receives a valid message from the Host, this indicator toggles. If the indicator is idle, the system is off-line. 7.2.1.
8300 Troubleshooting 7.2.4 • Reset All Timers • Disable Outputs • Enable Communications • Present Sign-on Message to Diagnostic Terminal Performing a Hard Reset A ‘Hard Reset’ clears the TankGate’s database. The following procedure describes the steps necessary to perform a Hard Reset: 1. Set the ID DIP switch to 15 (all switches Closed/On). This action initiates the Hard Reset Procedure. Figure 7-1: Set the ID DIP switch to 15 ID = 15 2.
Troubleshooting TankGate Interface 4. Set the ID DIP Switch to the desired address (1-14). At this point, there is no further action required by the user. Figure 7-3: Set the ID DIP switch to the desired addresses ID = 1 5. The LEDs will light (and remain steady) to indicate the address. For example, if the ID DIP Switch is set to 1, LEDS D1 will on. If the ID DIP Switch is set to 3, LEDS D1 and D2 will be on. Figure 7-4: Address indication from the LEDs D1 ON D2 D3 D4 ID = 1 6.
8300 Troubleshooting 7.3 Maintenance Field maintenance of the TankGate is simplified by several built-in features. The modular design of the computer control system, in conjunction with quick-disconnect connectors, allows for on-site replacement 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 door. Remove the case cover of the TankGate.
Troubleshooting 102 TankGate Interface Installation and Operations Manual
8300 1 Appendix Appendix 1.1 Ordering Structure Remote Terminal Unit TankGate 10 N83 - 1.
Appendix TankGate Interface 1.2.1 Modbus Map Address Type Number Parameter Data Type 5000 LJ2000 0 Command CODED 5001 LJ2000 0 Level REAL 5003 LJ2000 0 Temp REAL 5005 LJ2000 0 Value REAL 5007 LJ2000 0 Status HEX 5008 LJ2000 0 PntStatus IHEX 5009 LJ2000 0 Elapse TIME There are a total of 50 GPE points. There are a total of 11 registers available per gauge. The addresses are sequential.
8300 Appendix Address Type Number Parameter Data Type 1011 IREG 0 Value12 UINTEGER 1012 IREG 0 Value13 UINTEGER 1013 IREG 0 Value14 UINTEGER 1014 IREG 0 Value15 UINTEGER 1015 IREG 0 Value16 UINTEGER 1016 IREG 0 Value17 UINTEGER 1017 IREG 0 Value18 UINTEGER 1018 IREG 0 Value19 UINTEGER 1019 IREG 0 Value20 UINTEGER 1020 IREG 0 Value21 UINTEGER 1021 IREG 0 Value22 UINTEGER 1022 IREG 0 Value23 UINTEGER 1023 IREG 0 Value24 UINTEGER 1024 IRE
Appendix TankGate Interface Address Type Number Parameter Data Type 1041 IREG 0 Value42 UINTEGER 1042 IREG 0 Value43 UINTEGER 1043 IREG 0 Value44 UINTEGER 1044 IREG 0 Value45 UINTEGER 1045 IREG 0 Value46 UINTEGER 1046 IREG 0 Value47 UINTEGER 1047 IREG 0 Value48 UINTEGER 1048 IREG 0 Value49 UINTEGER 1049 IREG 0 Value50 UINTEGER 1050 IREG 0 PntStatus IHEX 1051 IREG 0 Elapse TIME There are a total of 10 IREG points.
8300 Appendix Address Type Number Parameter Data Type 3034 FPREG 0 Value18 REAL 3036 FPREG 0 Value19 REAL 3038 FPREG 0 Value20 REAL 3040 FPREG 0 Value21 REAL 3042 FPREG 0 Value22 REAL 3044 FPREG 0 Value23 REAL 3046 FPREG 0 Value24 REAL 3048 FPREG 0 Value25 REAL 3050 FPREG 0 Value26 REAL 3052 FPREG 0 Value27 REAL 3054 FPREG 0 Value28 REAL 3056 FPREG 0 Value29 REAL 3058 FPREG 0 Value30 REAL 3060 FPREG 0 Value31 REAL 3062 FPREG 0 V
Appendix TankGate Interface Address Type Number Parameter Data Type 3094 FPREG 0 Value48 REAL 3096 FPREG 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 addresses are sequential.
8300 NOTES i
Your official representative Your offical representative www.varec.com Varec, Inc. 5834 Peachtree Corners East, Norcross (Atlanta), GA 30092 USA Tel: +1 (770) 447-9202 Fax: +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 products mentioned herien may be the trademarks of their respective owners.