85
MACRO EXPRESSIONS
GENERAL
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 variab
le 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: To set meter and status channels, you must first set the
Source
to
Set by a macro
in AutoLoad PLus.
ARC PLUS
Expressions in this section act on or receive data 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.
DATE AND TIME
Date/time and day-of-week statements all reference the date/time or day-of-week as reported by the local ARC
Plus unit. For example, if you are programming a macro to execute a command at noon Eastern Time, but the ARC
Plus is configured to display Pacific Time, set the
If Time
statement to use 9:00AM.
If Date
If Time
If Day
If Calendar Time
Tests the expression based on the date and time at the site, or on the day of the week.