
Commands - 117
SOUND
COMMAND
SYNTAX: SOUND frequency
SOUND
PURPOSE: Gener ates a squar e wave signal at frequency.
REMARK S: frequency is from about 8 Hz to about 60 KHZ, depending upon the system
Using SOUND with out any parameters turns it off.
The frequency argum ent is used in a C PU tim er. For the RPC -150 and RPC-2300, the clock is
230.4 KHz. F or the RPC-2350 it is 460.8 KHz. If frequency is an exact multiple of this number,
the output will be accurate.
For any frequency, the actual frequency is calculated as follows. An example frequency of 1000Hz
on the RPC-2350 is used.
1 Internal clock (230. 4 KHz or 468. 8 KHz) / desire fr equency = ratio
468800 / 1000 = 468.8
2 Round the ratio (468.8 becomes 469)
3 Actual frequency is determined.
Internal clock / ratio = Actual frequency
468800 / 469 = 999.6
NOTE: The RPC-2350 uses the same timer as SOUND for RS-485 communications. You
cannot use RS-485 at the same time as SOUND.
RELATED: none
EXAMPLE: 10 SOUND 1000
ERROR: < Data neg> - if frequency is < 0
No error occurs when frequency > 65,535, but output is not cor rect.
Comentarios a estos manuales