background image

PROTOCOL CONVERTER A/S-2G

16

In 3741 protocol, each block contains only one record.  If SW3, Switch #5 is OFF, the A/S-2G will fill
the block with spaces until it reaches 128 characters .  If SW3, Switch #5 is ON, the block will end
immediately after CR.

NOTE: 
• If SW3,  Switch #3 is OFF, then one character of the total count must be allotted to the CR.  The CR

will be translated into EBCDIC as a NL (New Line).  Thus, if block size is specified as 80 characters, 
79 characters plus the CR would make a full 80 character record.  Entering 80-characters and a CR
would cause 2 records to be sent:  one with the 80 characters; the second with the NL character and,
if SW3, Switch #5 is OFF, 79 spaces.

• When SW3, Switch #3 is ON, the A/S-2G will delete CR from the character count and send no

representation of the CR with the EBCDIC data.

4.1.5  USE OF CARRIAGE RETURN

(

A

)  2770/2780 M

ODE

Data from the asynchronous device is buffered (stored in RAM) until a CR (ASCII 0D Hex) is entered.
If the A/S-2G receives asynchronous characters up to the selected block size without receiving a CR
character, the A/S-2G will add an IUS character and a 2-byte CRC sequence to the block. 

When the A/S-2G receives a CR, the A/S-2G sends any buffered data to the synchronous device with
an ETB (EBCDIC Hex 26). 

The last block of asynchronous data must end with a “Control D” (ASCII Hex 04).  The A/S-2G will
send the block, adding with an ETX (EBCDIC Hex 03).  After receiving a positive acknowledgement,
the A/S-2G sends an EOT.

(

B

)  3741/3780 M

ODE

Data from the asynchronous device is buffered until a CR (ASCII 0D Hex) is entered.  When the 
A/S-2G receives a CR, the A/S-2G inserts an IRS (EBCDIC 1E Hex).  Data will continue to accumulate
until the selected block size is exceeded.  At this point, the A/S-2G sends the full block of data.

The last block of asynchronous data must end with a “Control D” (ASCII Hex 04).  The A/S-2G will
send the block, adding with an ETX (EBCDIC Hex 03).  After receiving a positive acknowledgement,
the A/S-2G sends an EOT. 

4.1.6  FLOW CONTROL

The input buffer (RAM) is capable of storing up to 1720 characters.  The asynchronous device can
continuously send data to the A/S-2G if RAM is available and the character string contains a CR code
before the buffer fills.  (However, the maximum block size that is acceptable to the synchronous device
must be considered.)

ASCII 

CHARACTERS NOT TRANSLATED TO

 EBCDIC

CR (Carriage Return) when SW3, Switch #3 is ON, LF (Line Feed), Control characters are not passed.

Character

Hex

Character

Hex

NUL

00

ACK

06

SOH

01

DLE

10

STX

02

NAK

15

ETX

03

SYN

16

EOT

04

ETB

17

ENQ

05

US

1F

Table 4-2.  ASCII characters not translated to EBCDIC.

Summary of Contents for PCW22A-R3

Page 1: ...4 746 5500 or fax 724 746 0746 Mailing address Black Box Corporation 1000 Park Drive Lawrence PA 15055 1018 Web site www blackbox com E mail info blackbox com CUSTOMER SUPPORT INFORMATION AUGUST 1998...

Page 2: ...a residential area is likely to cause interference in which case the user at his own expense will be required to take whatever measures may be necessary to correct the interference Changes or modific...

Page 3: ...de aire por los orificios de ventilaci n 10 El equipo el ctrico deber ser situado fuera del alcance de fuentes de calor como radiadores registros de calor estufas u otros aparatos incluyendo amplific...

Page 4: ...3 6 Cable Requirement 12 3 4 Preparing the A S 2G for Connection to a Synchronous Device 12 3 4 1 Data Terminal Ready DTR Signal Options 12 3 4 2 Clear to Send CTS Signal Options 12 3 4 3 Baud Rate O...

Page 5: ...Data Format 22 4 2 3 Data Conversion 22 4 2 4 Flow Control 22 4 2 5 Verification of Data Reception 22 4 2 6 Line Turnaround 22 5 0 Conversions and Connections 27 5 1 Transparency Mode of Operation 27...

Page 6: ...ead in DTE only Synchronous bisynchronous standard BSC handshaking Indicators Unit Power PWR Power LED mounted on Port B side Each Port TXD Transmit Data RXD Receive Data RTS Ready to Send CTS Clear t...

Page 7: ...on code ASCII Will it operate in TTY format start stop RS 232 7 bit and even odd mark or space parity The A S 2G is equipped with two bidirectional RS 232C ports These ports labeled Port A and Port B...

Page 8: ...ts to receive an echo of its transmitted data NOTE The A S 2G always operates in half duplex mode on the synchronous side so this option applies only to the asynchronous device Switch 2 ON echo EOT ch...

Page 9: ...ON 3780 MODE OFF 2770 2780 3741 MODE Switch 7 ON When RAM reaches a nearly full state DTR Pin 20 will be lowered When RAM space is available DTR will be raised to permit transmission to resume Port A...

Page 10: ...S There are two ways to enter the self diagnostic mode The first method requires that you locate SW2 switch 4 and set it to the ON position When you press the reset switch the A S 2G will display diag...

Page 11: ...ough position the jumper over the center and right posts The DTR double jumper is located just below and slightly to the right of U28 on the circuit board For normal operation A S 2G signal control pl...

Page 12: ...onous port Refer to Table 3 1 Port A Asynchronous Baud Rate to determine the position of each switch NOTE The baud rate of the asynchronous port Port A cannot be set externally Do not use the EXT sett...

Page 13: ...escribed below then plug a male RS 232 connector into the A S 2G s female receptacle Sex change adapters connectors and cable are available if you need them 3 4 1 DATA TERMINAL READY DTR SIGNAL OPTION...

Page 14: ...Refer to the circuit board layout Figure 5 2 on page 28 To remove or replace a DIP Shunt follow the instructions for installing and replacing PROMs Section 5 2 on page 24 3 4 5 EXTERNAL OR INTERNAL C...

Page 15: ...be preceded by and terminated by Example Command Commands consist of character pairs Each pair must represent a valid Hexidecimal value i e zero through 9 or A through F Example To send an escape sequ...

Page 16: ...duplex user selectable with SW2 Switch 3 75 to 9600 bps user selectable by SW1 Switches 1 through 4 ASCII code 4 1 3 DATA CONVERSION The A S 2G converts Asynchronous ASCII data byte for byte to EBCDIC...

Page 17: ...to the synchronous device with an ETB EBCDIC Hex 26 The last block of asynchronous data must end with a Control D ASCII Hex 04 The A S 2G will send the block adding with an ETX EBCDIC Hex 03 After re...

Page 18: ...perating in full duplex mode from the asynchronous side SW3 Switches 1 and 2 permit visual assurance of accurate and complete transmission When SW3 Switch 1 is ON the A S 2G will immediately echo back...

Page 19: ...2 etc last record 26 BCC1 BCC2 FF FF IF 3780 AA AA 32 32 32 32 02 text up to 80 characters with records separated by 1E last record in block 1E 26 BCC1 BCC2 FF FF IF 3741 AA AA 32 32 32 32 02 up to 12...

Page 20: ...user specified lead Frees up buffer space Echo CR LF Allow resumption of transmission DC1 ASCII 11 Hex or raise DTR Complete block D Send block E Echo all but CR LF X OFF Send block C X ON Send block...

Page 21: ...F FF NAK AA AA 32 32 32 32 3D FF FF Echo CR LF Send block F Echo all but CR LF Echo CR LF Send block G end with EOT Hex 04 Echo all but CR LF EOT ENQ ENQ Send block F TTD Send block G If data not yet...

Page 22: ...780 AA AA 32 32 32 32 02 text up to 80 characters IF BCC1 BCC2 etc last record 03 BCC1 BCC2 FF FF IF 3780 AA AA 32 32 32 32 02 text up to 80 characters with records separated by 1E last record in bloc...

Page 23: ...ters to ASCII Characters are listed in Tables 4 3 and 4 4 below 4 2 4 FLOW CONTROL The input buffer RAM is capable of storing up to a maximum of 1720 characters The synchronous device can continuously...

Page 24: ...a phone line if the DTR B jumper is set for CNT NOTE The A S 2G will cycle the synchronous DTR lead off for 2 seconds whether the DLE EOT sequence comes from the synchronous or asynchronous side EBCDI...

Page 25: ...ENQ ENQ Send data block C Unformatted mode successive characters including spaces appear one after another as sent ACK 0 ACK 1 Send block A WAK WAK Send block B ACK 0 when buffer available ACK 1 Send...

Page 26: ...Send data block E Retransmit block E TTD TTD NAK ACK 0 when available Send block D NAK ACK 1 when correctly received Send block E NAK NAK If data not properly received by A S 2G If data not yet availa...

Page 27: ...s Device Bisynchronous Device A S 2G Converter Asynchronous Device Send data block F last block EOT ACK 0 Send block F Send C R LF EOT to asynchronous device if SW3 switch 2 is ON Line can now be turn...

Page 28: ...ronous port The A S 2G software detects the end of incoming asynchronous data in one of two ways 1 Receipt of an ASCII ESC Control D sequence 1B Hex 04 Hex with no other data following for one second...

Page 29: ...5 1 The RS 232 Interface 1 2 3 4 5 6 7 8 9 10 11 12 13 PROTECTIVE GROUND TRANSMITTED DATA RECEIVED DATA REQUEST TO SEND CLEAR TO SEND DATA SET READY SIGNAL GROUND COMMON RETURN RECEIVED LINE SIGNAL DE...

Page 30: ...08 16 36 Numeric BS HT 09 05 39 Required Tab LF 0A 25 VT 0B OB FF 0C OC 0A Repeat WP 3A Required Page End CR 0D OD CR 15 CR 06 Required CR CR 1E CR 33 Index Return SO OE OE SI OF OF DLE 10 10 DC1 11 1...

Page 31: ...2 c 63 83 d 64 84 e 65 85 f 66 86 g 67 87 h 68 88 i 69 89 j 6A 91 k 6B 92 l 6C 93 m 6D 94 n 6E 95 Character or ASCII EBCDIC Graphic Hex Dir Hex Comments o 6F 96 p 70 97 q 71 98 r 72 99 s 73 A2 t 74 A3...

Page 32: ...CD EC 5 5 PRINTED CIRCUIT BOARD LAYOUT Figure 5 2 Printed Board Circuit Layout TXD A RXD A RTS A CTS A DTR A DSR A CDA A CDB TXD B RXD B RTS B CTS B DTR B DSR B TXC B RXC B PWR ON SW3 1 8 ON SW2 1 8...

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

Reviews: