background image

Setup and Configuration

25

2.4.2

DOS MODE C

OMMAND

The MODE command can be used to configure
communications (COM) port parameters and to
redirect parallel printer output to a COM port.

DOS MODE COM Command

. You’ll need to add a

MODE COM command to your AUTOEXEC.BAT
file if:

• You will be using the DOS print command to

send data to the COMS.

• You will be using an application that does not

allow you to set the baud rate and word
structure of your COM port.

If you meet either of those conditions, add the
following command to your AUTOEXEC.BAT file:

MODE COM1:9600,N,8,1

(specifies asynchronous communications
parameters as 9600 baud, no parity, 8 data bits,
1 stop bit)

DOS MODE LPT Command.

You’ll need to add a

MODE LPT command to your AUTOEXEC.BAT
file if:

• You will be using the DOS print command to

send data to the COMS and you do not want to
enter “COM1” or “COM2” at the PRINT-
command prompt (“list device [PRN]: ”).

• You will be using an application program that

does not allow you to select a COM port as your
print/list device.

If you meet either of those conditions, add the
following command to your AUTOEXEC.BAT file:

MODE LPT1:=COM1 

(redirects printer output from Parallel Printer
Port 1 to Communications Port 1)

NOTE: You must use the MODE COM command to

specify the asynchronous communications
mode before you can redirect parallel printer
output to the COM port with the MOD LPT
command. See your DOS manual for more
information on the MODE command. 

2.5 Default Settings

The COMS hardware and LINKUP support
program should be shipped from the factory with
the following default configuration:

Code Operated Matrix Switch:

• 19,200 baud, 7 data, no parity, X-ON/X-OFF

flow control (all ports)

• attention string “@” (all ports)

• <break> sequences are ignored (for example, a

port’s link will not be broken on <break>)

• a user-set attention string remains if the COMS

is reset

• all ports can change port names and attention

strings

• the COMS is in Normal Operation (not running

its internal self-test)

• DCD and RTS are not passed through between

linked ports

LINKUP Program:

• 19,200 baud, 7 data, no parity, flow control N/A

• attention string “@”

• COM Port #1

DOS COM Port:

Use the DOS MODE COM command in your
AUTOEXEC.BAT file to set your computer’s
defaults for baud rate and word structure for any
communication (COM) port.

2.6 Configuring the COMS, LINKUP, and DOS

The Code Operated Matrix Switch (COMS),
LINKUP Support Program, and DOS must all be
initially configured to use the same:

• PC COM port (for example, COM1)

• baud rate (for example, 9600)

• word structure:

• data bits (for example, 8)

Summary of Contents for SW540A-R3

Page 1: ...1000 Park Drive Lawrence PA 15055 1018 724 746 5500 Fax 724 746 0746 Copyright 2000 Black Box Corporation All rights reserved ...

Page 2: ...ek Call 724 746 5500 or fax 724 746 0746 Mail order Black Box Corporation 1000 Park Drive Lawrence PA 15055 1018 Web site www blackbox com E mail info blackbox com CUSTOMER SUPPORT INFORMATION MARCH 2000 SW540A R3 SW541C Code Operated Matrix Switch and 4 Port Expansion Board 0 1 2 3 4 5 6 7 8 PWR STATUS CODE OPERATED MATRIX SWITCH ...

Page 3: ...ence Caution Changes or modifications not expressly approved by the party responsible for compliance could void the user s authority to operate the equipment This digital apparatus does not exceed the Class A limits for radio noise emission from digital apparatus set out in the Radio Interference Regulation of Industry Canada Le présent appareil numérique n émet pas de bruits radioélectriques dépa...

Page 4: ...ix A ASCII Codes 17 Appendix B Installing the 4 Port Expansion Card 18 Appendix C Quick Setup Guide 19 LINKUP Software 1 Introduction 21 1 1 What Is LINKUP 21 12 Hardware Requirements 21 2 Setup and Configuration 23 2 1 Files on the LINKUP disk 23 2 2 Making a Backup Copy 23 2 3 Installing the LINKUP Files on Your Hard Drive 24 2 4 Modifying your AUTEXEC BAT File 24 2 5 Default Settings 25 2 6 Con...

Page 5: ...Code Operated Matrix Switch 4 Hardware Section 0 1 2 3 4 5 6 7 8 PWR STATUS CODE OPERATED MATRIX SWITCH ...

Page 6: ...sure Steel Operating Temperature 32 to 113 F 0 to 45 C Storage Temperature 4 to 158 F 20 to 70 C Humidity 0 to 95 relative noncondensing Mean Time Between Failures 20 000 hours for standard Switch Ground Benign Environment 16 000 hours for standard Switch with 4 Port Expansion Board Power 115 VAC 60 Hz at 175 mA 230 VAC 50 Hz version available Size 2 3 H x 11 2 W x 12 1 D 5 8 x 28 4 x 30 7 cm Weig...

Page 7: ... Switch has 32K of RAM with approximately 31K devoted to buffering The 4 Port Expansion Board Model SW541 C provides four additional input output ports see Appendix B for instructions on setting it up This manual includes a quick reference section Appendix C If you re familiar with the operation of the COMS use the charts in that section to set up the Switch If not proceed through Sections 3 4 and...

Page 8: ... CONFIGURATIONS A number of options can be configured for each port individually You can select Baud rate 110 300 600 1200 2400 4800 9600 or 19 200 bps Parity Even odd or none Data bits per word 7 or 8 Flow Control Hardware DTR CTS or software X ON X OFF Break detection Break to disconnect or ignore breaks 3 Installation BACK PORT 4 PORT 3 PORT 2 PORT 1 PORT 0 DTE DCE J7 U23 U20 J1 W1 VR1 RESET BU...

Page 9: ...ses the first four positions with Positions 5 through 8 reserved for future use The settings and functions of the first four positions of SWF are given in Table 2 Check the chart and then use a pointed object such as a small screwdriver to set the bank Option Switch Position Settings 1 2 3 4 5 6 7 8 Baud Rate 110 ON ON ON 300 OFF ON ON 600 ON OFF ON 1200 OFF OFF ON 2400 ON ON OFF 4800 OFF ON OFF 9...

Page 10: ...D DCE DCE Port 1 RTS to Port 2 DCD Port 2 RTS to Port 1 DCD 3 2 Configuring Shunt Jumpers for DTE or DCE Each of the five or nine ports has a bank of shunt jumpers located next to its port connector on the rear of the internal board or boards See Fig 1 for their location These jumpers allow each port to be configured as either Data Terminal Equipment DTE or Data Communications Equipment DCE You do...

Page 11: ... Expansion Board of the COMS 3 Plug the wall mounted power supply into a suitable outlet The Switch is now ready Go on to Chapter 4 to learn about the Switch s controls and indicators You ll control your switch mostly through ASCII codes you send from the devices connected to it There are however mechanical controls and indicators on the Code Operated Matrix Switch This chapter begins with the mec...

Page 12: ...switch is to use the Remote Reset command See RR in Section 4 3 2 4 3 ASCII Control Codes The Code Operated Matrix Switch accepts com mands from any port No one port is designated as a master port A single command consists of the attention string followed by a command sequence that may be from one to three characters long The Help screen shown in Fig 2 presents all the command sequences for the Sw...

Page 13: ...ctional link between these two ports unlink If these two ports are not linked to each other the Code Operated Matrix Switch sends a message to the port that issued the command indicating that the unlink was not made Otherwise the two ports will be unlinked and the Code Operated Matrix Switch sends a message to the port that issued the command indicating that the unlink was successful HELP SCREEN C...

Page 14: ...tring followed by a B and a PORT NUMBER it sends a 250 millisecond break condition out the indicated port Then it sends a message to the port that issued the command indicating that the break was sent NOTE Any port can issue the Send Break command For example Port 3 could issue a command to send a break out Port 4 A Set Attention When the Code Operated Matrix Switch receives an ATTENTION string fo...

Page 15: ...itch detects an incoming break condition it will either act on it or ignore it depending on how DIP Switch Position 8 is set on each port If Position 8 is ON then when any port on the Code Operated Matrix Switch is linked to another port and receives a break condition the two ports will be unlinked The Code Operated Matrix Switch sends a message to the port that requested the break condition to in...

Page 16: ... that checks whether data is being correctly transmitted and received on any particular port This test also checks using DTR CTS RI or RTS DCD whether the box can loop control leads back properly The Interrupt Test checks the interrupt circuitry of the Switch During this test the letter A will appear on the screen A message will indicate whether the test passed or failed NOTE To perform a data tes...

Page 17: ... PORT 6 FAILED FAILED FAILED PORT 7 FAILED FAILED FAILED PORT 8 FAILED FAILED FAILED SERIAL PORT TEST FAILED INTERRUPT TEST IN PROGRESS A INTERRUPT TEST PASSED RAM TEST 64K RAM IS GOOD LED TEST IN PROGRESS ALL LEDS SHOULD TURN ON AND OFF PRESS ANY KEY TO EXIT 5 2 Sample Test Program Here is a sample test program written in BASIC for the Code Operated Matrix Switch When run this program will output...

Page 18: ...25 15 21 NAK 26 16 22 SYN 27 17 23 ETB 30 18 24 CAN 31 19 25 EM 32 1A 26 SUB 33 1B 27 ESC 34 1C 28 FS 35 1D 29 GS 36 1E 30 RS 37 1F 31 US LOWER CASE OCTAL HEX DECIMAL 140 60 96 141 61 97 a 142 62 98 b 143 63 99 c 144 64 100 d 145 65 101 e 146 66 102 f 147 67 103 g 150 68 104 h 151 69 105 i 152 6A 106 j 153 6B 107 k 154 6C 108 l 155 6D 109 m 156 6E 110 n 157 6F 111 o 160 70 112 p 161 71 113 q 162 7...

Page 19: ...e bottom of the Expansion Board is seated firmly in the socket of the main board 5 Screw the 8 screwlocks into the holes along the row of expansion ports Also set screws into the standoffs 6 Set the baud rate parity word size flow control and break detection capacity with DIP Switch Banks SWH through SWK Use the chart on the next page 7 Set each expansion port for DTE or DCE operation with the DIP...

Page 20: ... character changes to Port 0 only OFF All ports can change port names and attention characters 3 ON Perform self test see Section 5 OFF Normal operation 4 ON DCD RTS passed through OFF DCD RTS blocked 5 8 Reserved for future use Functions and Settings Switch Bank SWF Appendix C Quick Setup Guide Individual Port Switch Banks Internal Board Locations Option Switch Position Settings 1 2 3 4 5 6 7 8 B...

Page 21: ...LINKUP Software for the Code Operated Matrix Switch LINKUP PC SUPPORT PROGRAM Version 2 0 Copyright 1992 Black Box Corporation All rights reserved ...

Page 22: ...n diagnostic tests or enter a dumb terminal emulation program so you can communicate directly with the COMS if you wish With LINKUP you can check to see whether a shared device is in use by someone else If it s free LINKUP will help you create a link from your computer to the device Once you are linked through the COMS you can exit from LINKUP Your regular application programs can now use the shar...

Page 23: ...Test SW540 s 232 Outputs Test SW540 Baud Rate View Set Attention Strings Set Port Name Send Break to COMS Send Break out COMS Port Save Links in NVR Disconnect All Lines Reload Factory Defaults Restore Saved Links Reset Display Software Version View Current Links Make Regular Link Make Transparent Link Unlink Linked Ports Break Your Trans Reg Link MAIN MENU OTHER OPTIONS MENU SPECIAL COMMANDS MENU...

Page 24: ...ation All rights reserved DOS gives you two ways to make a backup copy If you have only one disk drive use the DISKCOPY command If you have two disk drives you ll probably find it more convenient to use COPY If your disk drive can t format a blank disk to match the format of the LINKUP disk you ll have to use the COPY command See your DOS manual for help with any of the DOS commands used below 2 2...

Page 25: ... Modifying Your AUTOEXEC BAT File You might need to use a number of DOS commands to set up your system for LINKUP If you add them to your AUTOEXEC BAT file they ll run automatically when you turn your machine on and you won t have to type them in again every time you run LINKUP Reboot your PC after modifying your AUTOEXEC BAT file If you don t know how to create or edit the AUTOEXEC BAT file See y...

Page 26: ...inter Port 1 to Communications Port 1 NOTE You must use the MODE COM command to specify the asynchronous communications mode before you can redirect parallel printer output to the COM port with the MOD LPT command See your DOS manual for more information on the MODE command 2 5 Default Settings The COMS hardware and LINKUP support program should be shipped from the factory with the following defau...

Page 27: ...the hardware section in the front of this manual for more detail To configure LINKUP install the program Then use the built in menu commands to configure the support software see Fig 1 Menus in the Linkup Software for more details For DOS use the MODE COM command to configure COM port parameters see Section 2 4 2 DOS MODE Command for more details ...

Page 28: ...eak your Transparent Link with the BREAK YOUR LINK menu option in the Link Menu 3 2 Sending Data with DOS You can use the DOS PRINT command to send data through the COMS unit The PRINT command will let you send a file out your PC s COM port using the baud rate and word structure defined by the last MODE COM command see Section 2 4 2 DOS MODE Command The PRINT command con figures the COM port for h...

Page 29: ...rd structure set up in the last DOS MODE COM command See Section 2 4 2 Most of these programs will also use hardware flow control Most other application programs are designed to send data to an attached parallel printer With these programs you need to redirect the parallel printer output to a communications COM port and configure the COM ports parameters There are two ways to redirect the output 1...

Page 30: ... to save their attention string changes remember to turn SWF Position 1 to OFF and reset the COMS again PROBLEM Just a few of the LINKUP commands don t work correctly like the Break Your Trans Reg Link command Make sure the COMS unit s BREAK DETECTION option is set to Break to Disconnect for your port See the COMS user s manual to find out which Switch Bank is assigned to your port then make sure ...

Page 31: ... for the LINKUP support program to execute all of its menu options PROBLEM I m still having problems If you still need help check these sources Your COMS user s manual for information on hardware problems LINKUP s on line help information Your DOS manual for help on any of the DOS commands and also on EDLIN the editing pro gram you can use to create or change your AUTOEXEC BAT file NOTE You have t...

Reviews: