Rockwell Automation 1785 PLC-5 User Manual Page 112

  • Download
  • Add to my manuals
  • Print
  • Page
    / 388
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 111
Publication 1785-UM012D-EN-P - July 2005
7-14 Communicating with a PLC-5 Adapter Channel
If you want to transfer controller-resident local I/O data of the adapter mode
controller channel to a supervisory controller or if you want to transfer data
from the supervisory controller to controller-resident local I/O of the adapter
mode controller channel, you must use MOV or COP instructions within the
adapter-mode controller channel to move the data in or out of the data file
used in the adapter block-transfer control file.
Examples of Block-Transfer Ladder Logic
Example Bidirectional Repeating Block Transfer in
PLC-5 Supervisory Controller
EN
BTR
BLOCK TRANSFER READ
RACK
GROUP
MODULE
CONTROL BLOCK
DN
DATA FILE
LENGTH
ER
PLC-5 adapter-mode processor channel is configured as rack 2
CONTINUOUS
2
0
0
BT17:10
N7:100
0
N
EN
BTW
BLOCK TRANSFER WRITE
RACK
GROUP
MODULE
CONTROL BLOCK
DN
DATA FILE
LENGTH
ER
CONTINUOUS
2
0
0
BT17:15
N7:200
0
N
COP
COPY FILE
SOURCE
DEST
LENGTH
#N7:100
#N7:300
64
DN
BTR Done Bit
Data Not Valid Bit
BT17:10
I:020
10
BTR and BTW enable bits
BT17:10
EN
BT17:15
EN
BTR and BTW enable bits
BT17:10
BT17:15
Read data from adapter-mode processor
Send data to adapter-mode processor
Enter the following parameters in the
block-transfer instructions in the
supervisory processor.
EN EN
Buffer read data from adapter-mode processor to work area
You may have to execute the BTR in the
PLC-5 scanner channel twice if the BTR’s
time delay is greater than 2-3 program
scans. If you do not run the BTR twice, the
BTR will read old data from the
adapter processor.
Set the length to 0.
adapter-mode processor.
Use the remote I/O rack number for
which you configure the
Use the group and module numbers for
which the adapter-mode processor is
configured.
All address comments for contacts shown in
the following examples represent the set (1)
state of the bit in the PLC-5 processor.
Condition the use of BTR data with a
"data valid" bit.
Page view 111
1 2 ... 107 108 109 110 111 112 113 114 115 116 117 ... 387 388

Comments to this Manuals

No comments