Varec 8315 Series Protocols, Data Scanning Task, Database Manager, System Tasks, COM0 and COM1

Page 32

8315 L&J Tankway Software Description

TankGate Interface

 

 

4.1.4Communications

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:

RS-485 for use in multi-drop configurations or long cable runs (or both)

RS-232 for flexibility in configuring other types of communications links such as radio and fiber optic interfaces

RTS/CTS lines are available for hardware handshaking.

4.1.5Protocols

The TankGate is fully compatible with FuelsManager® software. It is also compatible with a variety of other Host systems including through Modbus protocol.

The default communication settings for the COM ports are as follows:

COM Port

Protocol

Baud Rate

Data Bits

Parity

Stop Bits

 

 

 

 

 

 

COM0

RTU Slave or

9600

8

N

0

 

Modbus - Auto-

 

 

 

 

 

sensing

 

 

 

 

 

 

 

 

 

 

COM1

Modbus

9600

8

N

0

 

 

 

 

 

 

4.1.6Data 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.7Database Manager

The Database Manager is a collection of programs and data. The Database Manager allows the TankGate system executive to access data from the database in an organized and program-independent manner. It resides in non-volatile RAM.

The Database Manager also contains a Database Dictionary. This dictionary describes how the database is organized and also provides information describing how data should be presented to the operator.

After power-up or system reset, a CRC verification of each point in the database is performed. If the CRC does not have a match for the point, then it is disabled and a flag is set indicating that the point is invalid.

4.1.8System Tasks

System tasks include the Calendar Task, which manages Time and Date functions. Other system tasks include utility routines for checksum calculations, diagnostics, start-up and initialization.

22

Installation and Operations Manual

Image 32
Contents Installation Operations Manual Page Copyright Disclaimer of Warranties Safety Precaution Definitions Safety Precautions Installation Using ViewRTUTroubleshooting and maintenance OverviewContents System Information SYS Using ViewRTU Troubleshooting Applications FeaturesVersions Specifications System Design Power SupplyPower consumption Operating temperatureMechanical Construction Storage temperatureHumidity Overview TankGate Interface Hardware Hardware Block Diagram Motherboard DescriptionTankGate motherboard Unit AC Input Power terminal block J2 Field Power Vfield terminal block J3Auxiliary DC Output Power terminal block J8 Surge Protection Surge Gnd terminal block J4AC Power Fuses F1,F2 Field Voltage Selection Jumper W3Hard Reset Switches and IndicatorsReset push-button SW3 Communications 3.1 COM0 J73.2 COM1 RS-232/RS-485 J5 3.3 COM1 RS232/RS-485 Selection Switch SW23.4 COM1 Hardware Handshaking Switch SW1 Communica Hardware SW2 Set Tion Physical Handshak Ting Layer IngTankGate Communications Cable With RTS / CTS RS-232J68315 L&J Tankway Interface Module Description Model 8315 TankGateID DIP Switch SW1 LED Indicators D1-D6External Power Connector +48V J2 Surge/Shield Ground Connector J4Field Wiring terminal block J3 Connect the field wiring8315 L&J Tankway Interface Module TankGate Interface Real-Time Clock Software Features Real-Time / Multitasking ExecutiveAutomatic Fault Recovery Protocols Data Scanning TaskDatabase Manager System TasksTankGate Software Blocks TankGate 8315 Software BlocksDatabase Organization Point FormatParameter Description Parameter ClassesData Format Description Parameter Data FormatsCommon Parameters PntCheckSum Parameter PntStatus ParameterElapse Parameter Value ParameterGathering Point Data Standard Request-Response FormatChange of State Format Change of State-Related ParametersDeadband Modbus Communications Modbus SlaveAddress Type Number Parameter Data Type Fixed Modbus MapFunction Code Description Comments Gwblk method 8315 L&J Tankway Software Description TankGate Interface Data Address Parameter Comments Configuration Parameters Function Clock CLKParameters Dynamic Parameters FunctionConfiguration Function Parameters Communications COMApplication Real 4 bytes value Floating Point Register FpregDynamic Function Parameters Emulator EMU APIByte value indicating status of point Values are Configuration Parame Function Ters Current CommandEMU Gateway Emugw Hex representation of the request sent by the hostDisplays the tank number of the currently selected tank Gauging Systems Inc. Model 2000 Interface GS2000 Last message. The maximum is 255 seconds. The default is Raw2 Gateway Block Gwblk Byte value indicating status of point Values are No error CRC-16 Checksum of points static Configuration ParametersSize Parameter Addr1 is the Data Address and PntRef1 is the correspondingInteger Register Ireg Integer 2 bytes valueModbus Gateway Modgw Current request message, displayed in hex formatCurrent command. Values include Scaler Point Scaler Dynamic Parame Function TersOutput value for the Scaler point Value = Ax + By + Cz + KValue parameter converted to Integer format System Information SYS 17 L&J MCG1000 Tank Gauge LJ1000 PntStatus will be set to indicate the failure Application 18 L&J MCG1500 Tank Gauge LJ1500 Task on the Motherboard determines that the Model 8315 has 8315 L&J Tankway Software Description TankGate Interface 19 L&J MCG2000 Tank Gauge LJ2000 Enables the watchdog task on the Motherboard. The watchdog 8300 Command currently being sent to the gauge Number of gauge polls since last resetNumber of gauge polls which resulted in an error 20 L&J Scanner LjscanOut 8315 L&J Tankway Software Description TankGate Interface General Safety Guidelines Installation Safety GuidelinesInstallation Mounting the TankGate Mounting the TankGate inside the enclosureWiring Up Power Installing CommunicationsMounting the Enclosure Select the Unit addressPower-Up RS-485 CommunicationsInitial system verification Establishing Host CommunicationsInstallation TankGate Interface Installing ViewRTU OverviewSystem Requirements Executing ViewRTUViewRTU Version Selection dialog File Menu ViewRTU windowViewRTU Menu Bar Point Menu Edit Point selection dialog Select Point to Add dialog boxEdit Point deletion dialog Edit Point dialogDelete Upload Database from TankGate Config MenuDownload Database to RTU To enter the password Creating a PasswordChanging the Password Changing the PasswordPC Setup Communications MenuPort Communications Setup dialog StatusTankGate search dialog Options MenuConnect Convert Configuration Files Convert ViewRTU versions dialogExport All Import AllUsing ViewRTU Help MenuConfiguring Single Points Minimize Edit Digital Point dialogEdit Point Window Push-buttons Minimizing the Edit Point Window ConnectionsNext PreviousTo modify a Value UploadTo modify a value Edit point parameter value dialogConfiguring Multiple Points To modify a ReferenceEdit point parameter reference dialog Adding Multiple PointsSpreadsheet Mode Adding Multiple PointsPoint Menu Edit MenuCopy PasteSet Value with Auto Increment Paste & DnldSet Value Export Options MenuImport Parameter Type Description ViewHide Row/Col Creating and Editing Connections Unhide AllTo create a Connection Displaying the Point Connections windowPoint Connections Window Using ViewRTU TankGate Interface Run indicator Indicator ConditionUsing the TankGate Push-buttons Communications indicatorLED Displays under Abnormal Conditions 1.3 TXD/RXD LEDsPerforming a Hard Reset Press the Reset buttonSet the ID DIP switch to the desired addresses Maintenance Replacing a defective component or moduleTroubleshooting TankGate Interface 102 Ordering Structure Remote Terminal Unit TankGate Ordering Structure Nema 4 EnclosureModbus Map Value12 Fpreg 3034 3094 8300 Your official representative Your offical representative