Industrologic RS51-SPR-RELAY

RS-232 Serial Relay

Reference Manual

version 9/10/01



Industrologic, Inc.
3201 Highgate Lane
St. Charles, MO
63301
USA

Phone: (636) 723-4000
WWW: http://www.industrologic.com
Email: info@industrologic.com



Trademark and Copyright Information

RS51-SPR-RELAY is a Trademark of Industrologic, Inc. 2001

This document is Copyright (c) 2001 by Industrologic, Inc.
All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying or scanning, for any purpose other than the personal use by the purchaser of this product. Industrologic, Inc. reserves the right to revise this document at any time without obligation to notify any person of such revision. Industrologic, Inc. assumes no responsibility for any errors that may appear in this document.

The firmware contained in this product is Copyright (c) 2001 by Industrologic, Inc.



Description and Features

The RS51-SPR-RELAY is a software option for the RS51-SPR RS-232 Serial Port and Relay board and was designed to create a simple and inexpensive RS-232 controlled addressable relay board.

By receiving a short sequence of normal alphanumeric characters, the RS51-SPR-RELAY can control either a single relay, or the individual relays on up to 16 addressable RS51-SPR boards.

A female DB9 connector on the RS51-SPR board matches the pinout of the serial port of an IBM PC equivalent computer and can be connected to it with a common DB9 pin-to-pin male-to-female cable.

An additional male DB9 connector matches the pinout on the computer and provides a method of "chaining" multiple boards with the same cable.

Up to 16 boards can be chained through these connectors and can be optionally powered from the power supply connected to the first board in the chain.



Using the RS51-SPR-RELAY

Serial port setup and connection

Serial port 1 of the RS51-SPR should be connected to the device that will be transmitting commands to the board. A DB9 male to female connector cable is included to provide easy connection to serial ports on IBM PC equivalent computers.

An additional RS51-SPR board can be connected to Serial port 2 with its included cable (or equivalent wiring), and other boards with up to 16 unique "addresses" connected down the chain in a similar manner. Additional boards can have the same or different address as other boards in the chain and can respond to the same or different commands. Refer to the RS51-SPR reference manual under "On-Board Configuration Jumpers", "Board Address".

The RS-232 protocol on all connected boards should be selected to match the transmitting device. Refer to the RS51-SPR reference manual under "On-Board Configuration Jumpers", "Baud Rate and Character Echo". The default factory configuration is set to 9600 baud, 8 data bits, 1 stop bit, no parity, no echo.

All boards after the first board in the chain can be powered from the power supply connected to the first board. Refer to the RS51-SPR reference manual under "On-Board Configuration Jumpers", "Power to serial port connectors". The default factory address is 0 (zero).


Commands:

Commands used to turn relays on and off consist of simple alphanumeric characters sent to Serial port 1. The letters used in commands are case sensitive.

When entering commands "by hand" from a terminal program while testing, editing using the backspace and arrow keys is not available. Messages with typos must simply be re-entered.

Commands with errors will result in the word "Error" returned from Serial port 1. Only error-free commands will be sent to Serial port 2 to be received by any additional boards connected.


[CR] is carriage return (ENTER key), decimal 13, hexadecimal 0D


?[CR] Display a menu of commands (used mainly when connected to a terminal program)

R=1[CR] Turn on relays at all address (or single relay board)
R=0[CR] Turn off relays at all address (or single relay board)

A=1[CR] Turn on relay at address 0    I=1[CR] Turn on relay at address 8
A=0[CR] Turn off relay at address 0    I=0[CR] Turn off relay at address 8
B=1[CR] Turn on relay at address 1    J=1[CR] Turn on relay at address 9
B=0[CR] Turn off relay at address 1    J=0[CR] Turn off relay at address 9
C=1[CR] Turn on relay at address 2    K=1[CR] Turn on relay at address 10
C=0[CR] Turn off relay at address 2    K=0[CR] Turn off relay at address 10
D=1[CR] Turn on relay at address 3    L=1[CR] Turn on relay at address 11
D=0[CR] Turn off relay at address 3    L=0[CR] Turn off relay at address 11
E=1[CR] Turn on relay at address 4    M=1[CR] Turn on relay at address 12
E=0[CR] Turn off relay at address 4    M=0[CR] Turn off relay at address 12
F=1[CR] Turn on relay at address 5    N=1[CR] Turn on relay at address 13
F=0[CR] Turn off relay at address 5    N=0[CR] Turn off relay at address 13
G=1[CR] Turn on relay at address 6    O=1[CR] Turn on relay at address 14
G=0[CR] Turn off relay at address 6    O=0[CR] Turn off relay at address 14
H=1[CR] Turn on relay at address 7    P=1[CR] Turn on relay at address 15
H=0[CR] Turn off relay at address 7    P=0[CR] Turn off relay at address 15






Industrologic RS51-SPR

RS-232 Serial Port and Relay Board

Reference Manual

version 12/3/02



Industrologic, Inc.
3201 Highgate Lane
St. Charles, MO
63301
USA

Phone: (636) 723-4000
WWW: http://www.industrologic.com
Email: info@industrologic.com



Trademark and Copyright Information

RS51-SPR is a Trademark of Industrologic, Inc. 2001

This document is Copyright (c) 2001 by Industrologic, Inc.
All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying or scanning, for any purpose other than the personal use by the purchaser of this product. Industrologic, Inc. reserves the right to revise this document at any time without obligation to notify any person of such revision. Industrologic, Inc. assumes no responsibility for any errors that may appear in this document.

The firmware contained in this product is Copyright (c) 2001 by Industrologic, Inc.


Warning/Disclaimer

Whereas effort has been made to make the information in this document as useful and accurate as possible, Industrologic, Inc. assumes no responsibility for the application, usefulness, or completeness, of the information contained herein. Under no circumstance will Industrologic, Inc. be responsible or liable for any damages or losses including indirect or consequential damages or losses arising from either the use of any information contained within this manual or the use of any products or services referenced within this manual.

Industrologic, Inc. reserves the right to change any product's features, specifications, documentation, warranties, fee schedules, and conditions at any time and without notice.

Industrologic products are provided as printed circuit board level assemblies. Some Industrologic products may include mechanical packaging assessories which are provide for the purchaser's convenience, and are not intended to be final assembly enclosures.

Industrologic products are provided with the understanding that the purchaser will determine fitness for any particular application as well as achieve compliance with any particular specifications or regulations as required or desired for that application.


Warranty

Industrologic, Inc. products are warranted to be free from defects in workmanship or material under normal use and service for a period of one year from date of purchase. Industrologic's warranty is to the original purchaser only, but is extended to you by the Distributor or OEM from whom you purchased the product.

Industrologic's obligation under this Warranty is limited to replacement with a new or repaired unit to the original purchaser. The unit must be returned, and replacements obtained from Industrologic, Inc. or the Distributor or OEM from whom it was purchased.

This warranty will not apply if, in the judgment of Industrologic, Inc., damage or failure of the product has resulted from accident, alteration, misuse, abuse, connection to or operation with incompatible signals or power sources, or improper installation.

Under no circumstances shall Industrologic, Inc. be liable to purchaser or any third party for any loss of profits or other direct or indirect costs, expenses, losses, or consequential damages arising out of or as a result of any defects in or failure of Industrologic products or any part or parts thereof.

THIS WARRANTY IS IN LIEU OF ANY OTHER WARRANTY, EITHER EXPRESSED OR IMPLIED, AS TO DESCRIPTION, QUALITY, MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE OR USE, OR ANY OTHER MATTER.


Return and Repair Policy

Products purchased in single piece quantities may be returned, if in resellable condition, for a full refund of the purchase price only, to the original purchaser, within 30 days of purchase.

Products must be returned by original purchaser with a Return Materials Authorization (RMA) number issued by Industrologic, Inc. or the Distributor or OEM from whom it was purchased, authorizing its return. Current repair or replacement fees and procedures will be related during the issue of the RMA number.

Warranty or repair units must be returned with postage and insurance paid by purchaser. Industrologic, Inc. is not responsible for damages or loss during shipment.





Industrologic RS51-SPR

RS-232 Serial Port and Relay Board



picture of RS51-SPR


The RS51-SPR RS-232 Serial Port and Relay Board is a general purpose microcontroller board based on the Atmel AT89C2051 operating at 11.0592 MHZ. It was designed as a platform for multiple software options using its on-board hardware for various functions.

Two RS-232 serial ports are available on the board-

- One uses a DB9 female connector with a pinout that matches the serial port of an IBM PC equivalent computer when using a standard DB9 pin-to-pin male-to-female cable.

- The other uses a DB9 male connector with a pinout that emulates the IBM PC serial port for connection to other devices that connect to that standard.

The RS51-SPR also includes an on-board relay with 10 amp Form C contacts and screw terminal connections.

It can operate on 9 to 12 volts AC or 11 to 14 volts regulated or unregulated DC, with a coaxial power connector for connection to a wallblock transformer as well as screw terminals for other voltage sources.

The RS51-SPR is shipped with the items needed to quickly and immediately connect to an IBM PC compatible computer and to begin operating the device- A wallblock power supply, RS-232 cable, and detailed Reference Manual.



Mechanical Specifications

Single-sided .062" FR-4 glass epoxy printed circuit board.
P.C. Board assembly has holes available for mounting to enclosure or #6 standoffs.
P.C. Board dimensions: 4.00 inches by 2.00 inches


Mechanical Dimensions:

mechanical drawing of RS51-SPR



Electrical Specifications

Power supply requirements:
Power supply voltage: 9 to 12 volts AC, 11 to 14 volts DC, regulated or unregulated
Power supply current: 30 ma at 14VDC with relay off, 90 ma with relay on
Wall block power supply connector: 5.5 mm outside diameter, 2.1 mm inside diameter

Operating environment:
Temperature: 0-50 degrees Celsius (32-122 Fahrenheit)
Humidity: 30 to 80 percent, non-condensing

Form "C" Relay Contacts:
Maximum voltage: 30 volts, AC or DC
Maximum current: 10 amps
Manufacturer's type: Omron G5LE-14 series or equivalent



On-Board Configuration Jumpers

The RS51-SPR uses plastic jumpers or "shunts" placed on pins on the printed circuit board to select various software options. The pins are arranged in groups of three, with selections being made by placing the individual jumpers between the center pin and one of the outside pins depending on the option selected.

Baud Rate and Character Echo:

Jumpers S0, S1, S2, and S3 are arranged in a group of 12 pins that select the baud rate and echo options for Serial Port 1. The jumpers are placed to the left or right to select one of two positions.

The following is a table of jumper arrangements and baud rates available.

baud rate  19.2K  9600   4800   2400   1200   600    300    150
S0         left   right  left   right  left   right  left   right
S1         left   left   right  right  left   left   right  right
S2         left   left   left   left   right  right  right  right
                (default)

Jumper S3 selects whether or not the RS51-SPR will echo characters sent to it.

echo       yes    no
S3         left   right
                (default)

Board Address:

Jumpers A0, A1, A2, and A3 are arranged in a group of 12 pins that select the address of an individual RS51-SPR board when used with on-board software that recognizes board addressing. The jumpers are placed to the left or right to select one of two positions.

The following is a table of jumper arrangements and addresses.

Address         15      14      13      12      11      10      9       8      
A0              left    right   left    right   left    right   left    right
A1              left    left    right   right   left    left    right   right
A2              left    left    left    left    right   right   right   right
A3              left    left    left    left    left    left    left    left

Address         7       6       5       4       3       2       1       0
A0              left    right   left    right   left    right   left    right
A1              left    left    right   right   left    left    right   right
A2              left    left    left    left    right   right   right   right
A3              right   right   right   right   right   right   right   right
                                                                      (default)


Power to Serial Port Connectors:

Jumpers P1 and P2 are both 3 pins, and select whether the power supply voltage is connected to pin 9 of the DB9 connectors used for serial port 1 and serial port 2. The jumpers are placed to the top to connect power and to the bottom to not connect power.

Connecting power to serial port 2 allows an RS51-SPR to power another board when used a part of a chain of addressed boards. Connecting power to serial port 1 allows an RS51-SPR to receive power from another board. When used in this manner, the first board in the chain should have only serial port 2 connected to power, and the rest of the boards should have both serial 1 and serial 2 connected to power. Power should then be applied only to the first board.



Serial Port Pinouts

The RS51-SPR serial port 1 connector and its pinout matches the 9-pin serial port of IBM PC compatible computers and can be easily connected to these computers using a DB9 male-to-female, pin-to-pin cable. The RS51-SPR does not require hardware handshake signals and can be used with only the transmit, receive, and ground signals connected. (Some programs and programming languages may require that some of the input handshake signals be asserted going into the PC. In order to make this easier, the RS51-SPR has the common PC handshake signals looped back on the board, so that when a 9-wire cable is used, the signals are asserted without further connection.)

The following are pinouts of the serial port connectors:

Serial Port 1, DB9-Female:                 Serial Port 2, DB9-Male

PC signal   Pin   RS51-SPR Signal          Pin   RS51-SPR Signal
DCD in      1                              1
receive     2     transmit                 2     receive
transmit    3     receive                  3     transmit
DTR out     4                              4
ground      5     ground                   5     ground
DSR in      6                              6
RTS out     7                              7
CTS in      8                              8
RI in       9     optional power           9     optional power

On serial port 1 pins 1, 4, and 6 are tied together and pins 7 and 8 are tied together.



RS51-SPR P.C. Board drawing


end of manual
log file