Download Print this page
Allen-Bradley 1785 PLC-5 Reference Manual
Allen-Bradley 1785 PLC-5 Reference Manual

Allen-Bradley 1785 PLC-5 Reference Manual

Programmable controllers

Advertisement

Quick Links

Allen-Bradley
1785 PLC-5
Programmable
Controllers
Addressing
Reference
Manual

Advertisement

loading

Summary of Contents for Allen-Bradley 1785 PLC-5

  • Page 1 Allen-Bradley Addressing 1785 PLC-5 Programmable Reference Controllers Manual...
  • Page 2 Reproduction of the contents of this copyrighted publication, in whole or in part, without written permission of Allen-Bradley company, Inc., is prohibited. Throughout this manual we use notes to make you aware of safety considerations.
  • Page 3: Summary Of Changes

    Summary of Changes New Information This release of the publication contains new and revised information. To help you find this information, we have included change bars as shown to the left of this paragraph. For This Specific Revised Information Refer to: updated product and documentation references throughout this manual updated status file description...
  • Page 4: Table Of Contents

    I/O status file page 6 logical addressing for ASCII, binary, decimal, floating-point, and integer files page 9 addressing structured data page10 A 1785 PLC-5 processor may include the following processors: PLC-5/10 PLC-5/11 PLC-5/12 PLC-5/15 PLC-5/20 PLC-5/25...
  • Page 5: A Memory Map

    Memory Map The memory map in Figure 1 shows the logical arrangement of the data table area of memory in a 1785 PLC-5 processor. This map does not represent the physical structure of the memory, but it provides the addressing scheme for the memory in the 1785 PLC-5 data table. The logical ASCII formats for the memory addresses you can access are shown in subsequent figures for each section.
  • Page 6 1785 PLC-5 Addressing Reference Locating Addressing Information The remainder of this addressing reference provides addressing formats, mnemonics, and data structures for addressing various 1785 PLC-5 data–table sections. Use Table A to locate information about specific data types Table A Locating PLC-5 Addressing Information...
  • Page 7: General Format For Direct Logical Ascii Addressing

    6200 software in sending a message from some other stations to a PLC-5 station. It is not used in 6200 software for internal addressing. Figures 3 through 23 show specific formats for logical addressing of various areas of the 1785 PLC-5 data table.
  • Page 8: Logical Addressing For I/O Image Tables

    1785 PLC-5 Addressing Reference Logical Addressing for I/O Image Tables Figure 3 Logical Addressing for I/O Image Tables File Separator Logical Address Identifier Bit Separator (if addressing a bit) Word $ I : 12 3 / 12 I/O Rack Number...
  • Page 9: Logical Addressing For The I/O Status File

    1785 PLC-5 Addressing Reference Logical Addressing for the Figure 5 shows how to address the status file of the PLC-5 data table. Status File Figure 6 shows a word of the status file. Figure 5 shows what is stored in each word of the status file.
  • Page 10 1785 PLC-5 Addressing Reference This word of Stores: the status file: Processor status and flags Description RAM checksum is invalid at power-up processor in RUN mode processor in TEST mode processor in PROG mode processor burning EEPROM enabled download operation...
  • Page 11 1785 PLC-5 Addressing Reference This word of Stores: the status file: S:10 Minor fault (word 1) Description battery is low (replace in 1-2 days) DH+ table has changed (active node table) STI delay too short, interrupt program overlap EEPROM memory transfer at power-up...
  • Page 12: Logical Addressing For Ascii, Binary, Decimal, Floating-Point, And Integer Files

    1785 PLC-5 Addressing Reference This word of Stores: the status file: S:12 Fault codes Code Description user-defined failed data table check bad user program checksum bad integer operand type bad mixed mode operand type not enough operands for instruction too many operands for instruction...
  • Page 13 1785 PLC-5 Addressing Reference This word of Stores: the status file: S:17 Minor fault (word 2) Description BT queue full to remote I/O queue full – channel 1A queue full – channel 1B queue full – channel 2A queue full – channel 2B no modem on serial port remote I/O rack in local rack table;...
  • Page 14 1785 PLC-5 Addressing Reference This word of Stores: the status file: S:28 Program watchdog setpoint S:29 Fault routine file S:30 STI setpoint S:31 STI file number S:32 Global status bits: low 8 bits – rack fault bits for racks 10-17 (octal) high 8 bits –...
  • Page 15 1785 PLC-5 Addressing Reference This word of Stores: the status file: S:77 Communication time slice for communication housekeeping functions (in ms) S:78 MCP I/O update disable bits Bit 0 for MCP A Bit 1 for MCP B etc. S:79 MCP inhibit bits...
  • Page 16 1785 PLC-5 Addressing Reference Figure 8 Word of ASCII (ANSI X3.4) File ASCII character ASCII character PLC Data Type: signed word 17410–I Figure 9 Word of a Binary File PLC Data Type: signed word (negative values in 2’s complement form) Range: –32,768 thru +32,767...
  • Page 17 1785 PLC-5 Addressing Reference Addressing Structured Data Figure 13 shows address formats for structured data. Figures 15 thru 22 and tables B thru L show data structures and mnemonics for the various file types. Figure 13 General Format for Addressing a Structure or a Member of a Structure...
  • Page 18 1785 PLC-5 Addressing Reference Table D Example Timer Addresses To Address: PLC Data Type: Example Address: Whole Timer Structure structure $T4:5 Timer Accumulated Word signed word $T4:3.ACC Timer Preset Word signed word $T4:3.PRE Timer Enabled Bit $T4:3.TE Timer Timing Bit $T4:3.TT...
  • Page 19 1785 PLC-5 Addressing Reference Table F Example Counter Addresses To Address: PLC Data Type: Example Address: Whole Counter Structure structure $C5:4 Counter Accumulated Word signed word $C5:7.ACC Counter Preset Word signed word $C5:7.PRE Counter Up Bit $C5:7.CU Counter Down Bit $C5:7.CD...
  • Page 20 1785 PLC-5 Addressing Reference Table H Example Control Addresses To Address: PLC Data Type: Example Address: Whole Control Structure structure $R6:0 Control Position Word signed word $R6:0.POS Control Length Word signed word $R6:0.LEN Control Enable Bit $2R6:0.EN Control Unload Enable Bit $2R6:0.EU...
  • Page 21 1785 PLC-5 Addressing Reference Figure 17 SFC Status Structure SA FS OV ER DN Reserved PRE – Preset Value (–32,768 thru +32,767) TIM – Active Time (–32,768 thru +32,767) 17376–I Table J Example SFC Status Addresses To Address: PLC Data Type:...
  • Page 22 1785 PLC-5 Addressing Reference Figure 18 Block-transfer Control Structure EN ST DN ER CO EW NR TO RW Reserved RLEN – Requested Word Count (–32,768 thru +32,767) DLEN – Transmitted Word Count (–32,768 thru +32,767) FILE – File-type Number (–32,768 thru +32,767) ELEM –...
  • Page 23 1785 PLC-5 Addressing Reference Table N Example ASCII Structure Addresses To Address: PLC Data Type: Example Address: Whole ASCII String structure $ST12:0 Structure Length Word signed word $ST12:0.LEN Table O PID Mnemonics in PD File Mnemonic Structure Member Size PLC Data Type .INI...
  • Page 24 1785 PLC-5 Addressing Reference Mnemonic Structure Member Size PLC Data Type .DVDB Deviation Alarm Dead Band 4 bytes IEEE float .MAXI Input Range Maximum 4 bytes IEEE float .MINI Input Range Minimum 4 bytes IEEE float .TIE Tieback % 4 bytes IEEE float .ADDR[...
  • Page 25 1785 PLC-5 Addressing Reference Table P Example PID Control Addresses To Address: PLC Data Type: Example Address: Whole PD Control Structure structure $PD13:0 Set-point value IEEE float $PD13:0.SP Proportional-gain value IEEE float $PD13:0.KP PID-initialized bit $PD13:0.INI SP out-of-range bit $PD13:0.SPOR...
  • Page 26 1785 PLC-5 Addressing Reference Word: Contains: Term: Range: Scaled PV value (displayed) thru S Scaled error value (displayed) thru S Output (% of 4095) 0 thru 100% 17 – 22 internal storage; do not use Table R Message control Mnemonics in MG File...
  • Page 27 1785 PLC-5 Addressing Reference Figure 22 Message Control Block in Integer File EN ST DN ER CO EW Error Code Reserved / Internal Use (15 words)
  • Page 28 Qatar Romania Russia–CIS Saudi Arabia Singapore Slovakia Slovenia South Africa, Republic Spain Switzerland Taiwan Thailand The Netherlands Turkey United Arab Emirates United Kingdom United States Uruguay Venezuela Yugoslavia Allen-Bradley Headquarters, 1201 South Second Street, Milwaukee, WI 53204 USA, Tel: (1) 414 382-2000 Fax: (1) 414 382-4444 Publication 5000–6.4.4 August 1995 PN 955123-27 Supersedes Publication 5000–6.4.4 February 1995...