Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 1 of 3

1785 PLC-5 Programmable Controllers Addressing Reference Manual, pages 1 to 10

Pages 1 to 10 of 28

The original document is the PDF (172 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.

Filed in the catalog under the Allen-Bradley 1785-LT

Page 1 read from a scan by OCR; it may hold reading errors

wy

Allen-Bradley

1785 PLC-5® Programmable Controllers

Addressing Reference Manual

Page 2

Important User Information

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 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. The illustrations, charts, sample programs and layout examples shown in this guide are intended solely for purposes of example. Since there are many variables and requirements associated with any particular installation, Allen-Bradley does not not assume responsibility or liability (to include intellectual property liability) for actual use based upon the examples shown in this publication. Allen-Bradley publication SGI–1.1, Safety Guidelines for the Application, Installation, and Maintenance of Solid-State Control (available from your local Allen-Bradley office), describes some important differences between solid-state equipment and electromechanical devices that should be taken into consideration when applying products such as those described in this publication. 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.

ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property damage or economic loss.

Attention statements help you to: identify a hazard avoid the hazard recognize the consequences Important: Identifies information that is critical for successful application and understanding of the product.

2

Page 3

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 6 i

Page 4

Addressing for 1785 PLC-5 Processors

Using this Addressing Reference Guide

This addressing reference guide helps you specify the address in a 1785 PLC-5 data table. This reference contains: For This Subject:

Refer to:

a memory map page 2 general format for direct logical ASCII addressing page 4 logical addressing for I/O image tables page 5 logical addressing for the 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/10t PLC-5/11t PLC-5/12t PLC-5/15t PLC-5/20t PLC-5/25t PLC-5/30t PLC-5/40t PLC-5/40Lt PLC-5/60t PLC-5/60Lt PLC-5/80t For more information about the specific contents of the various sections of memory, consult the: PLC programmer, who assigns specific data items to specific memory locations PLC-5 Programming Software Configuration and Maintenance Manual, publication 6200–6.4.6

1

Page 5

1785 PLC-5 Addressing Reference

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.

Figure 1 Memory Map of 1785 PLC-5 Processors

$O:0

Output Image Input Image Status Bit (Binary) Timer Counter Control Integer Floating-point

$O:277 $I:0 $I:277 $S:0 $S:128 $B3:0 $B3:999 $T4:0 $T4:999 $C5:0 $C5:999 $R6:0 $R6:999 $N7:0 $N7:999 $F8:0 $F8:999

$_9:0

Assign File Type as Needed

$_999:999

17390–I

2

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 For Information About:

Refer to:

ASCII Data Files

Figure 7, Figure 8

ASCII String Files

Figure 13, Table M, Figure 19, Table N

BCD Data Files

Figure 7, Figure 10

Binary Files

Figure 7, Figure 9

Block-transfer Control Files

Figure 13, Table K, Figure 18, Table L

Control Files

Figure 13, Table G, Figure 16, Table H

Counter Files

Figure 13, Table E, Figure 15, Table F

Floating-point files

Figure 7, Figure 11

Input File

Figure 3, Figure 4

Integer Files

Figure 7, Figure 12

Message Control files

Figure 13, Table R, Figure 21, Table S

Output File

Figure 3, Figure 4

PID Control Files

Figure 13, Table O, Figure 20, Table P

SFC Status Files

Figure 13, Table I, Figure 17

Status File

Figure 5, Figure 6, Table B

Timer Files

Figure 13, Table C, Figure 14, Table D

Use logical ASCII addressing to read and write data to and from the PLC-5 data table. You provide a string of letters, digits, and punctuation that specifies the file type, file, and structure or word of the address.

3

Page 7

1785 PLC-5 Addressing Reference

General Format for Logical ASCII Addressing

Figure 2 illustrates the general format for logical addressing in the data table of the 1785 PLC-5 memory.

Figure 2 General Format for Logical Addressing

File Separator Logical Address Identifier

Bit Separator (if addressing a bit)

$ B 123 : 123 / 15

Identifier B F N R T C I O S D A BT MG PD SC ST

File Type

File Number

Bit Number

Binary Floating-point Integer Control Timer Counter Input Output Status BCD (for display only) ASCII (for display only) Block-transfer Message PID SFC Status ASCII String

0 1 2 3 4 5 6 7 8 9–999

0 – 17 Octal for I/O files 0 – 15 Decimal for other files

Output (do not enter) Input (do not enter) Status (do not enter) Binary (default) Timer (default) Counter (default) Control (default) Integer (default) Floating-point (default) Any file type except Output, Input, or Status

Structure/word Number 0 – 277 Octal for I/O files 0 – 128 Decimal for status file 0 – 77 Octal for token data files 0 – 584 Decimal for message files 0 – 398 Decimal for PID files 0 – 779 Decimal for ASCII-string files 0 – 999 Decimal for all other file types

Note: BT, MG, PD, SC, and ST files are not available on PLC-5/10, -5/12, -5/15, and -5/25 processors. In addition, since the output, input, and status files are automatically assigned files numbers 0, 1, and 2 respectively, do not enter a file number for these files.

17392–I

Note that throughout this publication we use $ as the logical address identifier. This is an entry for INTERCHANGE software. It is also an entry for 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.

4

Page 8

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

Word No.

Bit Separator (if addressing a bit)

$ I : 12 3 / 12

File Type

I/O Rack Number

I/O Group Number

Bit Number

O = Output I = Input

0 – 3 octal for PLC-5/10, -5/11 -5/12, -5/15, -5/20 0 – 7 octal for PLC-5/25, -5/30 0 – 17 octal for PLC-5/40, -5/40L 0 – 27 octal for PLC-5/60, -5/60L, -5/80

0 – 7 Octal

0 – 17 Octal

17399–I

Figure 4 Word of Input or Output Image File

17

16

15

14

13

12

11

10

7

6

5

4

3

2

1

0

PLC Data Type: signed word (negative values in 2’s complement form) Range: –32,768 thru +32,767 17400–I

5

Page 9

1785 PLC-5 Addressing Reference

Logical Addressing for the Status File

Figure 5 shows how to address the status file of the PLC-5 data table. Figure 6 shows a word of the status file. Figure 5 shows what is stored in each word of the status file. For more information, refer to the PLC-5 Programming Software Configuration and Maintenance Manual, publication 6200-6.4.6.

Figure 5 Logical Addressing for the Status File

File Separator Logical Address Identifier

Bit Separator (if addressing a bit)

$ S : 7 / 12 Status file Identifier Word Number

Bit Number

0 – 128 Decimal

0 – 15 Decimal

Note: Word number is 0 – 31 on PLC-5/10, -5/12, -5/15, and -5/25 processors. 17401–I

Figure 6 Word of Status file 15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

PLC Data Type: signed word (negative values in 2’s complement form) Range: –32,768 thru +32,767 17411–I

Table B Status File Description

6

This word of the status file:

Stores:

S:0

Arithmetic flags • bit 0 = carry • bit 1 = overflow • bit 2 = zero • bit 3 = sign

Page 10

1785 PLC-5 Addressing Reference

This word of the status file:

Stores:

S:1

Processor status and flags Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

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 enabled test edit mode mode select switch in REMOTE position forces enabled forces present processor successfully burned EEPROM preforming online programming not defined user program checksum done last scan of ladder or SFC step processor started first program scan or the first scan of the next step in an SFC

S:2

Switch Setting information • bits 0 – 7 DH+ station number • bits 11–12 are set based on the I/O chassis backplane switches bit 12 bit 11 = I/O chassis addressing 0 0 illegal 1 0 1/2 -slot 0 1 1-slot 1 1 2-slot • bit 13: 1 = load from EEPROM • bit 14: 1 = RAM backup not configured • bit 15: 1 = memory unprotected

S:3 to S:6

Active Node table for channel 1A Word 3 4 5 6

Bits 0-15 0-15 0-15 0-15

DH+ Station # 00-17 20-37 40-57 60-77

S:7

Global status bits: • low 8 bits – rack fault bits for racks 0-7 • high 8 bits – rack queue-full bits for racks 0-7

S:8

Last program scan (in ms)

S:9

Maximum program scan (in ms)

7