21
Function 9-Pin D-Sub 25-Pin D-Sub
Connections Connections
Rx Receive Data
Pin 2 Pin 3
Tx Transmit Data Pin 3 Pin 2
GND Signal Ground Pin 5 Pin 7
DSR Data Set Ready Pin 6 Pin 6
RTS Request to Send Pin 7 Pin 4
CTS Clear to Send Pin 8 Pin 5
All other pins not used. Be sure to connect the Tx pin (Pin 2) from the 25-Pin D-Sub female connector
to the Rx pin (Pin 2) of the 9-Pin D-Sub male connector for proper operation. Connect all other functions
by type as indicated above.
By sending the proper commands, the unit will respond by activating the proper function. The
following program will allow operation of the T132 or D122 from the computer keyboard.
With activation of the shutter with the OPEN command through the RS-232 interface, a RESET
command from the control unit's front panel or through the input on the rear panel will de-activate the
shutter and clear the RS-232 output latches.
The following is a test program written to test the input commands to the RS-232 interface of the T132
and D122 controllers.
RS-232 TEST PROGRAM
REM TEST PROGRAM TO SEND COMMAND PULSES TO RS232 INTERFACE.
REM WRITTEN BY STEVE PASQUARELLA, VINCENT ASSOCIATES - 5/9/89.
REM PROGRAMMING LANGUAGE USED - MICROSOFT QUICK BASIC
REM LAST REVISION 1/31/90. REV A: "CLS 0" STATEMENT REMOVED REM
FOLLOWING "J = 63" STATEMENT.
L = -1
WHILE L
OPEN "COM1:300,N,8,1,CS0,DS0" AS #1
J
=
63
MENU: PRINT
RS-232 TEST PROGRAM (cont.)
PRINT "WAITING FOR KEYSTROKE COMMAND"
PRINT
"TYPE:"
PRINT " C - CLOSE SHUTTER"
PRINT " O - OPEN SHUTTER"
PRINT " R - RESET CONTROL"
PRINT " T - TRIGGER CONTROL" REM T132 ONLY
PRINT " Q - TERMINATE PROGRAM"
START: A$ = INKEY$
IF A$ = "O" THEN
#1,CHR$(J
+
1);
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com