Pacific Research Solutions RI-200 User Manual

Page 58

Advertising
background image

Pacific Research Solutions

RI-200 User Manual

Page 57

1.

Un-lock the controller with the password.

2.

Send “62 20 1 150 *456” then un-key, you should hear a function complete CW “OK”.

3.

This is what you did:

62 = S-Command to define a user command.

20 = Command number, the memory location or mail box number.

1 = The group number for this command.

150 = Macro data start line number.

*456 = Command name the user will send to execute the command.

Example of programming macro data into the macro data memory:

Anytime you begin to write a new or modify an existing macro, you first must tell the controller what line or starting position
in the memory you want to start with, this is the macro starting line number. There are 999 lines of data in the macro data
memory and each line will hold up to 8 digits or characters of data. After you start entering S-Commands into the macro data
memory, the controller will keep track of what line and character position you are on. Once you set the macro line pointer,
you are ready to enter your S-Commands. You enter one S-Command at a time into the memory and each time, un-key your
radio wait for the controller to respond with a “function complete” message. The controller will insert a “C” between each S-
Command to separate each S-Command in the macros. This process of entering an S-Command into the macro has no error
checking of the S-Command and it’s data. When you reach the last S-Command in the macro, you will need to add an end of
macro flag. This is done by sending S-Command 64 by it self. The controller will insert a “D” character as an End of Macro
character or marker. The following example will turn off the CTCSS tone panels for the repeater and user command control.

1.

Un-lock the controller with your password.

2.

Send “63 150” and un-key, you should hear a function complete CW “OK”. This will set the macro start line pointer to
line 150 as used in the user command example above.

3.

Send “64 01 3” and un-key, you should hear a function complete CW “OK”. 64 is the macro editor command. 01 is the
system mode S-Command. 3 is the repeater COS + CTCSS/DCS repeater access S-Command data.

4.

Send “64 14 11” and un-key, you should hear a function complete CW “OK”. 64 is the macro editor command. 14 is the
user command CTCSS/DCS tone panel control S-Command. 11 is the user command to enable S-Command data.

5.

Send “64” and un-key, you should hear a function complete CW “OK”. 64 without data will tell the controller to insert a
“D” to identify the end of this macro.

6.

The data stored in the macro data memory at line 150 will look like “013C 1411C D”. This macro requires 10 digits of
data storage, which means that it will consume 2 lines in the macro data memory (8 digits for each line). In this case,
the next available start line will be 152. As you can see, you can easily create a macro that will consume more than 1
line of memory.

5.1.1

PASSING S-COMMANDS TO ANOTHER CONTROLLER

S-Commands can be sent from one controller to another when you have multiple controllers connected together via the
auxiliary port. This is done by including the destination controller’s address in front of the S-Command. When the
destination controller address leads the S-Command, that S-Command is not executed in the source controller. When you
have an S-Command that needs to be executed in another RI-200 controller, you simply insert an “A1” before the
S-Command and it’s data into the macro. All data from the “A1” through the “C” (S-Command separator) will be sent to
another controller with a 1 set as the controller address. In this setup, each controller in the system will have a controller
number or controller address. When sending an S-Command to another controller, the controller with the same controller
number as the “A” number in the S-Command, will execute that S-Command. In other words, all “A1” controllers will
respond to “A1” prefix and macro data. All “A3” assigned controllers will respond to the “A3” prefixed macro data. The
“controller unit address” is set with S-Command 39 and can be any address from 1 through 9. For controllers to
communicate in this format, S-Command 38 must be in the default state mode 1, serial port mode. The following example
will send an S-Command to another controller to turn off the CTCSS/DCS tone for that controller.

Advertising