Allen-Bradley 1746-BAS User Manual Download Page 1

SLC 500™ BASIC and 
BASIC-T Modules

(Catalog Numbers 1746-BAS and 
1746-BAS-T)

User Manual

Spare Allen-Bradley Parts

Summary of Contents for 1746-BAS

Page 1: ...SLC500 BASICand BASIC T Modules Catalog Numbers 1746 BAS and 1746 BAS T User Manual Spare Allen Bradley Parts...

Page 2: ...ntenance of Solid State Control available from your local Rockwell Automation office describes some important differences between solid state equipment and electromechanical devices that should be tak...

Page 3: ...rs as shown to the right of this paragraph New Information References to the 1746 BAS T module were added throughout the manual Specific information regarding 1746 BAS T optional memory modules and mo...

Page 4: ...Publication 1746 UM004A US P Summary of Changes ii...

Page 5: ...Software 1747 PBASE 1 5 Typical Configurations 1 6 Module Integration 1 6 Module Programming Interface 1 7 Module Network Configurations 1 9 Chapter 2 Component Selection Memory Requirements for BASI...

Page 6: ...ng a BASIC Program Line Through an ASCII Terminal 4 10 Deleting a BASIC Program Line 4 11 Renumbering a BASIC Program 4 12 Transferring Data 4 13 Transferring Data Between the SLC Processor and Port P...

Page 7: ...UM004A US P Table of Contents iii Appendix C Lithium Battery Replacement Handling and Disposal Battery Replacement C 1 Battery Handling C 3 Storage C 3 Transportation C 3 Battery Disposal C 4 Spare Al...

Page 8: ...Publication 1746 UM004A US P Table of Contents iv...

Page 9: ...product Purpose of this Manual This manual is a reference guide for the design and installation of the SLC 500 BASIC and BASIC T modules It describes the procedures for installing and using the module...

Page 10: ...ming Manual 1746 PM001A US P An overview of the SLC 500 family of products SLC 500 System Overview 1747 SO001A US P A description of how to install and use a Modular SLC 500 Processor Modular Hardware...

Page 11: ...ly Memory MTOP system control value that holds the last valid memory address RS 232 423 serial communication interface RS 422 differential communication interface RS 485 network communication interfac...

Page 12: ...order support product technical training warranty support support service agreements Technical Product Assistance If you need to contact Rockwell Automation for technical assistance please review the...

Page 13: ...xible program and data storage options high level math clock calendar high level programming environment extensive online help system easy access to editor functions through user interface advanced te...

Page 14: ...r DBMEM2 memory module 1746 BAS T for non volatile storage of user programs battery backed 24 hour clock calendar free running clock with 5 ms resolution two isolated 9 pin D shell serial ports PRT1 a...

Page 15: ...f the module door They are PRT1 Used to interface the module with user devices This port is a serial port that accommodates RS 232 423 RS 422 and RS 485 communication modes Port PRT1 is capable of ope...

Page 16: ...transmitting or receiving signals OFF Port PRT1 on the module is not transmitting or receiving signals PRT2 Green Blinking Port PRT2 on the module is transmitting or receiving signals OFF Port PRT2 on...

Page 17: ...up table line draw editor to create operator interface images without having to enter ASCII characters keystroke macros undo and redo functions extensive help messages for each menu menu option and f...

Page 18: ...ource through a modem using DF1 protocol Module Integration The module is a single slot module that is inserted into a slot in the expansion chassis of your SLC 500 fixed controller or an open slot in...

Page 19: ...Terminal Interface Use an ASCII terminal to enter a BASIC program one line at a time to your module through port PRT1 The ASCII terminal connected to the module must be an industrial terminal workstat...

Page 20: ...configuration the serial port on the personal computer is connected to port PRT1 on the module The personal computer communicates with the module through terminal emulation over an RS 232 interface Po...

Page 21: ...Typical communication configurations are shown in the following figures DH485 network configurations Figure 1 7 Figure 1 8 and Figure 1 10 DF1 protocol configuration Figure 1 10 IMPORTANT When using t...

Page 22: ...program port in order to communicate with PBASE software via the DH485 network See chapter 3 for additional information on port configuration Personal Computer with BASIC Development Software Interfac...

Page 23: ...personal computer Figure 1 8 DH485 Network Configuration Using a 1747 C10 Cable IMPORTANT Type PBASE KR to select the driver software This allows you to interface directly to the DH485 network when us...

Page 24: ...the DH485 network The DH485 data link connector on the 1784 KR card and port DH485 on your module are interfaced with the DH485 network through a 1747 AIC link coupler Port DH485 must be configured a...

Page 25: ...onal information on port configuration The 1747 C13 Cable acts only as a communication link and does not carry 24V dc power The 1747 C10 or 1747 C11 Cable carries 24V dc power from the processor to th...

Page 26: ...Publication 1746 UM004A US P 1 14 Module and Development Software Overview...

Page 27: ...connecting a modem to the module and be able to select the necessary components for your application Memory Requirements for BASIC Programming The module uses the following types of memory modules du...

Page 28: ...1747 M1 1747 M2 1771 DBMEM1 and DBMEM2 EEPROM optional memory modules The 1747 M3 and 1747 M4 UVPROM optional memory modules must be programmed by an external PROM programmer Jumper JW3 is used to red...

Page 29: ...fers Components Required for DH485 Communication Your module and the BASIC development software can interface with a DH485 network using a combination of the following 1747 AIC Isolated Link Coupler 1...

Page 30: ...or 1746 BAS T BASIC Module fixed controllers modular controllers The following figure shows one application for the 1747 C13 Cable DH485 Communication Cable Belden 9842 Personal Computer with BASIC D...

Page 31: ...2 2 and Figure 2 3 show a DH485 network with the module and a personal computer linked to the network through a 1747 AIC link coupler 1747 PIC Interface Converter Use the 1747 PIC Interface Converter...

Page 32: ...t DH485 must be configured as the program port in this configuration DH485 Cable Requirements Use the 1747 C10 cable 1747 C11 cable or 1747 C13 cable to interface port DH485 of the module with a 1747...

Page 33: ...ons 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 modem re...

Page 34: ...Publication 1764 UM001A US P 2 8 Component Selection...

Page 35: ...f jumpers that you need to set Jumpers JW1 and JW2 configure ports PRT1 and PRT2 Jumper JW3 configures the type of optional memory module Jumper JW4 configures the program port Figure 3 1 shows the lo...

Page 36: ...umper JW1 Documenting your selection provides others with information necessary to integrate the module with their SLC 500 fixed or modular controllers Setting Jumper JW2 Use jumper JW2 to select one...

Page 37: ...ure the memory module socket for one of the following optional memory modules 1747 M1 8K bytes EEPROM 1746 BAS only 1747 M2 32K bytes EEPROM 1746 BAS only 1747 M3 8K bytes UVPROM 1746 BAS only 1747 M4...

Page 38: ...Port ASCII interface port PRT2 Port ASCII interface port DH485 Port Program port with DH485 protocol PRT1 Port Program port with programmed communication settings PRT2 Port ASCII interface port DH485...

Page 39: ...RT2 Port ASCII interface port DH485 Port Program port with DH485 protocol shipped configuration PRT1 Port Program port with programmed communication settings PRT2 Port ASCII interface port DH485 Port...

Page 40: ...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 whi...

Page 41: ...Refer to the MODE command in the BASIC Language Reference Manual publication number 1746 RM001A US P for the default programming port configuration information Use these pin assignments to wire the m...

Page 42: ...se and is discarded Table 3 1 Ports PRT1 and PRT2 Pin Assignments Pin RS 232 423 RS 422 RS 485 IBM AT Standard RS 232 Signals 1 Note 1 422 TXD TRXD DCD or CD 2 RXD 422 RXD 3 3 In RS 485 mode these pin...

Page 43: ...are provided to help you make the appropriate connection Table 3 2 DTE Configurations DTE 9 Pinout Signal from DTE Perspective DTE 25 Pinout Pin Signal Description Pin Signal Description 1 NC No Conn...

Page 44: ...Signal Common Shared 7 6 DSR Data Set Ready Output 6 7 RTS Request to Send Input 4 8 CTS Clear to Send Output 5 9 RI Ring Indicator Output 22 IMPORTANT All signal directions are listed in the previou...

Page 45: ...dware Handshaking Enabled Standard Printer Adapter Cable 1 1 The 1747 CP3 Cable works in this application 2 Connect to the shield of the cable Figure 3 11 RS 422 Wiring Diagram N C 1 RXD 2 TXD 3 DTR 4...

Page 46: ...85 Wiring Diagram 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 in...

Page 47: ...of the module input buffer All data transferred from the module to the SLC 500 CPU must be routed through the module output buffer Table 4 2 lists the addresses of the module output buffer Table 4 1 I...

Page 48: ...word 200 of the BASIC output buffer In addition to transferring image table data the SLC 5 02 and above modular controller may transfer an additional 64 words of input or output data to the module Fig...

Page 49: ...tors and system subroutines CALLs Word 0 Word 1 Word 62 Word 63 Word 100 Word 101 Word 162 Word 163 CPU M0 File BASIC or BASIC T Module Input Buffer Word 0 Word 1 Word 62 Word 63 Word 100 Word 101 Wor...

Page 50: ...L C break function CALL 19 re enables the CONTROL C break function CALL 18 disable CALL 19 re enable ERASE Erase the program stored in ROM ERASE LIST LIST current program or indicated lines of program...

Page 51: ...F THEN ELSE Test for a condition IF A B THEN A 0 INPUT INPUT a string or variable INPUT A LD Load top of stack from user specified location LD 1000H LD A LET Assign a variable or string a value LET is...

Page 52: ...xpression 2 4 FREE List available bytes in RAM FREE GET Read console P GET INT Return integer portion of expression INT 3 2 IP Read assign IP register IP 0 LEN List amount of bytes in current program...

Page 53: ...d in memory They are also used as references when branching and editing Typically you start numbering BASIC programs with line number 10 and increment by 10 This allows you to add additional lines lat...

Page 54: ...terminal follow these steps 1 Select the program port using JW4 2 Connect the ASCII terminal to the selected program port on the module 3 Verify that the console device is configured to communicate w...

Page 55: ...program line Running a BASIC Program After entering your BASIC program you are ready to run it To run a BASIC program type at the system prompt Stopping a BASIC Program To stop a program that is runni...

Page 56: ...xisting line in the BASIC program type and the line number of the line to edit as shown on the following screen The BASIC program line specified by the Edit command is displayed on the ASCII terminal...

Page 57: ...orresponds to the character that will replace the character at the current cursor position Insert Insert text at the current cursor position Important When you use the Insert command all text to the r...

Page 58: ...omplete the task no lines are changed and the message appears on the console screen Because the REN command uses the same RAM for renumbering as it does for variable and program storage available RAM...

Page 59: ...sfer Commands Command Purpose PRINT Prints a string or variable to PRT2 INPUT Inputs a string or variable from PRT2 INPL Inputs a string or variable from PRT2 INPS Inputs a string or variable from PRT...

Page 60: ...ves the current character in the 256 character input buffer of port PRT2 CALL 36 Retrieves the number of characters in the input or output buffer of port PRT2 CALL 37 Clears the peripheral port input...

Page 61: ...ble from PRT1 GET Reads a console input device connected to PRT1 CALL 22 Transfers data from PRT1 or PRT2 to the SLC I O or M files CALL 23 Transfers data from the SLC I O or M files to PRT1 or PRT2 S...

Page 62: ...processor CALL 28 Transfers the data from the SLC processor to a remote DH485 data file CALL 84 Transfers the data from the DH485 common interface file to words 0 through 39 of the module input buffe...

Page 63: ...1 battery low I e 0 15 0module in Run mode 1 module in Command mode Table 4 13 Status and Control Commands Command Purpose MODE Sets the port parameters of PRT1 PRT2 and DH485 CALL 86 Checks the remo...

Page 64: ...L 14 15 CALL 56 CALL 54 CALL 57 16 bytes 128 bytes 128 bytes SLC INPUT IMAGE SLC M0 SLC M1 1746 BAS or 1746 BAS T Module Table 4 15 Status and Control Commands Command Purpose CALL 51 Checks if the CP...

Page 65: ...Fault Codes SLC Fault Code Description Possible Cause Recommended Action 57H Module has not responded to a lock shared memory command within the required time limit Module hardware problem Cycle power...

Page 66: ...cessor must be used for interrupt capability 75H Module watchdog timeout Module hardware problem Cycle power to the module to re initialize parameters and re run the program Module internal stacks poi...

Page 67: ...Cable or 1747 C11 Cable This does not apply when the 1747 C13 Cable is used Table A 2 Power Consumption of Hand Held Terminal Data Table Access Module and Interface Converter Component Operating Volt...

Page 68: ...formation 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 min...

Page 69: ...r 1746 BAS T 1771 DBMEM1 32K byte EEPROM Memory Module for 1746 BAS T 1771 DBMEM2 BASIC Development Software 1747 PBASE Communication Cable 72 length interchangeable with C 11 cable 1747 C10 Communica...

Page 70: ...Publication 176 UM04A US P A 4 Specifications...

Page 71: ...uration Jumper JW1 See Figure 3 1 on page 3 1 for the locations of the four jumpers See Figure 3 2 on page 3 2 for jumper JW1 pin assignments and settings Specify the configuration of port PRT1 on you...

Page 72: ...y filling in the table below What to Do Next Give a copy of this worksheet to the hardware installer Store this worksheet with your application program for future reference Table B 1 Port PRT1 Configu...

Page 73: ...application program for future reference Table B 3 Optional Memory Module Selection Memory Module Option Optional Memory Module Selection Corresponding Jumper Position on JW3 1747 M1 8K byte EEPROM 1...

Page 74: ...program for future reference Table B 4 Program Port and Protocol Selection Selection Port Program Port Protocol Corresponding Jumper Position on JW4 PRT1 YES Default Communication Settings PRT2 NO ASC...

Page 75: ...ithium battery follow these steps 1 Remove power from the SLC 500 power supply module 2 Remove the module from the chassis by depressing the retainer clips at both the top and bottom of the module and...

Page 76: ...e white lead wire on the bottom See Figure 3 1 on page C 2 for battery connector orientation 7 Re insert the BASIC module into the SLC 500 chassis 8 Restore power to the SLC 500 power supply module Fi...

Page 77: ...Procedures for the transportation of three or more batteries shipped together within the United States are specified by the Department of Transportation DOT in the Code of Federal Regulations CRF49 Tr...

Page 78: ...iodically revised Battery Disposal The following procedures must be followed when disposing of lithium batteries For disposal batteries must be packaged and shipped in accordance with the transportati...

Page 79: ...ation interface 2 3 hardware features 1 2 hardware specifications A 1 installation and wiring 3 1 integration 1 6 LEDs 1 4 memory organization 4 1 network configurations 1 9 optional memory module 2 2...

Page 80: ...nsion rack 3 6 modular controller rack 3 6 overview 3 1 PRT1 communication port 3 2 3 4 3 7 4 15 PRT2 communication port 3 2 3 4 3 7 4 13 B 2 setting jumper JW1 3 2 setting jumper JW2 3 2 B 2 setting...

Page 81: ...rogramming statements 4 5 PRT1 communication port 1 2 1 3 3 2 3 4 3 7 4 15 PRT2 communication port 1 2 1 3 3 2 3 4 3 7 4 13 B 2 publications related P 2 R radio link for DF1 communication 2 6 related...

Page 82: ...ng to DH485 communication port 3 4 3 12 wiring to PRT1 communication port 3 2 3 4 3 7 wiring to PRT2 communication port 3 2 3 4 3 7 B 2 worksheets BASIC module configuration B 1 optional memory module...

Page 83: ...Spare Allen Bradley Parts...

Page 84: ...Publication 1746 UM004A US P April 2000 2 Supersedes Publication 1746 6 1 November 1994 2000 Rockwell International Corporation Printed in the U S A Back Cover...

Reviews: