Pacific Research Solutions RI-200 User Manual

Page 57

Advertising
background image

Pacific Research Solutions

RI-200 User Manual

Page 56

START LINE: The macro data memory is organized with 999 lines of data storage and each line consisting of 8 digits of
data. The beginning of each line is numbered with what is called the macro “Start Line”. The user commands, scheduler,
events and timers use the start line to tell the controller where to start processing the macro. When building a macro, you can
allow the data in a single macro to use multiple lines.

COMMAND NAME: This is 1 to 4 digits that the repeater user will key into their DTMF equipped radio to control the
repeater. When the controller receives a command, it is compared with every programmed command until a match is found.
The controller then reviews the command perimeters to determine how to handle the command.

MACRO: This is a string or group of S-Commands that are grouped together. When the controller is asked to process a
macro, it gets each S-Command in the macro and processes it until an end of macro flag is found. Macros can also consist of
only one S-Command.

5.1

PROGRAMMING STANDARD USER COMMANDS and MACROS

Macros are used for more elaborate functions, usually containing and controlling the execution or processing of multiple
S-Commands. Also, there are some internal functions and events that will trigger a macro directly. These functions include
power on initialization, time of day scheduler, digital inputs, internal functions and timers. See S-Commands 40 through 49
for more details.

When creating User Commands and macros, there are two memory locations that will require data entry. First you must
create a user command which will include the name and some operating perimeters and the location of the macro start line.
Each user command has a location in memory where all of the above perimeters are stored. The name is a 1 to 4 digit value
that the repeater user will send to control the operation of the repeater. In some respects, this is the name of the memory
location where the user command is stored. Each user command can be organized into one of 8 groups. Later you will be
able to enable or disable any one of the 8 groups of commands. Finally the user command points to a macro start line where
the controller will process S-Commands. The second memory location in the controller is the macro data memory. This is
where the S-Commands are stored and processed. Worksheets at the end of the manual have been provided to help organize
the data that will be used to create user commands and macros. The controller is shipped from the factory with some default
user commands, review section 1.4.1 and S-Command 60 through 64.

When programming user commands and macros, always follow these simple steps.

1.

Before you start, make a plan of what you want to do.

2.

Use the supplied worksheets at the end of the manual and write down what you want to do.

3.

Unlock the controller with your PASSWORD before starting.

4.

Listen for the correct response from the controller “OK” or “ERROR”.

5.

Make small changes each time and test as you go.

6.

Keep careful track of the data in a macro so that you do not over write it with another macro.

Example of programming a standard user command and macro:

When a repeater user sends a command, the controller checks the command with the programmed commands for an exact
match. The RI-200 has 99 standard command memory locations available for use. Each command memory locations have a
number from 01 through 99, which are like a mailbox address. Into this box, you put where the macro data starts (macro
start line), and then you give the command its functional name (user command). If you need to remove or clear a command,
send the S-Command 62 followed by the command number only. In the following example, you will create a user command
with “*456” as the name.

Advertising