Tiny Machine Basic for the RC51 Programmable Relay Controller

Addendum for SIRCS support

Industrologic, Inc. 3201 Highgate Lane, St. Charles, MO, 63301, USA

Phone: (636) 723-4000       www.industrologic.com      info@industrologic.com




The following information supplements and/or changes the information provided in the reference manual for Tiny Machine Basic for the RC51 when the firmware has been changed to provide SIRCS infrared support through an IR sensor connected to the INT signal.

1. The INT variable no longer exists.

2. The following instructions no longer exist:

INT=[arg]
IF INT=0 [arg]
IF INT=1 [arg]
3. The following instruction has been added:

READIR         Read an SIRCS infrared transmission and place the Device
               code in variable D and Function code in variable F
               If the transmission was valid SIRCS, put the value 1 in
               variable A, otherwise put the value 0 in variable A

Example:
1 READIR       read infrared transmission
2 IF A=0 1     wait for valid SIRCS
3 PRINT D      display Device code
4 PRINT F      display Function code

Some devices like handheld remote control units generate multiple infrared transmissions that contain the same Device and Function codes. Tiny Machine Basic with SIRCS support stores only one transmission at a time. If later transmissions in a multiple transmission occur after a READIR instruction is used, these transmissions may be stored and may need to be read and discarded.

4. The STATUS instruction is changed as follows:

STATUS     Display values and status of inputs and outputs in the format:
           RR DD KK
           where:
           RR = status of Relays 8-1 (bits 7-0) in 2 hexadecimal digits (00-FF)
           DD = status of SW1 (bit 3), and digital inputs
           3-1 (bits 2-0) in 2 hexadecimal digits (00-FF)
           KK = value of the variable KEY in 2 hexadecimal digits (00-FF)
log file