company profile news email HTI links
Highland logo


THE V180/AT180 PARAMETER SET


6. PARAMETER SET STRUCTURE

The parameter set is a block of 600h (1536d) bytes of binary data.

In summary, the set is arranged as follows. The OFFSET value is the position of the start of each field, in hex bytes relative to the start of the parameter set. LENGTH is the size of the field in hex bytes. Sizes noted in DESCRIPTION are decimal bytes.


6.1 FIELDS WITHIN THE PARAMETER SET

Item
Offset Length Description
PSTYPE 0 2 Parameter set type identifer word
PSID 2 20 32-character parameter set name string
STAMP 22 14 20-character Pset creation date/time string
MODE 36 2 Operating mode word
SCAN0 38 24 Acquisition channel 0 control block
SCAN1 5C 24 Acquisition channel 1 control block
SCAN2 80 24 Acquisition channel 2 control block
SCAN3 A4 24 Acquisition channel 3 control block
SCAN4 C8 24 Acquisition channel 4 control block
SCAN5 EC 24 Acquisition channel 5 control block
SCAN6 110 24 Acquisition channel 6 control block
SCAN7 134 24 Acquisition channel 7 control block
SCAN8 158 24 Acquisition channel 8 control block
SCAN9 17C 24 Acquisition channel 9 control block
SCAN10 1A0 24 Acquisition channel 10 control block
SCAN11 1C4 24 Acquisition channel 11 control block
SCAN12 1E8 24 Acquisition channel 12 control block
SCAN13 20C 24 Acquisition channel 13 control block
SCAN14 230 24 Acquisition channel 14 control block
SCAN15 254 24 Acquisition channel 15 control block
DIGI0 278 20 Digital I/O channel 0 control block
DIDI1 298 24 Digital I/O channel 1 control block
DIGI2 2B8 20 Digital I/O channel 2 control block
DIGI3 2D8 20 Digital I/O channel 3 control block
DIGI4 2F8 20 Digital I/O channel 4 control block
DIGI5 318 20 Digital I/O channel 5 control block
DIGI6 338 20 Digital I/O channel 6 control block
DIGI7 358 20 Digital I/O channel 7 control block
BTUS 378 A0 Reserved for BTU measurement control
TSRX 418 2 Reserved for Time-Series-Record control
FREQ 41A 2 Frequency Measurement control word
TSCHED 41C 30 Reserved for TSR scheduling
TSRMAP 44C 10 Reserved for TSR item selection
TNAME0 45C C Totalizer name 0, 12 byte string
TNAME1 468 C Totalizer name 1, 12 byte string
TNAME2 474 C Totalizer name 2, 12 byte string
TNAME3 480 C Totalizer name 3, 12 byte string
TNAME4 48C C Totalizer name 4, 12 byte string
TNAME5 498 C Totalizer name 5, 12 byte string
TNAME6 4A4 C Totalizer name 6, 12 byte string
TNAME7 4B0 C Totalizer name 7, 12 byte string
TNAME8 4BC C Totalizer name 8, 12 byte string
TNAME9 4C8 C Totalizer name 9, 12 byte string
TNAME10 4D4 C Totalizer name 10, 12 byte string
TNAME11 4E0 C Totalizer name 11, 12 byte string
TNAME12 4EC C Totalizer name 12, 12 byte string
TNAME13 4F8 C Totalizer name 13, 12 byte string
TNAME14 404 C Totalizer name 14, 12 byte string
TNAME15 410 C Totalizer name 15, 12 byte string
SPARES 51C E2 Reserved
CKSUM 5FE 2 16-bit checksum
6.2 DETAILS OF PARSET FIELDS

6.2.1 PSTYPE: PARAMETER SET TYPE

This word describes the general type of the parameter set. Numeric values are...
0
1
2
3
4.
bad or uninstalled set
Default parameter set
User-custom (ROM-burned) parameter set
Parameter set created by PARSET.EXE
Other uploaded parameter set (e.g., from user program)
This is an active item in that the X180 microcode checks this value on powerup and, if it is not 1, 2, 3, or 4, force-loads the default parameter set (or a custom user set, if available). A custom set burned into ROM must be of type 2.


6.2.2 PSID: PARAMETER SET ID STRING

This is an ASCII string which identifies the parameter set. This is a passive item and may be used in any manner. It is generally filled in by PARSET, using the user's entered text.


6.2.3 STAMP: PARAMETER SET TIME STAMP

This is an ASCII string which identifies the date and time at which the parameter set was created or last modified. This is a passive field.


6.2.4 MODE: MODULE OPERATING MODE

This data word contains several bits which set operating modes. Bits are...
BIT HEX VALUE FUNCTION WHEN SET
0 1 Selects timing for 50 Hz line frequency
1 2 Selects fast AC data filtering
4 10 Sets operation to high enian mode
5 20 Selects timing for 400 Hz line frequency
The frequency-select bits adjust sample timing for best results in both normal RMS measurement and waveform sampling modes. The default value is 60 Hz.

The fast-filter bit causes the module to use a faster Gaussian filter to smooth RMS values, at the expense of reduced smoothing of AC line variations.

The endian bit, when set, causes all 32-bit values (such as KWHs, KVAHs) to be assumed to be in most-significant-word-first format.


6.2.5 SCANn: ACQUISITION CHANNEL SCAN BLOCKS

There are sixteen scan blocks, one for each of the 16 available electrical acquisition channels. Within each block, subfields are...
ITEM OFFSET LENGTH DESCRIPTION
STUPE 0 2 Channel type; flags word
TMUX 2 2 Voltage selector, totalizer word
CTR 4 4 CT rotating in apms, floater, passive
PTR 8 4 PT ratio, floater, passive
SPARES C 4 Reserved, 2 words
NAME 10 C Channel name in ASCII, 12 bytes, passive
UNITS 1C 8 Engineering units text, 8 bytes, passive
The STYPE word declares the acquisition channel type and flag bits. The low four bits declare type. The hex value of the low four bits may be...
0
1
2
3
4
5
Unused channel
AC current sensor, 250 mV RMS
AC current sensor, 333.3 mV RMS
+/- 5 volts DC analog input
1K platinum RTD temperature sensor
linear resistance sensor analog input

The only defined flag bit is bit 12, hex value 1000h. If this bit is set, the AC power metering logic will assume that this channel is connected in a 3-wire, three-phase, Delta configuration. Only channels 0 through 7 can operate as RTD or resistance sensors.

The TMUX word selects the AC line voltage wires associated with each "virtual wattmeter" channel, and the totalizer that receives the power level of each channel. If this word is treated as a 16-bit value having hex fields '0PHL', then...
P
H
L
is totalizer pointer, range 0...F hex
is highside potential lead, range 0...7
is lowside potential lead, range 0...7
The 'P' value names a totalizer into which this acquisition channel sums its power and KVA measured values. Totalizers are named 0 through 15, corresponding directly to hex values of 'P'. Up to six acquisition channels may sum into any given totalizer.

The 'H' and 'L' nibbles specify AC potential inputs which will be used to measure voltage and power for this channel. The mapping for both fields is...
H or L PT Lead
0 N1
1 A1
2 B1
3 C1
4 N2
5 A2
6 B2
7 C2
(standard potential transducer (PT) Leads)
(Optional second PT leads)
For example, acquisition channel 12, with TMUX value of 0530 hex, creates a virtual wattmeter which uses CT input 12 and potential C1 : N1. The measured power is summed into totalizer 5.

The CTR and PTR fields are each 4-byte IEEE single-precision floating point values which express the channel current transducer rating (in amps) and potential transformer ratio respectively. Their default values are 100.0 and 1.000 respectively, and are changed by PARSET.EXE to express actual channel values. These are passive fields, used by B180.EXE and other programs to scale displayable data.

If a channel is an analog input (types 3, 4, or 5), CTR and PTR are used as engineering unit scalers. Reported inputs (volts, degrees C, or ohms) may then be converted to other units by the relationship

    Y = m * X + b

where X is the unscaled channel analog data, m = CTR is a multiplier, and b = PTR is an adder. Again, these values are passive and are used by applications such as B180 to scale displayed/logged data.


6.2.6 DIGIn: DIGITAL CONTROL BLOCKS

There are eight digital control blocks, one for each of the digital input/output points. Each block has the following internal structure:
ITEM OFFSET LENGTH DESCRIPTION
DTYPE 0 2 Digital channel type and flags
DPNTR 2 2 Pointer for pulse outputs
DFACTR 4 4 Pulse factor, floater, passive
SPARES 8 4 Reserve
DNAME C 12 Point name, 12 byte ASCII, passive
DUNITS 18 8 Engineering units, 8-byte ASCII, passive
The DTYPE word declares the digital function. The low hex digit is...
0
1
2
3
4
5
Unused digital channel
Pulse counter input
Runtime input
Static digital output
Pulse output
TSR pulse output

Only one flag bit is defined in DTYPE. Bit 15 (8000h), when set, declares that runtime inputs are reversed, namely active when the corresponding digital input is open (normally, runtime is counted when the input contact is closed or the input is electrically low).

If a digital point is declared to be a pulse output (DTYPE = 4), then the high byte of the DPNTR word acts as a pointer to "aim" at a source for output pulses. Values of this pointer are...
00...0F

10...1F

20...23
KWH (totalizers) 0...15 respectively

KVAHs 0...15 respectively

BTU registers 0...3 respectively
So if a digital control block had DTYPE = 0004h and DPNTR = 1F00h, the corresponding digital output would pulse ON (close to ground briefly) whenever totalizer number 15 accumulated 0.01 KVAH of normalized electrical KVAs.

Note that since the electrical level of all digital points (even "unused" ones) may be read in real time, there is no need for a specific "static digital input" type.

The DFACTR field is a 4-byte, single-precision IEEE floating point value which converts channel pulse counts into engineering units. If this channel were a pulse counter connected to a gas meter, DFACTR might then be the number 6.356, expressing the ratio of 6.356 cubic feet of gas per input pulse. This field is passive and is used by B180 and other programs to scale pulse counts.


6.2.7 BTUS: BTU MEASUREMENT CONTROL

This field is reserved for BTU measurements.


6.2.8 TSRX: TSR CONTROL WORD

Reserved for time-series-record (TSR) control.


6.2.9 FREQ: FREQUENCY SELECTOR

This word is used to select the pair of AC potential transducer leads which are used to measure frequency. The word can be viewed as a 4- digit hex value 00XY, where the 4-bit fields X and Y select a pair of AC lines to which a virtual frequency meter is connected.

The X and Y values are mapped as...
X or Y PT LEAD
0 N1
1 A1
2 B1
3 C1
4 N2
5 A2
6 B2
7 C2
So if the FREQ word is set to 0013 hex, for example, the V/AT180 will measure the frequency of the voltage between the A1 and C1 potential transducer wires. The codes 4...7 are useful only if a second, optional potential transducer is connected to the C760 termination panel.


6.2.10 TSCHED: TSR SCHEDULE

This field is reserved for TSR scheduling.


6.2.11 TSRMAP: TSR MAP

This field is reserved for selection of items to be included in time-series records.


6.2.12 TNAMES: TOTALIZER NAMES

These sixteen string fields each assign an ASCII name to an energy totalizer. They are passive text fields.


6.2.13 CHECKSUM

This word is a 16-bit checksum of the parameter set. It is computed by adding up all prievious parameter-set 16-bit words, using a 16-bit accumulator and ignoring overflows. The V/AT180 will not install a parameter set having a bad checksum. At powerup time, the checksum of the currently installed set is verified and, if found to be bad, the default parameter set (or custom set, if available) is force-installed.