
CONTROLLERS
9
n This letter designates the status of the relay
during “Power up”.
n=1 relay is open
n=0 relay is closed
Example: Set relay 6 of port 2 to be open
at power up.[SETPR2,6,1]
Set relay 2 of port 4 to be closed at power
up.[SETPR4,2,0]
[SETPRp,b
1
b
2
b
3
b
4
b
5
b
6
b
7
b
8
]
This command sets the “Power ON” status of all
relays on the particular port of the unit. This
command determines whether the port relays will
be set to high or low during “Power up”. This
command is a programming command and should
be issued only once during the configuration of the
CP7317RS. Once issued, this command is stored
in the non-volatile memory and is maintained
during “Power ON/OFF”.
The factory preset of the CP7317RS is that all
relays are set open.
p This letter designates the port number. It is
an ASCII character from 1 to 2 that
matches the port number on the back of the
CP7317RS or as shown above. The
acceptable values are 1 or 2. Since Port 3
and 4 are only extensions of Port 2 . The
settings of Port 3 and Port 4 are
accomplished as part of Port 2 settings.
b This letter designates the relay number.
The position of this number corresponds to
the number shown on the diagram of the
terminal block connector layout on the back
of the CP7317RS (See figure 7). For
example b
5
is a fifth relay on the connector.
Valid range for b is 1 or 0. Any other
numbers will cause error as a feedback
code.
[SETIDn]
This command sets unit ID number ( n=1 to 9, A to
Z, and a to z). Total of up to 61 units, using ASCII
code, can be controlled simultaneously. Additional
units can be controlled using Hex code.
n This letter represents unit ID number. It
could be any number ASCII or Hex. The 0
and 1 are used for special purpose
controlling as described in greater detail
under [UIDn] command.
1 enables all units regardless of the unit ID
0 disables all units regardless of the unit ID
The factory default of the CP7317RS is set to Unit
ID = ASCII "1"
4.8 CONTROL COMMANDS
The following codes are for controlling of the
CP7317RS controller. These commands are not
permanent and will be lost when power is removed
from the unit. These commands are used during
the normal operation of the CP7317RS.
[SETDp,b,n]
SET each pin on the particular port of the unit. This
command switches pins high or low during normal
operation of the unit. The pin must be set as output
if it needs to be low during the execution of this
command. If particular pin is set as input then it
can not be set low by this command.
p Port number. This is an ASCII character
from 1 to 4 that matches the port number
on the back of the CP7317RS. The
acceptable values are 1, 2, 3 or 4. Any
other value will cause an error as a
feedback code.
B Bit number. This bit number corresponds to
the pin number on the 9-pin connector on
the back of the CP7317RS according to
following table. A valid range of numbers is
from 1 to 8, inclusive. Any other numbers
will cause error as a feedback code. Use
b=0 id you want to set all pins high or low
on this port.
Bit No. Connector Pin No.
1 1
2 6
3 2
4 7
5 3
6 8