Você está na página 1de 37

S P

ignal rocessing U D nit for ensity

Model 604

Calibron Systems, Inc.

Operation Manual

P/N 44103622
Revision G
April 21, 2000
TABLE OF CONTENTS

Section Description
Page

1.0 Introduction 3
1.1 Hardware specification 3
1.2 Software specification and calculation 4

2.0 Installation 5
2.1 Terminal description 6
2.2 Digital alarm output wiring configuration 7
2.3 Setup 8
2.4 Analog output wiring configuration 9
2.5 Digital alarm output wiring configuration 10
2.6 Calibration procedure 12

3.0 Communication program 13


3.1 Introduction 13
3.2 Main menu 13
3.3 Communication 14
3.4 Program setup 17
3.5 Exit to DOS 17
3.6 Calibration and setting fo K0, 4mA & 20mA outputs 18,19
3.7 Function Code Listing 20,21,22

4.0 Application Platform Builder Program (USERSPUD) 20

ILLUSTRATIONS

Figure 1 Rear panel distribution I/O 5


Figure 2 Digital alarm output connection 7

FUNCTION CODE TABLES 19-23

FUNCTION CODE DESCRIPTIONS 24-35


SPUD Model 604 Operating instructions

1.0 Introduction
The SPUD Model 604 is a microprocessor based instrument designed to
perform the accurate computation (7 significant digit accuracy) of liquid
density using the linear equations for (1) liquid vibrating densimeter. The
SPUD Model 604 will provide the linearized density in LCD readout.

1.1 Hardware Specification


Inputs:
(1) Densimeter Frequency Square Wave Input: 800 Hz to 2000 Hz nominal.
(1) Temperature Input, 4-20 mA, user adjustable via RS-232 port.
(1) Pressure Input, 4-20 mA, user adjustable via RS-232 port.
(1) RS-232 Communication.

Outputs:
(1) 4-20 mA Output for compensated Density, user adjustable.
(6) Digital outputs, Open collector, (1) signal alarm and (5) progammable for "out of
range" condition of the followings:
- Density
- Temperature
- Pressure
- Densimeter's frequency

Memory:
Non-volatile SRAM with self-contained lithium energy source capable of providing
over ten years of data retention.

Display: A two line alphanumeric LCD display with user ajustable backlit capable
of providing the continuous indication of density, temperature, pressure and
densimeter frequency.

Push button switches: The one on the left is labeled "Func" and rotates the
display between the densimeter frequency, compensated density, temperature,
pressure and field calibration for densimeter. The second button on the right is
labeled " Unit" and is used to rotate between the English, CGS and SI unit systems
for density, temperature and pressure. The two up and down arrow pushbuttons "!"
and """ in the middle of the front panel are used to change (1) the offset value "K0"
for density reading and (2) the analog output 4-20 mA zero and full scale for density
range output.

Power Requirement:
16 ~ 32 VDC, with 0.25 VA nominal @ 24 VDC supplied. 3/4 A fuse (5 x 20 mm).
115 VAC, 0.5 A power supply adapter and 230 VAC adapter are available
(optional).

Operating Environment:

Page 3 of 37
SPUD Model 604 Operating instructions

32oF to 122oF (0oC to 50oC)

Physical Size:
Height .................................3.8 in. ( 96 mm)
Width ..................................3.8 in. ( 96 mm)
Depth ..................................6.5 in. (165.5 mm)
Shipping Weight:.....approx. 2 lbs. (0.9 Kg)

1.2 Software Specification and Calculation:


The SPUD Model 604 Density Processor is designed to provide an analog output 4-
20 mA of density as measured by a vibrating densimeter’s frequency with
temperature and pressure compensation.

All information of the SPUD Model 604 may be accessed via the serial
communication port using the communication software supplied. (Refer to sections 3
& 4 for more details). The system calculation shown below is for the DENSITRAK
Model D625. The temperature algorithm for Models SVT and RST is proprietary and
includes additional temperature coefficients.

1.2.0 Uncompensated Density Calculation (gr/cm3)


Du = K0n + K1*T + K2*T2
Where: K0n = K0 + [(Dpt*DCF)-Dpt]
Du = Uncorrected Density
(gr/cm3)
T = Period of the densimeter
(microsec)
K0,K1,K2= Factory calibration coefficients

1.2.1 Temperature Compensated Density Calculation (gr/cm3)


Dt = Du + (KTv * Du + KT0)*(tm-tc) + KT1*(tm-tc)2
Where: KTv, KT0, KT1 = factory temperature calibration coefficients
tm = live temperature in degree F input
tc = calibration temperature in deg. F, fixed
1.2.2 Pressure & Temperature Compensated Calculation (gr/cm3)
Dpt = Dt + (KPv * Dt + KP0)*P + KP1*P2
Where: P = Live Pressure(psig) - Calibration Pressure(psig)
KPv, KP0, KP1 = Factory pressure calibration coefficients
1.2.3 Display conversion for P&T Compensated Density, Kg/m3
Dpt * 1000
1.2.4 Display Conversion for P&T Compensated Density, Lb/ft3
Dpt * 62.428
1.2.5 Display Temperature Conversion, Degree F to Degree C
Degree F * 0.625 + 32
1.2.6 Display Pressure Conversion, Psi to Bar
Pressure in psig / 14.503764

Page 4 of 37
SPUD Model 604 Operating instructions

1.2.7 Display Pressure Conversion, Psi to KPa


Pressure in psig * 6.894757 E+3
1.2.8 Alarm Outputs Assignment
Alarm Description Terminal Number Function Codes
No Signal Alarm J2-6 Not applicable
Alarm # 4 J2-1 84*, 85**, 86**
Alarm # 3 J2-2 81*, 82**, 83**
Alarm # 2 J2-3 78*, 79**, 80**
Alarm # 1 J2-4 75*, 76**, 77**
Alarm # 5 J2-5 87*, 88**, 89**
Return ground J6-2, J6-3 common for all alarms
* The first function code for each alarm to be assigned with the desired
floating function code
** The last two function codes of each item are designated for Low Limit and
High Limit values and to be assigned through the communication software
"CAL.EXE."

2.0 Installation: Refer to the CSI Operation and Installation manual for your specific
DENSITRAK densimeter for the correct wiring diagram and installation instructions.

FIGURE 1: REAR PANEL USER I/O (See following page for terminal description)

Page 5 of 37
SPUD Model 604 Operating instructions

2.1 TERMINAL DESCRIPTION:


J2-1 Alarm #4
J2-2 Alarm #3
J2-3 Alarm #2
J2-4 Alarm #1
J2-5 Alarm #5
J2-6 Alarm, no signal from densimeter, temp., or press. transmitters
J6-2 Return ground (power supply ground)
J6-3 Return ground (power supply ground)
J6-1 Power supply input (+), 16-32 VDC

J3-6 RS-232 communication (transmit)


J3-5 RS-232 communication (receive)
J3-4 (N/C)
J3-3 (N/C)
J3-2 (N/C)
J3-1 Return Ground (power supply ground)

J4-1 (N/C)
J4-2 (N/C)
J4-3 (+) Densimeter tube Temp. in (4-20mA) ref. to return ground
J4-4 (+) Pressure transmitter in (4-20mA) ref. to return ground
J4-5 (+) SVT & RST shell temp. in (4-20mA) ref. to return ground
J4-6 Return ground (power supply ground)

J5-1 (+) Densimeter frequency signal input


J5-2 (- ) Densimeter frequency signal common
J5-3 4-20 mA density output referencing to return ground
J5-4 (N/C)
J5-5 Return ground
J5-6 Return ground The rear panel termination layout is per figure 2.

Page 6 of 37
SPUD Model 604 Operating instructions

2.2 Digital alarm output connection: The open collector alarm output is capable of driving
an external 5 volt DC relay with a current sinking up to 500 mA maximum. With the
exception of the "NO SIGNAL" alarm, other alarms for density, temperature,
pressure and densimeter frequency may be scaled to the desired ranges via the RS-
232 communication port. The open collector output is turned on when the input(s) is
within range. Figure 8 shows a typical alarm output connection.

Figure 2
DIGITAL ALARM OUTPUT CONNECTION

2.3 Setup: All specific calibration coefficients and input/out parameters have been
programmed at the factory prior to shipment. However, the user should first perform
a bench test to verify the setup parameter and familiarize with the setup
communication.

Note: In cases where pressure transmitters are not available, fixed values for
pressure may be programmed into the 604SPUD via communication port for
pressure compensation of densimeter.

3.0 Communicating with SPUD 604: Install the computer diskette containing communication
software "CAL.EXE" into the PC terminal and type "CAL" at the DOS prompt and then
"ENTER." Follow the screen menu or refer to the function code listing located in this
manual. The communication protocol for the SPUD 604 is in binary and floating point (not
in ASCII).

Note: For customized monitoring applications, the Application Platform Builder software is
available. This software package is written in Quick Basic that provides the user with a
built-in communication protocol for the Model 604 and allows the user to modify and add
their own application programming (in Quick Basic code).

Page 7 of 37
SPUD Model 604 Operating instructions

3.1 Introduction: The program CAL.EXE a general communications, control and utility
program provided with each SPUD Model 604 and designed for inputting the specific
densimeter calibration coefficients. The hardware requirements are as follows:
a). MS-DOS compatible PC with at least one RS 232 serial port
(if printing is desired, one parallel port and a printer are required)
b). At least 512Kb of RAM
c). Communication cable and connectors (User-supplied or available from
Calibron)
d). Models 625, SVT or RST Densimeter and Model 604 Density Processor

The program is supplied are on a non-system diskette, which means that the PC must have
been started from a system diskette or hard disk before the program can be used. If a hard
disk is present, copy the program from the diskette to the C: drive. To start the program
from the C: prompt, switch to the directory (if any) into which the programs have been
copied and type CAL followed by Enter. The program should now start. A description of
the program functions follows:

Each piece of information held within the transmitter that is available through the
communication port has been assigned with an item number for quick and easy access.
The item numbers within the 604 processor's memory correspond to the various
parameters.

3.2 Main Menu


This screen appears after initial startup of the program.

Calibron Density Monitor System

[1] - Communication
[2] - Program Setup
[3] - Exit to DOS

Time: 12:40:36
Date: 11-26-1995
Project: Custom
Meter Address: 0
Communication Port: 1
Baud Rate: 1200

--------------------------------------------------------------------------------------------------------
Enter function

Version 6.1m 03-Jun-97

It's selections are as follows:

Page 8 of 37
SPUD Model 604 Operating instructions

[1] - Communication
[2] - Program Setup
[3] - Exit to DOS

Type in the number of the selection and the program will immediately activate that function,
by displaying a sub-menu. The main functions are described on the following sheets.

3.3 Communication:

This is activated by typing "1" at the main menu and displays a sub-menu as below:-
[1] - Calibration Parameter Setup
[2] - Live Measurement Monitoring

Selection of a function is achieved simply by typing in the appropriate number. An ENTER


instead of a number choice will always return to the previous menu.

The functions are:-


[1] - Calibration Parameter Setup:

To look at a "snapshot" (instantaneous value) of a parameter and/or to change it.

Because this portion of the program can change the settings in the 604, and allow the 604
to display incorrect data, a Password is required to proceed into this portion of the program.

THE PASSWORD TO ENTER THIS PORTION OF THE PROGRAM IS: Densitrak

Once the password is entered correctly you will not need to enter it again unless you exit
the program.

If the password is entered, a screen of current settings with the prompt "....which item?"
will appear. This asks the user to type in the item number corresponding to the parameter
he wishes to view. So if, for example, the K0 coefficient were needed (item 46), then type
46 followed by Enter. The program interrogates the transmitter and, provided the PC and
transmitter are in communication, the current value for that item will be displayed on the
screen [If communication is not taking place, a "Polling" message will show at the bottom
right of the screen. If this occurs, you may press the space bar at any time to abort.

With the data value/units, the screen will ask "Change this (Y or N)?". If the item is to be
changed, enter "Y" and, at the prompt "Enter new value" (8 significant digit), enter the
required new value and press Enter. The program will transmit the new value to the
transmitter and read it back to the display.

If there are no more items to be monitored or if the displayed parameter is "Read only"
(such as Compensated Density (item 54), which is a measurement) or if the item is not to
be changed, enter "N" at the prompt and the program will return to the menu.

Page 9 of 37
SPUD Model 604 Operating instructions

Note: When several meters are wired in a typical Multi-Drop configuration, at any
"which item" prompt the entry of "#n" (where n = address number of a meter) will cause the
program to attempt to communicate with meter. For example, #4 would select the meter
with a communication address of 4

[2] - Live measurement monitoring:

To be able to continuously monitor one or more items (up to 8 items) in real time and to see
how they are changing.

A screen of Item Numbers and their Descriptions will show on the screen with the prompt
"....which item?" appears. Enter the first item number and a Return. The prompt
reappears, so enter the second item number, and so on up to a max of eight items. Once
you have entered all the items you wish to monitor, press ENTER at the prompt.

The program will ask whether you wish to store the records that you will be monitoring -
"Do you want to store the data?" . Typing "N" or a Return will start the monitoring
process. Typing "Y" will produce "Store records on printer?". At this point you may say
"Y" to have a printed record of all the monitored data. (NOTE: You must have a printer
connected and ready) If you enter "N" then "Store records on disk file ?" appears.
Typing "Y" will bring up a sub-menu as follows:-

[1] - Text
[2] - Data
[3] - Both

If text files are selected, the prompt "Disk file name ( .DAT)?" appears. The
program automatically adds the ".DAT" extension to the name you enter so all you need to
ensure is that your chosen name is no more than 8 characters long and follows normal
DOS rules on filenames. The structure of the data file is as follows.

Each record is stored as 1 line of several data items delimited by comma's. There will be
one record per data item monitored at the end of each monitoring period. This means that if
the user is monitoring 4 items of data, with each log time the program will add 4 records to
the bottom of the file. the format for each record is:

RecNo, Ctr, Item, Avg, Desc, LVal, HVal, Std Dev, Std Fac, Time, Date

' RecNo = The record number. A new record number is issued each log time
' Ctr = The position within a given log. In our example monitoring 4 items Ctr would run
from
1 to 4
' Item = 604 parameter item number. For example if monitoring Frequency, Item = 17
' Avg = Average value of the data during the current time period

Page 10 of 37
SPUD Model 604 Operating instructions

' Desc = A breif description text if available


' LVal = Lowest value of the data during the current time period
' HVal = Highest value of the data during the current time period
' Std Dev = Standard deviation of the data during the current time period
' Std Fac = How many readings were involved in the current standard deviation
' Time = Log Time in format "HH:MM:SS". Please note that HH represents a 24 hour
clock.
' Date = Log Date in format "MM/DD/YYYY"

NOTE: This type of file holds raw data. Trying to print this data directly will yield a very poor
picture of what occured. This data should be loaded into another program like Lotus®, or
Quattro® or Excell® so that it can be formatted in a manner that it makes sense to the
reader.

For Text files the prompt is "Disk file name ( .MON)?" . The same rules apply.
This type of file stores all the information exactly as it would have been printed if a printer
was available. This type of file holds all data in a usable format and can be dumped directly
to a printer to provide a formatted easy to read picture of what occured.

The next prompt is "Number of seconds between records?" . The entry must be an
integer number >=1 and is typically in the range 10(10 sec) to 3600(1 hour). The program
will now monitor the selected items continuously on the screen, giving the average, highest
and lowest values for each item. Each time that the chosen number of seconds occurs, the
standard deviation, lowest and highest values are logged. The highest/lowest are then
reset for the next recording period. To reset the statistics "on demand", press the "R" key
.The system "beeps" to acknowledge it has received the command. At any time, the value
of any item (monitored or not) can be viewed and/or changed pressing the "C" key, this
portion of the program will require the password to be entered as explained in section 2.1.1.
If the password has not yet been entered then the user will be prompted to enter it now. To
stop monitoring at any time, you may press the "Q" key. The program will complete the
current cycle, store a final data record, then return to the menu

3.4 - Program Setup


This is activated by typing "2" at the main menu and displays a sub-menu as below:-

[1] - Project / Time / Address Set


[2] - Select Port / Baud
[3] - Set Data Drive

Selection of a function is achieved by typing in the appropriate number. An ENTER instead


of a number choice will return to the previous menu. The functions are:-

Page 11 of 37
SPUD Model 604 Operating instructions

[1] - Project / Time / Address Set


To set the date & time in the PC and to allocate a project name which will appear on
monitor displays and printouts. This is self-explanatory in use. The project name can be
any combination of characters and spaces (up to a limit of 35). This also allows the user to
select the address of the desired 604 when several units are wired in a Multi-Drop
configuration.

[2] - Select Port / Baud

To select the PC communication port and baud rate used by the program.

[3] - Set Data Drive

To specify a desired drive and/or directory where all data files created will be stored, and
where all data files accessed must be located. Any path name must end with a "\". For
example, to specify that all data is stored in drive "C:" in an existing directory called "SPUD"
and in an existing sub-directory called "files", the path is specified "c:\SPUD\files\".

3.5 - Exit to DOS

Selecting this function will cause execution of the program to stop and will display "Exit to
DOS (Y or N)". "Y" will return you to the DOS environment. "N" will return you to the main
menu of the SPUD 604.

3.6 - Calibration procedure for the SPUD density measurement system:

3.6.1 Density calibration: After completing the setup of wiring interconnection


between the Model 604 and Models DT625, SVT or RST densimeters, flow clean
DI water through the densimeter and assure that there is no air in the system.
Follow the calibration procedure as follows:

a. Obtain the test temperature and actual density of water (in gr/cc) @ measured
temperature using an NIST table for water or Wagenbreth equation.

b. Record the indicated density from the SPUD model 604 display (gr/cc)
immediately after the water temperature was recorded per step 1 above.

c. Compute the new K0 offset per the followings:

Example:
Run No. 1 Run No. 2
(1) Indicated Density Di (gr/cc) @ 60oF 0.9999 1.0010

(from Model 604 display)

Page 12 of 37
SPUD Model 604 Operating instructions

(2) Actual Density Da (gr/cc) @ 60oF = 0.9990 0.9990

(from NIST table of Wagenbreth)

(3) Take the deviation [ Da - Di ] = -0.0009 -0.0020

(4) Take an average deviation of (3) = ((-0.0009)+(-.0020))/2 = -0.0015

(5) Calculate new K0 = existing K0 + (4); for K0 = -1.34923, we have:

New K0 = (-1.34923) + (- 0.0015) = -1.35073

3.6.2 Program the new K0 and 4-20 mA analog outputs by the front key board:

a. Push the "FUNC" key to display the K0 and its value on the SPUD Model 604
screen. The order of display items is as follow:

Resonant Frequency (Hz)


Density (gr/cc)
Temperature (oF)
Pressure (psig)
K0 (gr/cc)

When the screen display "K0," push the "UNIT" key will rotate the
screen to show 4 mA zero scale analog output and 20 mA full
scale analog output then return to K0 until the "FUNC" key is
pushed.

The only values can be changed by the up and down keys on the front panel are:
K0, 4mA analog output and 20 mA analog output. However, the up and down
arrow keys will be disabled and return to normal operation for security protection
when the "FUNC" key is pushed. Follow the next steps to enable or remove the
protection when changing the K0, 4mA and 20 mA values.

b. Push and hold the "FUNC" and "UNIT" pushbutton switches silmutaneously for 4
seconds minimum a to 9 seconds maximum then release. The display will remain
to show "K0" on screen. If these keys were held less than 4 seconds or greater
then 10 seconds, the display will not display the K0 but one of the others items.

CAUTION: Do not hold these keys for more then 10 seconds since this will reset
all the programmed coefficients. The correct coefficients for the desired
densimeter would have to be programmed through communication via an IBM
terminal.

Page 13 of 37
SPUD Model 604 Operating instructions

c. Use the up arrow key to increase the K0 value and the down arrow key to
decrease the K0 value.

d. After changing the K0 value, push the "FUNC" to activate the security protection
and return the SPUD 604 to the normal operation. Observe and confirm that the
display shows the correct density reading.

e. Repeat steps "a, b, c and d" to change the 4mA analog zero scale output and
20mA analog full scale output.

3.6.3 Program the new value for K0, 4mA and 20mA outputs through
communication:

a. Connect an IBM terminal to the SPUD Model 604 with the supplied RS-232
cable. Execute the supplied communication program CAL.EXE. Follow the
screen menu to retrieve and change the following items:

FC (function code) 46 for K0 value


FC 59 for 4 mA zero scale output
FC 60 for 20 mA full scale output

Use FC 54 or 52 to verify the corrected density, after changing the new K0 value.

NOTE: the password for getting into the programming setup is "Densitrak"

3.7 Function Code listing:

In addition to the above, the CAL.EXE is designed to perform the following tasks with
Model 604:

1. Program the densitometer calibration coefficients


2. Change the existing densimeter's calibration constants when using the SPUD 604
with a different densimeter.
3. Monitor live frequency (or period) from the densimeter and other measurement data
such as: temperature, pressure, density, analog output etc. (up to 8 parameters on
one screen).
4. To program or change the input/output parameters such as the analog outputs for
density, temperature and pressure transmitter inputs, output alarms etc.

Communication format: The Calibron's microprocessor standard serial protocol is an ASCII


coded poll/response procedure. The standard setup is as follow:
- 1200 bps
- Full duplex mode
- 7 data bits
- Even parity
- One stop bit

Page 14 of 37
SPUD Model 604 Operating instructions

REFER TO THE FUNCTION CODE TABLE AT THE END OF THIS MANUAL FOR
ALL MEASUREMENT ITEMS THAT ARE AVAILABLE FOR DATA LOGGING AND
MONITORING WITH A PC TERMINAL. THIS TABLE CONTAINS THE FUNCTION
CODES FOR THE MODEL 604 DENSITY PROCESSOR .

Page 15 of 37
SPUD Model 604 Operating instructions

THE FOLLOWING SECTION PROVIDES INSTRUCTIONS FOR AN OPTIONAL SOFTWARE PACKAGE


WHICH ALLOWS USERS TO CUSTOMIZE FOR SPECIFIC DATA LOGGING APPLICATIONS. THIS
SOFTWARE PACKAGE HAS BUILT-IN COMMUNICATION PROTOCOL FOR THE SPUD 604 AND A
MS-DOS PC TERMINAL. THE USER NEEDS ONLY TO ADD CODE IN QUICK BASIC FOR THEIR
SPECIFIC APPLICATION.

Page 16 of 37
SPUD Model 604 Operating instructions

4.0 Application Platform Builder Program (USERSPUD)- OPTIONAL: The USERSPUD


program was written to give the end user a platform to develop his own custom software
that can read and write to the Model 604 with a minimum of effort. This text is a basic
instructional guide for the use of USERSPUD. A programmer with some knowledge of
basic will be able to generate simple applications very quickly with this tool. The user
should begin his portion of the program at line 10000. all lines below 10000 are reserved
for current and future Calibron use. A sample user program is included in the USERSPUD
as shipped. It illustrates the use of the routines and is an example of a very simple user
application.

USERSPUD is tested and fully compatible with BASICA, GWBASIC, QBASIC, or any
version of Microsoft's QuickBasic Compiler

The program is made up of many individual modules. The first line of each is a brief
description of that module's function. Scanning through the code the user may notice
additional modules that can make his programming task easier. For the average user only
two of these modules will be used. For this reason only those two will be described here.

Module at Line 5650 "Read Data from SPUD604"

Use: For Bit, Byte, Two Byte, or Floating Point Items


Set the variable IX to the desired item number in decimal
Example: IX = 17
Make Call to Read Data Module at line 5650
Example GOSUB 5650
The Variable R now holds the data received from the 604MEGA. The user can now store
the data under any variable name.
Example FREQ = R

Use: For ASCII Characters, or Text Items


Set the variable IX to the desired item number in decimal
Example: IX = 6
Set the variable TEXTFLAG to 1
Example: TEXTFLAG = 1
Make Call to Read Data Module at line 5650
Example GOSUB 5650
The Variable R$ now holds data received from the 604MEGA. The user can now store the
data under any variable name.
Example SN$ = R$
The user must turn TEXTFLAG back off when complete
Example: TEXTFLAG = 0

Module at Line 5620 "Write Data to SPUD604"


Use: For Bit, Byte, Two Byte, or Floating Point Items
Set the variable IX to the desired item number in decimal

Page 17 of 37
SPUD Model 604 Operating instructions

Example: IX = 26
Set the variable R to the outgoing data
Example: R = 100
Make call to Write to 604SPUD module at 5620
Example: GOSUB 5620
The Data has now been sent

Use: For ASCII Characters, or Text Items


Set the variable IX to the desired item number in decimal
Example: IX = 6
Set the variable TEXTFLAG to 1
Example: TEXTFLAG = 1
Set the variable TEXT$ to the outgoing data
Example: TEXT$ = "SN 1219931"
Make call to Write to the 604SPUD module at 5620
Example: GOSUB 5620
The Data has now been sent. The user must turn TEXTFLAG back off when complete.
Example: TEXTFLAG = 0

Note: The data write module will place a * on the screen when writing. It is recommended
that the user position the cursor where he wants the * to appear before jumping to the
write subroutine.

Other variables that may be of interest to the user. All the variable default values are set in
line 5.

MO: If MO = 0 The program will announce (on the screen) the results of the read
operation while performing it.
If MO = 1 The program will quietly read the data and will not effect the screen in
any way.

ADI: ADI is the 604SPUD address number. The default value for the program is 0
which causes any meter that hears the poll to respond. If the user is talking to
Multiple 604SPUD's , this variable can be used to select the desired 604SPUD.

PORT$: Port$ holds the name of the communication port being used. the default value is
"COM1". The value "COM2" is also available if the users computer has a second
serial port.

IMPORTANT NOTE: COM3 and COM4 are NOT supported!


BAUD$: Baud$ holds the baud rate for communication with the 604SPUD. The
default value is "1200". The user should note that if the baud rate on the
computer is changed, the baud rate on the 604SPUD must also be
changed or communication will not take place correctly.

Page 18 of 37
SPUD Model 604 Operating instructions

Function Code Listing

FUNCTION CODE TABLE


Version 6.1 June 25, 1997
Function Code Description Type(Note1) Initialization value
0 Software Date String Software version
1 Software Configuration String
2 Cycle time FP
3 SPUD 604 serial number String SP 9201711
4 Densimeter serial number String DT 9201711
5 Function key (see note 2) Byte 0
6 Unit key (See note 2) Byte 0
7 Baud rate FP 1200.0
8 Communication address Byte 1
9 SPUD 604 error status Integer Note 3
10 SPUD 604 alarm status Integer Note 4
11 Totalizer assignment Byte 2 = Wh
12 Totalizer pulse width in 10 millisecond increments Byte 2 = 20 ms

15 Number of temperature samples to average Byte 255


16 Averaged temperature in dog C FP 0.0
17 Temperature zero scale FP 0.0
18 Temperature full scale FP 100.0
19 Temperature override, 0 = live; 1 = override Byte 0
20 Temperature override value FP 0.0
21 Temperature ADC value FP 0.0

23 Number of pressure samples to averse Byte 255


24 Averaged pressure in PSI FP 0.0
25 Pressure zero scale FP 0.0
26 Pressure full scale FP 1500.0
27 Pressure override, 0 = live; 1 = override Byte 0
28 Pressure override value FP 0.0
29 Pressure ADC value FP 0.0

31 Number of shell temperature samples to average Byte 255


32 Shell temperature in dog C FP 0.0
33 Shell temperature zero scale FP 0.0
34 Shell temperature full scale FP 100
35 Shell Temperature override, 0 = live; 1 = override Byte 0
36 Shell temperature override value FP 0.0
37 Shell temperature ADC value FP 0.0

39 Number of % water samples to average Byte 255


40 Averaged % water FP 0.0
41 % water zero scale FP 0.0
42 % water full scale FP 100.0
43 % water override, 0 = live; 1 = override Byte, 0
44 % water override value FP 0.0
45 % water ADC value FP 0.0

Page 19 of 37
SPUD Model 604 Operating instructions

Function Code Listing

Function code Description Type (Note 1) Initialization Value


47 No. of 10 ms periods between densimeter samples Byte 5 = 50 ms
48 Namber of deasimeter samples to average Byte 150
49 Averaged densimeter period in microseconds FP 0.0
50 Averaged densimeter frequency in hertz FP 0.0
51 Densimeter period override, 0 = live; 1 = override Byte 0
52 Densimeter period override value FP 0.0
53 Densimeter count FP 0.0

56 Number of flow motor samples to average Byte 63


57 Averageed flow meter frequency FP 0.0
58 Flow meter override, 0 = live; 1 = override Byte 0
59 Flow meter override value FP 0.0
60 Linearized flow meter frequency FP 0.0
61 Flow motor K factor FP 1000.0
62 KO flow meter coefficient FP 0.0
63 KI flow meter coefficient FP 1.0
64 K2 flow meter coefficient FP 0.0
65 K3 flow meter coefficient FP 0.0
66 Flow meteor correction factor FP 1.0
67 Flow meter high resolution count FP 0.0
68 Flow motor low resolution count FP 0.0

71 % concentration FP 0.0
72 BO % concentration coefficient FP -5.564764
73 B 1% concentration coefficient FP 9.763139
74 B2 % concentration coefficient FP -5.343398
75 B3 % concentration coefficient FP 1.141627
76 CO % concentration coefficient FP .997447
77 C 1% concentration coefficient FP 1.37565e-4
78 C2 % concentration coefficient FP - 1.8053e-6
79 C3 % concentration coefficient FP 5.16988e-26
80 % concentration base temperature FP 0.0
81 Display units for % concentration String °BRIX

86 Kt0 temperature coefficient FP 2.68175E-03


87 Kt1 temperature coefficient FP 8.99256E-06
88 Kt2 temperature coefficient FP 1.23268E-04
89 Kt3 temperature coefficient FP 8.55435E-07
90 Kt4 temperature coefficient FP -3.43504E-04
91 Kt5 temperature coefficient FP - 5.39170E-06
92 Kt6 temperature coefficient FP 3.81006E-08
93 Kt7 temperature coefficient FP -3.26950E-03
94 Kt8 temperature coefficient FP -2.76711E-O4
95 Kt9 temperature coefficient FP 3.57809E-07
96 Ktl0 temperature coefficient FP 2.11048E-07

98 Flowing or standard density select Byte 0 = flowing


99 Standard density calculation status Byte 0
100 Volume correction factor FP 1.0

Page 20 of 37
SPUD Model 604 Operating instructions

Function Code Listing

Function Code Description Type (Note 1) Initialization value


101 Hydrometer flag Byte 0= no hydrometer
correction
106 Du uncompensated density FP 0.0
107 Dt temperature compensated density FP 0.0
108 Du and pressure compensated density FP 0.0
109 Density overrode, 0 = live; 1 = override Byte 0
110 Density override value FP 0.0
111 Density in user specified units FP 0.0
112 Density in user specified units FP 0 = gm/cc
113 Temperature compensation FP 0.0
114 Pressure Compensation FP 0.0
115 Specify number of display digit for density {0- 5) FP 5

118 K0n densimeter coefficient FP 1.0


119 Density correction factor FP
120 K0 density coefficient FP -2.85437E+00
121 KI density coefficient FP 2.72113E-03
122 K2 density coefficient FP 2.69669E-06
123 K3 density coefficient FP 0.00E+00
124 K4 density coefficient FP 0.00E+00
125 Period base FI'
126 Base temperature (Degrees C) FP
127 Kpv pressure coefficient FP -3.10200E-06
128 Kp0 pressure coefficient FP - 1.26074E-06
129 Kp1 pressure coefficient FP 3.71712E-08

132 Volume flow rate FP 0.0


133 Volume flow total FP 0.0
134 Volume flow total increment FP 100.0
135 Volume total residual FP 0.0
136 Units of Time Byte 2 =/hour

138 Mass flow rate FP 0.0


139 Mass flow total FP 0.0
140 Mass flow total increment FP 100.0
141 Mass total residual FP 0.0
142 Mass/Volume Units Byte 0 = gm/cc

144 Water volume flow rate FP 0.0


145 Water volume flow total FP 0.0
146 Water volume flow total increment FP 100.0
147 Water volume total residual FP 0.0

149 Oil volume flow rate FP 0.0


150 Oil volume flow total FP 0.0
151 Oil volume flow total increment FP 100.0
152 Oil volume total residual FP 0.0

Page 21 of 37
SPUD Model 604 Operating instructions

Function Code Listing

Function code Description Type (Note 1) Initialization value


154 Water mass flow rate FP 0.0
155 Water mass flow total FP 0.0
156 Water mass flow total increment FP 100.0
157 Water mass total residual FP 0.0

159 Oil mass flow rate FP 0.0


160 Oil mass flow total FP 0.0
161 Oil mass flow total increment FP 100.0
162 Oil mass total residual FP 0.0

164 Analog output zero scale FP 0.5


165 Analog output full scale FP 1.5
166 FC to output to analog output Byte 111
167 Analog output DAC value FP 0.0

169 FC to monitor for alarm #1 (J2-4) Byte 111


170 Alarm #1 low limit FP 0.5
171 Alarm #1 high limit FP 1.5

173 FC to monitor for alarm #2 (J2-3) Byte 111


174 Alarm #2 low limit FP 0.0
175 Alarm #2 high limit FP 1.5

177 FC to monitor for alarm #3 ($2-2) Byte 111


178 Alarm #3 low limit FP 0.5
179 Alarm #3 high limit FP 1.0

181 FC to monitor for alarm g4 (J2-1) Byte 111


182 Alarm 84 low limit FP 1.0
183 Alarm g4 high limit FP 1.25

185 FC to monitor for alarm #5 (J2-5) Byte 111


186 Alarm #5 low limit FP 1.25
187 Alarm #5 high limit FP 1.5

190 Ktn0 Temperature coefficient FP -1.80176E-04


191 Ktn1 Temperature coefficient FP 9.68106E-05
192 Kin2 Temperature coefficient FP -8.34852E-06
193 Dt Base FP

195 De-activate all override FP 1

Page 22 of 37
SPUD Model 604 Operating instructions

Function Description and Operation


Code (FC)

00 Software Date: Read Only Software Date, Read Only (RO): Software
01 revision date
Password. Read & Write (RW): FACTORY USE ONLY-The following
configurations of strings, exact as indicated inside the quotation, will
define the types of applications:
- "Mass Flow" denotes mass flow application for Model 604
- "Net Oil" with two spaces between "Net" and "Oil" denotes
application for Net Oil Flow Computer. This application includes
additional computation for the analog input of a Water/Oil
Analyzer.
- Blank or any strings that are not identical as the above two
options denotes application for density only.
02 Cycle time, RO: in second value, the time that software takes to
perform a normal cycle of system computation
03 Serial number. RW: for applicable SPUD unit
04 Serial number. RW: for applicable Densitometer unit
05 Function key. RW: Assign a desired function key to display upon
cycling of power. Example: To display compensated density value
(FC 108), type value 108 into this function code and the live value for
compensated density will be displayed when the power to the SPUD
is cycled off and on. See note 1 for more details
06 Unit Key. RW: Assign a desire unit key to display upon cycling of
power. This function operates identical to that of function code 5 but
for unit of measurement. See note I for more details.
07 Baud rate, RW, Communication sFccd between an IBM terminal and
SPUD which can be set for 1200, 2400 or 4800 bps.
08 Communication address: RO: Is used to identify the current SPUD
that is being communicated with.
09 SPUD error status, RO: Error code denotes the current system error
caused by software or/and inputs. This is a software diagnostic
feature for factory use. See note 3 for more details.
10 SPUD alarm status; RO: Error code denotes the current system
error caused by software alarm set points. See note 4 for more
details.
11 Totalizer assignment, RW: Select one of the following digit codes: 1=
Volume Flow Total (Vg); 2= Mass Flow Total; 3= Water VolUme
Total; 4= Oil Volume Flow Total; 5= Water Mass Flow Total; 6= Oil
Mass Flow Total.
12 Totalizer oulse, RW: Pulse delay in multiple of 10 millisecond
increment. Example 2=20 millisecond.

Page 23 of 37
13, 14 Spare
15, Number of average samples for temperature input, RW: Defines the
buffer size for temperature input averaging. Value to be an integer
between 1 and 255. Default value is 255. Multiply the value in this
function code by the value from FC: 02 to find the total time in
second for this averaging routine. This is a typical moving averaging
routine where the oldest input sample in the buffer is replaced by the
newest input sample for each averaging cycle. This feature helps to
stabilize the erratic input signal. The larger the value, the more
stabilized signal will be but the slower the change of reading for
temperature value in FC 16.
16 Live averaged tube temperature reading, RO: Live temperature in
degrees C. This is an averaged value which is the product of the
temperature input signal and the number of averaging increments
from function code15. If FC 19=1 for an override active, the
overridden value from FC 20 would he displayed here.
17 Temperature Zero Scale. RW: Temperature value in degrees C
corresponding to the zero scale (4 mA) of the temperature
transmitter. This value is normally 0 degrees C for the
densitometer’s internal temperature module.
18 Temperature Full Scale; RW: Temperature value in degrees C
corresponding to the full scale (20 mA) of the temperature
transmitter. This value is normally 100 degrees C for the
densitometer’s internal temperature module.
19 Temperature Override. RW: Value "0" denotes live value for FC 16;
value "1" denotes override active and overridden value from FC 20
will be used for FC 16 in place of live value.
2O Temperature override value, RW: The value for this function code is
in degree C and will be activated and used for function 16 if FC
19=1.
21 Temperature ADC value. RO: Raw analog input in digital count
format for the actual corresponding analog input, 4mA = 0 count and
20 mA= 1023 counts. This value is used for input diagnostic.
22 Spare
23 Number of averaged samples for pressure input, RW: Defines the
buffer size for pressure input averaging. Value to be an integer
between 1 and 255. Default value is 255. Multiply the value in this
function code by the value from FC 02 to find the total time in
second for this averaging routine. This is a typical moving averaging
routine where the oldest input sample in the buffer is replaced by the
newest input sample for each averaging cycle. This feature helps to
stabilize the erratic analog input signal for pressure. The larger the
value, the more stabilized signal will be but the slower the change of
reading for pressure value in FC 24.
SPUD Model 604 Operating instructions

24 Live averaged pressure reading, RO: Live pressure in psig.


This is an averaged value, which is the product of the pressure
input signal and the number of averaging increments from function
code 23. If FC 27=1 for an override active, the overridden value
from FC 28 would be displayed here.
25 Pressure Zero Scale: RW: Pressure value in psig corresponding to
the zero scale (4 mA) of the pressure transmitter. This value is
normally 0 psig or an applicable zero scale for an external pressure
transmitter.
26 Pressure Full Scale. RW: Pressure value in psig corresponding to
the full scale (20 mA) of the pressure transmitter. This value is
normally maximum scale value for the external pressure transmitter
27 Pressure Override: RW: Value "0" denotes live value for FC 24;
value “1" denotes override active and overridden value from FC 28
will be used for FC 24 in place of live value.
28 pressure override value; RW: The value for this function code is in
psig and will be activated and used for function 24 if FC 27= 1.
29 Pressure ADC value, RO: Raw analog input in digital count format
corresponding to the actual pressure input, 4mA = 0 count and 20
mA= 1023 counts. This value is used for input diagnostic.
30 Spare
31 Number of averaged samples for shell temperature input RW:
Defines the buffer size for shell temperature input averaging. Value
to be an integer between 1 and 255. Default value is 255. Multiply
the value in this function code by the value from FC 02 to find the
total time in second for this averaging routine. This is a typical
moving averaging routine where the oldest input sample in the
buffer is replaced by the newest input sample for each averaging
cycle. This feature helps to stabilize the erratic analog input signal
for shell temperature. The larger the value, the more stabilized
signal will be but the slower the change of reading for temperature
value in FC 32.
32 Live averaged shell temperature reading; RO: Live temperature in
degree C. This is an averaged value which is the product of the
shell temperature input signal and the number of averaging
increments from function code 31. If FC 35=1 for an override active,
the overridden value from FC 36 would be displayed here.
33 Shell temperature Zero Scale, RW: Shell temperature value in psig
corresponding to the zero scale (4 mA) of the shell temperature
transmitter. This value is normally 0 degrees C for the
densitometer's internal shell temperature transmitter.
34 Shell Temperature Full Scale; RW: Pressure value in psig
corresponding to the full scale (20 mA) of the shell temperature

Page 25 of 37
SPUD Model 604 Operating instructions

transmitter. This value is normally 100 degrees C for the


densitometer's internal shell temperature transmitter.
35 Shell temperature Override: RW: Value "O" denotes live value for FC
32; value "1" denotes override active and the overridden value from
FC 36 will be used for FC 32 in place of live value,
36 Shell temperature override value; RW: The value for this function
code is in degree C and will be activated and used for function 32 if
FC 35=1.
37 Shell temperature ADC value. RO: Raw analog input in digital count
format corresponding to the actual shell temperature input, 4mA = 0
count and 20mA= 1023 counts. This value is used for input
diagnostic.
38 Spare
39 Number of averaged samples for the Water/Oil Analyzer input: RW:
Defines the buffer size for Water/Oil Analyzer input averaging. Input
value to be an integer between 1 and 255. Default value is 255.
Multiply the value in this function code by the value from FC 02 to
find the total time in second for this averaging routine. This is a
typical moving averaging routine where the oldest input sample in
the buffer is replaced by the newest input sample for each averaging
cycle. This feature helps to stabilize the erratic analog input signal
from the Water/Oil Analyzer. The larger the value, the more
stabilized signal will be but the slower the change of reading for %
water value in FC 40.
40 Live averaged % water reading, RO: Live % water reading in percent
value. This is an averaged value, which is the product of the % water
input signal and the number of averaging increments from function
code 39. If FC 43=1 for an override active, the overridden value from
FC 44 would be displayed here.
41 % Water Zero Scale, RW: % water value in percentage
corresponding to the zero scale (4 mA) of the Water/Oil Analyzer.
This value is normally 0 percent.
42 % Water Full Scale, RW: % water value in percentage corresponding
to the full scale (20 mA) of the Water/Oil Analyzer. This value is
normally 100 percent.
43 % Water Override, RW: Value "0" denotes live value for FC 40; value
"1" denotes override active and the overridden value from
FC 44 will be used for FC 40 in place of live value.
44 % Water override value, RW: The value for this function code is in
percentage and will be activated and used for function 40 if
FC 43=1.
45 % Water ADC value. RO: Raw analog input in digital count format
corresponding to the actual % water input, 4mA =
0 count and 20mA= 1023 counts. This value is used for diagnostic.

Page 26 of 37
SPUD Model 604 Operating instructions

46 Spare
47 Increments between densitometer samples, RW: Defines the buffer
size for the measurement cycle of the densitometer's frequency
input. The input value to be an integer between 1 and 255, which
represents the number of 10 millisecond Increments that the SPUD
will skip before the next measurement. The larger the value, the
slower the display will update.
48 Number of averaged samples for the densitometer's bout. RW:
Defines the buffer size for the densitometer's frequency input
averaging. Input value to be an integer between 1 and 255. Default
value is 150. Multiply the value in this function code by the value
from FC 02 to find the total time in second for this averaging routine.
This is a typical moving averaging routine where the oldest input
sample in the buffer is replaced by the newest input sample for each
averaging cycle. This feature helps to stabilize the erratic frequency
input signal from the densitometer due to random vibration, air
bubbles or spikes. The larger the value, the more stabilized signal,
but the slower the signal update for period value (in microseconds) in
FC 49.
Period in microseconds = 1/(frequency x 1E-6).
49 Live averaged densitometer’s period reading; RO: Live period
reading in microsecond value. This is an averaged value, which is
the product of the densitometer's period input signal and the number
of averaging increments from function code 48. If FC 51=1 for an
override active, the overridden value from FC 52 would be displayed
here.
50 Live averaged densitometer's frequency: RO: Live frequency reading
in Hz. This value is the reciprocal of the period value from FC 49.
51 Densitometer's period override; RW: Value "0" denotes live value for
FC 49; value "1" denotes override active and the overridden value
from FC 52 will be used for FC 49 in' place of live value.
52 Densitometer's period override value; RW: The value for this function
code is in microsecond and will be activated and used for FC 49 if
FC 51=1.
53 Densitometer's count: RO: Raw frequency input in digital count
format corresponding to the actual % water input, 4mA =
0 count and 20mA= 1023 counts. This value is used for input
diagnostic.
54,55 Spare
56 Number of averaged samples for the flow meter's input RW: Defines
the buffer size for the flow meter's frequency inlet averaging. Input
value to be an integer between 1 and 255. Default value is 5.
Multiply the value in this function code by the value

Page 27 of 37
SPUD Model 604 Operating instructions

from FC 02 to find the total Ume in second for this averaging


routine. This is a typical moving averaging rouUne where the oldest
input sample inthe buffer is raplaced by the newest input sample-for
each averaging cyde. This feature helps to stabilize the ewatic
fiequency input signal from the flowmeter. The larger the value, the
more stabilized signal, but the slower the signal update for
frequency value (Hz) in FC 57.
57 Live averaged flowmeter's frequency reading; RO: Live frequency
reading in Hz. This is an averaged value which is the product of the
flowmeter's frequency input signal and the number of averaging
increments from function code 56. If FC 58=1 for an override active,
the overridden value from FC 59 would be displayed here. Flow
58 meter's frequency override, RW: Value "0" denotes live value for FC
57; value "1" denotes override active and the overridden value from
FC 59 will be used for FC 57 in place of live value.
59 Flow meter's frequency override value. RW: The value for this
function code is in Hz and will be activated and used for function 57
if FC 58=1.
60 Lnearized flow meter’s frequency: RO: Internal computed value for
flow meter input frequency. Refer to manual for detailed calculation.
61 Flow meter K Factor. RW: Flow meter counts per unit volume.
Factor normally supplied by the flow meter calibration certificate.
62-65 Flow meter coefficients KO thru K3, RW: polynomial coefficients for
flow meter's frequency input linearization. These coefficients are
used to compute the Lineanzed value for FC 60.
66 Flow meter's correction factor (-HCF), RW: Meter correction factor
for flow meter. This value is derived from a field calibration routine
for flow meter.
67 Flow meter count, high resolution: RO: Raw digital count for flow
meter frequency input. Maximum count is 65536. The exceeding
multiple of the maximum count will increment as 1 into FC68.
68 Flow meter's count, low resolution, RW: Increment value for the
multiples of 65536 counts from FC 67.
69, 70 Spare
71 % Concentration, RO: Live value for % concentration. See manual
for various calculation of % concentration applications.
72-75 % Concentration coefficients; RW: Polynomial coefficients for
% concentration linearization. These coefficients are used to
compute the Linearized % concentration value relative between
density and percent of solids for FC 71. A table of density vs %
concentration is needed to generate the coefficients.
76-79 Temperature coefficients for % concentration. RW: Polynomial
coefficients for base temperature referencing on % concentration

Page 28 of 37
SPUD Model 604 Operating instructions

reading. These coefficients are used to) compute the reference


density for a base temperature from FC 80 using the flowing density
Dtp from FC 108. An applicable table density versus temperature is
needed to generate the coefficients.
80 Base temperature for % concentration reading, RW: Desired
reference temperature in degree C,
81 Display units for % concentration: RW: Up to five characters can be
written to this function code for displaying on the SPUD front panel.
82 85 Spare
86 to 96 KT0 thru KT10: temperature coefficients, RW: Densitometer
polynomial temperature coefficients. Caution: These coefficients
were specifically calibrated to for an individual densitometer,
Refer to the applicable densitometer's calibration certificate for
the correct values.
97 Spare
98 Flowing or standard density select; RW: Select one of the following
calculation options for density: 0= flowing; 1= API 23A; 2 = API 23B
& Generalized API; 4= API 23A & Generalized API; 5= API 23B &
Generalized API.
99 Standard density- calculation status. RO: Error indication for density
calculation. 0= OK; 1= Input error; 2= non-convergence error;
3= extrapolated result; 4= output error; 5= disabled.
100 Volume correction factor (VCF), RO: Calculated VCF value for
appropriate API table.
101 Hydrometer flag. RW: Select one of two options. 0= do not use
hydrometer correction; 1= use hydrometer correction.
102 to 105 Spare
106 Du, Uncompensated Density. RO: Live density value not
compensated for flowing temperature change differing from the
factory calibration temperature.
107 Dtp, Temperature Compensated Density, RO Live density value
compensated for flowing temperature change differing from the
factory calibration temperature.
108 D to, Temperature and Pressure Compensated Density, RO: Live
density value compensated for flowing temperature and pressure
change differing from the factory calibration temperature and
pressure.
109 Density override, RW: Value "0" denotes live value
for FC 108; value "1" denotes override active and the overriden value
from FC 110 will be used for FC 108 in place of live value. Density
110 override value, RW: The density value for this function code is in g/cc
and will be activated and used for function 108 if FC 109=1.

Page 29 of 37
SPUD Model 604 Operating instructions

111 Density in user specified units: RO: The density value in this function
code is specified by FC 112, Example: if FC 112=0, then the value is
“g/cc," or if FC 112=1, then the value is "KG/m3,'' etc. This function code
is normally assigned to the analog output in FC 166 by setting FC
166=166. The analog zero and full scales in function codes 164 and 165
must have the same unit of density as specified in FC 112.
112 User specified density/units; RW: Select one of the following digit code
for density unit:
0=g/cm3; I=KG/m3, 2=lb/ft3; 3= lb/gal; 4=lb/bbl; 5= ton/m3; 6= Relative
density @ flowing; 7= Relative density @ 60 degree F; 8= API @ 60
degree F; 9= ° BRIX ( or selectable % concentration term); 10= °
BAUME for light liquid crude oil; 11=° BAUME for heavy liquid crude
oil.
113 Temperature compensation, RO: Computed value for temperature
resulting from the temperature coefficients in function codes 86 thru
96 and the temperature difference between flowing temperature in
FC 16 and the standard temperature in FC 126. The combine result
of this value and the value Du (FC 106) make up Dt value (FC 107).
114 Pressure compensation: RO: Computed value for pressure
compensation resulting from the pressure coefficients in function
codes 127 thru 129 and the pressure value FC 24. The combined
result of this value and the value Dt (FC 107) make up Dtp value
(FC 108).
115 Number of digit for density display, RW: Select the number of digit
for display density, example: 0.99500, 0.9959, 0.995 etc.., up
between 0 to 5 digit (integer value only).
116 to 117 Spare
118 K0n corrected zero offset value, RO: This value is the result of KO
value (FC 120) and the densitometer correction factor (DCF) in FC
119. Refer to manual for detail calculation.,
119 Density Correction Factor (DCF), RW: The calibration factor for
densitometer which is the ratio of known density (from a
hydrometer or pycnometer) and densitometer's reading (dtp from
FC 108).
120 to 124 Density coefficients; RW: Factory densitometer's coefficients for
density. The combination of these values and the densitometer's
period in FC 49 make up Du (FC 106). Refer to manual for detailed
calculation.
125 Period base, RW: Densitometer's period in microsecond of the
standard fluid at a standard condition. This value is part of the
temperature compensation algorithm.
126 Base temperature. RW: Temperature in degree C at which the

Page 30 of 37
SPUD Model 604 Operating instructions

densitometer was Calibrated at standard condition. This value


is part of the temperature compensation algorithm.
127-129 Kpv, KP0, KP1 Pressure coefficients, RW: Densitometer's
polynomial pressure coefficients. Caution: These coefficients
were specifically calibrated to an individual densimeter. Refer
to the applicable densimeter’s calibration certificate for the
correct values.
130-131 Spare

CAUTION: THE FOLLOWING FLUNCTION CODES ARE AVAILABLE AND


APPLICABLE FOR MASS FLOW OPTION ONLY WHEN FC 1 = MassFlow WITH ALL
RELATED PARAMETERS DEFINED FROM THE FACTORY (refer to manual for all
detail calculations)

132 Volume flow rate. RO: Live flow rate from flowmeter. Unit of measure
for flow rate is specified in r-c 136 (for time) and 142 (for unit of
volume).
133 Volume flow total: RO: Live flow total per time. This value is the
product of the value in FC 132 and the running time from start and
the increment value in FC 134.
134 Volume flow total increment, N value. RW: An increment multiplier
for the volume totalizer in FC 133. This value is normally 1. However,
this value can be any integer to slow down the counts for external
totalizer. The larger value, the slower the totalizer will increment.
135 Volume total residual, RO: Internally computed value. The remainder
of volume flow total in FC 133 after being incremented from FC 134.
136 Unit of time: RW: The time in second or hour etc.., that the volume
flow rate is based on. It can be selected from the following digit
options:
0= second; 1= minute; 2= hour; 3= day ,
137 Spare
138 Mass Flow Rate, RO: Live mass flow rate from flowmeter and
densitometer inputs. Density value can be an override value if FC
51=1 or FC 109=1. However, flowmeter input will always be live. Unit
of measure for mass flow rate is specified in FC 136 (for time) and
FC 142 (for mass).
139 Mass Flow Total, RO: Live mass flow total per time. This value is the
product of the value in FC 138 and the running time from start and
the increment value in FC 140.
140 Mass Flow Total increment. N value, RW: An increment multiplier for
the mass flow totalizer in FC 139. This value is normally 1. However,
this value can be any integer to slow down the counts for

Page 31 of 37
SPUD Model 604 Operating instructions

Function Code Listing

external totalizer. The larger value, the slower the totalizer will
increment.
141 Mass total residual: RO: Internally computed :value. The remainder
of mass flow total in FC 139 after being incremented from FC 140.
142 Mass / Volume Units. RW: Unit of Mass / Volume conversion which
to be used to define FC 132 and FC 138. The following digit
options for mass flow conversion can be selected:
0= g/cm3; 1= Kg/m3; 2= Ib/ft3= lb/gal; 4= lb/bbl; 5= metric ton/m3.
143 Spare

CAUT/ON: THE FOliOWING FUNCTION CODES ARE AVAILABLE AND


APPLICABLE FOR NET OIL MASS FLOW OPTION ONLY WHEN FC1 = Net Oil
WITH ALL RELATED PARAMETERS DEFINED FROM THE FACTORY (refer to
manual for all detail calculations)

144 Water Volume Flow Rate; RO: Live value for water volume flow rate
from the frequency flowmeter and Water/Oil Analyzer (analog 4-20
mA input). Unit of measure for water volume flow rate is specified in
FC 142.
145 Water Volume Flow Total; RO: Live value for water volume flow
total. This value is the product of the value in FC 144 and the
running time from start and the increment value in FC 146.
146 Water Volume Flow Total Increment, N Value; RW: An increment
multiplier for the mass flow totalizer in FC 145. This value is
normally 1. However, this value can be any integer to slow down the
counts for external totalizer. The larger value, the slower the
totalizer will increment.
147 Water Volume Total residual. RO: Internally computed value. The
remainder of water volume flow total in FC 145 after being
incremented from FC 146.
148 Spare
149 Oil Volume Flow Rate, RO: Live value for oil volume flow rate from
the frequency flowmeter and Water/Oil Analyzer (analog 4-20 mA
input). Unit measure for oil volume flow rate is specified in FC 142.
150 0il Volume Flow Total, RO: Live value for water volume flow total.
This value is the product of the v/due in FC 149 and the running
time from start and the increment value in FC 151.
151 0il Volume Flow Total Increment, N Value: RW: An increment
multiplier for the mass flow totalizer in FC 150. This value is
normally 1. However, this value can be any integer to slow down the
counts for external totalizer. The larger value, the slower the
totalizer will increment.

Page 32 of 37
SPUD Model 604 Operating instructions

Function Code Listing

152 Oil Volume Total residual. RO: Internally computed value. The
remainder of water volume flow total in RS 150 after being
incremented from RS 151.
153 Spare
154 Water Mass Flow Rate. RO: Live water mass flow rate from flowmeter,
densitometer and water/oil analyzer inputs. Density value can be an
override value if FC 51=1 or FC 109=1. However, flowmeter input
will always be live. Unit of measure for mass flow rate is specified in
FC 136 (for time) and FC 142 (for mass).
Water Mass Flow Total, RO: Live mass flow total per time. This
155
value is the product of the value in FC 154 and the running time from
start and the increment value in FC 156.
156 Water Mass Flow Total increment, N value, RW: An increment
multiplier for the mass flow totalizer in FC 155. This value is normally
1. However, this value can be any integer to slow down the counts
for external totalizer. The larger value, the slower the totalizer will
increment.
157 Water Mass total residual: RO: Internally compub~ value. The
remainder of mass flow total in FC 155 after being incremented from
FC 156.
158 Spare
159 Oil Mass Row Rate, RO: Live oil mass flow rate from flowmeter,
densitometer and water/oil analyzer inputs. Density value can be an
override value if RS 51=1 or FC 109=1. However, flowmeter and
water/oil analyzer inputs will always be live. Unit of measure for
mass flow rate is specified in FC 136 (for time) and FC 142 (for
mass).
160 Oil Mass Flow Total, RO: Uve mass flow total per time. This value is
the product of the value in FC 154 and the running time from start
and the increment value in FC 161.
161 Oil Mass Flow Total increment, N value, RW: An increment
mulUplier for the mass flow totalizer in FC 160. This value is
normally 1. However, this value can be any integer to slow down the
counts for external totalizer. The larger value, the slower the totalizer
will increment.
162 Oil Mass total residual; RO: Internally computed value. The
remainder of mass flow total in FC 160 at,er being incremented from
FC 161.
163 Spare
164 Analog Output Zero Scale, RW: The desired zero scale output for
density. Caution: The unit of measure for this value must correspond
with that of being specified in FC 112.
165 Analog Output for Full Scale, RW: The desired full scale output for
density. Caution: The unit of measure for this value must

Page 33 of 37
Function Code Listing

correspond with that of being ~ in FC 112.


166 Assigned FC for Analog- Output RW: Assign the desired function
code for the analog output to be represented. The default function
code is for density FC 111.
167 Analog Output DAC value. RO: Raw analog output in digital count
format corresponding to the actual analog output, 4mA =
0 count and 20mA= 1023 counts. This value is used for output
diagnostic.
168 Spare
169 Assigned FC for alarm # 1: The default assigned function code is FC
111 for density. The value from FC 111 will be used for alarm check
by the limit values that are specified in FC 170 (for Iow limit) and FC
171 (for high limit). The unit for measure of this value must
correspond to that of specified in FC 112. Remember: any FC can
be assigned to this FC as long the values in FC's 170 and FC 171
for Iow and high limit must be matched in functionality with the
assigned FC.
170 Alarm # I Iow limit, RW: Assign the desire value for Iow limit alarm
digital output. The unit for measure of this value must correspond to
that of specified in FC 112 if FC 111 was specified in FC 169.
171 Alarm # I hi limit. RW: Assign the desire value for hi limit alarm
digital output. The unit for measure of this value must correspond to
that of specified in FC 112 if FC 111 was specified in FC 169.
172 Spare
173 Assianed FC for alarm # 2: The assignment for this FC is similar to
that of FC 169.
174 Alarm # 2 Iow limit, RW: The assignment for this FC is similar to that
of FC 170.
175 Alarm # 2 hi limit, RW: The assignment for this FC is similar to that
of FC 171.
176 Spare
177 Assigned FC for alarm # 3: The assignment for this FC: is similar to
that of FC 169.
178 Alarm # 3 Iow limit, RW: The assignment for this FC is similar to that
of FC 170.
179 Alarm # 3 hi limit, RW: The assignment for this FC is similar to that
of FC 171.
180 Spare
181 Assigned FC for alarm # 4: The assignment for this FC is similar to
that of FC 169.
182 Alarm # 4 Iow limit, RW: The assignment for this FC is similar to that
of FC 170.
183 Alarm # 4 hi limit, RW: The assignment for this FC is similar to that
of FC 171.

Page 34 of 37
SPUD Model 604 Operating instructions

Function Code Listing

184 Spare
185 Assigned FC for alarm # 5: The assignment for this FC is similar to
that of FC 169.
186 Alarm # 5 Iow limit RW: The assignment for this FC is similar to that
of FC: 170.
187 Alarm # 5 hi limit, RW: The assignment for this FC is similar to that
of FC 171.
188&189 Spare
190-192 KTN0 thru KTN2 Temperature coefficients: RW: Densitometer's
polynomial temperature coefficients. Caution: These coefficients
were specifically calibrated to individual densitometor, Refer to the
applicable densitometer's calibration certificate for the correct
values.
193 Dt Base, RW: Reference density of the standard fluid at a standard
ambient temperature. This value is part of the temperature
compensation algorithm.
194 Spare
195 Disable all override values. RW: When set FC 195=1, the override
will be de-activated for all function codes 19, 27, 35, 43, 51, 58, and
109.

Page 35 of 37
SPUD Model 604 Operating instructions

Function Code Listing

NOTE 2:

Function button Unit button


0=densimeter frequency 0=Hertz
1= compensated density 0=gm/cc
1=kg/m3
2=lb/ft
3=lb/gal
4=lb/bbl
5=ton/m^3
6=relative density (SGU)
7=SGU @ 60 deg F
8=API @ 60 deg F
9=*Brix (% concentration)
10=*BAUME (for light liquid)
11=*BAUME (for heavy liquid)
2=temperature 1=deg C
2=deg F
3=pressure 0=psi
1=bar
2=kPa
3=kg/cm2
4=flow meter frequency 0=Hertz
5=mass flow rate 0=unit mass/hour
6=gross volume flow rate 0=unit volume/hour
7=mass totalizer 0=unit mass*N
8=gross volume totalizer 0=unit volume*N

If a value is entered for "Func" or "Unit" greater than what is shown in the above table,
it will be reset to 0 by the SPUD software.

Page 36 of 37
SPUD Model 604 Operating instructions

Function Code Listing

NOTE 3:

bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0

bit O: density calculation error (density < 0 or density > 3)


bit l: communications error
bit 2: cold start
bit 3: general purpose alarm(s) active
bit 4: pressure input error
bit 5: temperature input error
bit 6: future
bit 7: densimeter input error

NOTE 4:

bit 0: Alarm #1 Iow limit error


bit I: Alarm #2 Iow limit error
bit 2: Alarm #3 Iow limit error
bit 3: Alarm #4 Iow limit error
bit 4: Alarm #5 Iow limit error
bit 5: not used
bit 6: not used
bit 7: not used
bit 8: Alarm #1 high limit error
bit 9: Alarm #2 high limit error
bit 10: Alarm #3 high limit error
bit 11: Alarm #4 high limit error
bit 12: Alarm #5 high limit error
bit 13: not used
bit 14: not used
bit 15: not used

Page 37 of 37

Você também pode gostar