Installation manual

Regency
®
Model 4734 Access Control Expander Installation Manual (P/N 150807, Rev. A) Revised 5/98
39
5.19 Programmable I/O Statements (Menu 18)
The 4734’s programmable I/O capability allows you to configure auxiliary output devices to
act as indicators of internal status conditions or to respond to the internal conditions in some
way.
NOTE It is easier to program the I/O statements using the Model 5540 Downloading Software (Sec-
tion 6.5.2 of this manual). Because it may sometimes be useful to program them with the built-
in programmer, the procedure is explained below. Section 6.5.1 of this manual explains the
logical operators and provides more information about how I/O statements are used.
The programmable I/O statements in the built-in programmer work by GETting data from the
4734 memory, saving it in a temporary location (STACK), then PUTting it into a 4734 output
buffer. The 4734 has room for a maximum of 127 GET and PUT statements. The factory pro-
grammed default program is shown in Section 5.19.5 of this manual.
Each program step consists of a combination of GET, PUT, and sometimes other types of
statements, (the net effect of which is 1) to place a bit (or group of eight bits) on top of the
stack and 2) to take a bit off of the stack, so the stack is empty when the program reaches the
END statement. The step may contain an even number of GET and PUT statements, as in the
following example:
EXAMPLE: In a non-split system (only one area), the following two-statement step will
cause X-10 Module #1 to turn on if Area #1 is armed (the lamp or appliance controlled by
X-10 Module #1 would then turn on):
GET1@B0.0
PUT1@9D.0
The first statement GETs a status bit from the 4734 memory address that shows the armed
status of Area #1. (If the status bit = 0, Area #1 is not armed. If the status bit = 1, Area #1
is armed.)
The second statement PUTs the bit into the 4734 memory address that determines whether
the X-10 module will turn ON or OFF. (If the bit = 0, the X-10 module will turn OFF. If
the bit = 1, the X-10 module will turn ON.)
To generate an output that represents a specific combination of conditions, you program the
system to GET data from different locations, perform a logical or arithmetic operation on the
data, then PUT the result on the desired output port.
In this case, there may be more than one GET statement associated with one PUT statement.
However, the various bits (or 8-bit groups) obtained in the GET statements are combined into
one bit (or 8-bit group) as a result of the operations performed on them. Therefore, only one
PUT statement is required to empty the stack (see statements 25-28 in the default program,
Table 16).
The 4734 can store up to 32 pieces of data on the stack before performing any operations. Each
operation is performed on the last one or two pieces of data that were put on top of the stack,
either by a GET statement or as the result of a previous operation.
5.19.1 Stepping Through The I/O Program
When you enter PROGRAMMABLE I/O STATEMENTS (Menu 18), Line 1 of the display
will show the first step of the current I/O program. A typical display is: 1 GET 1 @B0.0. The
number on the left is the statement number. The command is shown next, followed by the 4734
memory location from which the system is GETting the data.
Line 2 will show the appropriate key prompts.
To advance to the next statement, press the TEST key. To go back to the previous statement,
press the STAT key. The last statement of the program is always END.