METERING MACROS
Macros can be used to modify all parameters pertaining to the metering input channels, including the A/D
values, calibration constants, and upper and lower alarm limits. They can enable/disable each channel’s input and
retrieve the current floating point value of any meter channel.
This ability is useful for long-term functions such as when a transmitter changes its power output. A macro can
make the power change and also change the upper and lower limits.
When making these changes, it is suggested that the meter channel being modified use the previously described
MUTEMETER command as one of its first lines of code. Also, remember to use the UNMUTEMETER command
when finishing the macro.
METER
The METER command allows a macro to retrieve the floating point value of a particular meter channel. A
metering channel can be set to the same value as another metering channel or to a set value. For these values
to remain unchanged, the meter channel must stop collecting new data by the use of the METEROFF command
explained later.
The METER statement must be immediately followed by parentheses with the channel number inside.
E
Exxa
am
mp
plle
e 1
1
E
Exxa
am
mp
plle
e 2
2
METERAD
After receiving the analog input voltage on a meter input, it is converted to a digital integer value. This value is
called the A/D (A to D) value. A macro can read or modify that value. The A/D hardware has 4096 “bins” (0-
4095) that it fills up in proportion to the maximum input value (typ10VDC) and the actual input value.
If the input range was set to 0VDC to +10VDC and the actual input value was +5VDC, then the A/D value
would be 2047 ((4096÷2)-1).
The METERAD statement is immediately followed by the channel number inside of parentheses.
E
Exxa
am
mp
plle
e 1
1
E
Exxa
am
mp
plle
e 2
2
GSC3000 & VRC2500 INSTALLATION & OPERATION MANUAL
CHAPTER 10: MACROS
106
METERAD(5)=390 [CR]
Sets the A/D value of metering channel 5 to 390.
METERAD(3)=METERAD(13) [CR]
Sets the A/D value of metering channel 3 on this
unit to the same value as metering channel 13
METER(5)=METER(9) [CR]
Metering channel 5 of this unit is now
equal to metering channel 9.
WHILE METER(12)<100 [CR]
As long as metering channel 12 is less than
100, the WHILE loop will cycle.
Summary of Contents for GSC3000
Page 8: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL viii ...
Page 22: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 14 ...
Page 32: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 24 ...
Page 40: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 32 ...
Page 52: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 44 ...
Page 68: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 60 ...
Page 120: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 112 ...
Page 128: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 120 ...
Page 132: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 124 ...
Page 140: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 132 ...
Page 144: ...GSC3000 VRC2500 INSTALLATION OPERATION MANUAL 136 ...