Allen-Bradley 1746-BAS Скачать руководство пользователя страница 63

Publication 1746-UM004A-US-P

Programming Overview        

4-17

In addition, the commands in the following table provide status of the data transfer 
between the SLC processor and port DH485 of the module.

For more information regarding the use of these commands, refer to the 

BASIC 

Language Reference Manual

 (publication number 1747-RM001A-US-P).

Transferring Data Between the SLC Processor and the Module

Use the module to interface with the SLC processor. For example, the module 
performs large mathematical calculations for the processor which the SLC 
processor uses to execute an operation. The commands in the following table are 
used to transfer data either to or from the SLC processor.

Status Information for the SLC Processor

Input image word 0 for the module slot contains two status bits. One status bit 
informs the SLC processor of the mode the module is presently in. The other status 
bit informs the 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

Table 4.13 Status and Control Commands

Command Purpose

MODE

Sets the port parameters of PRT1, PRT2, and DH485.

CALL 86

Checks the remote write status of the DH485 common interface file. 

CALL 87

Checks the remote read status of the DH485 common interface file.

Table 4.14 Data Transfer Commands

Command Purpose

CALL 14

Converts 16-bit signed integer located in the BASIC input buffer to BASIC 
floating-point.

CALL 15

Converts 16-bit unsigned integer located in the BASIC input buffer to BASIC 
floating-point.

CALL 24

Converts BASIC floating point to a 16-bit signed integer and places the result in 
the BASIC output buffer.

CALL 25

Converts BASIC floating point to its 16-bit binary representation.

CALL 53

Transfers the eight words in the CPU output image table to words 200 through 207 
of the module input buffer.

CALL 54

Transfers words 200 through 207 of the module output buffer to the CPU input 
image table.

CALL 56

Transfers the words in the CPU M0 file to words 100 through 163 of the module 
input buffer.

CALL 57

Transfers words 100 through 163 of the module output buffer to the CPU M1 file.

Spare Allen-Bradley Parts

Содержание 1746-BAS

Страница 1: ...SLC500 BASICand BASIC T Modules Catalog Numbers 1746 BAS and 1746 BAS T User Manual Spare Allen Bradley Parts...

Страница 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...

Страница 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...

Страница 4: ...Publication 1746 UM004A US P Summary of Changes ii...

Страница 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...

Страница 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...

Страница 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...

Страница 8: ...Publication 1746 UM004A US P Table of Contents iv...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 26: ...Publication 1746 UM004A US P 1 14 Module and Development Software Overview...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 34: ...Publication 1764 UM001A US P 2 8 Component Selection...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 70: ...Publication 176 UM04A US P A 4 Specifications...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 83: ...Spare Allen Bradley Parts...

Страница 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...

Отзывы: