Macros
ARC Plus Version 3 Instruction Manual
71
General Macro Expressions
If
The “If” macro command is a versatile way to compare two values in a
macro. The types of values are: meter value, status value, macro
variable and constant. To use this command, select the type of value
for each side of the equation using the drop down lists, and pick the
operator you want to use for comparison (=, <>, <, >).
Set
The “Set” macro command allows you to set a meter channel, status
channel or macro variable to any of the following: meter channel,
status channel, macro variable or constant. For example, if your
antenna monitor readings appear on channel 10, and you want to
store the current reading on channel 11, you can set channel 11 to
the value of channel 10.
Note: Channels that are configured to be
“set by a macro” are only updated whe
n the macro assigns their new
value.
Macro Expressions for Channel Values and Site Conditions
Use these functions for expressions that read channel values and site conditions from the ARC
Plus:
If Value
If Status
These statements test the expression against the most recently
obtained meter/status value for the specified site and channel.
If New Value
If New Status
This statement waits until the ARC Plus updates the meter/status
reading before testing the expression against the value. Use this macro
function to test the result of a raise/lower command.
If Relay State
Tests if the state of a relay is latched or unlatched.
If Alarm
Tests the expression against the alarm count at the specified site. Can
be used with an inequality to trigger an action if the alarm count is
greater than 0.
If Maint Mode
Tests the expression against the maintenance mode on/off state at the
specified site.
Raise/Lower
Issues a command to the specified site and channel. Note that the
command duration entered in the macro editor will override the
command duration otherwise programmed for the channel.
Alarm
Generates an alarm on the ARC Plus with the specified message. Can
also be used at the end of a macro to initiate notification that the
macro is complete.
Set Mute
Mutes alarm reporting on the specified channel.
Set Limit
Sets a meter channel limit value. This is typically used to change power
limits on AM stations that run with different day/night power.