The text of a manual · part 3 of 17
1771-DB Basic Module User Manual, pages 21 to 30
Pages 21 to 30 of 167
The original document is the PDF (943 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1771-DB
Page 21
Chapter 3 Installing the BASIC Module
3.3 Module Status LED’s (continued)
If the FLT LED lights after the module has been operating properly check the following troubleshooting chart. Problem
Probable Cause
Recommended Action
Module’s programming port does not respond
Hardware failure
Send module for repair
Module’s programming port continues to function but FLT LED goes on and off
Problem with block-transfers between processor and BASIC module
Verify ladder logic
Problem with block-transfer circuitry on the BASIC Module
Send module for repair
Module’s programming port continues to function and FLT LED goes out when processor is switched to program mode Module’s programming port continues to function and FLT LED remains on
3.4 Installing the User Prom
The BASIC Module has a 32 K byte EPROM installed (figure 3.4). We recommend that you keep JEDEC standard 8 K, 16 K or 32 K byte EPROMs which use 12.5V DC programming voltage as spares. You can buy 32 K byte EPROMs from Allen-Bradley (part numbers 940654-02 or 9406454-03).
3–7
Page 22
Chapter 3 Installing the BASIC Module
Installing the User Prom (continued)
Figure 3.4 User PROM and Battery Holder
To replace the EPROM:
3–8
1.
Turn the small screw in the socket just above the chip (figure 3.4) 1/4 turn counterclockwise.
2.
Remove the old chip.
3.
Insert the new chip with pin one down and the center notch down as shown in the socket diagram.
4.
Turn the small screw in the socket above the chip 1/4 turn clockwise.
5.
Refer to the above section titled, “Configuration Plugs” for the proper setting of the corresponding configuration plug.
Page 23
Chapter 3 Installing the BASIC Module
3.4.1 Electrostatic Discharge
Electrostatic discharge can damage integrated circuits or semiconductors in this module if you touch backplane connector pins. It can also damage the module when you set configuration plugs and/or switches inside the module. Avoid electrostatic damage by observing the following precautions: Touch a grounded object to rid yourself of charge before handling the module. Do not touch the backplane connector or connector pins. If you configure or replace internal components, do not touch other circuit components inside the module. If available, use a static-safe work station. When not in use, keep the module in its static-shield bag. CAUTION: Electrostatic discharge can degrade performance or damage the module. Handle as stated above.
3.5 Battery
The 13 K bytes of user RAM and the clock/calendar are battery backed. Drain on the battery should be less than 0.5 mA DC during battery back-up (no power) and less than 50 uA while the module is powered. Battery life during no-power conditions is about 2000 hours. Battery shelf life is about 20,000 hours. When the BAT LOW indicator comes on the battery should maintain the clock and program data for about three days. We recommend immediate replacement. To replace the battery (figure 3.4): 1.
Place a screwdriver in the battery cover slot.
2.
Press inwards slightly.
3.
Rotate the screwdriver and battery cover counterclockwise 1/4 turn.
4.
Release the pressure and remove the battery cover.
5.
Replace the battery with the positive (+) terminal out.
6.
Replace the battery cover.
3–9
Page 24
Chapter 3 Installing the BASIC Module
3.5 Battery (continued)
The BAT LOW indicator should go out. You can monitor the battery low condition in revision A and revision B modules using a XBY(77B4H) statement. Bit 2 high indicates the battery low condition. With revision C modules use CALL 80 to monitor battery status.
3–10
Page 25
Chapter 4
Using the Serial Ports
4.1 Chapter Objectives
This chapter describes how to use the program serial port and the peripheral serial port to connect terminals, Data Cartridge Recorders, Digital Cassette Recorders, printers and other compatible devices.
4.2 Using the BASIC Module Program and Peripheral Communication Ports
The BASIC Module has a program serial port and a peripheral serial port capable of connecting to various user devices (figure 4.1). You can configure each port independently. Both ports are electrically isolated from each other and from the backplane up to 500 V with no external power needed. Both ports operate from 300 baud to 19.2K baud and default to 1200 baud. Figure 4.1 Program/Peripheral Port Locations
If you use an RS-423/RS-232 device or an Allen-Bradley Industrial Terminal you can use up to a 50 foot maximum cable length for connections from either the program or peripheral ports. Refer to the specifications section in Chapter 2 for cable length recommendations.
Page 26
Chapter 4 Using the Serial Ports
4.2 Using the BASIC Module Program and Peripheral Communication Ports (continued)
4.2.1 Pin Descriptions
CAUTION: Be sure you properly ground the system before turning on power. A difference in ground potential between the BASIC Module serial connectors and your program terminal or other serial device can cause damage to the equipment or loss of module programs.
Use the following pins for connections made to the program or peripheral ports. Refer to figure 4.2 for pin descriptions. Not all signals are available on both ports. Signal states are: mark = logical 1 = – voltage space = logical 0 = + voltage
Pin
Name
Description
11
Chassis/ Shield
Connect this pin to chassis ground for shielding purposes.
21
TXD
TXD is an RS-423A compatible serial output port.
31
RXD
RXD is an RS-423A compatible serial input data port.
4
RTS
RTS is an RS-423 compatible hardware handshaking output line. This line changes to a mark (1) state when the BASIC Module has data in the output queue and is requesting permission to transmit to the data communications equipment.
5
CTS
CTS is an RS-423A compatible hardware handshaking input line. This line must be in a mark (1) state for the BASIC Module to transmit on the peripheral port. If no corresponding signal exists on the data communications equipment, connect CTS to RTS.
6
DSR
DSR is a general purpose RS-423A compatible input line. The BASIC Module transmits or receives in the mark (1) or space (0) state. Use this line for data recorder interface.
71,9,10
Signal Common
Use the signal common pins to reference all RS-423A/RS-422 compatible signals.
8
DCD
If DCD is enabled using CALL 30, the BASIC Module does not transmit or receive characters until the DCD line is in the mark (1) state. When disabled, the module ignores the state of this line.
11,12,13,15 17,19,21,22
NC
No connection
14,25
422 TXD
RS-422A compatible equivalent of the RS-423A TXD line. Differential serial output lines.
16, 18
422 RXD
Differential RS-422A compatible serial input lines.
20
DTR
DTR is an RS-423A compatible hardware handshaking output line. This line changes to a space (0) state when the BASIC Module input queue has accumulated more than 223 characters. The DTR line changes to a mark (1) state when the input queue contains less than 127 characters.
23,24
1program port pins
4–2
Page 27
Chapter 4 Using the Serial Ports
4.3 Program Port
The program port is an RS-423A/232C compatible serial port that provides minimum signal line connection to terminals, printers and other serial devices for operator-program interaction, command level input, printer output etc. Figure 4.2 shows the signals available on both the program port and the peripheral port described later. Figure 4.2 Program Port and Peripheral Port Wiring Connections Program Port
Peripheral Port
11
11
Description Chassis/Shield
21
21
TXD-Output
31
31
RXD-lnput
4
41
RTS-Output
5 6
51 61
CTS-lnput DSR-lnput
71
71
Signal Common
8
81
DCD-lnput
9
91
Signal Common
10
101
Signal Common
11
11
NC
12
12
NC
13
13
NC
14
141
RS-422 TXD
15
15
NC
16
161
RS-422 RXD
17
17
NC
18
181
RS-422 RXD’
19
19
NC
20
20
DTR-Output
21
21
NC
22
22
NC
23
23
NC
24
24
NC
25
251
RS-422 TXD’
1Signal is provided on this pin
The baud rate is initially set at 1200 baud. You can use CALL 78 to change the baud rate from 300 to 19.2K bps. The program port has the following fixed format: parity: none start bits: 1 stop bits: 1 data bits: 8 receiver threshold: 200 mV driver output (loaded): +3.6V
4–3
Page 28
Chapter 4 Using the Serial Ports
4.3 Program Port (continued)
Important: The program port always resets the most significant bit of all its data inputs. The range of each byte of data is 0 to 127 (7FH). On output, the module transmits all bits as specified when using the PRINT CHR() command except for the XOFF (13H) character. The range of each byte of data is 0 to 255 (OFFH). Important: The program port automatically inserts a CR, LF sequence after the 79th character column. Use CALL 99 to reset the column counter to zero to allow PRINT page width’s in excess of 79 characters. You enter BASIC programs through a dumb ASCII terminal, such as an industrial terminal in alphanumeric mode. Refer to section 4.3.2, “Connecting a T3/T4 Industrial Terminal to the Program Port”.
4.3.1 Using the XOFF/XON Commands for the Program Port
Use the XOFF/XON commands to disable outputs from the program port in the following way. 1.
Use XOFF only on PRINT statements.
2.
When XOFF is received during a PRINT, data output and program execution are suspended immediately.
3.
When XOFF is received at any other time, program execution continues until a PRINT is encountered. When a PRINT is encountered program execution is suspended.
4.
Use XON to resume program execution. The program port accepts uppercase or lowercase input, however, the input receiver changes all commands, keywords or variables to upper case before storing in memory, thus: u10 print “hello”(CR) appears as 10 PRINT “hello” when listed.
4–4
Page 29
Chapter 4 Using the Serial Ports
4.3.2 Connecting a T3/T4 Industrial Terminal to the Program Port
You can use an Industrial Terminal System as the programming system for the BASIC Module. Connect the module to CHANNEL C only. You can construct cable for distances up to 50 feet. Figure 4.3 shows cable connections to a T3/T4 Industrial Terminal from the program port. Important: You may continue to use CHANNEL B in existing installations. Figure 4.3 Cable Connection to T3/T4 Terminal from the Program Port
You can use a T3 or T4 Industrial Terminal with the following keyboard revisions: T3 Series A, Revision H or later T3 Series B, Revision H or later T3 Series C, Revision A or later T4 Series A, Revision F or later Refer to the Industrial Terminal Systems User’s Manual (Cat. No. 1770-T1, T2, T3), publication number 1770-6.5.3, and PLC-3 Industrial Terminal User’s Manual (Cat. No. 1770-T4), publication number 1770-6.5.15 for additional information.
4–5
Page 30
Chapter 4 Using the Serial Ports
4.3.3 Connecting a T30 Industrial Terminal (Cat. No. 1784-T30) to the Program Port
You can connect a T30 Industrial Terminal to the BASIC Module program port to act as a dumb terminal. Refer to the following figure 4.4 for BASIC Module/T30 connections. Figure 4.4 Connecting a T30 Industrial Terminal to a BASIC Module
Important: Jumper T30 Industrial Terminal pin 4,5 and 6; and BASIC Module pins 4 and 5 if you do not use them.
4.3.4 Connecting a T50 Industrial Terminal (Cat. No. 1784-T50) to the Program Port
You can use your T50 Industrial Terminal as a BASIC Module programming device. You must use a terminal driver package to configure the industrial terminal serial port and communications protocol to match the BASIC Module. These packages include the ability to upload to and download from the hard or floppy disk drives in the industrial terminal. To upload and download you must:
4–6
1.
configure the software.
2.
construct a cable with the pin connections shown in figure 4.5 under, “Wiring”.
3.
use the upload and download commands of the driver package.