beautypg.com

Controllers – Altinex RS 232 Controller CP7317RS User Manual

Page 8

background image

CONTROLLERS

7

b

This letter defines the status of a pin, while
its position in a string number corresponds
to the pin number on the I/O Port of the
CP7317RS. For example b

4

represents the

status of Pin 4 on the I/O connector. The
valid pins on I/O port are from 1 to 9 except
5. A valid range for the b is either 1 or 0.
Any other number will cause an error as a
feedback code.

When b is 1, the corresponding pin is set as
input.

When b is 0, the corresponding pin is set as
output.

Example: Set pins 1 through 4 of port 2 as
inputs, and 6 through 9 as outputs

[SETI2,10101010]

[BAUDn]

This command sets the baud rate for the
CP7317RS. This command is a programming
command and should be issued only once during
the configuration of the CP7317RS.

Once issued it is stored in the non-volatile memory
and is maintained during “Power ON-OFF”.

The factory preset for the CP7317RS is
n=4, which corresponds to the 2400 baud
rate. When the [RSTF] command is issued
the baud rate is set to 2400.

Do not set the baud rate to any other numbers
except the ones specified below. The baud rate,
n=7 is reserved for future use and is not active with
the current version of this product.

n The baud rate number. This number ranges
from 1 to 7 and sets the baud rate for RS-
232 communication.

n

Baud rate

1

300

2

600

3

1200

4

2400

5

4800

6

9600

7

Custom baud rate

[RSTF]

Reset the CP7317RS to the factory settings.
Re-initialize non-volatile memory to the factory pre-
sets. This command also resets the baud rate of
the RS-232 communication port to 2400 baud.

This command also resets the unit ID to 1.

[SETPDp,b,n]

This command sets the “Power ON” status of each
pin on the particular I/O port of the CP7317RS.
This command determines whether port pins will be
high or low during “Power up”. It 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 the “Power ON/OFF”
sequence.

The factory preset of the CP7317RS is that
all pins in the I/O ports are set as output
pins.

If it is required that the pin is set to low during
power up, the pin status must be set as output. If a
particular pin is set as the input then it can not be
set low by this command during “Power up”.

p

This letter designates the port number. It is
an ASCII character from 1 to 4 that
matches the port number on the back of the
CP7317RS. The only acceptable values are
1, 2, 3 or 4. Do not use any other value for
port number.

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 an error as a feedback code.

Bit No.

Connector pins No.

1

1

2

6

3

2

4

7

5

3

6

8

7

4

8

9