ALTINEX CP7317RS User Manual

Page of 16
CONTROLLERS
10
Bit No.
Connector Pin No.
      7
            4
      8
            9
n
Data that defines the status of the pin  n=1
            or  n=0.
[SETDp, b
1
b
6
b
2
b
7
b
3
b
8
b
4
b
9
]
SET all pins on the particular I/O port of the unit.
This command defines if I/O port pins will be high
or low. The pin must be set as output if it needs to
be set low. 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 error as a feedback code.
b
Bit or pin number. The position of this
number corresponds to the number on the 9
pin connector on the back of the
CP7317RS. For example b
8
 is a eighth pin
on the connector. Valid range for b is 1 or 0.
Any other numbers will be ignored and
status of the port pin will not be changed.
[SETRp,b,n]
SET each relay on the particular port of the unit.
This command defines if relay will be open or
 closed.
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 error as a feedback code.
b
Relay number. This number corresponds to
the number on terminal block connector on
the back of the  CP7317RS from left to right.
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.
       
n=
Data that defines the status of the
                       relay.
           n=1 relay is open or  n=0 relay is closed.
[SETRp,b
1
b
2
b
3
b
4
b
5
b
6
b
7
b
8
]
SET all relays on the particular port of the
unit. This command defines if port relays
will be high or low.
p
Port number, this is an ASCII character
from 1 to 2 that matches the port number
on the back of the  CP7317RS. The
acceptable values are 1or 2. Any other
value will cause error as a feedback code.
b
Relay number. The position of this number
corresponds to the number on the terminal
block connector on the back of the
CP7317RS. 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.
[RSET]
Reset unit to the same condition as power on .
 [READDp,b]
Read Digital status of a particular pin on the digital
I/O port. The feedback is in the following format [1]
if pin is high or [0] if pin is low.
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 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. 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
7
4
8
9