Regency
®
Model 4724 Control Expander Installation Manual (P/N 150596-02, Rev. A)
Revised 8/98
56
Examples:
1. You could write a program that would cause an X-10 Module to turn on an air condi-
tioner if one signal from the Model 4150 Auxiliary Control Module indicates the high
temperature trip point is exceeded (Condition A), another 4150 signal indicates the high
humidity trip point is exceeded (Condition B), or it both signals are received.
2. The system could be programmed to activate a relay on the Model 4180 Status Display
Module that would turn on an LED if Area 1 and Area 2 were both armed or both dis-
armed (A = B).
9.5.2
I/O Programming Procedure-5540 Software
To program the I/O using the 5540 go to the Programmable I/O Menu (selection L of the Edit
Accounts Menu). The inputs and outputs are programmed through a series of control state-
ments that you enter into this menu. These statements take the form of...
1 OUTPUT = STATUS.
The Output label refers to the device on which an output is generated. Output Labels are
assigned using the names shown in Tables 16 and 17.
The Status Label refers to the internal condition or combination of conditions that cause the
output to be generated. Status Labels are assigned using the names shown in Table 20, “Pro-
grammable I/O Status Labels (Read Only).”
Some labels include a number in brackets [ ]. This specifies one of the following:
■
several similar outputs or sets of outputs or
■
one of several components of the installation (e.g., zones) or sets of components, on
which an internal condition can exist (e.g., armed or disarmed).
Some labels can be used to access eight data bits at a time. Labels of this type are identified in
the Data Type column reset Tables 18 and 19 by the word BITS. To access only one of the
eight bits, type in a
.
(period character) after the label, followed by a digit from
0
to
7
.
Labels of data type NUMBER take the form (LABEL = NUMBER).
Examples:
1.
1 RLY [1] = ALMAREA
The output label RLY[1] refers to the first group of eight outputs on the first 4180 module.
The status label ALMAREA indicates that all eight areas in alarm status bits are to be
accessed.
Table 17: Arithmetic Operators
Operator
Numerical Output Generated the Result of…
A + B
A + B
A - B
A - B
A * B
A * B
DWN (A)
(Down count) Value -1 if value is greater than 0 (useful for timers).
BIN(A)
Conversion of number from BCD (binary code decimal) to binary.
(Use to convert TSEC, TMIN, THR, MONTH, MDAY to binary before
comparison.).
BCD (A)
Conversion of binary number to BCD.
BIT(A)
Conversion of number (0-7) to bit in byte.