Appendix c, Bidirectional blockćtransfer for plcć3 processors – Rockwell Automation 1771-DE Absolute Encoder Module User Manual User Manual
Page 63

Appendix C
CĆ4
Thus, the current encoder position is between 045 and 089 (words 4 and
5), which are the presets for output 1.
Figure C.3 shows you how to program a bidirectional block-transfer
operation using a PLC-3 processor.
Figure C.4
gives example values entered in the write-data files and
displayed in the read-data files. The values were chosen for use with a
single-ended, 0 to 4,095-count binary encoder.
Figure C.3
Example BlockĆtransfer Rungs for PLCĆ3 Processors
EN
BTR
BLOCK XFER READ
RACK :
GROUP :
MODULE :
002
3
0 = LOW
FB015:0001
DN
0
FB010:0040
ER
DATA:
LENGTH =
CNTL:
WB010:0040
15
CNTL
12
CNTL
15
CNTL
13
WB010:0040
17
EN
BTW
BLOCK XFER WRITE
RACK :
GROUP :
MODULE :
002
3
0 = LOW
FB015:0011
DN
0
FB010:0040
ER
DATA:
LENGTH =
CNTL:
CNTL
02
CNTL
05
CNTL
03
EN
MVF
FILES FROM A TO R
A : FB015:0001
R : FB016:0001
DN
0/ 2
ALL/SCAN
ER
COUNTER :
POS/LEN =
MODE =
WB010:0040
15
C0110
12
C0110
15
C0110
13
C0110
BUFFER FILE
READ DONE BIT
READ REQUEST
Bidirectional BlockĆtransfer for
PLCĆ3 Processors