The text of a manual · part 2 of 17
1771-DB Basic Module User Manual, pages 11 to 20
Pages 11 to 20 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 11
Chapter 2
Introducing the BASIC Module
2.1 Chapter Objectives
This chapter discusses the functions and features of the BASIC Module. When you finish reading this chapter, you should: understand and be able to identify the hardware components of the BASIC Module. understand the basic features and functions of the BASIC Module.
2.2 General Features
The BASIC Module (figure 2.1) provides math functions, report generation and BASIC language capabilities for any Allen-Bradley processor that communicates with the 1771 I/O system using block-transfer. It provides: basic programming using the Intel BASIC-52 language. math functions consistent with the BASIC-52 definition. two independently configurable serial ports capable of connecting to various user devices. user accessible real-time clock with 5 ms resolution. user accessible “wall” clock/calendar with 1 second resolution. program generation and editing using a dumb ASCII terminal or a T3/T4 Industrial Terminal in alphanumeric mode. program storage and retrieval using the 1770-SA/SB Recorder. block-transfer communication capability from a PLC-2, PLC-3 or PLC-5 family processor. on board program PROM burning.
Page 12
Chapter 2 Introducing the BASIC Module
2.2 General Features (continued)
Figure 2.1 BASIC Module Front Edge
2.3 Hardware Features
Your module is a one-slot module with the following functions and features: 13 K bytes of battery backed RAM for user programs. 32 K bytes of EPROM storage for user software routines. One RS-423A/232C compatible serial communications port(PROGRAM port) which works with ASCII terminals providing operator program interaction, command level input printer output, etc. The program port baud rate defaults to 1200 baud. Initially you must set your terminal for 1200 baud. Use CALL 78 to change the program port baud rate. The program port is fixed at no parity, 1 start bit, 1 stop bit and 8 data bits. It also supports XON/XOFF for interruption of LISTing or to suspend data output from the program port.
2–2
Page 13
Chapter 2 Introducing the BASIC Module
2.3 Hardware Features (continued)
One RS-423A/232C/RS-422 compatible serial communications port (PERIPHERAL port), supporting bi-directional XON/XOFF software handshaking and RTS/CTS, DTR, DSR, DCD hardware handshaking for interfacing to printers and commercial asynchronous modems. You can change the peripheral port configuration using a CALL 30. (Refer to Section 5.8.1). Default values are: 1 start bit, 1 stop bit, 8 bits/character, no parity, handshaking off and 1200 baud. The baud rate is jumper selectable (300 to 19.2 K bps). (Refer to Section 3.2.4 titled, “Configuration Plugs”). Interface to the 1771 I/O rack backplane to support block-transfer. Wall clock/calendar with battery back-up available for program access. Battery replacement without removing the module from the I/O rack. All power derived from the backplane (1.5 A). Multiple BASIC modules can reside in the same I/O rack and function independently of each other.
2.4 Software Features
Your module runs BASIC language programs in an interactive mode through the dumb terminal/programming port interface, or on power-up. The execution of these programs allows a direct interface with programmable controller ladder programs. Your module uses the following devices and features: terminal for programming, editing, system commands, displaying data and interactive program dialog serial port for report generation output, upload/download to 1770-SA/SB Recorder PLC-2, PLC-3 and PLC-5 data table reads and writes using block-transfer We provide routines to use both the real-time clock and the wall-clock/calendar. The wall-clock time base is seconds.
2–3
Page 14
Chapter 2 Introducing the BASIC Module
2.4 Software Features (continued)
You can start program execution: by entering commands at the interactive terminal. at power-up initialization. You can store and execute programs in RAM or EPROM. You can store one user-program in RAM and up to 255 (depending on program size) independent user-programs simultaneously in EPROM memory. The programs run single-task mode only. You can generate the following data types with the BASIC Module: 16-bit binary (4 hex digits) 3-digit, signed, fixed decimal BCD 4-digit, unsigned, fixed decimal BCD 4-digit, signed, octal 6-digit, signed, fixed decimal BCD 3.3 digit, signed, fixed decimal BCD Refer to Chapter 7, “Data Types” for more information.
2.5 Specifications Isolation G Formats: integer, decimal, hexadecimal and exponential G The Programming Port is isolated from the 1771 I/O backplane. (+500 V) G The Peripheral Port is isolated from the 1771 I/O backplane. (+500 V) G The Programming Port is isolated from the Peripheral Port. (+500 V) Communication Rates G 300, 600, 1200, 2400, 4800, 9600, 19.2 K bits G Communication rates/distances Communication Rate (bps) 300
2–4
Wall-clock G Formats: accuracy integer, decimal, G Formats: integer, decimal, hexadecimal hexadecimal and exponential G Absolute: v and " 5exponential min/month @ 25° C Module location @@@@ Drive output +3.6 V minimum G Drift v " 50 ppm/°C G One 1771 I/O chassis module slot G Drift v " 50 ppm/year @ 25°C @@@@ Backplane power supply load Port driver and receiver G 1.5 A G Drive output +3.6 V minimum @@@@ Environmental Conditions G Receiver sensitivity 200 mV minimum G Operational temperature: 0°C to 60°C @@@@ Math (32°F to 140°F) G Precision: 8 significant digits G Storage temperature: -40°C to 85°C G Range: "1E-127 to (-40°F to 185°F) "99999999E+127 G Relative humidity: 5% to 95% (non-condensing) Maximum Distance Allowed Keying (top backplane connector) RS-232-C RS-423 RS-422 G Between 8 and 10 G Between 32 and 34 50 4000 4000
600
50
3000
4000
1200
50
2500
4000
4800
50
800
4000
9600
50
400
4000
19,200
50
200
4000
Page 15
Chapter 3
Installing the BASIC Module
3.1 Chapter Objectives
This chapter describes how to install your BASIC module in a 1771 I/O rack. After reading this chapter you should be able to: configure the module using the configuration plugs. insert the module into a 1771 I/O backplane. understand module status indicators. install additional EPROM’s.
3.2 Installing the BASIC module WARNING: Disconnect and lockout all AC power from the programmable controller and system power supplies before installing modules to avoid injury to personnel and damage to equipment.
Read this installation section completely before beginning. Re-check all option selections and connections before you begin programming. Before installing your module in the I/O chassis you must: 1.
calculate the power requirements of all the modules in each chassis. (Refer to Section 3.2.1 below).
2.
determine the location of the module in the I/O chassis. (Refer to Section 3.2.2 below).
3.
key the backplane connectors in the I/O chassis. (Refer to Section 3.2.3 below).
4.
set the module configuration plugs. (Refer to Section 3.2.4 below).
Page 16
Chapter 3 Installing the BASIC Module
3.2.1 Power Requirements
Your module receives its power through the 1771 I/O chassis backplane from the chassis power supply. It does not require any other external power supply to function. When planning your system you must consider the power usage of all modules in the I/O chassis to prevent overloading the chassis backplane and/or power supply. Each BASIC module requires 1.5 A at +5V DC. Add this to the requirements of all other modules in the I/O chassis. CAUTION: Do not insert or remove modules from the I/O chassis while system power is on. Failure to observe this rule may result in damage to module circuitry.
3.2.2 Module Location in the I/O Chassis
You can place your module in any I/O slot of the I/O chassis except for the extreme left slot. This slot is reserved for processors or adapter modules. You can place your module in the same module group as a discrete high density module if you are using processors or adapters with single-slot addressing capabilities. Important: Certain processors restrict the placement of block-transfer output modules. Refer to the user manual for your particular processor for more information.
3.2.3 Module Keying
Initially you can insert your module into any I/O module slot in the I/O chassis. However, once you designate a slot for a module you must not insert other modules into these slots. We strongly recommend that you use the plastic keying bands shipped with each I/O chassis, to key I/O slots to accept only one type of module. Your module is slotted in two places on the rear edge of the board. The position of the keying bands on the backplane connector must correspond to these slots to allow insertion of the module. You may key any I/O rack connector to receive the module assembly. Snap the keying bands onto the upper backplane connectors between the numbers printed on the backplane (figure 3.1). Between 8 and 10 Between 32 and 34
3–2
Page 17
Chapter 3 Installing the BASIC Module
3.2.3 Module Keying (continued)
Figure 3.1 Keying Diagram for Placement of Module Keying Bands
You may change the position of these bands if subsequent system design and rewiring makes insertion of a different type of module necessary. Use needle-nose pliers to insert or remove keying bands.
3.2.4 Configuration Plugs
There are three sets of user selectable configuration plugs on the BASIC Module (figure 3.2). You can use these configuration plugs to select: PROM size. peripheral port baud rate (bps). 422 receiver termination.
3–3
Page 18
Chapter 3 Installing the BASIC Module
3.2.4 Configuration Plugs (continued)
Figure 3.2 The Configuration Plugs
All other configuration plugs are factory set. Do not reset these factory set configuration plugs.
3–4
Page 19
Chapter 3 Installing the BASIC Module
3.2.5 Module Installation
3.2.6 Initial Start-up Procedure
Now that you have determined the configuration, power requirements, location, keying and wiring for your module, you are ready to install it in the I/O chassis. 1.
Turn off power to the I/O chassis.
2.
Insert your module in the I/O rack. Plastic tracks on the top and bottom of the slots guide the module into position. Do not force the module into its backplane connector. Apply firm, even pressure on the module to seat it properly. Note the rack, module group and slot numbers and enter them in the module address section of the block-transfer instructions.
3.
Snap the I/O chassis latch over the module. This secures the module in place.
You must use the following procedure when powering up the module for the first time. This procedure is a continuation of the installation procedure presented above. 4.
Connect the cable from your program terminal to the BASIC Module program port. CAUTION: Be sure you properly ground the system be fore 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.
5.
Turn on your program terminal. Select 1200 baud. If you are using an industrial terminal, select the Alpha Numeric mode, baud rate and press [RETURN].
6.
Turn on power to the rack. The following sequence takes place: Fault (FLT) and ACTIVE LED’s go on. FLT and ACTIVE LED’s go out until power-up diagnostics is complete. Ignore any other LED activity during power-up. ACTIVE LED goes on.
3–5
Page 20
Chapter 3 Installing the BASIC Module
3.2.6 Initial Start-up Procedure (continued)
When the ACTIVE LED comes on observe the sign-on message displayed on the terminal followed by tREADY. You are now ready to begin BASIC programming. Refer to Chapter 6 for an example program to help you get your processor and BASIC Module communicating properly. Important: If you break communications with the module check that the terminal is set at the proper baud rate.
3.3 Module Status LED’s
There are five LED’s (figure 3.3) on the front panel of the module which indicate the status of the module. Figure 3.3 Module Status Indicators
LED ACTIVE (green)
Description Indicates the module has passed power-up diagnostics. You can program using CALL 79 to:
G remain on (default). G remain on in RUN mode and blink every second when in COMMAND mode. Refer to Chapter 5 for an explanation of CALL 79.
3–6
XMTG (green)
ON when data is transmitting on the peripheral port. Lights for either RS-422 or RS-423/RS-232C output.
RCVG (green)
ON when data is transmitting on the peripheral port. Lights for either RS-422 or RS-423/RS-232C input. This LED does not indicate whether or not valid data was received.
FAULT (red)
When LED is on, indicates either a hardware problem or block-transfer problem. See below.
BAT LOW (red)
Lights when the battery voltage drops below about 3.0V DC.