Summary of Contents for Allen-Bradley SLC 500 BASIC
Page 1
SLC 500™ BASIC and BASIC-T Modules (Catalog Numbers 1746-BAS and 1746-BAS-T) User Manual Spare Allen-Bradley Parts...
Page 2
Important User Because of the variety of uses for the products described in this publication, those responsible for the application and use of this control equipment must satisfy Information themselves that all necessary steps have been taken to assure that each application and use meets all performance and safety requirements, including any applicable laws, regulations, codes and standards.
Page 3
Specific information regarding 1746-BAS-T optional memory modules and module installation is shown in the table below. For this new information See page(s) 1746-BAS-T Overview Optional Memory Modules Jumper Settings for Optional Memory Modules 3-3 and 3-4 1746-BAS-T Module ID Code Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Page 4
Summary of Changes Publication 1746-UM004A-US-P...
• Rockwell Automation support Who Should Use This Use this manual if you are responsible for designing, installing, programming, or troubleshooting control systems that use Allen-Bradley small logic controllers. Manual You should have a basic understanding of SLC 500™ products. You should understand programmable controllers and be able to interpret the ladder logic instructions required to control your application.
Module User’s Manual bridge between DH485 networks and devices requiring DF1 protocol. In-depth information on Allen-Bradley 1770-4.1 grounding and wiring Programmable Controller Allen-Bradley programmable Grounding and Wiring controllers Guidelines A glossary of industrial Allen-Bradley Industrial AG-7.1 automation terms and Automation Glossary...
The following terms and abbreviations are specific to this product. For a complete listing of Allen-Bradley terminology, refer to the Allen-Bradley Industrial Automation Glossary, publication number ICCG-7.1. • Module SLC 500 BASIC and BASIC-T Modules (catalog numbers 1746-BAS and 1746-BAS-T) • BASIC development software BASIC Development Software (catalog number 1747-PBASE) •...
Rockwell Automation Rockwell Automation offers support services worldwide, with over 75 Sales/ Support Offices, 512 authorized Distributors and 260 authorized Systems Support Integrators located throughout the United States alone, plus Rockwell Automation representatives in every major country in the world. Local Product Support Contact your local Rockwell Automation representative for: •...
1746-BAS-T module. BASIC and BASIC-T The modules are single-slot modules that reside in a SLC 500 fixed or modular controller chassis. Use the module as Modules • a foreign device interface Spare Allen-Bradley Parts • an operator interface Publication 1746-UM004A-US-P...
Module and Development Software Overview Figure 1.1 Module with Door Open BASIC BASIC-T PR T1 PR T1 PR T2 PR T2 DH485 DH485 Hardware Features The module provides the following hardware features: • 24K bytes of battery backed RAM for storage of user programs and data •...
DH485 network. You must use a 1747-AIC link coupler to link port DH485 with the DH485 network. When DF1 protocol is selected on port PRT2, DH485 IMPORTANT communications are disabled. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Port PRT2 on the module is not transmitting or receiving signals. FAULT A system problem was detected during background diagnostics. Contact your local Allen-Bradley representative. No system problems are detected during background diagnostics. BA LOW The voltage of the battery that backs up RAM is low. A new battery is needed.
DH485 or PRT1 ports. The software allows direct access to the module through terminal emulation over an RS-232/423 or DH485 network. Refer to the BASIC Development Software Programming Manual (publication number 1746-PM001A-US-P) for additional information on the software. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Module and Development Software Overview Typical Configurations The typical configuration of the SLC system that incorporates your BASIC or BASIC-T module depends on whether the module is: • integrated with a SLC 500 fixed or modular controller • programmed directly with an ASCII terminal or programmed using a personal computer with the BASIC Development Software 1747-PBASE •...
In this configuration, the RS232 port on the back of your industrial terminal or personal computer is connected to port PRT1 on your module. Port PRT1 must be configured as the program port. See chapter 3 for additional information on port configuration. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Page 20
Module and Development Software Overview BASIC Development Software Interface (RS232) Use a personal computer with the BASIC Development Software (PBASE) to create a BASIC program that is then downloaded to your module. PBASE provides an efficient means to edit, compile (translate), upload, and download BASIC programs.
Do not place the module on an active DH485 network until the ATTENTION node address and baud rate of the module are configured. Refer to the BASIC Language Reference Manual (publication number 1746-RM001A-US-P) for additional information on setting the module node address and baud rate. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Page 22
1-10 Module and Development Software Overview Figure 1.7 shows the module interfaced with a DH485 network through a 1747-AIC Isolated Link Coupler. The link coupler also provides an interface to the DH485 network for a personal computer with the BASIC Development Software. Figure 1.7 DH485 Network Configuration SLC 500 Controller...
Page 23
Controller 1747-C11 Cable DH485 Communication Cable Link Coupler (Belden #9842) SLC 500 1747-AIC Controller with BASIC or BASIC-T 1784-KR DH485 Interface Card 1747-C11 Cable Link Coupler 1747-AIC Personal Computer with BASIC 1747-C10 Cable Development Software Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Page 24
1-12 Module and Development Software Overview Figure 1.9 DH485 Network Configuration Using a 1747-C13 Cable Link Coupler SLC 500 1747-AIC Controller 1747-C11 Cable DH485 Communication Cable Link Coupler 1747-AIC (Belden #9842) SLC 500 Controller with BASIC or BASIC-T 1784-KR DH485 Interface Card 1747-C11 Cable 1747-C13 Cable...
Page 25
The 1747-C10 or 1747-C11 Cable carries 24V dc power from the processor to the link coupler. (The 1747-C10 Cable and 1747-C11 Cable are interchangeable.) By configuring JW4 for DF1 communication on PRT2, DH485 IMPORTANT communications are disabled. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Page 26
1-14 Module and Development Software Overview Publication 1746-UM004A-US-P...
• an optional 8K or 32K byte memory module to store BASIC programs Maximum user program storage space is 56K byte. Battery IMPORTANT backed RAM provides 24K byte and the optional memory module provides up to 32K byte. Spare Allen-Bradley Parts Publication 1764-UM001A-US-P...
Component Selection Optional Memory The optional memory module provides non-volatile storage of user BASIC programs and port configuration. The socket that holds the optional memory Module module is located on the module’s mother board as shown in Figure 2.1. Figure 2.1 Optional Memory Module Socket Location Memory Module Socket Mother Board Daughter Board...
Communication Cable Link Coupler SLC 500 (Belden™ 9842) 1747-AIC Controller with BASIC or BASIC-T Module 1747-C11 Cable Link Coupler 1747-AIC Personal Computer with BASIC 1747-C10 Cable Development Software Interface/Converter (1747-PBASE) RS-232 to RS-485 Catalog Number 1747-PIC Spare Allen-Bradley Parts Publication 1764-UM001A-US-P...
1747-PIC, the BASIC development software must be configured for DH485 communication through the configuration and terminal selection menus. Refer to the BASIC Development Software Programming Manual (publication number 1746-PM001A-US-P) for additional information. Spare Allen-Bradley Parts Publication 1764-UM001A-US-P...
Component Selection 1784-KR DH485 Interface Card The 1784-KR DH485 Interface Card enables your personal computer to communicate across the DH485 network to the module without the interface/ converter. Figure 2.3 shows a DH485 network configuration with the 1784-KR DH485 Interface Card and its host computer linked with the module through a link coupler.
Page 33
A radio link provides a communications link between radio modems. Dial-Up Modem Dial-up or phone modems are modems capable of communicating across standard phone lines. One dial-up modem initiates the communication, while another Spare Allen-Bradley Parts modem receives the communication. Publication 1764-UM001A-US-P...
Jumper JW4 configures the program port. Figure 3.1 shows the location of these jumpers. Figure 3.1 Jumper Locations ATTENTION Do not expose the module to surfaces or other areas that may typically hold an electrostatic charge. Electrostatic charges can alter or destroy memory. Spare Allen-Bradley Parts Publication 1764-UM001A-US-P...
Installing and Wiring Your Module Setting Jumper JW1 Use jumper JW1 to select one of the following configurations for port PRT1: • RS-232/423 • RS-422 • RS-485 Figure 3.2 JW1 Pin Assignments and Settings Pin Assignments RS-422 2 4 6 8 10 1 3 5 7 9 Daughter Board Daughter Board...
Installing and Wiring Your Module Figure 3.4 JW3 Pin Assignments and Settings Pin Assignments 1 3 5 1747-M1 EEPROM (1746-BAS only) 1747-M2 EEPROM (1746-BAS only) 1747-M3 UVPROM (1746-BAS only) 1771-DBMEM1 EEPROM (1746-BAS-T only) 1771-DBMEM2 EEPROM (1746-BAS-T only) (shipped configuration) 1747-M4 UVPROM (1746-BAS only) ATTENTION All other jumper settings for JW3 are illegal and may cause damage to the module.
Page 39
Use the worksheet in appendix B to document the selected jumper setting of jumper JW4. Documenting your selection provides others with information necessary to integrate the module with their SLC 500 fixed or modular controllers. Spare Allen-Bradley Parts Publication 1764-UM001A-US-P...
Installing and Wiring Your Module Installing Your module Once you have unpacked and set the jumpers on your module, you are ready to install it in your: • SLC 500 fixed controller expansion chassis • SLC 500 modular controller 1746 I/O chassis Your module may be installed in any open slot of your SLC 500 I/O chassis except the first slot of the first chassis, which is reserved for the processor module.
Use these pin assignments to wire the mating connector of the cable used to interface a user device to port PRT1. The sockets of this connector must be wired to correspond to the selected communication mode. Spare Allen-Bradley Parts Publication 1764-UM001A-US-P...
Installing and Wiring Your Module Table 3.1 Ports PRT1 and PRT2 Pin Assignments RS-232/423 RS-422 RS-485 IBM AT Standard RS-232 Signals Note 1 422 TXD - TRXD - DCD or CD 422 RXD - COMMON COMMON COMMON COMMON 422 RXD + 422 TXD + TRXD + (1) In RS-423 mode, these pins are still connected to their RS-422 loads.
3-10 Installing and Wiring Your Module DCE - Data Communication Equipment Devices such as modems are Data Communication Equipment (DCE). The pinouts on these terminals are defined for ease of interfacing with DTE equipment. Table 3.3 DCE Configurations DCE 9 pinout Signal from DCE DCE 25 Perspective...
Page 45
Enabled, Standard Printer Adapter Cable) Basic DTE 9-pin 25-pin N.C. N.C. (1) The 1747-CP3 Cable works in this application. (2) Connect to the shield of the cable. Figure 3.11 RS-422 Wiring Diagram Basic RXD+ TXD+ TXD+ RXD+ Spare Allen-Bradley Parts Publication 1764-UM001A-US-P...
3-12 Installing and Wiring Your Module Figure 3.12 RS-485 Wiring Diagram Basic TRXD- TRXD- TRXD+ TRXD+ Wiring to Port DH485 Port DH485 can communicate to user devices through the DH485 communication mode. Use a 1747-C10 Cable or 1747-C13 Cable to connect the module to a link coupler interfaced with the DH485 network.
Data transferred to the DH485 common interface file. 40 through 99 Reserved 100 through 163 Data transferred to the CPU M1 file. 164 through 199 Reserved 200 through 207 Data transferred to the CPU input image table. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Programming Overview Allocating SLC memory Your SLC 500 fixed or modular controller communicates to the module through the SLC backplane interface. The backplane interface transfers data from the CPU for the Module input and output image tables to the module input and output buffers as shown in Figure 4.1.
(CALLs). The module operates in two modes: the Command mode (Direct IMPORTANT mode) and the Run mode (Interpreter mode). You can only enter commands when the processor is in the Command mode. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Programming Overview BASIC Commands BASIC commands are programming instructions that are executed during the Command mode except for CONTROL-C. CONTROL-C takes you from Run mode to Command mode. Typically these commands are used to perform some type of program maintenance. Table 4.4 lists the BASIC programming commands. Table 4.4 BASIC Commands Command Function...
Store top of stack at user specified location. ST@ 1000H, ST@ A STOP Break program execution. STOP STRING Allocate memory for STRINGs. STRING 50, 10 Refer to the BASIC Language Reference Manual (publication number1747-RM001A-US-P) for additional information on these statements. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Programming Overview BASIC Operators BASIC operators are programming instructions that are executed during Run mode. Typically these operators perform a predefined operation on either variables or constants. Operators require either one or two operands. Table 4.6 lists the BASIC programming operators. Table 4.6 BASIC Operators Operator Function...
Reuse of an existing line number causes all of the information IMPORTANT referenced by the original line number to be lost. Be careful when entering numbers in the Command mode; you may accidentally Spare Allen-Bradley Parts erase some program lines. Publication 1746-UM004A-US-P...
Page 54
Programming Overview After the line number, there may be a combination of BASIC commands, statements, operators, or CALLs. See Table 4.4, Table 4.5, and Table 4.6 for a list of BASIC commands, statements, and operators. Depending on the logic of your program, there may be more than one statement on a line.
To stop a program that is running, press is disabled, you cannot stop program execution IMPORTANT through a BASIC command. You must have jumper JW4 set in the default position and cycle power to stop program execution. (See page 3-4.) Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
4-10 Programming Overview Editing a BASIC Program Line Through an ASCII Terminal When the module is in Command mode, you can edit the BASIC program that resides in RAM. Editing a BASIC program is done on a line-by-line basis. To edit an existing line in the BASIC program, type and the line number of the line to...
When the module is in Command mode, you can delete an existing line of the BASIC program. To delete an existing line of the BASIC program, type the line
number of the line to delete; then press as shown on the following screen: /-01 Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
4-12 Programming Overview Renumbering a BASIC Program When the module is in Command mode, you can renumber the BASIC program that resides in RAM. To renumber a BASIC program, you must enter a REN command at the system prompt [ ].
Figure 4.3 Data Flow Between the SLC Processor and Port PRT2 of the Module PRINT# CALL 123 PRT2 OUTPUT QUEUE 256 bytes CALL 23 Port PRT2 CALL 22 256 bytes CALL 122 CALL 118 PRT2 INPUT QUEUE INPUT# SLC Processor INPL# INPS# GET# 1746-BAS or 1746-BAS-T Module Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Page 60
4-14 Programming Overview In addition, the commands in the following table provide status of and control over the data transfer between the SLC processor and port PRT2 of the module. Table 4.9 Status and Control Commands Command Purpose MODE Sets the port parameters of PRT1, PRT2, and DH485. CALL 16 Enables interrupt capability when a DF1 packet is received.
CALL 105 Resets the port parameters of port PRT1 to their default setting. For more information regarding the use of these commands, refer to the BASIC Language Reference Manual (publication number 1747-RM001A-US-P). Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
4-16 Programming Overview Transferring Data Between the SLC Processor and Port DH485 Use port DH485 to interface the module with the DH485 network (other SLC processors). The commands in the following table are used to transfer data either to or from port DH485. Table 4.12 Data Transfer Commands Command Purpose...
SLC processor of the battery status. These status bits are as follows: • I:e. 0/13 = 0battery OK = 1 battery low • I:e. 0/15 = 0module in Run mode = 1 module in Command mode Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Cycle power to the a command within the module to re-initialize Module internal stacks, required time limit. parameters and re-run pointers, etc. (if XBY the program. instructions are used) are corrupted by the user program. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Page 66
4-20 Programming Overview Table 4.18 SLC Fault Codes Description Possible Cause Recommended Action Fault Code Hardware interrupt Module hardware problem. Verify that the module problem. slot is enabled. Cycle Module internal stacks, power to the module to pointers, etc. (if XBY re-initialize parameters instructions are used) are and re-run the program.
Table A.3 Environmental Conditions Condition Range Operating temperature 0° C to 60° C (32° F to 140° F) Storage temperature -40° C to 85° C (-40° F to 185° F) Relative humidity 5% to 95% (non-condensing) Spare Allen-Bradley Parts Publication 176-UM04A-US-P...
Specifications Table A.4 Port Isolation Port Isolation Isolation Voltage PRT1 Backplane to Port 710V dc for 1 minute PRT2 Backplane to Port 710V dc for 1 minute PRT1 and PRT2 PRT1 to PRT2 710V dc for 1 minute Port DH485 is not isolated. IMPORTANT Table A.5 Clock/Calendar Accuracy Specification...
See Figure 3.1 on page 3-1 for the locations of the four jumpers. (Jumper JW1) See Figure 3.2 on page 3-2 for jumper JW1 pin assignments and settings. Specify the configuration of port PRT1 on your module by filling in the table below. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Table B.1 Port PRT1 Configuration Port Configuration Selection Corresponding Jumper Position on JW1 PRT1 RS-232/423 Across pins 1 and 2, 3 and 4 RS-422 Across pins 5 and 6, 7 and 8 RS-485 Across pins 7 and 8, 9 and 10 What to Do Next: Give a copy of this worksheet to the hardware installer.
1771-DBMEM 32K byte EEPROM Across pins 1 and 3, 2 and 4 (1746-BAS-T only) What to Do Next: Give a copy of this worksheet to the hardware installer. Store this worksheet with your application program for future reference. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Program Port and See Figure 3.1 on page 3-1 for the locations of the four jumpers. Protocol Selection See Figure 3.5 on page 3-5 for jumper JW4 pin assignments and settings. (Jumper JW4) Specify the Program Port and its protocol by filling in the table below. Table B.4 Program Port and Protocol Selection Selection Port Program...
Snap in the replacement clip. Order Catalog Number 1746-R15 (2 per package). ATTENTION Do not expose the module to surfaces or other areas that may typically hold an electrostatic charge. Electrostatic charges can alter or destroy memory. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Page 76
Lithium Battery Replacement, Handling, and Disposal 3. Unplug the battery connector. See Figure 3.1 on page C-2 for battery connector location. The module has a capacitor that provides 30 minutes of battery IMPORTANT back-up while the battery is disconnected. Data in RAM is not lost if the battery is replaced within 30 minutes.
This exemption authorizes transport of lithium batteries by motor vehicle, rail freight, cargo vessel, and cargo-only aircraft, providing certain conditions are met. Transport by passenger aircraft is not permitted. Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Lithium Battery Replacement, Handling, and Disposal A special provision of the DOT – E7052 (11th Rev., October 21, 1982, par. 8-a) provides that: Persons that receive cell and batteries covered by this exemption may reship them pursuant to the provisions of 49 CFR 173.22a in any of these packages authorized in this exemption including those in which they were received.
Page 79
1784-KR DH485 Interface Card overview configurations RS-232 interface typical RS-485 interface worksheets specifications contacting Allen-Bradley for assistance BASIC or BASIC-T module contents of manual ASCII terminal interface creating and editing a BASIC program BASIC development software interface communication ports data transfer with SLC...
Page 80
Index DH485 communication cable DH485 communication port 3-12 4-16 jumper JW1 DH485 network jumper JW2 cable requirements jumper JW2 worksheet interface card 1784-KR 1-12 jumper JW3 interfacing with the module and development software jumper JW3 worksheet jumper JW4 dial-up modem for DF1 communication leased phone lines for DF1 communication LEDs editing a program line...
Page 81
PRT2 4-13 statements SLC processor 4-17 stopping a program transferring data overview 4-13 programming instructions troubleshooting programming operators contacting Allen-Bradley programming statements typical configurations PRT1 communication port 4-15 PRT2 communication port 4-13 publications related UVPROM Spare Allen-Bradley Parts Publication 1746-UM004A-US-P...
Page 82
Index wiring to DH485 communication port 3-12 wiring to PRT1 communication port wiring to PRT2 communication port worksheets BASIC module configuration optional memory module selection port PRT2 configuration Publication 1746-UM004A-US-P...
Need help?
Do you have a question about the SLC 500 BASIC and is the answer not in the manual?
Questions and answers