
3–3
Programming Your Incremental Encoder Module
Publication 1794-6.5.15 – December 1998
EN
BTR
BLOCK TRANSFER READ
Rack
Group
Slot
Control
001
0
0
N17:10
DN
Data File
Length
Continuous
N18:10
8
N
ER
EN
BLOCK TRANSFER WRITE
Rack
Group
Slot
Control
001
0
0
N17:0
DN
Data File
Length
Continuous
N18:0
4
N
ER
N17:10
15
S:1
15
Rung 2:0
The ID2 module is located in rack 1, I/O group 0, slot 0. The integer control file starts at N17:0. The data sent by the
PLC-5 processor to the ID2 module starts at N18:0 and is 4 words long. At power up in RUN mode, or when the
processor is first switched from PROG to RUN, the user program enables a block transfer write to configure the module..
Rung 2:1
The ID2 module is located in rack 1, group 2, slot 0. The integer control file starts at N17:10,. The data obtained by the
PLC-5 processor from the ID2 module is placed in memory starting at N18:10 and is 8 words long. lThe program
continuously performs read block transfers to read data from the module.
ID2 BTR
Enable Bit
ID2 BTR
Control File
First scan of
ladder or SFC
ID2 BTW
Control File
PLC-5 Processor
Program Example
BTW
Module Type
Generic BT
Module Type
Generic BT
The SLC-5 programs (using the 1747-SN scanner) follow the same
logic as the PLC-5 family programs in the previous example.
Differences occur in the implementation of block transfers due to the
use of “M” files in the SLC system.
Configuration data for the FLEX I/O incremental encoder module
and the 1747-SN scanner must be in place before executing the
following programs. Chapter 4 contains information on module
configuration.
For more information on using the 1747-SN scanner module and
block transfer programming, refer to publication 1747-6.6, “Remote
I/O Scanner User Manual.”
More
SLC-5 Programming
Summary of Contents for FLEX I/O 1794-ID2
Page 6: ...Using This Manual P 4 Publication 1794 6 5 15 December 1998 ...
Page 10: ...Table of Contents iv Publication 1794 6 5 15 December 1998 ...
Page 20: ...1 10 Overview of the Incremental Encoder Module Publication 1794 6 5 15 December 1998 ...
Page 74: ...7 4 Calibrating Your Incremental Encoder Module Publication 1794 6 5 15 December 1998 ...