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

The text of a manual · part 11 of 19

Classic 1785 PLC-5 Programmable Controllers User Manual (1785-LT, -LT2, -LT3, -LT4), pages 101 to 110

Pages 101 to 110 of 186

The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 1785-LT2, Allen-Bradley 1785-LT3, Allen-Bradley 1785-LT4 and Allen-Bradley 1785-LT B

Page 101

Chapter 8 Transferring Discrete and Block-Transfer Data

For PLC-5/12, -5/15, and -5/25 processors, words 0-7 in the integer file represent output, words 8-15 represent input.

Determining the Status of the Adapter-Mode Processor Supervisor

Adapter

Adapter-mode processor sends to Supervisory processor

The supervisory processor receives these status bits (Table 8.K) from the adapter-mode processor in word 0 of the input file for the rack that the adapter-mode processor is emulating. Table 8.K Status Bits of the Adapter-Mode Processor When this bit is set:

It indicates this condition:

10 octal data not valid

15 octal adapter-mode processor is in program or test mode

If you use an adapter image file in a PLC-5/12, -5/15, or -5/25 processor, then these status bits are not sent. The supervisory processor should monitor the rack fault bits for the rack the adapter-mode processor is emulating to determine the status of the remote I/O link.

Determining the Status of the Supervisory Processor Supervisor

Adapter

Supervisor processor sends to adapter-mode processor

The adapter-mode processor receives these status bits (Table 8.L) from the supervisory processor in I:30 (or word 8 of the adapter image file) of the adapter-mode processor’s data table. These bits tell the adapter-mode processor the status of the supervisory processor and the integrity of the remote I/O communication link.

8-6

Page 102

Chapter 8 Transferring Discrete and Block-Transfer Data

Table 8.L Status Bits of the Supervisory Processor Set in the Adapter-Mode Processor's Data Table When this bit is set:

It indicates that the adapter-mode processor:

Rack 3 Input Adapter Input Image Image Table (octal) File (decimal) 10

8 detected a communication failure or received a reset command from the supervisory processor

11

9 received a reset command from the supervisory processor (processor in program or test mode)

13

11 detected that the supervisory processor is powering up; this bit is reset with the first communication from the supervisory processor

15

13 detected a communication failure (e.g., no communication activity on the remote I/O communication link within the last 100ms)

Programming Block Transfer in Adapter Mode

To transfer blocks of data between a PLC-5/12, -5/15, or -5/25 adapter-mode processor and a supervisory processor, the adapter-mode processor must have a BTW to respond to the BTR from the supervisory processor (and a BTR to respond to the supervisory processor’s BTW). For example, when the supervisory processor enables a BTR instruction, the adapter-mode processor responds by enabling a BTW instruction. The supervisory processor controls the transfer; the adapter-mode processor responds to the request. Figure 8.4 shows an example of block-transfer programming between an adapter-mode processor and a supervisory processor.

8-7

Page 103

Chapter 8 Transferring Discrete and Block-Transfer Data

Figure 8.4 Example Adapter/Supervisor Block-Transfer Programming for a PLC-5/12, -5/15, or -5/25 Adapter-Mode Processor in Rack xx Adapter-Mode Processor (PLC-5/12, -5/15, or -5/25) Supervisory Processor (PLC-3)

1771 I/O Chassis Remote I/O Link

Set for Rack xx

BTR BTR

BTW

BLOCK TRANSFER READ Rack 0xx Group 0 Module 0=LOW Control FB001:0000 Data File FB002:0000 Length 0

BLOCK TRANSFER WRITE Rack 3 Group 0 Module 0 Control Block N7:15 Data File N7:200 Length 8 Continuous Y

BTW

BTR BTR BLOCK TRANSFER READ Rack 3 Group 0 Module 0 Control Block N7:10 Data File N7:100 Length 40 Continuous Y

BLOCK TRANSFER WRITE Rack 0xx Group 0 Module 0=LOW Control FB001:0000 Data File FB003:0000 Length 0

15552

Addressing Tips Table 8.M lists some addressing tips for programming block transfers between a PLC-5/12, -5/15, or -5/25 adapter-mode processor and a supervisory processor.

8-8

Page 104

Chapter 8 Transferring Discrete and Block-Transfer Data

Table 8.M Addressing Tips for Adapter/Supervisor Block Transfers with a PLC-5/12, -5/15, or -5/25 Adapter-Mode Processor BTR/BTW Parameter

BTR/BTW in Supervisor

BTR/BTW in Adapter

Rack

PLC-2/30: 1-7 octal PLC-3: 0-77 octal PLC-5/25: 1-7 octal

Must be 31

Group

0

Must be 0

Module

0

Length

Must be 0

Number of words transferred

Continuous

Yes (PLC-5 and PLC-5/250 only)

Yes

1

If you need rack 3 I/O for the adapter-mode processor's local I/O, then you must specify an adapter image file and block transfers can not be used between the supervisory and adapter-mode processor.

ATTENTION: To guarantee the correct destination of block-transfer data, program only one set of bidirectional block transfers between supervisory and adapter-mode processors with PLC-5/12, -5/15, and -5/25 processors in adapter mode.

Important: If you are using a PLC-5/12, -5/15, or -5/25 processor, set the supervisory processor’s communication rate for remote I/O to 57.6 kbps. Block transfers between adapter and supervisory processors transfer data between data table addresses. If you want to transfer processor-resident local I/O data of the adapter mode processor to a supervisory processor or if you want to transfer data from the supervisory processor to processorresident local I/O of the adapter mode processor, you must use MOV or COP instructions within the adapter-mode processor to move the data in or out of the data file used in the adapter block-transfer instruction. Figure 8.5 shows data transfers from a supervisory processor to a PLC-5/12, -5/15, or -5/25 adapter-mode processor to a local block-transfer module and vice versa.

8-9

Page 105

Chapter 8 Transferring Discrete and Block-Transfer Data

Figure 8.5 Example Block Transfer from Supervisory Processor to a PLC-5/12, -5/15, or -5/25 Adapter-Mode Processor to Local Block-Transfer Module and Vice Versa PLC-5/12, -5/15, or -5/25 Adapter-Mode Processor in Supervisory Processor's Remote I/O Rack 2

Supervisory Processor (PLC-3)

Block Transfers over Remote I/O Link Data File FB002 0000

0039

Local BT over chassis backplane Data File N7

BTR BLOCK TRANSFER READ 3 Rack 0 Group 0 Module N7:10 Control Block Data File N7:100 Length 40 Continuous Y

BTR BLOCK TRANSFER READ 2 Rack 0 Group 0=LOW Module FB001:0000 Control Data File FB003:0000 Length 0

BTW BLOCK TRANSFER WRITE 3 Rack 0 Group 0 Module N7:20 Control Block Data File N7:150 Length 8 Continuous Y

0000

0007

BTW BLOCK TRANSFER WRITE 0 Rack 2 Group 0 Module N7:15 Control Block Data File N7:100 Length 40 Continuous Y

N7:100

N7:139

To BT Module

//

BTW BLOCK TRANSFER WRITE 2 Rack 0 Group 0=LOW Module FB001:0000 Control Data File FB002:0000 Length 0

//

Data File FB003

BT Module in Local I/O Rack 0, I/O Group 2 Module 0

N7:150

N7:157

BTR BLOCK TRANSFER READ 0 Rack 2 Group 0 Module N7:25 Control Block Data File N7:150 Length 8 Continuous Y

From BT Module 15553

If you block transfer data with a supervisory processor, you cannot use 1/2-slot addressing with a 1771-A4B chassis because the adapter-mode processor needs the rack 3 I/O image table for block-transfer communication. (This applies only to PLC-5/12, -5/15, and -5/25 processors in adapter mode.) ATTENTION: Do not try block transfers to a supervisory processor when the adapter-mode processor uses rack 3 for scanning processor-resident local I/O (when you create your own adapter image file using a PLC-5/12, -5/15, and -5/25 processor in adapter mode). Using rack 3 addresses under this condition will result in unpredictable machine operation with possible damage to equipment or personnel.

Example of Block-Transfer Ladder Logic The following figures show example ladder logic for block transfers between an adapter-mode processor and a supervisory processor.

8-10

Page 106

Chapter 8 Transferring Discrete and Block-Transfer Data

Supervisory Processor (PLC-2/30, PLC-3, PLC-5, or PLC-5/250) Follow these guidelines when programming block-transfer instructions in the supervisory processor. Set the length to 0. Set the continuous bit for continuous operation (PLC-5 and -5/250 processors only). Use the remote I/O rack number for which you configure the adaptermode processor. Use 0 for the group and module numbers. Condition the use of BTR data with a “data valid” bit. All address comments for contacts shown in the following examples represent the set (1) state of the bit in the PLC-5 processor. Figure 8.6 Example Block Transfer in PLC-2/30 Supervisory Processor BTR Done Bit 120 06

Store Bit L SEND DATA TO ADAPTER-MODE PROCESSOR BTW BLOCK TRANSFER WRITE DATA ADDR 030 MODULE ADDR 200 BLOCK LENGTH 0 FILE 140-237

Store Bit

BTW Done Bit 120 07

020 EN 07 120 DN 07

Store Bit U READ DATA FROM ADAPTER-MODE PROCESSOR

Store Bit BUFFER READ DATA FROM ADAPTER-MODE PROC TO WORK FILE AREA BTR Done Bit 120

Data Valid Bit 120

06

10

PLC-5 adapter-mode processor in rack 2

BTR BLOCK TRANSFER READ DATA ADDR 031 MODULE ADDR 200 BLOCK LENGTH 0 FILE 240-337 FFM FILE TO FILE MOVE COUNTER ADDRESS 033 POSITION 0 FILE LENGTH 64 FILE A: 240-337 FILE R: 400-477 RATE PER SCAN 64

020 EN 06 120 DN 06

8-11

Page 107

Chapter 8 Transferring Discrete and Block-Transfer Data

Figure 8.7 Example Block Transfer in PLC-3 Supervisory Processor BTR Done Bit

READ DATA FROM ADAPTER-MODE PROCESSOR BTR BLOCK TRANSFER READ EN RACK 2 DN GROUP 0 MODULE 0 ER #B1:0 CONTROL DATA FILE #B2:0 0 LENGTH

B1:0 15

Read Request SEND DATA TO ADAPTER-MODE PROCESSOR BTW B1:0 BLOCK TRANSFER WRITE EN 17 RACK 2 DN GROUP 0 MODULE 0 ER #B1:0 CONTROL BUFFER READ DATA FROM DATA FILE #B3:0 ADAPTER-MODE PROC TO WORK 0 LENGTH FILE AREA BTR Done Bit

Data Not Valid Bit

B1:0

I:020

15

10

PLC-5 adapter-mode processor in rack 2

8-12

MVF MOVE WITH FILES SOURCE DESTIN COUNTER MODE LENGTH POSITION

#B2:0 #B4:0 C5 ALL 64 0

EN DN ER

Page 108

Chapter 8 Transferring Discrete and Block-Transfer Data

Figure 8.8 Example Block Transfer in PLC-5 Supervisory Processor READ DATA FROM ADAPTER-MODE PROCESSOR BTR and BTW enable bits N7:15 N7:10 15

15

SEND DATA TO ADAPTER-MODE PROCESSOR BTR and BTW enable bits N7:15 N7:10 15

15

BTR BLOCK TRANSFER READ RACK 2 GROUP 0 MODULE 0 CONTROL BLOCK N7:10 N7:100 DATA FILE 0 LENGTH N CONTINUOUS BTW BLOCK TRANSFER WRITE RACK 2 GROUP 0 MODULE 0 CONTROL BLOCK N7:15 N7:200 DATA FILE 0 LENGTH N CONTINUOUS

BTR Error Bit N7:10 12 BTW Error Bit N7:15 12 BUFFER READ DATA FROM ADAPTER-MODE Data Not Valid Bit PROC TO BTR Done Bit COP I:020 N7:10 WORK AREA COPY FILE 13 10 SOURCE DEST LENGTH PLC-5 adapter-mode processor in rack 2

EN DN ER

EN DN ER

BTR Enable Bit N7:10 U 15 BTW Enable Bit N7:15 U 15

#N7:100 #N7:300 64

8-13

Page 109

Chapter 8 Transferring Discrete and Block-Transfer Data

Figure 8.9 Example Block Transfer in PLC-5/250 Supervisory Processor READ DATA FROM ADAPTER-MODE PROCESSOR BR020:0 BWO20:0 EN

EN

SEND DATA TO ADAPTER-MODE PROCESSOR BR020:0 BWO20:0 EN

EN

BTR BLOCK TRANSFER READ RACK 002 GROUP 0 MODULE 0 CONTROL BLOCK BR020:0 1BTD1:0 DATA FILE 0 BT LENGTH N CONTINUOUS BT TIMEOUT 3 BTW BLOCK TRANSFER WRITE RACK 002 GROUP 0 MODULE 0 CONTROL BLOCKBW020:0 1BTD2:0 DATA FILE 0 BT LENGTH N CONTINUOUS BT TIMEOUT 3

BUFFER READ DATA FROM ADAPTER-MODE BTR Done Bit Data Not Valid Bit PROC TO BR020:0 FAL I:020 WORK AREA FILE ARITH/LOGICAL CONTROL 1R0:0 DN 10 LENGTH 64 POSITION 0 MODE ALL DEST #1N0:0 EXPRESSION 1BTD1:0 PLC-5 adapter-mode processor in rack 2

8-14

EN DN ER

EN DN ER

EN DN ER

Page 110

Chapter 8 Transferring Discrete and Block-Transfer Data

Adapter-Mode Processor (PLC-5/12, -5/15, and -5/25) Follow these guidelines when programming block-transfer instructions in the adapter-mode processor. Use 3 for the rack, 0 for the group, and 0 for the module. Set the continuous bit for continuous operation. Condition the use of BTR data with status bits from the supervisory processor. Figure 8.10 Example Block Transfer for a PLC-5/12, -5/15, or -5/25 Processor in Adapter Mode ACCEPT DATA FROM SUPERVISORY PROCESSOR

SEND DATA TO SUPERVISORY PROCESSOR

BTR Error Bit N7:10

BTR BLOCK TRNSFR READ 3 RACK GROUP 0 MODULE 0 CONTROL BLOCK N7:10 N7:100 DATA FILE 40 LENGTH Y CONTINUOUS BTW BLOCK TRNSFR WRITE 3 RACK GROUP 0 MODULE 0 CONTROL BLOCK N7:15 N7:200 DATA FILE 8 LENGTH Y CONTINUOUS

EN DN ER

EN DN ER

BTR Enable Bit N7:10 U

12

15

BTW Error Bit N7:15

12 I:030

I:030

I:030

I:030

BTR Done Bit N7:10

10

11

13

15

13

Status Bits

BTW Enable Bit N7:15 U 15 BUFFER DATA FROM SUPERVISORY PROCESSOR COP COPY FILE SOURCE #N7:100 DEST #N7:300 LENGTH 40

8-15