background image

SC100 ISOLATED RS-232 BAUD RATE CONVERTER INTERFACE

2

Command to enter transparent mode:

ctrl-Q(17), I (73), S (83)

Command to exit transparent mode:

either
1) change the baud rate, parity status
2) change the initialize structure

Command for changing the baud rate,
parity, and error reporting:

ctrl-Q(17), I (73), B (66)

Following these three command bytes the
SC100 will expect:

Structure initialization information:

byte 1)

1 byte COMPUTER/SENSOR Baud

Rate:

16 - 38.4k baud
17 - 19.2k baud
18 - 9600 baud
19 - 4800 baud
20 - 2400 baud
21 - 1200 baud

Values other than these listed will result in non-
standard baud rates.

Buffering in one direction only (appropriate
delays should be programmed with baud rates
under 1200 baud when the datalogger transmits
character  to the computer/sensors).

byte 2)

1 byte for parity (computer/sensor
side), full or half duplex (datalogger
side), error messages
(computer/sensor side).

Example

01010100 binary --> 54 hex -->84 decimal -->
send errors, even parity, full duplex

Bit6 (error/no error) - If set to 1 the SC100 will
report any framing, overrun, or parity errors
form the computer/sensor side.  This
information will be added to the end of the
buffered data sent to the datalogger, and will
either be zero (0) for no errors, or one through
nine (1-9) for number of errors detected.

Bit4 (even/odd) - Even or odd parity if parity bit2
is set to one.

Bit3 (half/full) - There are two different versions
of Instruction 15 for the CR10 datalogger.  Half
duplex, or full duplex.  The PROM installed in
the CR10 determines the version.  The CR10X
uses full duplex.  Whenever the datalogger
executes Instruction 15, the DTR line goes high.
The DTR line remains high for transmitting and
goes low for receiving.  With the full duplex
version, data can be received before the
transmitting has been completed (data can not
be received before the delay time entered in
parameter 3).

The SC100 will delay 12 msec before
transmitting the buffered data (parameter 3
must be 1 --> 10 msec).

Three out of the five different Input/Output
Configurations for Instruction 15 can be used
with the SC100 and they are 1, 2 and 4.

x

1=error

0=no error

x

1=even

0=odd

1=half

0= full

1=parity

0= none

x

x

bit7

bit6

bit5

bit4

bit3

bit2

bit1

bit0

x-don't care

Summary of Contents for sc100

Page 1: ...SC100 ISOLATED RS 232 BAUD RATE CONVERTER INTERFACE INSTRUCTION MANUAL REVISION 8 96 COPYRIGHT c 1993 1996 CAMPBELL SCIENTIFIC INC ...

Page 2: ...anties of merchantability or fitness for a particular purpose CAMPBELL SCIENTIFIC INC is not liable for special indirect incidental or consequential damages Products may not be returned without prior authorization To obtain a Returned Materials Authorization RMA contact CAMPBELL SCIENTIFIC INC phone 435 753 2342 After an applications engineer determines the nature of the problem an RMA number will...

Page 3: ...ger when Instruction 15 asserts the DTR line In a given record structure the SC100 searches for a specified string then buffers all of the data following the string until it encounters a termination character the search string and termination characters are user specified through the optional initialization sequence Some data conversion e g alpha characters to number equivalents can also be perfor...

Page 4: ... the SC100 will report any framing overrun or parity errors form the computer sensor side This information will be added to the end of the buffered data sent to the datalogger and will either be zero 0 for no errors or one through nine 1 9 for number of errors detected Bit4 even odd Even or odd parity if parity bit2 is set to one Bit3 half full There are two different versions of Instruction 15 fo...

Page 5: ...uter sensor side Pig tail to DB 9 pin cable Red supply volts jumper configurable to either 12 V or 5 V Black Gnd Blue DTR input Orange TXD input Brown RXD output Green FLAG output SC100 s output that indicates buffered information ready Yellow Power Down wire 5 V will power down the SC100 if internal jumper is connected connect to gnd if not used There are three different power modes 1 Yellow wire...

Page 6: ...ll None 0 1 1 0 P15 4800 Half None 1 0 0 0 P15 4800 Full None 1 0 1 0 P15 9600 Full Even 1 1 0 0 P15 9600 Full Odd 1 1 1 0 P15 1200 Full None Example of jumper setting p15 4800 full none 1 2 3 4 5v Computer Sensor DB9 pin configuration jumpers located around the computer sensor DB9 pin connector DCE mode to connect to computer DTE mode to connect to sensor ...

Page 7: ...onent of 10 03 12 Z Loc 07 P30 Z F 01 18 F byte 1 baud rate 9600 02 00 Exponent of 10 03 13 Z Loc 08 P30 Z F 01 08 F byte 2 no error no parity half duplex 02 00 Exponent of 10 03 14 Z Loc 10 P15 Port Serial I O Special 01 1 Rep 02 01 Configuration code 03 1 CTS Delay 04 1 First control port 05 10 Output Loc 06 5 No of locs to send 07 13 Termination character 08 0 Maximum characters 09 20 CTS Input...

Page 8: ...ort 05 10 Output Loc 06 3 No of locs to send 07 13 Termination character 08 0 Maximum characters 09 1 CTS Input wait 10 2 Loc 11 1 Mult 12 0 Offset 18 P86 Do 01 21 Set low Flag 1 19 P95 End Example of how to initialize the SC100 s search find replace structure 20 P91 If Flag Port 01 13 Do if flag 3 is high 02 30 Then Do 21 P30 Z F 01 17 F command character ctrl Q 02 00 Exponent of 10 03 10 Z Loc 2...

Page 9: ...ates search 02 00 Exponent of 10 03 17 Z Loc 29 P30 Z F 01 00 F search byte 6 00 terminates search 02 00 Exponent of 10 03 18 Z Loc 30 P30 Z F 01 00 F search byte 7 must always be 00 02 00 Exponent of 10 03 19 Z Loc 31 P30 Z F 01 127 F find replace 0 127 not used 02 00 Exponent of 10 03 20 Z Loc 32 P30 Z F 01 69 F find replace 1 E is replaced with 1 02 00 Exponent of 10 03 21 Z Loc 33 P30 Z F 01 8...

Page 10: ...tion character 08 0 Maximum characters 09 100 CTS Input wait 10 3 Loc 11 1 Mult 12 0 Offset 38 P86 Do 01 23 Set low Flag 3 39 P95 End Example of how to receive buffered information 40 P91 If Flag Port 01 44 Do if port 4 is high 02 30 Then Do 41 P15 Port Serial I O Special 01 1 Rep 02 01 Configuration code 03 1 CTS Delay 04 1 First control port 05 9 Output Loc 06 1 No of locs to send 07 13 Terminat...

Reviews: