Pacific Research Solutions RI-300e User Manual
Page 112
Custom tone generator CW message example
You can also use tones of various lengths and pauses in any of your messages; see CW commands 273 through 344. The next
example will show you how to change the function complete message. The current function complete is stored at starting line
026 and used 2 lines of memory. In this example, the function complete will be two 1/10-second tones, first at 1200 Hz and the
second at 700 Hz. The new message will require 28 digits of storage and with 24 digits per line available, we will be able to
store this message in the same memory location as the old message.
S-Command Description
1. 123456 Unlock the controller, you are in S-Command mode. You should notice a different courtesy tone.
2. 63 026 S-Command 63, set the memory data pointer (start line number pointer) to start line 026.
3. 31 001 S-Command 31, Enter message data into memory, Start Of Message.
4. 31 045 S-Command 31, Enter message data into memory, Set tone generator 1 to 1200 Hz tone.
5. 31 079 S-Command 31, Enter message data into memory, Set tone generator 1 output level to 1.5 KHzD
6. 31 118 S-Command 31, Enter message data into memory, Turn Tone Generator 2 off
7. 31 282 S-Command 31, Enter message data into memory, Tone on for 100 ms.
8. 31 314 S-Command 31, Enter message data into memory, Pause for 60 ms.
9. 31 040 S-Command 31, Enter message data into memory, Set tone generator 1 to 700Hz tone.
10. 31 118 S-Command 31, Enter message data into memory, Tone on for 100 ms
11. 31 002 S-Command 31, Enter message data into memory, End Of Message.
12. 64 S-Command 64, Terminate the end of this memory segment.
13. 68 026 S-Command 68, Trigger a message or macro at start line 026. Use this to test your message.
14. 69 S-Command 69, Lock the controller, you are done.
The finished message should consume memory as shown in the following table.
Macro Data
Line Data Description
026 310450791182823140401180 New Function Complete
027 02CD00000000000000000000
A message in the system memory is triggered by an event. Using S-Command 32, you can control which event will trigger or
start which message. Your pre-time-out event and post-time-out event can be set to trigger the same message. You may not
want the weak signal message. An easy way to disable this messate, is to point the weak signal event to the same message as
the courtesy message. You can also completely disable a message by pointing the trigger to start line 000.
PROGRAMMING SPEECH MESSAGES
Speech messages are constructed using the same method as the tone generator messages except for the use of S-Command 30.
The RI-300 used a TI speech synthesizer with a 693-word vocabulary. Speech messages can be used anywhere in the system,
including user commands. A speech message consists of speech commands or words in sequence. Each of these commands or
words consists of a 3-digit value. The word commands are used to tell the RI-300’s speech synthesizer what to do. Within the
speech vocabulary are some command words that will speak complicated items such as the time, temperature or system voltage.
The speech messages are stored in the same memory area as macros. For this reason, it is important to manage and track the
memory usage as not to damage other data stored in the memory. Once a message is stored, it can be triggered for playback.
This is done with the message triggers (S-Command 32). Messages can also be imbedded directly inside a macro.
There are two types of messages. First, there are messages that stand by themselves and are triggered by events within the
controller. These messages include the ID and courtesy tones. The second type of message is one that is imbedded within a
macro. These are messages with S-Commands in the same memory segment or macro.
Speech Message memory usage
The system memory is used for both macros and messages. This memory is organized with 999 lines of data storage and each
line consisting of 8 digits. All message and macros must start at the beginning of a line. Each line has a starting line number
from 001 to 999. Message triggers, user commands and triggers use the start line address as the starting location of the message
or command. To edit a message you must first set a pointer to the start line where you want to start your message, this is done
with S-Command 63. Next you can start building you message; but for the message to work correctly, you must include a “Start
of Message” command (30 001) as the first entry. The following entries with (30 XXX) are the words within the message. The
message is completed with an “End of Message” command (30 002). Finally, an end of data command (64) is entered as the last
entry. For the purpose of tracking the amount of data stored in memory, the “Start of Message” consumes 2 digits “30”. The