Specifications
REMLOC
The REMLOC statement allows the I/O unit to return a value to indicate if it is in a REMOTE or LOCAL state.
This equates to the front panel push button on each I/O unit that causes the REMOTE/LOCAL LED to illuminate
solid or flash RED when pressed. It does not matter which I/O unit caused the change of state as each I/O unit
on the site’s network returns the same value.
EExxaammppllee
Status
The status statement returns the high or low state of the desired status channel. Enter the word “STATUS”
followed immediately by the channel number inside of parentheses.
EExxaammppllee
MATHEMATICAL STATEMENTS
The macro program has a wide range of mathematical statements that may be used to achieve your desired
outcome. Each statement will use standard notation with parentheses being used to define a computational
hierarchy. Some standard trigonometric operators may be used as well.
Numerical results of mathematical computations are not always exact. For example, 4 would not come back as 2.
It would come back as 1.9999 or 2.0001. Take this into consideration when using mathematical statements in
any macro.
A list of supported mathematical statements is available in the macro source code.
>>
GREATER THAN
<<
LESS THAN
GSC3000 & VRC2500 INSTALLATION & OPERATION MANUAL
CHAPTER 10: MACROS
102
IF REMLOC=1 THEN [CR]
END [CR]
ELSE [CR]
MACRO ME, 2, 4
ENDIF
Check REMOTE/LOCAL state. If in local
mode, end macro.
If not in local mode, run Macro #4 on
unit 2.
End Statement.
IF STATUS(3)=LOW THEN [CR]
If status channel 3 is low, then the
instruction continues
IF METER(3)>50 THEN [CR]
END [CR]
ELSE [CR]
COMMAND ME, ME, 1A [CR]
ENDIF [CR]
Compares metering channel 3 of this unit to the
value of 50. If metering channel 3 is GREATER
THAN 50, the macro ends. If metering channel 3
is NOT GREATER THAN 50 then issue command
1A on this unit.
IF METER(3)<50 THEN [CR]
END [CR]
ELSE [CR]
COMMAND ME, ME, 1A [CR]
ENDIF [CR]
Compares metering channel 3 of this unit to the
value of 50. If metering channel 3 is LESS THAN
50, the macro ends. If metering channel 3 is NOT
LESS THAN 50 then issue command 1A on this
unit.










