Regency
®
Model 4724 Control Expander Installation Manual (P/N 150596-02, Rev. A)
Revised 8/98
44
Table 13: Programmable Statement Options
Operation
What it does...
Screen Prompt
Additional
Info Needed
1:AND
Performs the AND operation on top two items
on the stack, then leaves the result (which will
determine whether or not an output will be
generated) on top of the stack.
Next statement in
program
None.
2:OR
Performs the OR operation on the top two items
on the stack, then leaves the result on top of
the stack.
Next statement in
program
None.
3:XOR
Performs the XOR operation on the top two
items on the stack, then leaves the resulting
sum on the top of the stack.
Next statement in
program
None.
4:ADD
Adds together the top two items on the stack,
then leaves the resulting sum on the top of the
stack. Used for numerical data only.
Next statement in
program
None.
5:SUB
Subtracts the top item on the stack from the
item below it. Used for numerical data only.
Next statement in
program
None.
6:NOT
Changes the effect of the top item on the stack-
that is, if the top item would have generated an
output, the result of the NOT operation (which
will now be placed on top of the stack) will not
generate an output, and vice versa.
Next statement in
program
None.
7:NEG
Takes the top item on the stack and converts it
to the negative of its value.
Next statement in
program
None.
8:EQU
Takes eight status bits that are grouped
together from the 4724’s memory and place
them on top of the stack.
NOTE
This group of eight bits consti-
tutes a single item on the stack.
Next statement in
program
None.
9:GET1
Takes a single status bit from the 4724’s
memory and places it on top of the stack.
$@0000
The address of the
group of eight status
bits in the 4724’s
memory.
BIT#(0-7):0
The single bit to get.
10:GET8
Compares the top two items on the stack and
leaves the result on top of the stack. An output
will be generated only if the two items are the
same.
$@0000
The address of the
group of eight status
bits in the 4724’s
memory.
11:GETC
Takes a constant number and places it on
top of the stack.
VALUE:0
Value of the constant
(0-255) to get.
12:PUT1
Retrieves a single status bit from the top of
the stack
and…
$@0000
None 8-bit output
address to which the
bit is to be tranferred.
Transfers it to a single bit position on an output
port or memory location.
BIT#(0-7):0
Specific location
to put the single
bit into.
13:PUT8
Retrieves eight status bits that are grouped
together from the top of the stack and transfers
them to an 8-bit position on an output port or
memory location.
$@0000
8-bit output address
to which the bit is to
be transferred.
14:EQU0
True/false if result is zero (conserves
statements for common operation).
Next statement in
program
None.
15:DCNT
Down count, value-1 if value > 0
(useful for timers).
Next statement in
program
None.