Forcing an RV-C Setting with MAKE

Often a script needs to make sure that an RV-C value is definitely set to a particular value. Merely sending a command isn't enough, because the target node may be temporarily off-line or impaired. To make sure that the script doesn't continue after the setting message has failed, the MAKE command is used.

The syntax is MAKE [tag == value] BYSENDING pgn data . It can also use the "!=" symbol, MAKE [tag != value] BYSENDING pgn data . The script will send the indicated message, and then it will pause the script until the expression is true. The user can click on the RETRY button to send the message again, the ABORT button to quit the script, or the CONTINUE button to continue the script even though the expression isn't satisfied.

The BYSENDING portion is optional. If the MAKE is used without the BYSENDING, the script merely pauses until the expression is true.


: This ensures the genset is off.
DEFINE GENSTATUS 1FFDC [B1]
MAKE [GENSTATUS == 0] BYSENDING 1FFDA 00 FF FF FF FF FF FF FF