Beruflich Dokumente
Kultur Dokumente
Remote I/O
Scanner
User
(Cat. No. 1747SN)
Manual
Important User Because of the variety of uses for the products described in this
Information 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.
Preface
Read this preface to familiarize yourself with the rest of the manual.
This preface covers the following topics:
• who should use this manual
• the purpose of this manual
• conventions used in this manual
• Allen-Bradley support
Who Should Use this Use this manual if you are responsible for designing, installing,
Manual programming, or troubleshooting control systems that use
Allen-Bradley small logic controllers.
Purpose of this Manual This manual is a reference guide for the Remote I/O (RIO) scanner.
It describes the procedures you use to install, configure, and operate
the 1747-SN RIO Scanner (Series B or later).
Related Documentation
Document
For Read This Document
Number
An overview of the SLC 500 family of products SLC 500 System Overview 17472.30
A description on how to install and use your Modular SLC 500 Installation & Operation Manual for Modular
17476.2
programmable controller Hardware Style Programmable Controllers
A procedural manual for technical personnel who use APS to Rockwell Software Advanced Programming
9399APSUM
develop control applications Software (APS) User Manual
A reference manual that contains status file data and instruction set
SLC 500t and MicroLogix 1000t Instruction Set
information for the SLC 500 processors and MicroLogix 1000 17476.15
Reference Manual
controllers.
An introduction to APS for firsttime users, containing basic
concepts but focusing on simple tasks and exercises, and allowing APS Quick Start for New Users 9399APSQS
the reader to begin programming in the shortest time possible
SLC 500 Software Programmer's Quick Reference
A training and quick reference guide to APS Guideavailable on PASSPORT at a list price of ABT1747TSG001
$50.00
SLC 500 Common Procedures Guideavailable on
A guide of common procedures used in APS. ABT1747TSJ50
PASSPORT at a list price of $50.00
A procedural and reference manual for technical personnel who
AllenBradley HandHeld Terminal User Manual 1747NP002
use an HHT to develop control applications
An introduction to HHT for firsttime users, containing basic
concepts but focusing on simple tasks and exercises, and allowing Getting Started Guide for HHT 1747NM009
the reader to begin programming in the shortest time possible
Published by the
National Fire
An article on wire sizes and types for grounding electrical
National Electrical Code Protection
equipment
Association of
Boston, MA.
A complete listing of current AllenBradley documentation,
including ordering instructions. Also indicates whether the AllenBradley Publication Index SD499
documents are available on CDROM or in multilanguages.
A glossary of industrial automation terms and abbreviations AllenBradley Industrial Automation Glossary AG7.1
Common Techniques Used in The following conventions are used throughout this manual:
this Manual • Bulleted lists such as this one provide information, not procedural
steps.
• Numbered lists provide sequential steps or hierarchical
information.
• Italic type is used for emphasis.
• Text in this font indicates words or phrases you should type.
• Key names match the names shown and appear in bold, capital
letters within brackets (for example, [ENTER]).
• A function key icon matches the name of the function key you
OFFLINE
CONFIG
SAVE &
should press, such as EXIT .
CONFIG
F8
If you have any suggestions for how this manual could be made
more useful to you, please contact us at the address below:
Summary of Changes
New Information The table below lists sections that document new features and
additional information about existing features, and shows where to
find this new information.
Summary of Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
New Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-1
Who Should Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . P-1
Purpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-1
Contents of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-2
Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-2
Common Techniques Used in this Manual . . . . . . . . . . . . . . . . . . P-3
AllenBradley Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-4
Local Product Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-4
Technical Product Assistance . . . . . . . . . . . . . . . . . . . . . . . . . P-4
Your Questions or Comments on this Manual . . . . . . . . . . . . . . P-4
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
System Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Scanner I/O Image Division . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
How the Scanner Scans Remote I/O . . . . . . . . . . . . . . . . . . . . . . 1-4
SLC and Scanner Asynchronous Operation . . . . . . . . . . . . . . . 1-5
How the Scanner Interacts with Adapters . . . . . . . . . . . . . . . . . . . 1-6
Scanner I/O Image Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
Example Scanner I/O Image . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
Transferring Data with RIO Discrete and Block Transfers . . . . . . 1-9
Physical and Logical RIO Link Specifications . . . . . . . . . . . . . . 1-9
Extended Node Capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
Complementary I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
Guidelines for Configuring Complementary I/O . . . . . . . . . . . . . 1-11
Complementary I/O: Placing Modules with 2Slot Addressing . . 1-12
Complementary I/O: Placing Modules with 1Slot Addressing . . 1-13
Complementary I/O: Placing Modules with 1/2Slot Addressing . 1-14
Summary for Placing Modules Used In Complementary I/O . . . . 1-15
Discrete Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
Block Transfer Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
Complementary I/O Application Considerations . . . . . . . . . . . . . 1-17
Complementary 1771 I/O Module Details . . . . . . . . . . . . . . . . . 1-17
Hardware Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
Baud Rate DIP Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
RIO Link Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
Compatible Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-20
ii Table of Contents
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Retry Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Block Transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
Scanner Operating Specifications . . . . . . . . . . . . . . . . . . . . . . . . A-1
Network Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
Throughput Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2
RIO Network Throughput Components . . . . . . . . . . . . . . . . . . . A-2
Calculating Throughput . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-3
Discrete I/O Throughput without Block Transfers
(Tdm-nbt) Present . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-3
RIO Scan Time Calculation (TRIO) . . . . . . . . . . . . . . . . . . . . . A-4
Example Discrete I/O Throughput without Block Transfers
Present . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4
Discrete I/O Throughput with Block Transfers (Tdm-bt) Present . A-6
Table of Contents v
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G-1
Chapter 1
Overview
System Overview The Remote I/O (RIO) scanner, Catalog Number 1747-SN, is the
remote I/O scanner for the SLC 500. It enables communication
between an SLC processor (SLC 5/02t or later) and remotely
located (3,048 meters [10,000 feet] maximum) 1746 I/O chassis and
other RIO compatible Allen-Bradley operator interface and control
devices. The 1747-SN scanner communicates with remotely located
devices using the A-B Remote I/O link. The RIO link consists of a
single master (scanner) and multiple slaves (adapters).
Communication between devices occurs over twisted pair cable with
the devices daisy-chained together. The scanner can reside in any
slot of the local SLC chassis except for slot 0.
The SLC processor transfers the scanner’s 4 logical racks (32 input
image and 32 output image words) of discrete remote I/O image data
into the SLC input and output image files. You can adjust the size of
the scanner input and output image file during configuration of your
SLC system so that the scanner only transfers the discrete I/O data
your application program requires. Configuration is done through
the confiGuration file (G file). Refer to chapter 4, Configuration and
Programming for more information.
The scanner allows each adapter to use a fixed amount (user defined)
of the scanner’s input and output image. Part of the SLC processor’s
image is used by local I/O, the other portion is used by the scanner
for remote I/O.
The scanner remote I/O image is divided into logical racks and
further divided into logical groups. A full logical rack consists of
eight input and eight output image words. A logical group consists
of one input and one output word in a logical rack. Each logical
group is assigned a number from 0–7.
Local I/O
Logical Rack 0
Logical Rack 1
Remote I/O
(Scanner Image)
Logical Group 0
Logical Rack 2
Logical Group 7
Processor I/O Image Scanner I/O Image Adapter
Image
The scanner image contains the image of each adapter on the RIO
link. The adapter is assigned a portion of the scanner image, which
is referred to as the adapter image.
How the Scanner Scans The scanner communicates with each logical device in a sequential
Remote I/O fashion. First, the scanner initiates communication with a device by
sending output data to the device. The device then responds by
sending its input data back to the scanner, as illustrated below. You
refer to this exchange as a discrete I/O transfer. After the scanner
completes its discrete I/O transfer with the last configured network
device, it begins another discrete I/O transfer with the first device.
Scanner
The scanner updates its Input Output Input
input image file each time Image File Device 3 Device 1
it scans a logical device.
Input Output
Device 3 Device 1
Output Input
Device 2 Device 2
Scanner Output
Image File
The SLC processor scan and RIO scanner scan are independent
(asynchronous) of each other. The SLC processor reads the scanner
input image file during its input scan and writes the output image file
to the scanner during its output scan. The RIO scanner continues
reading inputs and writing outputs to the scanner I/O image file,
independent of the SLC processor scan cycle.
Scanner Output
SLC Output Image File
SLC Processor Image File
Important: The outputs of the RIO are updated after the end of the first SLC processor scan.
How the Scanner Interacts The scanner’s function is to continuously scan the adapters on the
with Adapters RIO link in a consecutive manner. This scan consists of one or more
RIO discrete transfers to each adapter on the RIO link.
Processor Scanner
RIO Discrete
Transfers
with Adapter 1
SLC Local Chassis
RIO Discrete
Transfers
with Adapter 2
PanelView Operator
Terminal
RIO Discrete
Transfers
with Adapter 3
RIO Discrete
Transfers
with Adapter 4
RediPANEL
Scanner I/O Image The scanner’s I/O image consists of RIO logical racks and I/O
Concepts groups. A full RIO logical rack consists of eight input image and
eight output image words. (A word consists of 16 bits of data.) Each
word within an RIO logical rack is assigned an I/O group number
from 0 to 7.
You assign devices on the RIO link a portion of the scanner’s image.
Devices can occupy a quarter logical rack (2 input and output
words), half logical rack (4 I/O words), three quarter logical rack (6
I/O words), or full logical rack. You may configure devices to start
at any even I/O group number within an RIO logical rack. More
than one physical device’s (adapter) I/O information can reside in a
single logical rack. Also, by crossing logical rack boundaries a
device can consist of more than one logical rack.
SLC 5/02
or Later
Processor
RIO
Scanner
Important: The illustration below shows only the scanner's input image. The output image looks the same.
Input File
Bit Number 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Address
Rack 0 Group 0 Word 0 I:e.0
Rack 0 Group 1 Word 1 I:e.1
Rack 0 Group 2 Word 2 I:e.2
RIO Rack 0 Group 3 Word 3 I:e.3 Device 1
Rack 0 Group 4 Word 4 I:e.4
Logical Rack 0 Group 5 Word 5 I:e.5
Rack 0 Rack 0 Group 6 Word 6 I:e.6
Rack 0 Group 7 Word 7 I:e.7
Rack 1 Group 0 Word 8 I:e.8
Rack 1 Group 1 Word 9 I:e.9
RIO Rack 1 Group 2 Word 10 I:e.10 Device 2
Rack 1 Group 3 Word 11 I:e.11
Logical Rack 1 Group 4 Word 12 I:e.12
Rack 1 Rack 1 Group 5 Word 13 I:e.13
Rack 1 Group 6 Word 14 I:e.14 Not Used
Rack 1 Group 7 Word 15 I:e.15
Rack 2 Group 0 Word 16 I:e.16
Rack 2 Group 1 Word 17 I:e.17 Device 3
RIO Rack 2 Group 2 Word 18 I:e.18
I:e.19
Logical
Rack 2 Group 3 Word 19
Rack 2 Group 4 Word 20 I:e.20 Device 4
Rack 2 Rack 2 Group 5 Word 21 I:e.21
Rack 2 Group 6 Word 22 I:e.22
Rack 2 Group 7 Word 23 I:e.23
Rack 3 Group 0 Word 24 I:e.24
Rack 3 Group 1 Word 25 I:e.25
RIO Rack 3 Group 2 Word 26 I:e.26
Not Used
I:e.27
Logical
Rack 3 Group 3 Word 27
Rack 3 Group 4 Word 28 I:e.28
Rack 3 Rack 3 Group 5 Word 29 I:e.29
Rack 3 Group 6 Word 30 I:e.30
Rack 3 Group 7 Word 31 I:e.31
Bit Number (octal) 178 168 158 148 138 128 118 108 78 68 58 48 38 28 18 08
Input and output image data and command information are quickly
exchanged between a scanner and adapter using RIO discrete
transfers. RIO discrete transfers are the simplest and fastest way a
scanner and adapter communicate with each other. RIO discrete
transfers, which are transparent to the user, consist of the scanner
sending the output image data to the adapter, and the adapter
transmitting input data to the scanner. Each RIO discrete transfer
also contains scanner commands for the adapter.
Complementary I/O
Example 1
I
I I O O I O O O BT 8 BT O
8 8 8 8 16 16 8 8 O 8
8
1 1
0 1 2 3 4 5
E E E E E
O O I I M M O O M O M M
8 8 8 8 P P 8 8 P 8 P P
T T T T T
Y Y Y Y Y
1 1 2 2 2 2
Example 2
I O I O I O I O I O I O
16 16 16 16 16 16 16 16 16 16 16 16
0 1 2 3 4 5
Outputs in the complementary chassis would use the same bits in the
output image table as the outputs in the primary chassis. You cannot
place inputs in the complementary chassis.
1 = Output modules use the same output image table bits. This is not recommended.
2 = Must be empty if corresponding primary slot is a block transfer module.
Important: With 2slot addressing, if an input module resides in either slot, associated with a
logical group, of the primary chassis, an input module cannot reside in that logical group's
complementary chassis.
Example 1
I I O O I O O BT I O O I
16 16 16 16 16 16 16 16 16 16 16
1
0 1 2 3 4 5 6 7 0 1 2 3
E
M
O O I I O I O P O I I O
16 16 16 16 16 16 16 T 16 16 16 16
Y
1 2
Example 2
I I I I I I I I I I I I
16 16 16 16 16 16 16 16 16 16 16 16
0 1 2 3 4 5 6 7 0 1 2 3
O O O O O O O O O O O O
16 16 16 16 16 16 16 16 16 16 16 16
Example 1
I I O O I O O BT O I
01 23 45 67 01 23 45 67 01 23
E
M
O O I I O I O P I O
T
Y
1 2
Example 2
I I I I I I I I I I
01 23 45 67 01 23 45 67 01 23
O O O O O O O O O O
I = Input Module (8, 16, or 32point) O = Output Module (8, 16, or 32point)
BT = Block Transfer Module
1 = Output modules use the same output image table bits. This is not recommended.
2 = Must be empty if corresponding primary slot is block transfer.
Discrete Modules
Addressing Method Types of Modules used Placement
Install input modules
opposite output modules,
2slot 8point
and output modules
opposite input modules.➀
1slot 8point, 16point
1/2slot 8point, 16point, 32point
➀ If an input module resides in either slot, associated with a logical group, of the primary chassis, an
input module cannot reside in that logical group's complementary chassis.
I O I O I O I O O I O I O I O I
I = Input Module
O = Output Module
Slot 0 1 2 3 4 5 6 7 8 Slot 0 1 2 3 4 5 6 7 8
ÉÉÉÉ
ÉÉÉ
ÉÉÉ 1/2 logical rack
ÉÉÉÉ
É
ÉÉÉÉ
ËËËË ÉÉ
ÉÉÉ
ËËËË
1/2 logical rack
ÉÉÉÉ
ÉÉÉ ÉÉÉÉ
ÉÉÉÉ
Word 0 Word 0
Word 1
configured and Word 1 configured and usable
ÉÉÉÉ
ÉÉÉ ËËË
ËËËË
ËËËË
Word 2 Word 2
Logical Word 3 usable Logical Word 3 1/2 logical rack
Rack 0 Word 4
Rack 8
Word 4
configured, but not
1/2 logical rack not
ËËË
ËËËË
ËËËË
Word 5 Word 5
Word 6 Word 6 usable for BT since
Word 7 configured Word 7 Words 4-7 are not
configured for the
primary device.
Hardware Features Below are the scanner’s features. You can find LED information in
chapter 6, Troubleshooting.
SCANNER
1
SERIAL NO.
CAT
COMM FAULT
FAC
O 1 2
N
L
CLASS I, GROUPS A, B, C AND D, DIV.2
U
√ 1 2 KBAUD
SA
CODE T3C
TEMPERATURE
OPERATING
FRN.:
HOST
CONNECT ONE END OF
ÎÎ
CABLE SHIELD TO CHASSIS
MOUNTING BOLT. REFER TO
ÎÎ
LINE 1
FRN.:
PLUG
SHIELD
LINE 2
MAKE IN U.S.A.
1747-SN
3
7
N
O
12
4
6 5
The Baud Rate DIP switch selects the RIO link baud rate. The baud
rates are:
• 57.6 Kbaud
• 115.2 Kbaud
• 230.4 Kbaud
Important: For proper system operation, the baud rate of all devices
on the RIO link must be the same.
LEDs
This 3-pin male connector connects the scanner to the RIO link. The
Allen-Bradley repair part number is 1746-RT29.
Compatible Devices
Catalog
Device Comments
Number
1785LT/x➀➁ PLC5/15t (in adapter mode) -
1785LT2➀➁ PLC5/25t (in adapter mode) -
1785LT3➀➁ PLC5/12t (in adapter mode) -
1785L30x➀➁ PLC5/30t (in adapter mode) -
1785L40x➀➁ PLC5/40t (in adapter mode) -
1785L60x➀➁ PLC5/60t (in adapter mode) -
1771ASC Remote I/O Adapter Module -
1771ASB➂➄ Remote I/O Adapter Module -
1Slot I/O Chassis W/Integral
1771AM1➀ -
Power Supply and Adapter
2Slot I/O Chassis W/Integral
1771AM2➀ -
Power Supply and Adapter
Plant Floor Terminal Remote
1784F30D➀ -
I/O Expansion Module
1771RIO Remote I/O Interface Module -
1771JAB➀ Single Point I/O Adapter Module -
1771DCM Direct Communication Module -
1778ASB➀ Remote I/O Adapter Module -
1747DCM➀ Direct Communication Module -
2706xxxx➀➃ DL40 Dataliner -
Requires half logical rack configuration
2705xxx➀ RediPANEL
if you want to use stored messages.
You can address PanelView Terminals as
2711xx➀ PanelView Terminal up to four full logical racks of discrete I/O.
You can also assign partial logical racks.
Remote I/O Adapter for 1336
1336G2➀ -
AC Industrial Drives
Remote I/O Adapter for 1395
1395NA➀ -
DC Industrial Drives
1791xxx Block I/O Products The adapter is built into the block.
SLC 500 Remote I/O Adapter
1747ASB➀ -
Module
Flex I/O 24VDC Remote I/O
1794ASB -
Adapter
➀ Extended node capability
➁ In adapter mode
➂ Series A, B, and C
➃ Must be Catalog Number 2706ExxxxxB1
➄ Extended node capability for Series B and C
This chapter helps you to get started using the RIO Scanner. We
base the procedures here on the assumption that you have a basic
understanding of SLC 500 products.
You must:
• understand electronic process control
• be able to interpret the ladder logic instructions for generating the
electronic signals that control your application
Because it is a start-up guide for experienced users, this chapter does
not contain detailed explanations about the procedures listed. It
does, however, reference other chapters in this book where you can
get more detailed information. It also references other
documentation that may be helpful if you are unfamiliar with
programming techniques or system installation requirements.
If you have any questions, or are unfamiliar with the terms used or
concepts presented in the procedural steps, always read the
referenced chapters and other recommended documentation before
trying to apply the information.
This chapter:
• tells you what tools and equipment you need
• lists preliminary considerations
• describes when to address, configure and program the module
• explains how to install and wire the module
• discusses system power-up procedures
Required Tools and Have the following tools and equipment ready:
Equipment • medium blade screwdriver
• programming equipment (All programming examples shown in
this manual demonstrate the use of Allen-Bradley’s Advanced
Programming Software [APS] for personal computers.)
• termination kit (package of resistors and ring lug included with
the scanner)
• approximately 15 inches of #20 AWG for grounding the drain
shield to the SLC chassis (for Series A retrofits)
• an adequate length of RIO communication cable (Belden 9463)
for your specific application
Procedures
Review the power requirements of your system to see that your chassis supports placement of the Chapter 3
scanner module. The scanner consumes 600 mA @ 5VDC. (Installation and
Wiring)
For modular style systems, calculate the total load on the system power supply using the procedure
described in the SLC 500t Modular Hardware Style Installation & Operation Manual, Publication Appendix A
17476.2, or the SLC 500t Family System Overview, Publication 17472.30. (Specifications)
Set the DIP switches (located on the printed circuit board) to the desired baud rate. Note that all RIO Chapter 3
(Installation and
devices must be configured for the same baud rate. Wiring)
Baud Rate DIP Switch Position
Switch 1 Switch 2
57.6K baud on on
115.2K baud on off
230.4K baud off on
230.4K baud off off
(Chapter 3)
ATTENTION: Never install, remove, or wire (Installation and
Wiring)
! modules with power applied to the chassis or
devices wired to the module.
Make sure system power is off; then insert the scanner module into your 1746 chassis.
In this example procedure, local slot 1 is selected.
Card
Guide
Chapter 4
Set up your system I/O configuration for the particular slot in which you installed the scanner (slot 1 in
(Configuration and
this example). If using APS software, select the 1747 scanner from the list of modules. If it is not Programming)
listed in your software version, select Other and enter the scanner input module ID code (13608)
at the prompt on the I/O configuration display.
(Additional information about how to use AllenBradley's Advanced Programming Software [APS] to your
configure your system can be found in the APS User Manual, Publication 9399APSUM.) programming
software's user
Example of Software Prompt:
manual
Enter the number of Scanned Input and Output Words using the Specialty I/O and Advanced Setup Chapter 4
(Configuration and
menus. The default value is 32 I/O words. You can specify less than 32 and reduce the processor Programming)
scan time by transferring only the part of the input and output image that your application requires. It
is important that you do not set either of these values to 0. If you do, the scanner will not work
correctly.
your
(Additional information about how to use AllenBradley's Advanced Programming Software [APS] to programming
software's user
configure your system can be found in the APS User Manual, Publication 9399APSUM.) manual
Chapter 4
Using the Specialty I/O Configuration menu, set the M1 and M0 file sizes to 32 words (48 words if (Configuration and
using complementary I/O). (32 words is the minimum required for operation.) If you do not set the Programming)
M1 and M0 file sizes to at least 32 words the programming device will not allow you to access the M
files in the SLC control program. Chapter 5
(Block Transfer
Ladder
Set the G file size to 3 (5 if using complementary I/O) using the Specialty I/O Configuration menu. Programming
Do the programming necessary to configure the M0 and M1 Block Transfer Buffers. If you are using Examples)
the block transfer (BT) function, you should set the M1 and M0 file sizes to 3,300. Ensure that you
refer to chapter 5 before completing this selection. Chapter 7
(Application
Examples)
Write the remainder of the SLC control program that specifies how your scanner will transfer data
to/from the SLC processor and RIO devices. (Complete information about how to do ladder your
programming using the APS software can be found in the APS User Manual, Publication programming
9399APSUM.) software's user
manual
1. Apply power.
2. Download your program to the SLC.
Chapter 3
3. Place the SLC in Run mode. (Installation and
Wiring)
The scanner's FAULT LED is off and the COMM LED is green, as shown below. (This is the valid
LED pattern when in Run mode or after a Run mode to Program mode transition.) I
SCANNER
COMM FAULT
Compliance to European If this product has the CE mark it is approved for installation within
Union Directives the European Union and EEA regions. It has been designed and
tested to meet the following directives.
EMC Directive
Baud Rate Selection Below are supported baud rates and switch positions:
The figure below shows the location of the DIP switches on the
scanner. Also, the DIP switch settings are shown for each baud rate.
Important: For proper RIO link system operation, all devices must
be configured for the same baud rate.
Baud Rate
DIP Switch
➀
N
N
O
O
12
12
N
O
O
12
12
➀
This is the default position as shipped from the factory.
Scanner Installation Installation procedures for this module are the same as for any other
discrete I/O or specialty module. Refer to the illustration on page
3–4 to identify chassis and module components listed in the
procedures below.
Insertion
1. Disconnect power.
2. Align the full-sized circuit board with the chassis card guides.
The first slot (slot 0) of the first rack is reserved for the SLC 500
processor.
3. Slide the module into the chassis until the top and bottom latches
catch.
4. Attach the RIO link cable to the connector on the front of the
module, behind the door. Ground the cable’s shield wire to a
chassis mounting bracket. Refer to the RIO link wiring
illustration on page 3–4.
5. Insert the cable tie in the slots.
6. Route the cable down and away from module, securing it with the
cable tie.
7. Cover all unused slots with the Card Slot Filler, Catalog Number
1746-N2.
Module Release
Card Guide
..
.
Cable Tie
Removal
1. Disconnect power.
2. Remove all cabling.
3. Press the releases at the top and bottom of the module and slide
the module out of the chassis slot.
4. Cover all unused slots with the Card Slot Filler, Catalog Number
1746-N2.
RIO Link Wiring The scanner is connected to other devices on the RIO link in a daisy
chain (serial) configuration. There are no restrictions governing the
space between each device, provided the maximum cable distance
(Belden 9463) is not exceeded.
Important: To use extended node, all devices on the RIO link must
support it. Refer to each device’s user manual.
Publication 17476.6 - July 1996
Installation and Wiring 3–5
Terminating
Resistor Last Physical
RIO Scanner Device End
RIO Link
Connector RIO Link
Connector Terminating
Resistor
Scanner End
LINE 1 _______
SHIELD _____
LINE 2 _______
Line 1 – Blue
Shield – Shield
Line 2 – Clear
For New Installations - To ensure a proper earth ground of the cable shield, follow these steps:
1. While the RIO link connector is plugged into the scanner and lines 1 and 2 are connected, strip the cable back to expose enough shield drain wire to reach
a chassis mounting bracket.
2. Attach the ring terminal lug (supplied) to the end of the shield drain wire.
3. Attach the ring terminal lug to the SLC chassis mounting bracket. Note that for new installations the middle (shield) terminal is not used when connecting to
the scanner.
Important:
The RIO cable shield must be grounded at the scanner end only.
For Series A Scanner Retrofits - To eliminate the need to strip the cable back, follow these steps:
1. Attach the shield wire and a short piece of #20 AWG wire (dotted line) to the shield lug of the RIO Link Connector.
2. Attach the other end of the #20 AWG wire to the ring terminal lug.
3. Attach the ring terminal lug to a chassis mounting bracket.
Important:
The RIO cable shield must be grounded at the scanner end only.
Ensure that the unshielded portion of the link communication wire (blue and clear) is as short as possible.
Start Up The following steps will assist you in the start up of your RIO
system.
1. Apply power to your SLC processor. If you powered down with
the SLC processor in Program, Test, or Fault mode, you will have
to place your processor in Run mode.
When power is applied to your scanner it requires about three
seconds to complete its power up diagnostics. During this time,
the FAULT and COMM LEDs cycle on and off. After the
diagnostics are complete and the SLC processor is in the Run
mode, the scanner’s LEDs are in the following states:
• The FAULT LED is off.
• The COMM LED is green.
Important: The above states are true only if the scanner is
configured properly and all RIO link devices are
communicating.
2. Make sure you have configured your SLC processor and
downloaded an application program. (Refer to chapter 4.)
3. Make sure power is applied to all devices on the RIO link.
Scanner Operation Below is a description of the scanner’s operation at power up, run
mode, and when changing from run mode to program or test mode.
At Power Up
In Run Mode
SCANNER
COMM FAULT
Status LEDs The scanner has two LEDs that indicate its operating status, FAULT
and COMM. The FAULT LED indicates the scanner’s overall status.
The COMM LED indicates the RIO link communication status.
Understanding Remote The SLC system allows you to assign up to 32 words of input and
Input and Output Image output image data to a scanner. This allows your scanner to access a
Files maximum of 4 full logical racks (512 input and output points) of data
from remote devices.
SN Series B Scanner
(RIO Master)
Scanner Input and Output Images Note that some RIO devices (e.g.,
Output Image 1771) use octal bit numbers.
Input Image
ÉÉÉÉ
ÉÉÉ
ÉÉÉ ÉÉÉÉ
ÉÉÉÉ
ÉÉÉÉ
Bit Number Octal 17 10 7 0 Bit Number Octal 17 10 7 0
Bit Number Decimal 15 8 7 0 Bit Number Decimal 15 87 0
ÉÉÉÉ
ÉÉÉ ÉÉÉÉ
ÉÉÉÉ
Word 0 Word 0
Word 1 Word 1
ÉÉÉÉ
ÉÉÉ ÉÉÉÉ
ÉÉÉÉ
Word 2
Logical Word 3
Logical
Word 2
Word 3
ÉÉÉÉ
ÉÉÉÉ
Word 4
Rack 0 Word 5 Rack 0
Word 4
Word 5
Word 6 Word 6
Word 7 Word 7
Word 8 Word 8
Word 9 Word 9
Word 10 Word 10
Logical
ÇÇÇÇ
ÇÇÇ ÇÇÇÇ
ÇÇÇÇ
Word 11 Logical Word 11
Rack 1 Word 12
Rack 1 Word 12
The scanner
ÇÇÇÇ
ÇÇÇ
ÇÇÇ ÇÇÇÇ
The scanner
ÇÇÇÇ
ÇÇÇÇ
Word 13 Word 13
Word 14
Word 15 accommodates Word 14
accommodates
ÇÇÇÇ
ÇÇÇ ÇÇÇÇ
ÇÇÇÇ
Word 15
Word 16 up to 32 words Word 16 up to 32 words
Word 17
of output for Word 17
of input from
ÇÇÇÇ
ÇÇÇ ÇÇÇÇ
ÇÇÇÇ
Word 18 Word 18
Logical Word 19 remote devices. Logical Word 19 remote devices.
ÇÇÇÇ
ÇÇÇ ÇÇÇÇ
ÇÇÇÇ
Rack 2 Word 20
Word 21 Rack 2 Word 20
Word 21
ÇÇÇÇ
ÇÇÇ Ç
ÇÇÇÇ ÇÇÇ
ÇÇÇÇ
Word 22 Word 22
Word 23 Word 23
Word 24
ÇÇÇÇ
ÇÇÇ ÇÇÇÇ
ÇÇÇÇ
Word 24
Word 25 Word 25
Word 26
Logical Word 26
ÇÇÇÇ
ÇÇÇ ÇÇÇÇ
ÇÇÇÇ
Word 27 Logical Word 27
Rack 3 Word 28
Rack 3 Word 28
ÇÇÇÇ
ÇÇÇ ÇÇÇÇ
ÇÇÇÇ
Word 29 Word 29
Word 30 Word 30
Word 31 Word 31
The illustration below shows how logical racks, logical groups, and
words are allocated within the I/O image files. Note that this
illustration describes the input image file. The scanner’s output
image file is the same, except that its addressing scheme starts with
O:e.0 and ends with 0:e.31.
e = slot number of the SLC chassis containing the scanner
Bit Number (decimal) 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 SLC Input
File Address
Logical Rack 0 Group 0 Word 0 I:e.0
Logical Rack 0 Group 1 Word 1 I:e.1
Bit Number (octal) 178 168 158 148 138 128 118 108 78 68 58 48 38 28 18 08
RIO Configuration Using G When you program your SLC system you use the G file to configure
Files the scanner’s I/O image file. Your scanner’s G file configuration is
based on the devices that you have on the RIO link. G file
configuration consists of setting logical device starting addresses and
the logical device image size of each physical device/adapter with
which the scanner communicates.
ÉÉ ÇÇ ÉÉ
ÇÇ ÉÉ
Starting Logical Group Starting Logical Group Starting Logical Group Starting Logical Group automatically sets the
scanner information.
ÉÉ ÇÇ ÉÉ
ÇÇ ÉÉ
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Primary/Normal Logical Device Address,
Word 1
0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 Specifies the RIO
starting addresses of
primary/normal logical
RIO Rack 3 RIO Rack 2 RIO Rack 1 RIO Rack 0 devices.
ÉÉÉ
ÉÉ
ÉÉ ÇÇ
ÇÇÉÉÉ
ÉÉ
ÉÉ
ÉÉ
ÇÇ ÉÉ
Image Size Image Size Image Size Image Size
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Primary/Normal Logical Image Size,
Word 2 1 1 1 0 0 1 1 0 1 1 1 1 1 0 0 1 Specifies the logical
image size assigned to
primary/normal logical
RIO Logical Rack 11 RIO Logical Rack 10 RIO Logical Rack 9 RIO Logical Rack 8 devices set in Word 1.
Starting Logical Group Starting Logical Group Starting Logical Group Starting Logical Group
ÉÉ ÇÇ ÉÉ
ÇÇ ÉÉ
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Complementary Logical Device Address, 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 Specifies the RIO
Word 3
starting addresses of
complementary logical
devices.
ÉÉÉ
ÉÉ
ÉÉ ÇÇ
ÇÇÉÉÉ
ÉÉ
ÉÉ
ÉÉ
ÇÇ ÉÉ
RIO Rack 11 RIO Rack 10 RIO Rack 9 RIO Rack 8
Image Size Image Size Image Size Image Size
ÉÉÉ
ÉÉ
ÉÉ ÇÇ
ÇÇÉÉÉ
ÉÉ
ÉÉ
ÉÉ
ÇÇ ÉÉ
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Complementary Logical Image Size, 1 1 1 0 0 1 1 0 1 1 1 1 1 0 0 1 Specifies the logical
Word 4
image size assigned to
complementary logical
devices set in Word 3.
Note: A complementary logical rack is always
Quarter Logical Rack Devices
numbered 8 above its primary logical rack. Also, logical Full Logical Rack Device
racks 8, 9, 10, and 11 are sometimes referred to as Half Logical Rack Device
complementary logical racks 0, 1, 2, and 3. Three Quarter Logical Rack Device
General
• The smallest portion of the scanner’s I/O image that can be allocated
to a single RIO device is two logical groups (1/4 logical rack).
• If a device is configured in word 1, there must be image allocated
to it in word 2. This rule also applies to words 3 and 4 with the
following exception: if word 3 = 1 and word 4 = 0, the
complementary mode is selected even though no complementary
devices are configured.
• A logical device’s starting group must begin at even group
numbers
(0, 2, 4, or 6). Each bit in words 2 and 4 represent an even logical
group number.
G File
Bit Number 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
I/O Mix, Word 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0
RIO Logical Rack 3 RIO Logical Rack 2 RIO Logical Rack 1 RIO Logical Rack 0
ÉÉÉ ÇÇ ÉÉ
ÇÇ ÉÉ
Starting Logical Group Starting Logical Group Starting Logical Group Starting Logical Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
ÉÉÉ ÇÇ ÉÉ
ÇÇ ÉÉ
Primary/Normal Logical Device Address,
Word 1 1 0 1 0 0 0 0 1 1 0 0 0 0 0 1 0
ÉÉ
ÉÉ
ÉÉÉ ÇÇ
ÇÇÉÉ
ÉÉ
ÉÉÉ
ÉÉ
ÇÇ ÉÉ
RIO Rack 3 RIO Rack 2 RIO Rack 1 RIO Rack 0
Image Size Image Size Image Size Image Size
ÉÉ
ÉÉ
ÉÉÉ ÇÇ
ÇÇÉÉ
ÉÉ
ÉÉÉ
ÉÉ
ÇÇ ÉÉ
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Primary/Normal Logical Image Size,
Word 2 1 0 1 0 0 1 1 1 1 0 0 0 1 1 1 0
ÉÉ ÇÇ ÉÉ
ÇÇ ÉÉ
RIO Logical Rack 11 RIO Logical Rack 10 RIO Logical Rack 9 RIO Logical Rack 8
Starting Logical Group Starting Logical Group Starting Logical Group Starting Logical Group
ÉÉ ÇÇ ÉÉ
ÇÇ ÉÉ
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Complementary Logical Device Address, 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 0
Word 3
ÉÉ
ÉÉÉ
ÉÉ ÇÇ
ÇÇÉÉ
ÉÉÉ
ÉÉ
ÉÉ
ÇÇ ÉÉ
RIO Rack 11 RIO Rack 10 RIO Rack 9 RIO Rack 8
Image Size Image Size Image Size Image Size
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
ÉÉ
ÉÉÉ
ÉÉ ÇÇ
ÇÇÉÉ
ÉÉÉ
ÉÉ
ÉÉ
ÇÇ ÉÉ
Complementary Logical Image Size, 0 1 1 0 0 0 0 1 1 0 1 1 1 1 1 0
Word 4
Bit Number (octal) 178 168 158 148 138 128 118 108 78 68 58 48 38 28 18 08
= not used
Bit Number (octal) 178 168 158 148 138 128 118 108 78 68 58 48 38 28 18 08
= not used
Considerations When The following sections contain information that you must understand
Configuring Remote I/O before you configure your scanner’s G file.
G File Considerations
Crossing Logical Rack Boundaries - Example 1 Crossing Logical Rack Boundaries - Example 2
Scanner Input or Output Image Scanner Input or Output Image
Bit Number (Decimal) 15 8 7 0 Bit Number (Decimal) 15 8 7 0
Group 0 Group 0
Group 1 Group 1
Group 2 Group 2
Logical Group 3 Logical Group 3
Group 4 Group 4
Rack 0 Group 5 Adapter Rack 0 Group 5
Group 6 Image Group 6
Group 7 Group 7
Group 0 Group 0 Adapter
Group 1 Group 1 Image
Group 2 Group 2
Logical Group 3 Logical Group 3
Rack 1 Group 4
Group 5 Rack 1 Group 4
Group 5
Group 6 Group 6
Group 7 Group 7
Adapter image is 12 logical groups in size and Adapter image is 6 logical groups in size and crosses a logical
crosses a logical rack boundary due to its size. rack boundary due to its starting logical group number.
Rack 1 Group 4
Group 5
Group 6
Group 7
The SLC processor does not automatically update M file data during
the end of the program scan as it does I/O scans. Instead, M file
values act as interrupts and are immediately read from or written to
upon the execution of the ladder logic instruction in which they are
used. When M-file data (bits or words) is addressed in the ladder
program, the processor stops scanning the program to read or write
the M-file data to/from the scanner module. M-file bits/words in the
ladder program will, therefore, impact the ladder scan time. If scan
time is critical, it is better to set binary file bits and copy them all at
once to the M0 file, or copy a portion of the M1 file to a binary file
and then address the binary file in the program. Refer to the ladder
example that follows. For more information on M files, refer to
appendix B. You can find M file information relating to Block
Transfer operations in chapter 5, Block Transfer.
Rung 2:0
To decrease program scan time, copy the first four words of the M1 File
to a binary file and use these addresses throughout the program to access
block transfer done, error, data, etc. information without interrupting
the program scan many times.
| +COP––––––––––––––––+ |
|–––––––––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–| |
| |Source #M1:1.100| |
| |Dest #B3:0| |
| |Length 4| |
| +–––––––––––––––––––+ |
Rung 2:1
Examine B3/13 (B3:0/13), an internal storage bit, to determine when a
block transfer is done. Note that examining multiple individual M–file
bits directly (every scan) can measurably increase processor scan time.
| ”BT DONE” |
| B3 +COP––––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–| |
| 13 |Source #B3:10| |
| |Dest #N10:0| |
| |Length 64| |
| +–––––––––––––––––––+ |
|
Rung 2:2
Examine B3/12 (an internal storage bit) to determine if a BT error
occurred. Buffer the BT status from B3:3 if an error does occur.
| ”BT ERROR” |
| |
| B3 +MOV––––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| 12 |Source B3:3| |
| | 0000000000000000| |
| |Dest N10:64| |
| | 0| |
| +–––––––––––––––––––+ |
Rung 2:3
| |
|–––––––––––––––––––––––––––––––––––––+END+–––––––––––––––––––––––––––––|
| |
You can control the operation of individual devices on the RIO link
with M0 word 8 through M0 word 27 (M0:e.8 through M0:e.27).
Through your application program, you can use the M0 file to:
• Device Inhibit – command the 1747-SN RIO Scanner to stop
scanning an RIO device by using words 8 – 11.
• Device Reset – command an RIO device’s outputs to reset while
the SLC processor is in Run or Test mode by using words 16 –
19.
• Remote Output Reset – command an RIO device’s outputs to
reset upon the SLC processor leaving Run mode (regardless of
the RIO device’s Hold Last State setting), or while in Test mode
by using words 24 – 27.
If you do not modify the Device Reset and Remote Output Reset
words, the device outputs reflect the scanner output image whenever
the SLC processor is in Run mode. If the SLC processor is in
Program, Test, or Fault mode, it instructs the device to reset its
outputs.
Inhibiting a device does not affect the current settings of the Device
Fault Status (words 12 – 15 of the M1 file). Inhibited devices
eventually time out and either return to their last state or reset
(depending on the device’s last state setting).
Default: When the processor enters the Run mode, the scanner
automatically inhibits any device not configured in the G
file (bit set to 1). Attempting to inhibit an unconfigured
device has no effect.
M0 (Control) File
Bit Number (decimal) 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 M0 File
Logical Rack 0 Device Inhibit Word 8 x x x x x x x x x x x x 0 1 1 0 M0:e.8
Logical Rack 1 Device Inhibit Word 9 x x x x x x x x x x x x 0 0 0 0 M0:e.9
Logical Rack 2 Device Inhibit Word 10 x x x x x x x x x x x x 1 0 0 1 M0:e.10
Logical Rack 3 Device Inhibit Word 11 x x x x x x x x x x x x 0 0 0 1 M0:e.11
Default: The SLC processor resets all bits in this field to 0 when it
enters Run or Test mode.
M0 (Control) File
Bit Number (decimal) 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
M0 File
Logical Rack 0 Device Reset Word 16 x x x x x x x x x x x x 0 0 0 1 M0:e.16
Logical Rack 1 Device Reset Word 17 x x x x x x x x x x x x 0 0 0 0 M0:e.17
Logical Rack 2 Device Reset Word 18 x x x x x x x x x x x x 0 0 0 0 M0:e.18
Logical Rack 3 Device Reset Word 19 x x x x x x x x x x x x 0 0 0 0 M0:e.19
Only the device’s logical starting address bit matters. Setting other
bits has no effect. Bits 0 – 3 correspond to I/O group locations
within logical racks 0, 1, 2, and 3.
Default: When the processor enters Run or Test mode, the scanner
sets the starting address bit of each device configured in
the G file to 1.
M0 (Control) File
Bit Number (decimal) 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
M0 File
Logical Rack 0 Remote Output Reset Word 24 x x x x x x x x x x x x 1 0 0 1 M0:e.24
Logical Rack 1 Remote Output Reset Word 25 x x x x x x x x x x x x 0 0 0 1 M0:e.25
Logical Rack 2 Remote Output Reset Word 26 x x x x x x x x x x x x 0 0 1 0 M0:e.26
Logical Rack 3 Remote Output Reset Word 27 x x x x x x x x x x x x 0 0 1 0 M0:e.27
e = slot number of the SLC rack containing the scanner
x = not used/defined
Device Reset and Remote The 1747-SN Scanner Device Reset words (M0:e.16 to M0:e.19) and
Output Reset the Remote Output Reset words (M0:e.24 to M0:e.27) operate in
Considerations conjunction with each RIO device to determine the state of that RIO
device’s outputs. The output control information that the scanner
sends to the RIO device depends on how you configure these bits.
The RIO device acts on the output control information in accordance
with its functionality and configuration. To fully understand how a
specific device responds to the Device Reset and Remote Output
Reset words, you must determine the operation of the RIO device.
To determine RIO device output operation, refer to that device’s user
manual.
To properly use the Device Reset and Remote Output Reset words,
you must consider the output control information sent to the devices
during two SLC processor operating conditions:
• The SLC processor is in any given mode (Run, Program, Test, or
Fault).
• The SLC processor is leaving any mode and entering another.
If you do not modify the Device Reset and Remote Output Reset
words, the device outputs reflect the scanner output image whenever
the SLC processor is in Run mode. If the SLC processor is in
Program, Test, or Fault mode, it instructs the device to reset its
outputs.
If you modify the default settings, the Device Reset and Remote
Output Reset words change. The table on the following page
contains examples of what changes occur. We base the information
in the table on the assumption that the scanner’s slot is always
enabled and the RIO link device is communicating with the scanner.
To determine how the Device Reset and Remote Output Reset words
operate, locate the box where the row and column are headed by the
modes in question. The shaded boxes represent the Device Reset
and Remote Output Reset word operation while in that mode.
Example 2 – Once the SLC processor is in Run mode, the bits in the
Remote Output Reset word have no effect on the RIO link device’s
outputs. Setting the appropriate bits in the Device Reset Word to 1
instructs the RIO link device to reset its outputs.
To this mode
Run Test Program
Power up DR = 0 DR = X
ROR = 1 ROR = X
Default values are set automatically.
Outputs reflect those of the scanner
output image.
Run ROR = X DR = 0 In this instance, the last DR = 0 In this instance, the last
DR = 0 Outputs are unchanged. ROR = 0 state switch setting is ROR = 0 state switch setting is
DR = 1 Outputs are turned OFF. valid. valid.
DR = X DR = X
ROR = 1 These two combinations ROR = 1 These two combinations
From this mode
Outputs reflect those of the scanner Once these outputs are reset, they
output image. remain reset regardless of the DR
and ROR settings.
DR = X
ROR = 1 These two combinations
will reset device outputs.
DR = 1
ROR = X
Program DR = 0 DR = 0 DR = X
ROR = 1 ROR = 1 ROR = X
Default values are set automatically. These default values are set
Outputs reflect those of the scanner automatically. Outputs are reset,
output image. unless ROR is changed to 0 on the
first scan.
DR = Device Reset
ROR=Remote Output Reset
X = setting does not matter
M1 Status File Description M1 file words 0 through 47 contain the status of all devices on the
scanner’s RIO link. M1 is a read only file; do not write to this file.
Word 0, bit 0 – is the Enabled Device Fault status bit. When any
enabled device is faulted, this bit is set to 1. A fault may be caused
by a communication problem with a remote device.
Enabled Device
Fault Bit
Until this bit is set, all devices in M1 file word 10 (active device
status) appear to be inactive. This bit can be used to condition the
Enabled Device Fault bit. If the Communications Attempted bit is 1,
the Enabled Device Fault bit is valid.
Baud Rate
G File - Word 1
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Primary Logical Device Address, Word 1 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1
RIO Logical Rack 3 RIO Logical Rack 2 RIO Logical Rack 1 RIO Logical Rack 0 RIO Logical Rack 0
Starting Group 2 Starting Group 2 Starting Group 0 Starting Group 6 Starting Group 0
G File - Word 3
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Complementary Logical Device Address,
Word 3 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1
RIO Logical Rack 11 RIO Logical Rack 10 RIO Logical Rack 9 RIO Logical Rack 8 RIO Logical Rack 8
Starting Group 2 Starting Group 2 Starting Group 0 Starting Group 6 Starting Group 0
G File - Word 2
RIO Rack 3 RIO Rack 2 RIO Rack 1 RIO Rack 0
Image Size Image Size Image Size Image Size
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Primary Logical Device Image Size, Word 2 1 1 1 0 0 1 1 0 1 1 1 1 1 0 0 1
G File - Word 4
RIO Rack 11 RIO Rack 10 RIO Rack 9 RIO Rack 8
Image Size Image Size Image Size Image Size
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Complementary Logical Device Image Size, Word 4 1 1 1 0 0 1 1 0 1 1 1 1 1 0 0 1
ÉÉ
ÉÉÉ
ÉÉ
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0 M1 File
ÉÉ ÉÉ
ÉÉÉ
Primary Device Address, Word 8 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 M1:e.8
1 1 1 0 0 1 1 0 1 1 1 1 1 0 0 1
ÉÉ
Primary Device Size, Word 9 M1:e.9
Primary Active Device Status, Word 10 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 1 M1:e.10
ÉÉ
ÉÉ
ÉÉ
Logical Rack 1 Device Fault Status Word 13 x x x x x x x x x x x x 0 0 0 0 M1:e.13
ÉÉ
ÉÉ
ÉÉ
Logical Rack 2 Device Fault Status Word 14 x x x x x x x x x x x x 0 0 0 0 M1:e.14
Logical Rack 3 Device Fault Status Word 15 x x x x x x x x x x x x 1 1 1 0 M1:e.15
ÉÉ
ÉÉÉ
ÉÉ
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0 M1 File
ÉÉ ÉÉ
ÉÉÉ
Complementary Device Address, Word 3 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 M1:e.3
Complementary Device Size, Word 4 1 1 1 0 0 1 1 0 1 1 1 1 1 0 0 1 M1:e.4
Complementary Active Device Status, Word 5 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 1 M1:e.5
ÉÉÉ
ÉÉ
ÉÉ
Logical Rack 9 Device Fault Status Word 13 x x x x x x x x 0 0 0 0 x x x x M1:e.13
Logical Rack 10 Device Fault Status Word 14 x x x x x x x x 0 0 0 0 x x x x M1:e.14
Logical Rack11 Device Fault Status Word 15 x x x x x x x x 1 1 1 0 x x x x M1:e.15
G File RIO Logical Rack 3 RIO Logical Rack 2 RIO Logical Rack 1 RIO Logical Rack 0
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
G File RIO Logical Rack 11 RIO Logical Rack 10 RIO Logical Rack 9 RIO Logical Rack 8
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
RIO Communication Retry M1 File Status Words 16 through 47 – indicate how many RIO
Counter (M1:e.16 47) communication retries the scanner makes to each adapter on the RIO
link if communication problems occur. Each word (16–47) contains
a retry counter for each configured quarter logical rack (words 16–31
are for primary logical racks, 0–3, and 32–47 are for complementary
racks, 8–11). Retry counters are useful for troubleshooting
communication problems (such as electrical noise or poor
communication line connections) between the scanner and any
adapters. The scanner clears the retry counters when going from
Program to Run mode, Test to Run mode, and when going from
Program to Test mode. Note that the display (in words M1:e.16 –31)
of retry counters corresponds to the bits set in the Primary Logical
Device Address – Word 1 of the G file. Likewise, the display (in
words M1:e.32–47) correspond to the bits set in the Complementary
Logical Device Address – Word 3 of the G file.
ÉÉÉ ÇÇ ÉÉ
ÇÇ ÉÉ
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Primary Logical Device Address, Word 1 1 0 0 1 0 0 1 0 0 0 0 1 0 1 0 1 Specifies RIO
addresses for
primary logical
devices.
G File - Complementary
Bit Number 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ÉÉÉ ÇÇ ÉÉ
ÇÇ ÉÉ
RIO Logical Rack 11 RIO Logical Rack 10 RIO Logical Rack 9 RIO Logical Rack 8
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
ÉÉÉ ÇÇ ÉÉ
ÇÇ ÉÉ
Complementary Logical Device Address, 0 0 1 1 0 0 0 1 0 0 0 1 0 0 0 1 Specifies RIO
Word 3 addresses for
complementary
devices.
Note that slot addressing (e.g., 1/2-, 1-, and 2-slot) may not apply to
all types of RIO devices. Refer to each RIO device’s user manual to
determine the type of slot addressing required.
RIO Block Transfer Theory This section provides a conceptual overview of block transfer as it
of Operation pertains to SLCs, RIO scanners, and remote devices. For specific
functionality details, refer to the RIO Block Transfer General
Functional Overview section on page 5–5.
ÉÉÉÉÉÉÉ operation.
SLC
Processor ➀ ÉÉÉÉÉÉÉ
ÉÉÉÉÉÉÉ
M
Files
RIO
Scanner Block Transfer Write (BTW) data travels from the SLC processor
ÉÉÉÉÉÉÉ
across the chassis backplane via the scanner's M files. The scanner
M Files then sends the data across the RIO link to the adapter or intelligent I/O
ÉÉÉÉÉÉÉ
Image
Block Transfer Read (BTR) data travels from the adapter or intelligent
I/O module over the RIO link to the scanner. The chassis backplane
then transfers BTR data via the scanner's M files to the SLC
processor. The SLC control program processes the data once the
RIO Link SLC receives it from the scanner.
= path of a Block Transfer (BT)
➀ SLC 5/02 processor or above
Adapter or
Intelligent
I/O Module
ÉÉÉÉ
ÉÉÉÉ
ÉÉÉÉ
Input Image Output Image
ÉÉÉÉÉÉ ÉÉÉÉ
ÉÉÉÉ
Chassis Backplane Group 0
Group 1
Word 0
Word 1
ÉÉÉÉÉÉ ÉÉÉÉ
ÉÉÉÉ
Group 2 Word 2
Logical Group 3 Word 3
Group 4 Word 4
Rack 0
ÉÉÉÉÉÉ
SLC 1747 RIO Group 5 Word 5
Processor ➀ M0 file Scanner Group 6 Word 6
ÉÉÉÉÉÉ
Group 7 Word 7
M
Group 0 Word 8
ÉÉÉÉÉÉ ÇÇÇÇ
ÇÇÇÇ
M1 file Files Group 1 Word 9
I/O
ÇÇÇÇ
ÇÇÇÇ
Group 7 Word 23
ÉÉÉÉÉÉ
Image Group 0 Word 24
Group 1 Word 25
ÇÇÇÇ
ÇÇÇÇ
Group 2 Word 26
Logical Group 3 Word 27
ÇÇÇÇ
ÇÇÇÇ
Rack 3 Group 4
Group 5
Word 28
Word 29
ÇÇÇÇ
ÇÇÇÇ
Group 6 Word 30
RIO Link Group 7 Word 31
The M0 file contains BTR control information which controls (initiates) the scanner BTR operation. (Refer to the Block Transfer
Buffer Layout section for details on control information.)
The SLC control program initiates a block transfer read by commanding the scanner to perform the read operation.
The adapter/intelligent I/O module sends BTR data across the RIO link to the RIO scanner.
The scanner writes the BTR data to a unique M1 file location that you specify. Also, one byte of the scanner's I/O image file is
used for handshake" purposes between the scanner and the adapter/intelligent I/O module. Note that the SLC control
program must never read or write to this handshake" image space.
Using the M1 file and a COP instruction in the control program the scanner transfers the BTR data to the SLC processor via the chassis
backplane. The M1 file also contains BTR status information. (Refer to the Block Transfer Buffer Layout section for details on status
information.)
The SLC control program processes the BTR information.
ÉÉÉÉÉÉ ÉÉÉ
ÉÉÉÉ
ÉÉÉÉ
Input Image Output Image
ÉÉÉ
ÉÉÉÉ
Chassis Backplane Group 0 Word 0
Group 1 Word 1
ÉÉÉÉÉÉ ÉÉÉ
ÉÉÉÉ
Group 2 Word 2
Logical Group 3 Word 3
SLC
ÉÉÉÉÉÉ ÉÉÉ
ÉÉÉÉ
Group 4 Word 4
1747 RIO Rack 0
Processor ➀
M0 file
Group 5 Word 5
Scanner
ÉÉÉÉÉÉ
Group 6 Word 6
M
Group 7
Group 0
Word 7
Word 8
ÉÉÉÉÉÉ
Files Group 1 Word 9
M1 file I/O
ÉÉÉÉÉÉ ÇÇÇ
ÇÇÇÇ
Image Group 7 Word 23
Group 0 Word 24
ÇÇÇ
ÇÇÇÇ
Group 1 Word 25
Group 2 Word 26
Logical
ÇÇÇ
ÇÇÇÇ
Group 3 Word 27
Rack 3 Group 4 Word 28
Group 5 Word 29
ÇÇÇ
ÇÇÇÇ
Group
Word6 30
RIO Link Group 7 Word 31
The user's control program executes a MOV or COP instruction to the M0 file to initiate a BTW. The SLC processor sends BTW
data (via the chassis backplane) to the scanner's M0 block transfer control and write data file. (Refer to the Block Transfer Buffer
Layout section for details on control information.)
The scanner reads the BTW data and control data from the M0 file. One byte of the scanner's I/O image file is used for
handshake purposes. Note that the SLC user program must never read or write to this image space.
The M1 file contains BTW status information. (Refer to the Block Transfer Buffer Layout section for details on status information.)
The RIO scanner transfers BTW information across the RIO link to the adapter.
The adapter transfers the BTW information to the appropriate adapter or intelligent I/O module.
RIO Block Transfer The RIO scanner performs block transfers through control/status
General Functional buffers that you allocate in the scanner’s M0 and M1 files. For
Overview BTWs, the M0 BT buffer contains BTW control data and BTW data,
while a corresponding M1 BT buffer contains only BTW status
information. For BTRs, the M0 BT buffer contains only BTR
control data, while a corresponding M1 BT buffer contains BTR
status information and BTR data. Block transfers occur
asynchronous to RIO link discrete transfers. Note that block
transfers occur as RIO scan time allows – discrete I/O transfers have
first priority.
M0 Control Buffers 1 . . . 32
M0:e.100 M0:e.3200
M1 Status Buffers 1 . . . 32 All block transfer buffers (M0 and M1) are cleared
(set to zero) either when the RIO scanner goes
M1:e.100 M1:e.3200 through a power cycle or when the SLC processor
commands the scanner to change mode from
Program to Test mode, Program to Run mode, or
4 words for 4 words for
Words Words Test to Run mode.
status and 6 status and 6
100...109 reserved 3200...3209 reserved
Block transfer operations (BTR and BTW) consume only one byte of
the RIO scanner’s I/O image file, independent of what type of I/O
slot addressing is used. This one byte image is reserved for
communication “handshake” purposes between the remote device
(adapter or intelligent I/O module) and the scanner. SLC control
programs must never read/write to these image locations because
unpredictable operations may result.
Example 1
ÉÉÉÉ
ÉÉÉÉ
BTW) consumes one byte from the
scanner's input and output image file.
ÉÉÉÉ
ÉÉÉÉ
Input Image Output Image
Group 0 Word 0 The one byte can come from either the
ÉÉÉÉ
ÉÉÉÉ
Group 1 Word 1 low" byte (Logical Slot 0) or the high"
Group 2 Word 2 byte (Logical Slot 1). Logical Slot 1 only
ÉÉÉÉ
ÉÉÉÉ
Logical Group 3 Word 3
Rack 0 Group 4 Word 4 applies for 2 slot addressing.
Group 5 Word 5
Group 6 Word 6
Group 7
Group 0
Word 7
Word 8
In this example there are two block transfer
Group 1 Word 9 operations mapped to the scanner' s I/O
ÇÇÇÇ
ÇÇÇÇ
Group 7 Word 23
image. One BT operation is mapped to
Logical Rack 0, Logical Group 4, Logical
ÇÇÇÇ
ÇÇÇÇ
Group 0 Word 24
Group 1 Word 25 Slot 1. The other is mapped to Logical
ÇÇÇÇ
ÇÇÇÇ
Group 2 Word 26
Logical Group 3 Word 27 Rack 3, Logical Group 4, Logical Slot 0.
Rack 3 Group 4
ÇÇÇÇ
ÇÇÇÇ
Word 28
Group 5 Word 29
Group 6
Group 7
Word 30
Word 31
Note that the logical address of your RIO
devices (i.e., adapter and intelligent I/O
modules) determine where the block
Logical Slot 0 transfer gets mapped.
Logical Slot 1
Example 2
In this example, the remote adapter is configured for 2slot addressing. It is assigned 1/4 logical rack of the scanner's I/O image files
starting at RIO Logical Rack 3, Logical Group 4. The remote adapter controls four analog modules that are configured for block transfer
operations. Note that each module uses both the input and output byte of the logical slot to which it is assigned.
ÉÉÉÉ
ÉÉÉ
ÉÉÉÉ
Group 1 Word 1
Group 2 Word 2
Logical
ÉÉÉ
ÉÉÉÉ
Group 3 Word 3
Group 4 Word 4
Rack 0 Group 5 Word 5 Adapter
Group 6 Word 6 Mod. Mod. Mod. Mod.
Group 7 Word 7 #1 #2 #3 #4
Group 0 Word 8
Group 1 Word 9 I/O
ÇÇÇ
ÇÇÇÇ
Image
Group 7 Word 23
ÇÇÇ
ÇÇÇÇ
Group 0 Word 24
Group 1 Word 25
Group 2 Word 26
ÇÇÇ
ÇÇÇÇ
Logical Group 3 Word 27 These are all analog modules
Rack 3 Group 4 Word 28 # 2 #1 #2 #1 that are assigned block
ÇÇÇ
ÇÇÇÇ
Group 5
Group 6
Word 29 # 4 #3 #4 #3 Modules' handshake" bytes transfer operations.
Word 30
Group 7 Word 31 map to these I/O image
addresses.
Logical Slot 0
Logical Slot 1
Example 3
In this example, the remote adapter is using 2slot addressing. It is assigned 1/4 logical rack of the scanner's I/O image files starting at
RIO Logical Rack 3, Logical Group 4. The remote adapter controls two analog devices, which are configured for block transfer operations
and two discrete devices (8 point input and 8 point output). Note that each analog module uses both the input and output byte of the
logical slot to which it is assigned, while the discrete modules use only the input or output byte.
ÉÉÉÉ
ÉÉÉ
ÉÉÉ
Input Image Output Image These are analog modules that
are assigned block
ÉÉÉÉ
ÉÉÉ
Group 0 Word 0
Group 1 Word 1 transfer operations.
ÉÉÉÉ
ÉÉÉ
Group 2 Word 2
Logical Group 3 Word 3
Group 4 Word 4
Rack 0 Group 5 Word 5 Adapter
Group 6 Word 6 Mod. Mod. Mod. Mod.
Group 7 Word 7 #1 #2 #3 #4
Group 0 Word 8
I/O
ÇÇÇÇ
ÇÇÇ
Group 1 Word 9
Image
Group 7 Word 23
ÇÇÇÇ
ÇÇÇ
Group 0 Word 24
Group 1 Word 25
ÇÇÇÇ
ÇÇÇ
Group 2 Word 26
Logical Group 3 Word 27 These are discrete modules.
ÇÇÇÇ
ÇÇÇ
Rack 3 Group 4 Word 28 not used #1 #2 #1
Module #2 is an 8 point output
Group 5 Word 29 # 4 #3 not used #3 Modules' handshake" bytes
Group 6 Word 30
map to these I/O image ad module and module #4 is an 8
Group 7 Word 31
dresses. point input module.
Logical Slot 0
Logical Slot 1
Scanner's Block Transfer This section describes the scanner’s M0 (output/control) and M1
Buffer Layout (input/status) block transfer buffers.
Important: The general layout below of buffer 1 is the same for all
32 M0 BT buffers. The “e” in the examples refers to
the physical chassis slot number in which the scanner
resides. Remember that buffers start on 100 word
boundaries.
M0:e.100 – Contains BTR/BTW control flags that control block
transfers. Control flags are explained on the following page.
ÉÉÉÉ
ÉÉÉ
ÉÉÉ
Input Image Output Image
The Slot Number" (0 or 1) in M0:e.102 indicates
ÉÉÉÉ
ÉÉÉ
Group 0 Word 0
Group 1 Word 1 the logical slot number within a logical group. 0
ÉÉÉÉ
ÉÉÉ
Logical
Group 2
Group 3
Word 2
Word 3
designates the least significant image byte and 1
Rack 0 Group 4 Word 4 designates the most significant image byte.
Group 5 Word 5
Group 6
Group 7
Word 6
Word 7 Which Slot Number To Use
Group 0 Word 8 When your adapter is configured for 2slot addressing, 0 is the
Group 1 Word 9
left slot and 1 is the right slot.
For both 1slot and 1/2 slot addressing the slot number is al
ÇÇÇÇ
ÇÇÇ
Group 7 Word 23
Group 0 Word 24
ways 0.
ÇÇÇÇ
ÇÇÇ
Group 1 Word 25
Logical
Group 2
Group 3
Word 26
Word 27
Example M0:e.102 Configurations
ÇÇÇÇ
ÇÇÇ
Rack 3 Group 4
Group 5
Word 28
Word 29
Logical Rack 0, Group 0, Slot 0 = 0
ÇÇÇÇ
ÇÇÇ
Group 6 Word 30 The first number
Group 7 Word 31
Logical Rack 0, Group 0, Slot 1 = 1 (reading from
Logical Rack 2, Group 3, Slot 1 = 231 right to left) is the
Logical Slot 0 Slot Number."
(Low Byte) Logical Rack 0, Group 7, Slot 0 = 70 Leading 0s need not
Logical Slot 1 be entered.
(High Byte)
ÉÉÉÉ
ÉÉÉÉ
ÉÉÉÉ
Input Image Output Image
The Slot Number" (0 or 1) in M1:e.102 indicates
ÉÉÉÉ
ÉÉÉÉ
Group 0 Word 0
Group 1 Word 1 the logical slot number within a logical group. 0
designates the least significant image byte and 1
ÉÉÉÉ
ÉÉÉÉ
Group 2 Word 2
Logical Group 3 Word 3
Rack 0 Group 4 Word 4 designates the most significant image byte.
Group 5 Word 5
Group 6
Group 7
Word 6
Word 7 Which Slot Number To Use
Group 0 Word 8 When your adapter is configured for 2slot addressing, 0 is
ÇÇÇÇ
ÇÇÇÇ
Group 1 Word 9
the left slot and 1 is the right slot.
For both 1slot and 1/2 slot addressing the slot number is
ÇÇÇÇ
ÇÇÇÇ
Group 7 Word 23
Group 0
Group 1
Word 24
Word 25
always 0.
ÇÇÇÇ
ÇÇÇÇ
Group 2 Word 26
Logical Group 3 Word 27
ÇÇÇÇ
ÇÇÇÇ
Rack 3 Group 4
Group 5
Word 28
Word 29
Example M1:e.102 Configurations
Logical Rack 0, Group 0, Slot 0 = 0
ÇÇÇÇ
ÇÇÇÇ
Group 6 Word 30
Group 7 Word 31
Logical Rack 0, Group 0, Slot 1 = 1 The first number
Logical Rack 2, Group 3, Slot 1 = 231 (reading from
Logical Slot 0 right to left) is the
(Low Byte) Logical Rack 0, Group 7, Slot 0 = 70 Slot Number."
Logical Slot 1
(High Byte)
➀ When set to a 1" (with bit 14 set to a 0"), bit 10 indicates that a BT operation is pending. You can
program a timer in your SLC control program to cancel a BT prior to bit 14 being set. Note that bit
10 must be set to 1" before your SLC user program can cancel the BT operation.
➁ When set to a 1", bit 12 indicates that an error occurred while the BT was being processed.
M1:e.103 contains an error code that is useful in determining the cause of an error. Once this bit
is set, the SLC user program can reset the Enable (EN) bit in the M0 BT buffer so that a new BT
can occur.
➂ When set to a 1", bit 13 indicates the successful completion of a BT operation. If the operation
was a BTR, the BT data is available in the M1 BT buffer. Once this bit is set, the SLC user
program can reset the Enable (EN) bit in the M0 BT buffer so that a new BT can occur.
➃ When set to a 1", bit 14 indicates that a BT operation has started. Once the BT operation starts,
an RIO system 4 second timer begins counting down. You can program a timer in your SLC user
program to cancel a Started (bit 14) BT.
Detailed Operation of RIO You use the 1747-SN Scanner M0 file BTR/BTW output control
Block Transfer buffers to set up and control BT operations. Status information
regarding the progress and completion of BTR/BTW operations
displays in corresponding M1 file input status buffers.
M1 Status Information
Status Flag
EW
ST
ER
DN
EN
TO
M1 Status Information
Status Flag
EW
ST
ER
DN
The SLC control program fills in the M0 BT buffer and sets the
EN flag.
The scanner detects that the EN flag is set, determines that there
is some invalid information in the M0 control buffer, fills in the
M1 BT buffer status error code field, and sets the ER flag.
The SLC control program detects the ER flag, examines the M1
BT status buffer error code, and clears the EN flag after
processing the error.
The scanner detects that the SLC control program has processed
the error and clears the ER flag.
Note that in this example the EW and ST flags never set. Also, the
SLC control program must clear the EN flag in order to start a new
BT after the error has been corrected.
Publication 17476.6 - July 1996
RIO Block Transfer 5–17
EN
TO
M1 Status Information
Status Flag
EW
ST
ER
DN
SLC Control Program Cancelling a Block Transfer Once Transmitted Across RIO Link
M1 Status Information
Status Flag
EW
ST
ER
DN
SLC Control Program Cancelling a Block Transfer Prior To Transmission Across RIO Link
M1 Status Information
Status Flag
EW
ST
ER
DN
When the SLC control program detects that the EW has set, a
timer in the SLC control program starts.
If the timer expires before the scanner begins transmitting across
the RIO link (ST = 1), then the SLC control program will set the
TO flag. Note that the cancellation will not occur until all
previously scheduled BTs to the same logical rack have been
completed (i.e., when the ST bit would normally have been set).
The scanner fills in the error code field and sets the ER flag.
Also, the ER bit is not set until any previously pending BTs to
that device have been completed. The SLC control program must
clear the EN flag to complete the BT operation. Note that
because of the asynchronous nature of cancelling a device that
has a BT in progress, the BT reply may indicate either a
successful completion or an error.
The SLC control program clears the TO and EN flags. Note that
if the SLC control program later attempts to initiate another BT
and the TO flag is still set, the scanner will ignore the BT
request.
Finally, the EW, ST (if set) and ER bits are reset.
RIO Block Transfer Below are points to consider when implementing BT operations:
Application • The minimum amount of scanner image that can be assigned to a
Considerations device on the RIO link is 1/4 logical rack in the G file
configuration. This allows up to four separate devices per logical
rack. Each device could have a maximum of four BTs configured
to it. Thus, up to 16 BTRs and/or 16 BTWs could be assigned to
each logical rack.
• If a BT device is a 1747-ASB RIO Adapter, then multiple SLC
500 modules (such as analog modules) could be scanned by the
1747-ASB and the data block transferred to the RIO scanner.
Since the RIO network handles one BT request per logical rack at
a time, there will be a delay before all devices in the 1747-ASB
rack can be accessed. Therefore you should only perform BTs as
necessary (i.e., “on demand”).
• Inhibiting a device on the RIO network (via control words
M0:e.8...11) precludes that device from block transfer operations.
Attempting to initiate a BT to an inhibited device results in an
error reply. The scanner will cancel a BT that is in progress if it
detects that the device is inhibited. Because of the asynchronous
nature of inhibiting a device that has a BT in progress, the BT
reply may indicate either a successful completion or an error. In
either case, the SLC control program must still clear the Enable
flag.
• All M0 and M1 BT buffers are cleared (set to all zeros) after a
power cycle and when the SLC processor goes from Program to
Run mode, Program to Test mode, or Test to Run mode.
When using complementary I/O, if you configure a complementary
device to use more I/O image space than an associated primary
device, then block transfers can only be performed to locations in the
complementary device that have associated I/O image space in the
primary device. For example, if a primary device is 1/2 logical rack
and a complementary device is a full logical rack, block transfers can
be performed only in the first 1/2 logical rack of the complementary
device. Attempting block transfers in the last half of the
complementary device will result in a BT error (error – 11 – device
not configured).
Primary I/O Image Complementary I/O Image
ÉÉÉÉ
ÉÉÉÉ
ÉÉÉÉ ÉÉÉÉ
ÉÉÉÉ
ÉÉÉÉ
Bit Number Octal 17 10 7 0 Bit Number Octal 17 10 7 0
Bit Number Decimal 15 8 7 0 Bit Number Decimal 15 87 0
ÉÉÉÉ
ÉÉÉÉ ÉÉÉÉ
ÉÉÉÉ
Word 0 1/2 logical rack Word 0 1/2 logical rack
Word 1
configured and configured and usable
ÉÉÉÉ
ÉÉÉÉ
Word 1
ËËËË
ËËËË
ÉÉÉÉ
ÉÉÉÉ
Word 2 Word 2
Logical Word 3 usable Logical Word 3 1/2 logical rack
ÉÉÉÉ
ÉÉÉÉ ËËËË
ËËËË
Rack 0 Word 4
Rack 8
Word 4
configured, but not
Word 5
1/2 logical rack not Word 5
usable for BT since
ËËËË
ËËËË
Word 6 Word 6
Word 7 configured Word 7 Words 4-7 are not
configured for the
primary device.
Setting Up a Block Follow the steps below to set up your scanner and SLC control
Transfer program for either BTWs or BTRs.
1. To use the BT functionality, you must increase the size of the M0
and M1 files in an offline APS session. The size depends on the
number of BT buffers your applications requires. Note that
setting the buffers to maximum size (3300) will not affect system
performance. However, addressing M-files in your SLC control
program does affect system performance.
2. Set the control flags in M0:e.x00. Where x = block transfer
buffer number. See the tables below for read/write settings.
BTR (Block Transfer Read) Set the bit to 1 to specify a read operation
BTW (Block Transfer Write) Set the bit to 0 to specify a write operation.
3. Specify the length of the data you wish to block transfer in word
M0:e.x01. Note that maximum length is 64 words.
4. Specify the device’s logical rack, group, and slot in word
M0:e.x02.
5. Set up your SLC control program to set the EN bit.
Quick Reference to Status The tables below provide a quick reference for block transfer status
and Control Bits and control bits. In the tables, x = the block transfer file.
Status Bits
Enable Waiting EW - upon the scanner's first detection of EN being set. The EW
M1:e.x00/10 bit gets reset when the EN flag resets.
Error ER - M1:e.x00/12 when the scanner detects that the block transfer failed. The
ER bit is reset when the EN flag resets.
Done DN - M1:e.x00/13 at completion of the block transfer, if the data is valid. The DN
bit is reset when the EN flag resets.
Start ST - M1:e.x00/14 when the scanner schedule" the BT for the adapter. The
data transfers may not start for some time. The ST bit is
reset when the EN flag resets.
Control Bits
BTR and BTW Control The following pages contain generic BTR and BTW control logic
Logic Examples examples. Refer to chapter 7, Application Examples for specific
product applications using BT examples.
Rung 2:3
WHEN A BTR SUCCESSFULLY COMPLETES, BUFFER THE BT DATA AND UNLATCH THE BT ENABLE
BIT. ALSO, UNLATCH THE BTR PENDING BIT AND LATCH THE BIT THAT CONTINUES
CHECKING THE BTR STATUS UNTIL THE SN MODULE TURNS OFF THE DONE BIT.
| |
| |
| VIRTUAL |
| BTR DONE |
| BIT BTR DATA |
| B3:0 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 13 | |Source #M1:1.110| | |
| | |Dest #N7:10| | |
| | |Length 64| | |
| | +––––––––––––––––––+ | |
| | SERVICE | |
| | THE BTR | |
| | STATUS/ | |
| | BTR | |
| | PENDING | |
| | B3:5 | |
| +––––(U)–––––––––––––––+ |
| | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BT ENABLE | |
| | BIT | |
| | B3:100 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | CHECK BTR | |
| | STATUS | |
| | UNTIL DN | |
| | OR ER BIT | |
| | IS OFF | |
| | B3:5 | |
| +––––(L)–––––––––––––––+ |
| 1 |
Rung 2:4
IF A BTR ERROR OCCURS, UNLATCH THE ENABLE BIT AND BUFFER THE BT ERROR CODE.
ALSO, UNLATCH THE BTR PENDING BIT AND LATCH THE BIT THAT CONTINUES CHECKING
THE BTR STATUS UNTIL THE SN MODULE TURNS OFF THE ERROR BIT.
| |
| |
| VIRTUAL |
| BTR ERROR BTR ERROR |
| BIT CODE |
| B3:0 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+MOVE +–+–|
| 12 | |Source B3:3| | |
| | | 0000000000000000| | |
| | |Dest B3:4| | |
| | | 0000000000000000| | |
| | +––––––––––––––––––+ | |
| | | |
| | SERVICE | |
| | THE BTR | |
| | STATUS/ | |
| | BTR | |
| | PENDING | |
| | B3:5 | |
| +––––(U)–––––––––––––––+ |
| | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BT ENABLE | |
| | BIT | |
| | B3:100 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | CHECK BTR | |
| | STATUS | |
| | UNTIL DN | |
| | OR ER BIT | |
| | IS OFF | |
| | B3:5 | |
| +––––(L)–––––––––––––––+ |
| 1 |
Rung 2:5
WHEN USER LOGIC INITIATES A NEW BTR, LATCH THE ENABLE BIT , AS LONG AS A BTR IS
NOT IN PROGRESS. ALSO, LATCH THE BTR PENDING BIT , SO THE BTR STATUS FILE WILL
BE READ BY THE LADDER PROGRAM.
| | | | SERVICE |
| USER LOGIC| | | THE BTR |
| TO |VIRTUAL |VIRTUAL |VIRTUAL STATUS/ |
| INITIATE A|BT ENABLE |BTR DONE |BTR ERROR BTR |
| BTR |BIT |BIT |BIT PENDING |
| I:2.0 B3:100 B3:0 B3:0 B3:5 |
|––––] [––––––––]/[––––––––]/[––––––––]/[–––––––––––––––––––––––+––––(L)–––––+–|
| 0 15 13 12 | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BT ENABLE | |
| | BIT | |
| | B3:100 | |
| +––––(L)–––––+ |
| 15 |
Rung 2:6
MOVE THE VIRTUAL CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHENEVER A
TRANSITION OF THE BTR ENABLE BIT OCCURS.
| |
| |
| VIRTUAL |
| BT ENABLE |
| BIT |
| B3:100 +MOV–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| | 15 | |Source B3:100| |
| | | | 0000000000000000| |
| | | |Dest M0:1.100| |
| | | | *| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | VIRTUAL | |
| | BTR DONE | |
| | BIT | |
| | B3:0 | |
| +––––] [–––––+ |
| | 13 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ERROR | |
| | BIT | |
| | B3:0 | |
| +––––] [–––––+ |
| 12 |
Rung 2:7
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| |
Rung 2:1
COPY THE BTW STATUS AREA TO A BINARY FILE WHICH WILL BE USED THROUGHOUT THE
PROGRAM, ONLY WHEN A BTW IS PENDING. THIS AVOIDS ACCESSING THE M1 FILE MULTIPLE
TIMES DURING EACH PROGRAM SCAN. EACH TIME AN INSTRUCTION CONTAINING AN M1 FILE
BIT, WORD OR FILE IS SCANNED BY THE PROCESSOR,AN IMMEDIATE DATA TRANSFER TO
THE MODULE OCCURS AND THEREFORE WILL IMPACT THE PROCESSOR SCAN TIME.
| SERVICE |
| THE BTW |
| STATUS/ |
| BTW |
| PENDING BTW STATUS |
| B3:5 +COP–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| | 0 | |Source #M1:1.100| |
| | | |Dest #B3:0| |
| | | |Length 4| |
| | | +––––––––––––––––––+ |
| | | |
| | CHECK BTW | |
| | STATUS | |
| | UNTIL DONE | |
| | BIT IS OFF | |
| | B3:5 | |
| +––––] [–––––+ |
| 1 |
Rung 2:2
UNLATCH THE BIT THAT CONTINUES TO CHECK THE BTW STATUS. WHEN A BTW IS
COMPLETE, THE DONE BIT IS SET. THE LADDER PROGRAM MUST THEN UNLATCH THE ENABLE
BIT, THEN WAIT FOR THE SN MODULE TO TURN OFF THE DONE BIT BEFORE ANOTHER BTW
TO THE SAME M–FILE LOCATION CAN BE INITIALIZED. THIS IS ONE COMPLETE BTW CYCLE.
| | |
| | CHECK BTW |
| VIRTUAL | STATUS |
| BTW DONE | UNTIL DONE |
| BIT | BIT IS OFF |
| B3:0 B3:5 |
|–+––––]/[–––––+–––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| | 13 | 1 |
| | | |
| | VIRTUAL | |
| | BTW ERROR | |
| | BIT | |
| | B3:0 | |
| +––––]/[–––––+ |
| 12 |
Rung 2:3
WHEN A BTW SUCCESSFULLY COMPLETES, UNLATCH THE BTW ENABLE BIT. ALSO, UNLATCH
THE BTW PENDING BIT AND LATCH THE BIT THAT CONTINUES CHECKING THE BTW STATUS
UNTIL THE SN MODULE TURNS OFF THE DONE BIT.
| SERVICE |
| THE BTW |
| VIRTUAL STATUS/ |
| BTW DONE BTW |
| BIT PENDING |
| B3:0 B3:5 |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––+––––(U)–––––+–|
| 13 | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ENABLE | |
| | BIT | |
| | B3:100 | |
| +––––(U)–––––+ |
| | 15 | |
| | | |
| | CHECK BTW | |
| | STATUS | |
| | UNTIL DONE | |
| | BIT IS OFF | |
| | B3:5 | |
| +––––(L)–––––+ |
| 1 |
Rung 2:4
IF A BTW ERRORS, UNLATCH THE ENABLE BIT, THE BTW PENDING BIT AND BUFFER THE BTW
ERROR CODE. ALSO, LATCH THE BIT THAT CONTINUES CHECKING THE BTW STATUS UNTIL
THE SN MODULE TURNS OFF THE ERROR BIT.
| |
| |
| VIRTUAL |
| BTW ERROR BUFFER BTW |
| BIT ERROR CODE |
| B3:0 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+MOVE +–+–|
| 12 | |Source B3:3| | |
| | | 0000000000000000| | |
| | |Dest B3:4| | |
| | | 0000000000000000| | |
| | +––––––––––––––––––+ | |
| | SERVICE | |
| | THE BTW | |
| | STATUS/ | |
| | BTW | |
| | PENDING | |
| | B3:5 | |
| +––––(U)–––––––––––––––+ |
| | 0 | |
| | | |
| | VIRTUAL | |
| | BTW ENABLE | |
| | BIT | |
| | B3:100 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | | |
| | CHECK BTW | |
| | STATUS | |
| | UNTIL DONE | |
| | BIT IS OFF | |
| | B3:5 | |
| +––––(L)–––––––––––––––+ |
| 1 |
Rung 2:5
WHEN USER LOGIC INITIATES A NEW BTW, COPY THE DATA TO THE M0 FILE DATA AREA
AND LATCH THE VIRTUAL BTW ENABLE BIT, PROVIDED THAT A BTW IS NOT IN PROGRESS.
ALSO, LATCH THE BTW PENDING BIT, SO THE BT STATUS FILE WILL BE READ BY THE
LADDER PROGRAM.
| | | | |
| USER LOGIC| | | |
| TO |VIRTUAL |VIRTUAL |VIRTUAL |
| INITIATE A|BTW ENABLE|BTW DONE |BTW ERROR |
| BTW |BIT |BIT |BIT BTW DATA |
| I:2.0 B3:100 B3:0 B3:0 +COP–––––––––––––––+ |
|––––] [––––––––]/[––––––––]/[––––––––]/[–––––––––––––+–+COPY FILE +–+–|
| 0 15 13 12 | |Source #N7:110| | |
| | |Dest #M0:1.110| | |
| | |Length 64| | |
| | +––––––––––––––––––+ | |
| | SERVICE | |
| | THE BTW | |
| | STATUS/ | |
| | BTW | |
| | PENDING | |
| | B3:5 | |
| +––––(L)–––––––––––––––+ |
| | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ENABLE | |
| | BIT | |
| | B3:100 | |
| +––––(L)–––––––––––––––+ |
| 15 |
Rung 2:6
MOVE THE VIRTUAL CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHENEVER A
TRANSITION OF THE BTW ENABLE BIT OCCURS.
| |
| |
| VIRTUAL |
| BTW ENABLE |
| BIT |
| B3:100 +MOV–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| | 15 | |Source B3:100| |
| | | | 0000000000000000| |
| | | |Dest M0:1.100| |
| | | | *| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | VIRTUAL | |
| | BTW DONE | |
| | BIT | |
| | B3:0 | |
| +––––] [–––––+ |
| | 13 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ERROR | |
| | BIT | |
| | B3:0 | |
| +––––] [–––––+ |
| 12 |
Rung 2:7
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| |
Rung 2:0
CONFIGURE THE BTR OPERATION TYPE, LENGTH AND RIO ADDRESS AT POWER–UP. BIT
B3:100/7 MUST BE SET PRIOR TO GOING TO RUN TO INDICATE A BTR OPERATION.
| |
| |
| |
| POWER–UP BTR |
| BIT CONTROL |
| S:1 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| 15 |Source #B3:100| |
| |Dest #M0:1.100| |
| |Length 3| |
| +––––––––––––––––––+ |
Rung 2:1
COPY THE BTR STATUS AREA TO A BINARY FILE WHICH WILL BE USED THROUGHOUT THE
PROGRAM. THIS AVOIDS ADDRESSING THE M1 FILE MULTIPLE TIMES DURING EACH PROGRAM
SCAN. EACH TIME AN INSTRUCTION CONTAINING AN M1 FILE BIT, WORD OR FILE IS
SCANNED BY THE PROCESSOR, AN IMMEDIATE DATA TRANSFER TO THE MODULE OCCURS AND
THEREFORE WILL IMPACT THE OVERALL PROCESSOR SCAN TIME.
| |
| |
| |
| BTR |
| PENDING BTR STATUS |
| B3 +COP–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| | 80 | |Source #M1:1.100| |
| | | |Dest #B3:0| |
| | | |Length 4| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––] [–––––+ |
| 81 |
Rung 2:2
WHEN THE ERROR OR DONE BIT IS SET INDICATING THAT THE BTR COMPLETED EITHER
UNSUCCESSFULLY OR SUCCESSFULLY, THE ENABLE BIT MUST BE UNLATCHED BY THE LADDER
PROGRAM. THE 1747–SN SCANNER THEN UNLATCHES THE ERROR/DONE BIT TO COMPLETE THE
BLOCK TRANSFER HAND–SHAKE PROCESS. AT THIS TIME THE ”CHECK BTR STATUS” BIT
MUST BE UNLATCHED TO AVOID UNNECESSARY M–FILE ACCESSES.
| |
| |
| VIRTUAL |
| BTR DONE CHECK BTR |
| BIT STATUS |
| B3 B3 |
|–+––––]/[–––––+–––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| | 13 | 81 |
| | | |
| | | |
| | | |
| | | |
| | VIRTUAL | |
| | BT ERROR | |
| | BIT | |
| | B3 | |
| +––––]/[–––––+ |
| 12 |
Rung 2:3
WHEN A BTR SUCCESSFULLY COMPLETES, BUFFER THE BTR DATA AND UNLATCH THE BTR
ENABLE BIT. ALSO, UNLATCH THE BTR PENDING BIT AND LATCH THE BIT THAT CONTINUES
CHECKING THE BTR STATUS UNTIL THE SN TURNS OFF THE DONE BIT.
| |
| |
| VIRTUAL |
| BTR DONE |
| BIT BTR DATA |
| B3 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 13 | |Source #M1:1.110| | |
| | |Dest #N7:10| | |
| | |Length 64| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 80 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 1615 | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 81 |
Rung 2:4
WHEN A BTR UNSUCCESSFULLY COMPLETES, BUFFER THE ERROR CODE AND UNLATCH THE BR
ENABLE BIT AND THE BTR PENDING BIT. ALSO, LATCH THE CHECK BTR STATUS BIT IN
ORDER TO CONTINUE READING THE STATUS INFORMATION FROM THE SCANNER UNTIL IT
TURNS THE ERROR BIT OFF, COMPLETING THE HAND–SHAKE PROCESS.
| |
| |
| VIRTUAL |
| BT ERROR BTR ERROR |
| BIT CODE |
| B3 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+MOVE +–+–|
| 12 | |Source M1:1.103| | |
| | | *| | |
| | |Dest N7:9| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 80 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 1615 | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 81 |
Rung 2:5
BLOCK TRANSFER READS WILL EXECUTE CONTINUOUSLY AS LONG AS THE BTR PRECONDITION
BIT IS TRUE.
| | | | |
| | | | |
| BTR PRE– |VIRTUAL |VIRTUAL |VIRTUAL |
| CONDITION |BTR ENABLE|BTR DONE |BT ERROR BTR |
| BIT |BIT |BIT |BIT PENDING |
| B3 B3 B3 B3 B3 |
|––––] [––––––––]/[––––––––]/[––––––––]/[–––––––––––––––––––––––+––––(L)–––––+–|
| 83 1615 13 12 | 80 | |
| | | |
| | | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | B3 | |
| +––––(L)–––––+ |
| 1615 |
Rung 2:6
MOVE THE VIRTUAL CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHILE A BTR IS
IN PROGRESS, AND CONTINUE DOING SO UNTIL THE ENABLE, DONE AND ERROR BITS ARE
ALL TURNED OFF, COMPLETING THE HAND–SHAKE PROCESS.
| |
| |
| VIRTUAL BTR |
| BTR ENABLE CONTROL |
| BIT WORD |
| B3 +MOV–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| | 1615 | |Source B3:100| |
| | | | 0000000000000000| |
| | | |Dest M0:1.100| |
| | | | *| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | VIRTUAL | |
| | BTR DONE | |
| | BIT | |
| | B3 | |
| +––––] [–––––+ |
| | 13 | |
| | | |
| | | |
| | VIRTUAL | |
| | BT ERROR | |
| | BIT | |
| | B3 | |
| +––––] [–––––+ |
| 12 |
Rung 2:7
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| |
Rung 2:0
CONFIGURE THE BTR OPERATION TYPE, LENGTH AND RIO ADDRESS AT POWER–UP. BIT
B3:100/7 MUST BE SET PRIOR TO GOING TO RUN TO INDICATE A BTR OPERATION.
| |
| |
| |
| POWER–UP BTR |
| BIT CONTROL |
| S:1 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| 15 |Source #B3:100| |
| |Dest #M0:1.100| |
| |Length 3| |
| +––––––––––––––––––+ |
Rung 2:1
COPY THE BTR STATUS AREA TO A BINARY FILE WHICH WILL BE USED THROUGHOUT THE
PROGRAM. THIS AVOIDS ADDRESSING THE M1 FILE MULTIPLE TIMES DURING EACH PROGRAM
SCAN. EACH TIME AN INSTRUCTION CONTAINING AN M–FILE BIT, WORD OR FILE IS
SCANNED BY THE PROCESSOR, AN IMMEDIATE DATA TRANSFER TO THE MODULE OCCURS AND
THEREFORE WILL IMPACT THE OVERALL PROCESSOR SCAN TIME.
| |
| |
| |
| BTR |
| PENDING BTR STATUS |
| B3 +COP–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| | 80 | |Source #M1:1.100| |
| | | |Dest #B3:0| |
| | | |Length 4| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––] [–––––+ |
| 81 |
Rung 2:2
UNLATCH THE BIT THAT CONTINUES TO CHECK THE BTR STATUS. WHEN A BTR IS
COMPLETE, THE DONE OR ERROR BIT IS SET. THE LADDER PROGRAM MUST THEN UNLATCH
THE ENABLE BIT, THEN WAIT FOR THE SN MODULE TO TURN OFF THE DONE/ERROR BIT
BEFORE ANOTHER BTR TO THE SAME M–FILE LOCATION CAN BE INITIATED. THIS IS ONE
COMPLETE BTR CYCLE.
| |
| |
| VIRTUAL |
| BTR DONE CHECK BTR |
| BIT STATUS |
| B3 B3 |
|–+––––]/[–––––+–––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| | 13 | 81 |
| | | |
| | | |
| | | |
| | | |
| | VIRTUAL | |
| | BT ERROR | |
| | BIT | |
| | B3 | |
| +––––]/[–––––+ |
| 12 |
Rung 2:3
WHEN A BTR SUCCESSFULLY COMPLETES, BUFFER THE BTR DATA AND UNLATCH THE BTR
ENABLE BIT. ALSO, UNLATCH THE BTR PENDING BIT AND LATCH THE BIT THAT CONTINUES
CHECKING THE BTR STATUS UNTIL THE SN TURNS OFF THE DONE BIT.
| |
| |
| VIRTUAL |
| BTR DONE |
| BIT BTR DATA |
| B3 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 13 | |Source #M1:1.110| | |
| | |Dest #N7:10| | |
| | |Length 64| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 80 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 1615 | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 81 |
Rung 2:4
| |
| |
| VIRTUAL |
| BT ERROR |
| BIT |
| B3 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+MOVE +–+–|
| 12 | |Source M1:1.103| | |
| | | *| | |
| | |Dest N7:9| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 80 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 1615 | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 81 |
Rung 2:5
BLOCK TRANSFER READS WILL REPEAT AS FAST AS POSSIBLE AS LONG AS THESE RUNGS
ARE SCANNED.
| | | |
| | | |
| VIRTUAL |VIRTUAL |VIRTUAL |
| BTR ENABLE|BTR DONE |BT ERROR BTR |
| BIT |BIT |BIT PENDING |
| B3 B3 B3 B3 |
|––––]/[––––––––]/[––––––––]/[––––––––––––––––––––––––––––––––––+––––(L)–––––+–|
| 1615 13 12 | 80 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | B3 | |
| +––––(L)–––––+ |
| 1615 |
Rung 2:6
MOVE THE VIRTUAL CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHILE A BTR IS
IN PROGRESS AND CONTINUE DOING SO UNTIL THE SCANNER TURNS THE DONE/ERROR BIT
OFF.
| |
| |
| VIRTUAL |
| BTR ENABLE |
| BIT |
| B3 +MOV–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| | 1615 | |Source B3:100| |
| | | | 0000000000000000| |
| | | |Dest M0:1.100| |
| | | | *| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | VIRTUAL | |
| | BTR DONE | |
| | BIT | |
| | B3 | |
| +––––] [–––––+ |
| | 13 | |
| | | |
| | | |
| | VIRTUAL | |
| | BT ERROR | |
| | BIT | |
| | B3 | |
| +––––] [–––––+ |
| 12 |
Rung 2:7
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| |
Rung 2:0
CONFIGURE THE BTR OPERATION TYPE, LENGTH AND RIO ADDRESS AT POWER–UP. BIT
B3:100/7 MUST BE SET PRIOR TO GOING TO RUN TO INDICATE A BTR OPERATION.
| |
| |
| |
| POWER–UP BTR |
| BIT CONTROL |
| S:1 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| 15 |Source #B3:100| |
| |Dest #M0:1.100| |
| |Length 3| |
| +––––––––––––––––––+ |
Rung 2:1
COPY THE BTR STATUS AREA TO A BINARY FILE WHICH WILL BE USED THROUGHOUT THE
PROGRAM. THIS AVOIDS ADDRESSING THE M1 FILE MULTIPLE TIMES DURING EACH PROGRAM
SCAN. EACH TIME AN INSTRUCTION CONTAINING AN M1 FILE BIT, WORD OR FILE IS
SCANNED BY THE PROCESSOR, AN IMMEDIATE DATA TRANSFER TO THE MODULE OCCURS AND
THEREFORE WILL IMPACT THE OVERALL PROCESSOR SCAN TIME.
| |
| |
| |
| BTR |
| PENDING BTR STATUS |
| B3 +COP–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| | 80 | |Source #M1:1.100| |
| | | |Dest #B3:0| |
| | | |Length 4| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––] [–––––+ |
| 81 |
Rung 2:2
UNLATCH THE BIT THAT CONTINUES TO CHECK THE BTR STATUS. WHEN A BTR IS
COMPLETE, THE DONE OR ERROR BIT IS SET. THE LADDER PROGRAM MUST THEN UNLATCH
THE ENABLE BIT, THEN WAIT FOR THE SN MODULE TO TURN OFF THE DONE/ERROR BIT
BEFORE ANOTHER BTR TO THE SAME M–FILE LOCATION CAN BE INITIATED. THIS IS ONE
COMPLETE BTR CYCLE.
| |
| |
| VIRTUAL |
| BTR DONE CHECK BTR |
| BIT STATUS |
| B3 B3 |
|–+––––]/[–––––+–––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| | 13 | 81 |
| | | |
| | | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ERROR | |
| | BIT | |
| | B3 | |
| +––––]/[–––––+ |
| 12 |
Rung 2:3
WHEN A BTR SUCCESSFULLY COMPLETES, BUFFER THE BTR DATA AND UNLATCH THE BTR
ENABLE BIT. ALSO, UNLATCH THE BTR PENDING BIT AND LATCH THE BIT THAT CONTINUES
CHECKING THE BTR STATUS UNTIL THE SN TURNS OFF THE DONE BIT.
| |
| |
| VIRTUAL |
| BTR DONE |
| BIT BTR DATA |
| B3 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 13 | |Source #M1:1.110| | |
| | |Dest #N7:10| | |
| | |Length 64| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 80 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 1615 | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 81 |
Rung 2:4
| |
| |
| VIRTUAL |
| BTR ERROR |
| BIT |
| B3 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+MOVE +–+–|
| 12 | |Source M1:1.103| | |
| | | *| | |
| | |Dest N7:9| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 80 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 1615 | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 81 |
Rung 2:5
INITIATE A BTR FOR EACH FALSE–TO–TRUE TRANSITION OF THE USER INPUT.
| USER LOGIC |
| TO |
| INITIATE A |
| BTR |
| I:2 B3 B3 |
|––––] [––––––[OSR]–––––––––––––––––––––––––––––––––––––––––––––––––––––––(L)––|
| 0 82 83 |
Rung 2:6
WHEN USER LOGIC INITIATES A NEW BTR, LATCH THE ENABLE BIT AS LONG AS A BTR IS
NOT IN PROGRESS. ALSO, LATCH THE BTR PENDING BIT SO THE BTR STATUS FILE WILL BE
READ BY THE LADDER PROGRAM.
| | | |
| | | |
| VIRTUAL |VIRTUAL |VIRTUAL |
| BTR ENABLE|BTR DONE |BTR ERROR BTR |
| BIT |BIT |BIT PENDING |
| B3 B3 B3 B3 B3 |
|––] [–––––]/[––––––––]/[––––––––]/[––––––––––––––––––––––––––––+––––(L)–––––+–|
| 83 1615 13 12 | 80 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | B3 | |
| +––––(L)–––––+ |
| | 1615 | |
| | B3 | |
| +––(U)–––––––+ |
| 83 |
Rung 2:7
MOVE THE VIRTUAL CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHILE A BTR IS
IN PROGRESS, AND CONTINUE DOING SO UNTIL THE ENABLE, DONE AND ERROR BITS ARE
ALL TURNED OFF, COMPLETING THE BTR HAND–SHAKE PROCESS.
| |
| |
| VIRTUAL BTR |
| BTR ENABLE CONTROL |
| BIT WORD |
| B3 +MOV–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| | 1615 | |Source B3:100| |
| | | | 0000000000000000| |
| | | |Dest M0:1.100| |
| | | | *| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | VIRTUAL | |
| | BTR DONE | |
| | BIT | |
| | B3 | |
| +––––] [–––––+ |
| | 13 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ERROR | |
| | BIT | |
| | B3 | |
| +––––] [–––––+ |
| 12 |
Rung 2:8
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| |
Rung 2:0
CONFIGURE THE BT OPERATION TYPE, LENGTH AND RIO ADDRESS (R,G,S IN DECIMAL) AT
POWER–UP. BIT N7:50/7 MUST BE SET TO A ”1” TO INDICATE A BTR AND BIT N7:53/7
MUST BE A LOGICAL ”0” TO INDICATE A BTW OPERATION.
| |
| |
| |
| POWER–UP BTR |
| BIT CONTROL |
| S:1 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 15 | |Source #N7:50| | |
| | |Dest #M0:1.100| | |
| | |Length 3| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTW | |
| | CONTROL | |
| | +COP–––––––––––––––+ | |
| +–+COPY FILE +–+ |
| |Source #N7:53| |
| |Dest #M0:1.200| |
| |Length 3| |
| +––––––––––––––––––+ |
Rung 2:1
COPY THE BTR STATUS AREA TO AN INTEGER FILE ONLY WHEN A BTR IS IN PROGRESS.
THIS STATUS INFORMATION WILL THEN BE USED THROUGHOUT THE PROGRAM AND WILL LIMIT
THE NUMBER OF M–FILE ACCESSES.
| |
| |
| |
| BTR |
| PENDING BTR STATUS |
| B3 +COP–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| | 0 | |Source #M1:1.100| |
| | | |Dest #N7:60| |
| | | |Length 4| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––] [–––––+ |
| 2 |
Rung 2:2
UNLATCH THE BIT THAT CONTINUES TO CHECK THE BTR STATUS. WHEN A BTR IS
COMPLETE, THE DONE OR ERROR BIT IS SET. THE LADDER PROGRAM MUST THEN UNLATCH
THE ENABLE BIT, THEN WAIT FOR THE SN MODULE TO TURN OFF THE DONE/ERROR BIT
BEFORE ANOTHER BTR TO THE SAME M–FILE LOCATION CAN BE INITIATED. THIS IS ONE
COMPLETE BTR CYCLE.
| |
| |
| VIRTUAL |
| BTR DONE CHECK BTR |
| BIT STATUS |
| N7:60 B3 |
|–+––––]/[–––––+–––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| | 13 | 2 |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ERROR | |
| | BIT | |
| | N7:60 | |
| +––––]/[–––––+ |
| 12 |
Rung 2:3
COPY THE BTW STATUS AREA TO AN INTEGER FILE ONLY WHEN A BTW IS IN PROGRESS.
THIS STATUS DATA WILL THEN BE USED THROUGHOUT THE PROGRAM AND WILL LIMIT THE
NUMBER OF M–FILE ACCESSES.
| |
| |
| |
| BTW BTW |
| PENDING STATUS |
| B3 +COP–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| | 1 | |Source #M1:1.200| |
| | | |Dest #N7:64| |
| | | |Length 4| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | | |
| | CHECK BTW | |
| | STATUS | |
| | B3 | |
| +––––] [–––––+ |
| 3 |
Rung 2:4
UNLATCH THE BIT THAT CONTINUES TO CHECK THE BTW STATUS. WHEN A BTW IS
COMPLETE, THE DONE OR ERROR BIT IS SET. THE LADDER PROGRAM MUST THEN UNLATCH
THE ENABLE BIT, THEN WAIT FOR THE SN MODULE TO TURN OFF THE THE DONE/ERROR BIT
BEFORE ANOTHER BTW TO THE SAME M–FILE LOCATION CAN BE INITIATED. THIS COMPLETES
ONE BTW CYCLE.
| |
| |
| VIRTUAL |
| BTW DONE CHECK BTW |
| BIT STATUS |
| N7:64 B3 |
|–+––––]/[–––––+–––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| | 13 | 3 |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ERROR | |
| | BIT | |
| | N7:64 | |
| +––––]/[–––––+ |
| 12 |
Rung 2:5
WHEN A BTR SUCCESSFULLY COMPLETES, BUFFER THE BTR DATA AND UNLATCH BOTH THE
BTR VIRTUAL ENABLE BIT AND THE BTR PENDING BIT. ALSO, LATCH THE BIT THAT
CONTINUES CHECKING THE BTR STATUS UNTIL THE SN MODULE TURNS OFF THE DONE BIT.
| |
| |
| VIRTUAL |
| BTR DONE |
| BIT BTR DATA |
| N7:60 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 13 | |Source #M1:1.110| | |
| | |Dest #N7:0| | |
| | |Length 10| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | N7:50 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 2 |
Rung 2:6
WHEN A BTR UNSUCCESSFULLY COMPLETES, BUFFER THE ERROR CODE AND UNLATCH THE BTR
ENABLE BIT AND THE BTR PENDING BIT. ALSO, LATCH THE CHECK BTR STATUS BIT IN
ORDER TO CONTINUE READING THE STATUS INFORMATION FROM THE SCANNER UNTIL IT
TURNS OFF THE ERROR BIT, COMPLETING THE HAND–SHAKE PROCESS.
| |
| |
| VIRTUAL |
| BTR ERROR BTR ERROR |
| BIT CODE |
| N7:60 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+MOVE +–+–|
| 12 | |Source M1:1.103| | |
| | | *| | |
| | |Dest N7:0| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | N7:50 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 2 |
Rung 2:7
WHEN A BTW SUCCESSFULLY COMPLETES, UNLATCH THE BTW ENABLE BIT AND THE BTW
PENDING BIT TO COMPLETE A BTW SEQUENCE. ALSO, LATCH THE BIT THAT CONTINUES
CHECKING THE BTW STATUS UNTIL THE SN MODULE TURNS THE DONE BIT OFF.
| |
| |
| VIRTUAL |
| BTW DONE BTW |
| BIT PENDING |
| N7:64 B3 |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––+––––(U)–––––+–|
| 13 | 1 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ENABLE | |
| | BIT | |
| | N7:53 | |
| +––––(U)–––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | CHECK BTW | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––+ |
| 3 |
Rung 2:8
WHEN A BTW UNSUCCESSFULLY COMPLETES, BUFFER THE ERROR CODE AND UNLATCH THE BTW
ENABLE BIT AND THE BTW PENDING BIT. ALSO, LATCH THE CHECK BTW STATUS BIT IN
ORDER TO CONTINUE READING THE STATUS INFORMATION FROM THE SCANNER UNTIL IT
TURNS OFF THE ERROR BIT, COMPLETING THE HAND–SHAKE PROCESS.
| |
| |
| VIRTUAL |
| BTW ERROR BTW ERROR |
| BIT CODE |
| N7:64 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+MOVE +–+–|
| 12 | |Source M1:1.203| | |
| | | *| | |
| | |Dest N7:1| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTW | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 1 | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ENABLE | |
| | BIT | |
| | N7:53 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | CHECK BTW | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 3 |
Rung 2:9
THIS RUNG WILL EXECUTE BLOCK TRANSFER READS CONTINUOUSLY, AS FAST AS POSSIBLE.
| | | |
| | | |
| VIRTUAL |VIRTUAL |VIRTUAL |
| BTR ENABLE|BTR DONE |BTR ERROR BTR |
| BIT |BIT |BIT PENDING |
| N7:50 N7:60 N7:60 B3 |
|––––]/[––––––––]/[––––––––]/[––––––––––––––––––––––––––––––––––+––––(L)–––––+–|
| 15 13 12 | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | N7:50 | |
| +––––(L)–––––+ |
| 15 |
Rung 2:10
THIS RUNG WILL EXECUTE BLOCK TRANSFER WRITES CONTINUOUSLY, AS FAST AS POSSIBLE.
| | | |
| | | |
| VIRTUAL |VIRTUAL |VIRTUAL |
| BTW ENABLE|BTW DONE |BTW ERROR |
| BIT |BIT |BIT BTW DATA |
| N7:53 N7:64 N7:64 +COP–––––––––––––––+ |
|––––]/[––––––––]/[––––––––]/[––––––––––––––––––––––––+–+COPY FILE +–+–|
| 15 13 12 | |Source #N7:10| | |
| | |Dest #M0:1.210| | |
| | |Length 11| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ENABLE | |
| | BIT | |
| | N7:53 | |
| +––––(L)–––––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | BTW | |
| | PENDING | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 1 |
Rung 2:11
MOVE THE VIRTUAL BTR CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHILE A BTR
IS IN PROGRESS, AND CONTINUE DOING SO UNTIL THE ENABLE , DONE AND ERROR BITS
ARE ALL TURNED OFF, COMPLETING THE HAND–SHAKE PROCESS.
| |
| |
| VIRTUAL BTR |
| BTR ENABLE CONTROL |
| BIT BITS |
| N7:50 +MOV–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| | 15 | |Source N7:50| |
| | | | 0| |
| | | |Dest M0:1.100| |
| | | | *| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | VIRTUAL | |
| | BTR DONE | |
| | BIT | |
| | N7:60 | |
| +––––] [–––––+ |
| | 13 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ERROR | |
| | BIT | |
| | N7:60 | |
| +––––] [–––––+ |
| 12 |
Rung 2:12
MOVE THE VIRTUAL BTW CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHILE A BTW
IS IN PROGRESS, AND CONTINUE DOING SO UNTIL THE ENABLE, DONE AND ERROR BITS
ARE ALL TURNED OFF, COMPLETING THE HAND–SHAKE PROCESS.
| |
| |
| VIRTUAL BTW |
| BTW ENABLE CONTROL |
| BIT BITS |
| N7:53 +MOV–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| | 15 | |Source N7:53| |
| | | | 0| |
| | | |Dest M0:1.200| |
| | | | *| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | VIRTUAL | |
| | BTW DONE | |
| | BIT | |
| | N7:64 | |
| +––––] [–––––+ |
| | 13 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ERROR | |
| | BIT | |
| | N7:64 | |
| +––––] [–––––+ |
| 12 |
Rung 2:13
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| |
COPY THE BTR STATUS AREA TO AN INTEGER FILE ONLY WHEN A BTR IS IN PROGRESS.
THIS STATUS DATA WILL THEN BE USED THROUGHOUT THE PROGRAM AND WILL LIMIT THE
NUMBER OF M–FILE ACCESSES.
| |
| |
| |
| BTR |
| PENDING BTR STATUS |
| B3 +COP–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| | 0 | |Source #M1:1.100| |
| | | |Dest #N7:60| |
| | | |Length 4| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––] [–––––+ |
| 2 |
Rung 2:2
UNLATCH THE BIT THAT CONTINUES TO CHECK THE BTR STATUS. WHEN A BTR IS
COMPLETE, THE DONE OR ERROR BIT IS SET. THE LADDER PROGRAM MUST THEN UNLATCH
THE ENABLE BIT, THEN WAIT FOR THE SN MODULE TO TURN OFF THE DONE/ERROR BIT
BEFORE ANOTHER BTR TO THE SAME M–FILE LOCATION CAN BE INITIATED. THIS IS ONE
COMPLETE BTR CYCLE.
| |
| |
| VIRTUAL |
| BTR DONE CHECK BTR |
| BIT STATUS |
| N7:60 B3 |
|–+––––]/[–––––+–––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| | 13 | 2 |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ERROR | |
| | BIT | |
| | N7:60 | |
| +––––]/[–––––+ |
| 12 |
Rung 2:3
COPY THE BTW STATUS AREA TO AN INTEGER FILE ONLY WHEN A BTW IS IN PROGRESS.
THIS STATUS DATA WILL THEN BE USED THROUGHOUT THE PROGRAM AND WILL LIMIT THE
NUMBER OF M–FILE ACCESSES.
| |
| |
| |
| BTW BTW |
| PENDING STATUS |
| B3 +COP–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| | 1 | |Source #M1:1.200| |
| | | |Dest #N7:64| |
| | | |Length 4| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | | |
| | CHECK BTW | |
| | STATUS | |
| | B3 | |
| +––––] [–––––+ |
| 3 |
Rung 2:4
UNLATCH THE BIT THAT CONTINUES TO CHECK THE BTW STATUS. WHEN A BTW IS
COMPLETE, THE DONE OR ERROR BIT IS SET. THE LADDER PROGRAM MUST THEN UNLATCH
THE ENABLE BIT, THEN WAIT FOR THE SN MODULE TO TURN OFF THE THE DONE/ERROR BIT
BEFORE ANOTHER BTW TO THE SAME M–FILE LOCATION CAN BE INITIATED. THIS COMPLETES
ONE BTW CYCLE.
| |
| |
| VIRTUAL |
| BTW DONE CHECK BTW |
| BIT STATUS |
| N7:64 B3 |
|–+––––]/[–––––+–––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| | 13 | 3 |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ERROR | |
| | BIT | |
| | N7:64 | |
| +––––]/[–––––+ |
| 12 |
Rung 2:5
WHEN A BTR SUCCESSFULLY COMPLETES, BUFFER THE BTR DATA AND UNLATCH BOTH THE
BTR VIRTUAL ENABLE BIT AND THE BTR PENDING BIT. ALSO, LATCH THE BIT THAT
CONTINUES CHECKING THE BTR STATUS UNTIL THE SN MODULE TURNS OFF THE DONE BIT.
| |
| |
| VIRTUAL |
| BTR DONE |
| BIT BTR DATA |
| N7:60 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 13 | |Source #M1:1.110| | |
| | |Dest #N7:0| | |
| | |Length 10| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | N7:50 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
Rung 2:6
WHEN A BTR UNSUCCESSFULLY COMPLETES, BUFFER THE BTR ERROR CODE AND UNLATCH THE
BTR ENABLE BIT AND THE BTR PENDING BIT. ALSO, LATCH THE CHECK BTR STATUS BIT
IN ORDER TO CONTINUE READING THE STATUS INFORMATION FROM THE SCANNER UNTIL IT
TURNS THE ERROR BIT OFF, COMPLETING THE HAND–SHAKE PROCESS.
| |
| |
| VIRTUAL |
| BTR ERROR BTR ERROR |
| BIT CODE |
| N7:60 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+MOVE +–+–|
| 12 | |Source M1:1.103| | |
| | | *| | |
| | |Dest N7:21| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | N7:50 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 2 |
Rung 2:7
WHEN A BTW SUCCESSFULLY OR UNSUCCESSFULLY COMPLETES, UNLATCH THE BTW ENABLE BIT
AND THE BTW PENDING BIT TO COMPLETE A BTW SEQUENCE. ALSO, LATCH THE BIT THAT
CONTINUES CHECKING THE BTW STATUS UNTIL THE SN MODULE TURNS THE DONE/ERROR BIT
OFF.
| |
| |
| VIRTUAL |
| BTW DONE BTW |
| BIT PENDING |
| N7:64 B3 |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––+––––(U)–––––––––––––––+–|
| | 13 | | 1 | |
| | | | | |
| | | | | |
| | VIRTUAL | | VIRTUAL | |
| | BTW ERROR | | BTW ENABLE | |
| | BIT | | BIT | |
| | N7:64 | | N7:53 | |
| +––––] [–––––+ +––––(U)–––––––––––––––+ |
| 12 | 15 | |
| | | |
| | | |
| | | |
| | CHECK BTW | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| | 3 | |
| | | |
| | | |
| | | |
| | BTW ERROR | |
| | CODE | |
| | +MOV–––––––––––––––+ | |
| +–+MOVE +–+ |
| |Source M1:1.203| |
| | *| |
| |Dest N7:22| |
| | 0| |
| +––––––––––––––––––+ |
Rung 2:8
THIS RUNG AND THE NEXT RUNG WILL TOGGLE BETWEEN EXECUTING A BTR AND A BTW
WHILE THE USER SUPPLIED BT PRECONDITION BIT (B3:0/11 IS USED IN THIS EXAMPLE)
IS TRUE.
| | | | | |
| | | | | |
| BT |VIRTUAL |VIRTUAL |VIRTUAL |VIRTUAL |
| PRECON– |BTR ENABLE|BTW ENABLE|BTR DONE |BTR ERROR BTR |
| DITION BIT|BIT |BIT |BIT |BIT PENDING |
| B3 N7:50 N7:53 N7:60 N7:60 B3 |
|––––] [––––––––]/[––––––––]/[––––––––]/[––––––––]/[––––––––––––+––––(L)–––––+–|
| 11 15 15 13 12 | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | N7:50 | |
| +––––(L)–––––+ |
| 15 |
Rung 2:9
| | | | | |
| BT |VIRTUAL |VIRTUAL |VIRTUAL |VIRTUAL |
| PRECON– |BTR ENABLE|BTW ENABLE|BTW DONE |BTW ERROR |
| DITION BIT|BIT |BIT |BIT |BIT BTW DATA |
| B3 N7:50 N7:53 N7:64 N7:64 +COP–––––––––––––––+ |
|––––] [––––––––]/[––––––––]/[––––––––]/[––––––––]/[|–+–+COPY FILE +–+–|
| 11 15 15 13 12 | |Source #N7:10| | |
| | |Dest #M0:1.210| | |
| | |Length 11| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ENABLE | |
| | BIT | |
| | N7:53 | |
| +––––(L)–––––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | BTW | |
| | PENDING | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 1 |
Rung 2:10
MOVE THE VIRTUAL BTR CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHILE A BTR
IS IN PROGRESS, AND CONTINUE DOING SO UNTIL THE ENABLE, DONE AND ERROR BITS
ARE ALL TURNED OFF.
| |
| |
| VIRTUAL BTR |
| BTR ENABLE CONTROL |
| BIT BITS |
| N7:50 +MOV–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| | 15 | |Source N7:50| |
| | | | 0| |
| | | |Dest M0:1.100| |
| | | | *| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | VIRTUAL | |
| | BTR DONE | |
| | BIT | |
| | N7:60 | |
| +––––] [–––––+ |
| | 13 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ERROR | |
| | BIT | |
| | N7:60 | |
| +––––] [–––––+ |
| 12 |
Rung 2:11
MOVE THE VIRTUAL BTW CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHILE A BTW
IS IN PROGRESS, AND CONTINUE DOING SO UNTIL THE ENABLE, DONE AND ERROR BITS
ARE ALL TURNED OFF.
| |
| |
| VIRTUAL BTW |
| BTW ENABLE CONTROL |
| BIT BITS |
| N7:53 +MOV–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| | 15 | |Source N7:53| |
| | | | 0| |
| | | |Dest M0:1.200| |
| | | | *| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | VIRTUAL | |
| | BTW DONE | |
| | BIT | |
| | N7:64 | |
| +––––] [–––––+ |
| | 13 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ERROR | |
| | BIT | |
| | N7:64 | |
| +––––] [–––––+ |
| 12 |
Rung 2:12
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| |
Rung 2:0
CONFIGURE THE BT OPERATION TYPE, LENGTH AND RIO ADDRESS (R,G,S IN DECIMAL) AT
POWER–UP. BIT N7:50/7 MUST BE SET TO A ”1” TO INDICATE A BTR AND N7:53/7 MUST
BE A LOGICAL ”0” TO INDICATE A BTW OPERATION.
| |
| |
| |
| POWER–UP BTR |
| BIT CONTROL |
| S:1 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 15 | |Source #N7:50| | |
| | |Dest #M0:1.100| | |
| | |Length 3| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTW | |
| | OPERATION | |
| | +COP–––––––––––––––+ | |
| +–+COPY FILE +–+ |
| |Source #N7:53| |
| |Dest #M0:1.200| |
| |Length 3| |
| +––––––––––––––––––+ |
Rung 2:1
COPY THE BTR STATUS AREA TO AN INTEGER FILE ONLY WHEN A BTR IS IN PROGRESS.
THIS STATUS DATA WILL THEN BE USED THROUGHOUT THE PROGRAM AND WILL LIMIT THE
NUMBER OF M–FILE ACCESSES
| |
| |
| |
| BTR |
| PENDING BTR STATUS |
| B3 +COP–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| | 0 | |Source #M1:1.100| |
| | | |Dest #N7:60| |
| | | |Length 4| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––] [–––––+ |
| 2 |
Rung 2:2
UNLATCH THE BIT THAT CONTINUES TO CHECK THE BTR STATUS. WHEN A BTR IS
COMPLETE, THE DONE OR ERROR BIT IS SET. THE LADDER PROGRAM MUST THEN UNLATCH
THE ENABLE BIT, THEN WAIT FOR THE SN MODULE TO TURN OFF THE DONE/ERROR BIT
BEFORE ANOTHER BTR TO THE SAME M–FILE LOCATION CAN BE INITIATED. THIS IS ONE
COMPLETE BTR CYCLE.
| |
| |
| VIRTUAL |
| BTR DONE CHECK BTR |
| BIT STATUS |
| N7:60 B3 |
|–+––––]/[–––––+–––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| | 13 | 2 |
| | | |
| | | |
| | | |
| | BTR ERROR | |
| | BIT | |
| | N7:60 | |
| +––––]/[–––––+ |
| 12 |
Rung 2:3
COPY THE BTW STATUS AREA TO AN INTEGER FILE ONLY WHEN A BTW IS IN PROGRESS.
THIS STATUS DATA WILL THEN BE USED THROUGHOUT THE PROGRAM AND WILL LIMIT THE
NUMBER OF M–FILE ACCESSES.
| |
| |
| |
| BTW BTW |
| PENDING STATUS |
| B3 +COP–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| | 1 | |Source #M1:1.200| |
| | | |Dest #N7:64| |
| | | |Length 4| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | | |
| | CHECK BTW | |
| | STATUS | |
| | B3 | |
| +––––] [–––––+ |
| 3 |
Rung 2:4
UNLATCH THE BIT THAT CONTINUES TO CHECK THE BTW STATUS. WHEN A BTW IS
COMPLETE, THE DONE OR ERROR BIT IS SET. THE LADDER PROGRAM MUST THEN UNLATCH
THE ENABLE BIT, THEN WAIT FOR THE SN MODULE TO TURN OFF THE THE DONE/ERROR BIT
BEFORE ANOTHER BTW TO THE SAME M–FILE LOCATION CAN BE INITIATED. THIS COMPLETES
ONE BTW CYCLE.
| |
| |
| VIRTUAL |
| BTW DONE CHECK BTW |
| BIT STATUS |
| N7:64 B3 |
|–+––––]/[–––––+–––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| | 13 | 3 |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ERROR | |
| | BIT | |
| | N7:64 | |
| +––––]/[–––––+ |
| 12 |
Rung 2:5
WHEN A BTR SUCCESSFULLY COMPLETES, BUFFER THE BTR DATA AND UNLATCH BOTH THE
BTR VIRTUAL ENABLE BIT AND THE BTR PENDING BIT. ALSO, LATCH THE BIT THAT
CONTINUES CHECKING THE BTR STATUS UNTIL THE SN MODULE TURNS OFF THE DONE BIT.
| |
| |
| VIRTUAL |
| BTR DONE |
| BIT BTR DATA |
| N7:60 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 13 | |Source #M1:1.110| | |
| | |Dest #N7:0| | |
| | |Length 10| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | N7:50 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 2 |
Rung 2:6
WHEN A BTR UNSUCCESSFULLY COMPLETES, BUFFER THE ERROR CODE AND UNLATCH THE BTR
ENABLE BIT AND THE BTR PENDING BIT. ALSO, LATCH THE CHECK BTR STATUS BIT IN
ORDER TO CONTINUE READING THE STATUS INFORMATION FROM THE SCANNER UNTIL IT
TURNS THE ERROR BIT OFF, COMPLETING THE HAND–SHAKE PROCESS.
| |
| |
| BTR ERROR |
| BIT |
| N7:60 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+MOVE +–+–|
| 12 | |Source M1:1.103| | |
| | | *| | |
| | |Dest N7:21| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | BTR | |
| | PENDING | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 0 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | N7:50 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 2 |
Rung 2:7
WHEN A BTW SUCCESSFULLY OR UNSUCCESSFULLY COMPLETES, UNLATCH THE BTW ENABLE BIT
AND THE BTW PENDING BIT TO COMPLETE A BTW SEQUENCE. ALSO, LATCH THE BIT THAT
CONTINUES CHECKING THE BTW STATUS UNTIL THE SN MODULE TURNS THE DONE/ERROR BIT
OFF. IN ADDITION, BUFFER THE BTW ERROR CODE IN CASE AN ERROR OCCURS.
| |
| |
| VIRTUAL |
| BTW DONE BTW |
| BIT PENDING |
| N7:64 B3 |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––+––––(U)–––––––––––––––+–|
| | 13 | | 1 | |
| | | | | |
| | | | | |
| | VIRTUAL | | VIRTUAL | |
| | BTW ERROR | | BTW ENABLE | |
| | BIT | | BIT | |
| | N7:64 | | N7:53 | |
| +––––] [–––––+ +––––(U)–––––––––––––––+ |
| 12 | 15 | |
| | | |
| | | |
| | | |
| | CHECK BTW | |
| | STATUS | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| | 3 | |
| | | |
| | | |
| | | |
| | BTW ERROR | |
| | CODE | |
| | +MOV–––––––––––––––+ | |
| +–+MOVE +–+ |
| |Source M1:1.203| |
| | *| |
| |Dest N7:22| |
| | 0| |
| +––––––––––––––––––+ |
Rung 2:8
THIS RUNG AND THE NEXT RUNG WILL TOGGLE BETWEEN EXECUTING A BTR AND A BTW.
| | | | |
| | | | |
| VIRTUAL |VIRTUAL |VIRTUAL | |
| BTR ENABLE|BTW ENABLE|BTR DONE |BTR ERROR BTR |
| BIT |BIT |BIT |BIT PENDING |
| N7:50 N7:53 N7:60 N7:60 B3 |
|––––]/[––––––––]/[––––––––]/[––––––––]/[–––––––––––––––––––––––+––––(L)–––––+–|
| 15 15 13 12 | 0 | |
| | | |
| +++ +++|
| +++ +++|
| | | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | N7:50 | |
| +––––(L)–––––+ |
| 15 |
Rung 2:9
| | | | |
| | | | |
| VIRTUAL |VIRTUAL |VIRTUAL |VIRTUAL |
| BTR ENABLE|BTW ENABLE|BTW DONE |BTW ERROR |
| BIT |BIT |BIT |BIT BTW DATA |
| N7:50 N7:53 N7:64 N7:64 +COP–––––––––––––––+ |
|––––]/[––––––––]/[––––––––]/[––––––––]/[–––––––––––––+–+COPY FILE +–+–|
| 15 15 13 12 | |Source #N7:10| | |
| | |Dest #M0:1.210| | |
| | |Length 11| | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ENABLE | |
| | BIT | |
| | N7:53 | |
| +––––(L)–––––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | BTW | |
| | PENDING | |
| | B3 | |
| +––––(L)–––––––––––––––+ |
| 1 |
Rung 2:10
MOVE THE VIRTUAL BTR CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHILE A BTR
IS IN PROGRESS, AND CONTINUE DOING SO UNTIL THE ENABLE, DONE AND ERROR BITS
ARE ALL TURNED OFF, COMPLETING THE HAND–SHAKE PROCESS.
| |
| |
| VIRTUAL BTR |
| BTR ENABLE CONTROL |
| BIT WORD |
| N7:50 +MOV–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| | 15 | |Source N7:50| |
| | | | 0| |
| | | |Dest M0:1.100| |
| | | | *| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR DONE | |
| | BIT | |
| | N7:60 | |
| +––––] [–––––+ |
| | 13 | |
| | | |
| | | |
| | | |
| | BTR ERROR | |
| | BIT | |
| | N7:60 | |
| +––––] [–––––+ |
| 12 |
Rung 2:11
MOVE THE VIRTUAL BTW CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHILE A BTR
IS IN PROGRESS, AND CONTINUE DOING SO UNTIL THE ENABLE, DONE AND ERROR BITS
ARE ALL TURNED OFF, COMPLETING THE HAND–SHAKE PROCESS.
| |
| |
| VIRTUAL BTW |
| BTW ENABLE CONTROL |
| BIT WORD |
| N7:53 +MOV–––––––––––––––+ |
|–+––––] [–––––+––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| | 15 | |Source N7:53| |
| | | | 0| |
| | | |Dest M0:1.200| |
| | | | *| |
| | | +––––––––––––––––––+ |
| | | |
| | | |
| | VIRTUAL | |
| | BTW DONE | |
| | BIT | |
| | N7:64 | |
| +––––] [–––––+ |
| | 13 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTW ERROR | |
| | BIT | |
| | N7:64 | |
| +––––] [–––––+ |
| 12 |
Rung 2:12
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| |
Alarm
RIO Network
RediPANEL
G File
RIO Rack 3 RIO Rack 2 RIO Rack 1 RIO Rack 0
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Device Address, Word 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Device Size, Word 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
The scanner input file is shown below. The output file is similar, it is
addressed O:1.0 to O:1.3.
Bit Number 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Input File
Rack 0 Group 0 Word 0 I:1.0
Rack 0 Group 1 Word 1 I:1.1
Rack 0 Group 2 Word 2 I:1.2 RediPANEL
Rack 0 Group 3 I:1.3
Rack 0 Rack 0 Group 4
Word 3
Word 4 I:1.4
Rack 0 Group 5 Word 5 I:1.5
Bit Number (octal) 178 168 158 148 138 128 118 108 78 68 58 48 38 28 18 08
= not used
Scanner Configuration
Since only the first 4 words of the input and output files contain
valid information, the scanned input and output words can be set to
4. Reducing the number of scanned input and output words
decreases your SLC scan time.
Example Program
MEQ O:2
If the Communications attempted and MASKED EQUAL ( )
Enabled Device Fault bits are set to 1, Source M1:1.0 2
activate the alarm. Mask 0003
Compare 3
I:1.0 MOV
If function key 1 is pressed (bit 8 of MOVE
input word 0), T4:0 Preset is moved ] [
Source T4:0.PRE
to the display. 8
Dest O:1.1
I:1.0 MOV
When a new number is entered ] [ MOVE
onto the RediPANEL, it is moved to Source I:1.1
preset T4:0.
14 Dest T4:0.PRE
I:1.0 MOV
If function key 2 is pressed (bit 9 of ] [ MOVE
input word 0), RediPANEL message 9 Source 2
#2 is triggered and displayed. Dest O:1.2
END
Controller 1
Controller 2
G File
RIO Rack 3 RIO Rack 2 RIO Rack 1 RIO Rack 0
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Device Address, Word 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1
Device Size, Word 2 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 1
The scanner input file is shown below. The output file is similar, it is
addressed O:1.0 to O:1.5 for the RediPANEL and O:1.8 to O:1.11 for
the DCM.
Bit Number 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Input File
Rack 0 Group 0 Word 0 I:1.0
Rack 0 Group 1 Word 1 I:1.1
Rack 0 Group 2 Word 2 I:1.2
RediPANEL
Rack 0 Group 3 Word 3 I:1.3
Rack 0 Rack 0 Group 4 Word 4 I:1.4
Bit Number (octal) 178 168 158 148 138 128 118 108 78 68 58 48 38 28 18 08
= not used
Scanner Configuration
Since only the first 12 words of the input and output files contain
valid information, the scanned input and output words can be set to
12. Reducing the number of scanned input and output words
decreases your SLC scan time.
Example Program
Upon the scanner’s first scan, the application program copies the M1
file to integer file N7. The contents of the M1 file can then be
monitored by performing a data monitor of the N7 file. The baud
rate (M1:1.2), device address (M1:1.8), and device size (M1:1.9)
information will not change during operation. The general status
(M1:1.0) and active device status (M1:1.10) words are updated in the
integer file upon each scan.
The program monitors the active device status bits that are
transferred to the integer file. If the RediPANEL is not active, the
DCM is forced to a reset by setting the device reset bit (M0:1.17). If
the DCM is not active, an error message (message #4) is displayed
on the RediPANEL by moving 4 to output word 2 (O:1.2).
The active device status bits are conditioned with the communication
attempted bit (M1:1.1) before any fault actions are taken. This
ensures that the scanner has attempted to communicate with all
configured devices before an inactive device is considered faulted.
MOV
MOVE
Move input word 10 (I:1.10) from the DCM Source I:1.10
to output word 2 (O:1.2) of the RediPANEL.
Dest O:1.2
I:1.0 O:1.10
Bit 8 of the RediPANEL input word 0 ] [ ( )
activates bit 1 of the DCM output word 2. 8 1
S:1 MOV
Upon the first processor scan, move the ] [ MOVE
baud rate setting, device address, and Source M1:1.2
15 Dest N7:1
device size to integer file N7.
MOV
MOVE
Source M1:1.8
Dest N7:2
MOV
MOVE
Source M1:1.9
Dest N7:3
MOV
Move the active device status and MOVE
general status words to integer file N7 Source M1:1.10
upon each scan. Dest N7:4
MOV
MOVE
Source M1:1.0
Dest N7:0
END
RIO Network
G File
RIO Rack 3 RIO Rack 2 RIO Rack 1 RIO Rack 0
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Device Address, Word 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
Device Size, Word 2 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0
The scanner input file is shown below. The output file is similar, it is
addressed O:1.8 to O:1.11.
Bit Number 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Input File
Rack 0 Group 0 Word 0 I:1.0
Rack 0 Group 1 Word 1 I:1.1
Rack 0 Group 2 Word 2 I:1.2
Rack 0 Group 3 Word 3 I:1.3
Rack 0 Rack 0 Group 4 Word 4 I:1.4
Rack 0 Group 5 Word 5 I:1.5
Rack 0 Group 6 Word 6 I:1.6
Rack 0 Group 7 Word 7 I:1.7
Rack 1 Group 0 Word 8 I:1.8
Rack 1 Group 1 Word 9 I:1.9 Dataliner
Rack 1 Group 2 Word 10 I:1.10
Rack 1 Group 3 Word 11 I:1.11
Rack 1 Rack 1 Group 4 Word 12 I:1.12
Rack 1 Group 5 Word 13 I:1.13
Rack 1 Group 6 Word 14 I:1.14
Rack 1 Group 7 Word 15 I:1.15
Rack 2 Group 0 Word 16 I:1.16
Rack 2 Group 1 Word 17 I:1.17
Rack 2 Group 2 Word 18 I:1.18
= not used
Scanner Configuration
Since only the first 12 words of the input and output files contain
valid information, the scanned input and output words can be set to
12. Reducing the number of scanned input and output words
decreases your SLC scan time.
Example Program
Cycle
Counting
Conditions MOV
MOVE
Message 1 is triggered by moving the Source 1
value 1 to output module group 0 of the Dest O:1.8
Dataliner.
Conveyor
Alarm
Conditions OSR MOV
If alarm conditions go from false to true, MOVE
trigger message 2 by sending the value 2 Source 2
to output module group 0 of the Dataliner. Dest O:1.8
If B3/0 is ON, message 2 has not been
acknowledged.
B3
(OTL )
0
EQU I:1.8 B3
If the Dataliner input module group 1 is EQUAL (OTU )
equal to 2 (message 2 is presently Source A I:1.9 13 0
displayed) and the [MSG ACK] button is Source B 2
pressed (I:1.8/13), unlatch the Alarm Not
Acknowledged bit (B3/0).
END
Pump
G File
RIO Rack 3 RIO Rack 2 RIO Rack 1 RIO Rack 0
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
Device Address, Word 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0
Device Size, Word 2 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
The scanner input file is shown below. The output file is similar, it is
addressed O:1.16 to O:1.29.
Bit Number 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Input File
Rack 0 Group 0 Word 0 I:1.0
Rack 0 Group 1 Word 1 I:1.1
Rack 0 Group 2 Word 2 I:1.2
Rack 0 Group 3 Word 3 I:1.3
Rack 0 Rack 0 Group 4 Word 4 I:1.4
Rack 0 Group 5 Word 5 I:1.5
Bit Number (octal) 178 168 158 148 138 128 118 108 78 68 58 48 38 28 18 08
= not used
Scanner Configuration
Since only the first 30 words of the input and output files contain
valid information, the scanned input and output words can be set to
30. Reducing the number of scanned input and output words
decreases your SLC scan time.
Example Program
O:2 MOV
When the pump is on, display the pressure MOVE
from the pressure gauge on the PanelView 0 Source I:3.0
terminal Numeric Value Display. Dest O:1.17
Pump ON
Conditions O:1.16
When the pump is on, display the ON state ( )
of the multistate indicator on the 1
PanelView.
END
Block Transfer Application In the following example, a technician has these requirements:
Example • install a 4 to 20 mA transducer located approximately 701 meters
(2,300 feet) from an SLC 5/03 processor
• bring this analog input value from the transducer into the SLC
processor as well as display the analog value on a meter at the
remote location
• the meter must display 0 to 100% and accept a 4 to 20 mA signal
• in addition, the remote I/O scanner in the SLC processor chassis
has only 1/4 logical rack of I/O image space remaining (due to
other RIO devices on this RIO link)
• needs 16 discrete inputs and 16 discrete outputs at this same
remote location
The local system consists of (refer to system layout diagram):
• a Catalog Number 1747-L532 processor (SLC 5/03) in slot 0
• a Catalog Number 1747-SN scanner (RIO Scanner) in slot 1 with
only 1/4 logical rack of the I/O image available
With only 1/4 logical rack image to work with, the remote system
consists of (refer to system layout diagram):
• 4-slot remote chassis with a 1747-ASB in slot 0
• 1746-IV16 module in slot 1
• 1746-OV16 module in slot 2
• 1746-NIO4I in slot 3
2-slot addressing must be selected for the remote chassis to keep its
image size to 1/4 logical rack. The discrete modules use the entire
image for logical rack 3, group 6 in a complementary slot pair
arrangement and the combination analog module uses the image for
logical rack 3, group 7. This image size for the analog module is 1
input and 1 output word short of what is required by the NIO4I
module. Therefore, block transfer to/from the analog module will be
used (BT operations only require one input and one output byte). In
the future, the other analog input and output on the 1747-NIO4I may
be used.
Scanner Configuration
The technician addresses the 1747-ASB to logical rack 3, starting
logical group 6. Since the analog module’s image (2 input/output
words) will not fit into one logical group (1 input/output word), he
must use block transfer to read analog input values and write to
analog outputs. In this example, the SLC processor will receive the
analog input data via BTR, scale it, and send it to the analog output
via a BTW.
G File
ÉÉ
RIO Rack 3 RIO Rack 2 RIO Rack 1 RIO Rack 0
Starting Group Starting Group Starting Group Starting Group
6 4 2 0 6 4 2 0 6 4 2 0 6 4 2 0
ÉÉ
Device Address, Word 1 1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
Device Size, Word 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Local System
Remote System
1747-ASB
IV16 Module
OV16 Module
NIO4I
Output
0 100
4 to 20 mA Analog
Meter
(0 to 100%)
Input
To Other RIO
Devices
4 to 20 mA Transducer
Example Program
The following program samples the analog input data from the
1746-NIO4I module located in the remote I/O chassis every 100 ms
by executing a BTR every 100 ms. This data is then scaled for the
4 to 20 mA output and sent back to the analog module via a BTW.
The meter will then display the 4 to 20mA analog output as a 0 to
100% scale. Refer to the system layout diagram above. Also refer
to the analog module user manual, Catalog Number 1746-6.4 for
details on analog input and output ranges as well as scaling.
Rung 2:0
Configure the BTR and BTW length and RIO address at power–up. Also, set the block
transfer operation bit for BTR operation only.
| |
| |
| |
| POWER–UP BTR |
| BIT CONTROL |
| S:1 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 15 | |Source #N7:50| | |
| | |Dest #M0:1.101| | |
| | |Length 2| | |
| | +––––––––––––––––––+ | |
| | BT | |
| | OPERATION | |
| | BIT | |
| | M0:1.100 | |
| +––––(L)–––––––––––––––+ |
| | 7 | |
| | BTW | |
| | CONTROL | |
| | +COP–––––––––––––––+ | |
| +–+COPY FILE +–+ |
| |Source #N7:52| |
| |Dest #M0:1.201| |
| |Length 2| |
| +––––––––––––––––––+ |
Rung 2:1
Copy the BTR status area to an integer file only when a BTR is in progress. This
status data will then be used throughout the program and will limit the number of
M–File accesses.
| SERVICE |
| THE BTR |
| STATUS/ |
| BTR |
| PENDING BTR STATUS |
| B3:0 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| 0 |Source #M1:1.100| |
| |Dest #N7:60| |
| |Length 4| |
| +––––––––––––––––––+ |
Rung 2:2
Copy the BTW status area to an integer file only when a BTW is in progress. This
status data will then be used throughout the program and will limit the number of
M–File accesses.
| SERVICE |
| THE BTW |
| STATUS/ |
| BTW BTW |
| PENDING STATUS |
| B3:0 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| 1 |Source #M1:1.200| |
| |Dest #N7:64| |
| |Length 4| |
| +––––––––––––––––––+ |
Rung 2:3
When a BTR successfully completes, buffer the block transfer data and unlatch both
the BTR enable bit and the BTR pending bit. The data in this example is from
analog input 0 located at remote address: Logical Rack 3, Group 7, left slot (0).
This analog input is 4–20mA input from a transducer.
| |
| |
| VIRTUAL |
| BTR DONE |
| BIT BTR DATA |
| N7:60 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 13 | |Source #M1:1.110| | |
| | |Dest #N7:10| | |
| | |Length 2| | |
| | +––––––––––––––––––+ | |
| | SERVICE | |
| | THE BTR | |
| | STATUS/ | |
| | BTR | |
| | PENDING | |
| | B3:0 | |
| +––––(U)–––––––––––––––+ |
| | 0 | |
| | | |
| | | |
| | | |
| | BTR ENABLE | |
| | BIT | |
| | M0:1.100 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | | |
| | GOOD BTR | |
| | DATA BIT | |
| | B3:0 | |
| +––––(L)–––––––––––––––+ |
| 2 |
Rung 2:4
When a BTW successfully completes, unlatch the BTW enable bit and the BTW pending
bit to complete a BTW sequence.
| SERVICE |
| THE BTW |
| VIRTUAL STATUS/ |
| BTW DONE BTW |
| BIT PENDING |
| N7:64 B3:0 |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––+––––(U)–––––+–|
| 13 | 1 | |
| | | |
| | | |
| | | |
| | BTW ENABLE | |
| | BIT | |
| | M0:1.200 | |
| +––––(U)–––––+ |
| 15 |
Rung 2:5
If a BTR errors, unlatch the BTR enable bit and the BTR pending bit. In addition,
the BTR error code (N7:63 OR M1:1.103) must be viewed or buffered to determine the
cause of the error.
| SERVICE |
| THE BTR |
| STATUS/ |
| BTR ERROR BTR |
| BIT PENDING |
| N7:60 B3:0 |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––+––––(U)–––––+–|
| 12 | 0 | |
| | | |
| | | |
| | | |
| | BTR ENABLE | |
| | BIT | |
| | M0:1.100 | |
| +––––(U)–––––+ |
| 15 |
Rung 2:6
If a BTW errors, unlatch the BTW enable bit and the BTW pending bit. In addition,
the BTW error code (N7:67 OR M1;1.203) must be viewed or buffered to determine the
cause of the error.
| |
| |
| |
| BTW ERROR BTW ENABLE |
| BIT BIT |
| N7:64 M0:1.200 |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––+––––(U)–––––+–|
| 12 | 15 | |
| | | |
| | | |
| | SERVICE | |
| | THE BTW | |
| | STATUS/ | |
| | BTW | |
| | PENDING | |
| | B3:0 | |
| +––––(U)–––––+ |
| 1 |
Rung 2:7
Free–running timer to execute a BTR to the analog input in Logical Rack 3, Group 7
left slot every 100ms (0).
| T4:0 +TON–––––––––––––––+ |
|––]/[–––––––––––––––––––––––––––––––––––––––––––––––+TIMER ON DELAY +–(EN)–|
| DN |Timer T4:0+–(DN) |
| |Time Base 0.01| |
| |Preset 10| |
| |Accum 0| |
| +––––––––––––––––––+ |
Rung 2:8
Initiate a BTR every 100ms as long as a BTR is not in progress. A complete cycle
requires that when complete or error, the ladder program unlatches the enable bit
and the scanner then unlatches the done bit. A new BTR must not be initiated until
these conditions occur.
| | SERVICE |
| | THE BTR |
| | STATUS/ |
| BTR ENABLE|BTR DONE BTR |
| BIT |BIT PENDING |
| T4:0 M0:1.100 M1:1.100 B3:0 |
|––] [–––––]/[––––––––]/[–––––––––––––––––––––––––––––––––––––––+––––(L)–––––+–|
| DN 15 13 | 0 | |
| | | |
| | | |
| | | |
| | BTR ENABLE | |
| | BIT | |
| | M0:1.100 | |
| +––––(L)–––––+ |
| 15 |
Rung 2:9
This rung checks the analog input data (4–20MA input) to ensure that it is within the proper range
and turns on outputs for under and over range. If the value is within range it is scaled to the
4–20MA analog output range and is then placed into the BTW data area. The BTW enable bit and pending
bits are then latched to initiate the BTW to the analog combination module, output 0. Output 0 is
connected to a meter to display the current range in percent.
| |
| GOOD BTR BELOW |
| DATA BIT RANGE FLAG |
| B3:0 +LES–––––––––––––––+ O:2.0 |
|––] [––+–+LESS THAN +–––––––––––––––––––––––––––––––––––––––––––––––––––––––––(L)–––––+–|
| 2 | |Source A N7:10| 0 | |
| | | 0| | |
| | |Source B 3277| | |
| | | | | |
| | +––––––––––––––––––+ | |
| | | |
| | | |
| | | |
| | ABOVE | |
| | RANGE FLAG | |
| | +GRT–––––––––––––––+ O:2.0 | |
| +–+GREATER THAN +–––––––––––––––––––––––––––––––––––––––––––––––––––––––––(L)–––––+ |
| | |Source A N7:10| 1 | |
| | | 0| | |
| | |Source B 16384| | |
| | | | | |
| | +––––––––––––––––––+ | |
| | +LIM–––––––––––––––+ +SCL–––––––––––––––+ | |
| +–+LIMIT TEST +–+–––––––––––––––––––––––––––––––+SCALE +–+––––––––––+ |
| |Low Lim 3277| | |Source N7:10| | |
| | | | | 0| | |
| |Test N7:10| | |Rate [/10000] 5250| | |
| | 0| | | | | |
| |High Lim 16384| | |Offset 4522| | |
| | | | | | | |
| +––––––––––––––––––+ | |Dest M0:1.210| | |
| | | *| | |
| | +––––––––––––––––––+ | |
| | | SERVICE | |
| | | THE BTW | |
| | | STATUS/ | |
| | BTW ENABLE|BTW DONE BTW | |
| | BIT |BIT PENDING | |
| | M0:1.200 M1:1.200 B3:0 | |
| +––––]/[––––––––]/[–––––+––––(L)––––––––––––+––––––––+ |
| 15 13 | 1 | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | BTW ENABLE | |
| | BIT | |
| | M0:1.200 | |
| +––––(L)––––––––––––+ |
| | 15 | |
| | | |
| | | |
| | B3:0 | |
| |––––––––(U)––––––––| |
| 2 |
| |
| |
| |
Rung 2:10
| |
|––––––––––––––––––––––––––––––––––––––––––––––––+END+–––––––––––––––––––––––––––––––––––––––––––|
| |
Scanner Operating
Specifications Backplane Current Consumption 600 mA @ 5VDC
Operating Temperature +32°F to 140°F (0°C to +60°C)
Storage Temperature 40°F to 185°F (40°C to +85°C)
Humidity 5 to 95% without condensation
Noise Immunity NEMA Standard ICS 2230
Agency Certification •CSA certified
(when product or packaging is •CSA Class I, Division 2
marked) Groups A, B, C, D certified
•UL listed
•CE marked for all applicable directives
Network Specifications
Baud Rate Determination of Maximum Cable Length
and Terminating Resistor Size
Maximum Cable Distance
Baud Rate Resistor Size
(Belden 9463)
57.6K baud 3048 meters (10,000 feet)
Using Extended 82W 1/2 Watt
115.2K baud 1524 meters (5,000 feet)
Node Capability Brown-Green-Brown-Gold
Brown Green Brown Gold
230.4K baud 762 meters (2,500 feet)
57.6K baud 3048 meters (10,000 feet) 150W 1/2 Watt
Not Using
115.2K baud 1524 meters (5,000 feet) Brown-Green-Brown-Gold
Extended Node
82W 1/2 Watt
Capability 230.4K baud 762 meters (2,500 feet)
Gray-Red-Black-Gold
Throughput Introduction RIO throughput is defined as the time between when an input event
occurs at an I/O module in an RIO chassis to when an output event
occurs at an I/O module within the same RIO chassis. There are
three types of throughput concerning the 1747-SN Series B Scanner
and its RIO network:
• discrete throughput (time from discretely mapped input to
discretely mapped output) without block transfers (BTs) present
• discrete throughput (time from discretely mapped input to
discretely mapped output) with BTs present
• BT throughput (time from when a BT is enabled to when the BT
successfully completes)
Processor Scan
Scanner Scan
RIO Scan
Outputs to Modules
Remote Chassis Remote Expansion Chassis
Output Device
When the SLC control program detects that the remote input has Input Device
been turned on (via the scanner input image), it activates the
remote output device (via the scanner output image). Throughput
is then defined as the time between when the remote input device
is activated to when the remote output turns on.
You need to calculate your Tdm–nbt: the RIO throughput time from
when the input closes on the 1746-IN16 until the output on the
1746-OB16 is on.
1. Use the throughput formula to calculate the maximum
throughput.
Tdm–nbt = 2Tps + 2TRIO + Tadp + TSNo + TSNi + Tid + Tod
Tps = 25.0 ms, which is from the APS reference manual (assume for
example)
TSNo = See value in the table on page A–13, TSNo without M0 File
Writes
(Normal Mode).
TSNi = 5.0 ms
2. Calculate the total RIO scan time (TRIO). Locate the baud rate
(115.2K) and adapter size, which is found in the table on page
A–4. Multiply the RIO scan times listed under the 115.2K
heading by the number of each different type of rack that you
have. Add those numbers together:
TRIO = Tadapter 1 + Tadapter 2 + Tadapter 3
TRIO = 25.5 ms
The formula to calculate discrete I/O throughput with BTs present is:
Determining TSNo-bt
Use the following table to find TSNo–bt for your particular
configuration.
Important: The times shown are, to the best of our knowledge, the
maximum delay times of the scanner. However, in
instances that throughput is an important consideration,
test the application thoroughly first to ensure proper
operation. Note that in most situations the average
throughput is much better than the calculated maximum
throughput.
➀ See page A-12 if you are not sure how to determine the number of logical racks configured.
Determining Tbtx
Before determining (Tbtx), you need to establish the maximum BT
write or read length that is to be processed by each logical rack on
the RIO link. RIO scan time is increased each time an BT is sent to
any logical device on the RIO network. The scan time increase
depends on the number of words sent in the BT and the selected
baud rate.
The total increase in the RIO scan time (Tbtx) is equal to:
Tbtx = sum of Tri for all logical racks
Tps = 25.0 ms, which is from the APS reference manual (assume for
example)
Tbtx = Additional time due to sending any BT data on the RIO link
TSNo–bt = 22.0 ms from the table on page A–13, TSNo with Block
Transfers
(Normal Mode). There are 3 logical racks configured.
TSNi = 5.0 ms
2. Calculate the total RIO scan time (TRIO). Locate the baud rate
(115.2K) and adapter size which is found in the table on page
A–4. Multiply the RIO scan times listed under the 115.2K
heading by the number of each different type of rack that you
have. Add those number together.
TRIO = Tadapter1 + Tadapter2 + Tadapter3
TRIO = 16.5 ms
3. Calculate the maximum Tri time for each logical rack. Do this by
determining the largest BT that will occur to any device within a
logical rack and calculating the transfer time using the table on
page A–7. Then add together the Tri times for each logical rack
to obtain Tbtx.
Tri for rack 0 = 0.150(8) + 3.5 = 4.7 ms (maximum BT to rack 0 is 8
words)
Tri for rack 1 = 0.150(2) + 3.5 = 3.8 ms (maximum BT to rack 1 is 2
words)
Tri for rack 2 = 0.150(64) + 3.5 = 13.1 ms (maximum BT to rack 2 is 64
words)
➀ When calculating BT throughput, one TSNo-bt is also required to handle the BT response.
The following variables are used in the TSNo tables on page A–13:
Important: The times shown in this section are, to the best of our
knowledge, the maximum delay times of the scanner.
However, in instances that throughput is an important
consideration, test the application thoroughly first to
ensure proper operation. Note that in most situations
the average throughput is much better than the
calculated maximum throughput.
Complementary Mode➀➁
57.6K baud 115.2K baud 230.4K baud
Number of Logical
Racks Configured TSNo if TSNo if Tupd TSNo if TSNo if Tupd TSNo if TSNo if Tupd
Thold Thold Thold
TupdThold >Thold TupdThold >Thold TupdThold >Thold
1 Logical Rack 6.0 5.0 4.0 7.0 7.0 4.0 10.0 9.0 4.0
2 Logical Racks 9.0 8.0 5.0 10.0 10.0 6.0 12.0 12.0 7.0
3 Logical Racks 12.0 11.0 7.0 12.0 12.0 8.0 16.0 16.0 10.0
4 Logical Racks 15.0 14.0 9.0 16.0 16.0 10.0 21.0 22.0 13.0
Complementary Mode➀➁
57.6K baud 115.2K baud 230.4K baud
Number of Logical
Racks Configured TSNo if TSNo if Tupd TSNo if TSNo if Tupd TSNo if TSNo if Tupd
Thold Thold Thold
TupdThold >Thold TupdThold >Thold TupdThold >Thold
1 Logical Rack 10.0 6.0 6.0 12.0 8.0 8.0 15.0 10.0 9.0
2 Logical Racks 12.0 9.0 8.0 14.0 11.0 9.0 17.0 15.0 12.0
3 Logical Racks 15.0 12.0 9.0 16.0 14.0 11.0 21.0 20.0 14.0
4 Logical Racks 18.0 15.0 10.0 20.0 17.0 12.0 26.0 24.0 17.0
M0-M1 Files M0 and M1 files are data files that reside in specialty I/O modules
only. There is no image for these files in the processor memory. The
application of these files depends on the function of the particular
specialty I/O module. With respect to the SLC processor (SLC 5/02
or later), the M0 file is a module output file (a write only file) and
the M1 file is a module input file (a read only file). The opposite is
true for specialty I/O modules, where the M0 file is a read only file,
and the M1 file is a write only file.
3. Press [F5], then enter the number of M0 file words required (the
required number is listed in the user manual for the specific
specialty I/O module).
4. Press [F6], then enter the number of M1 file words required (the
required number is listed in the user manual for the specific
specialty I/O module).
The specialty I/O module may require that you also configure the G
file and specify an ISR (interrupt subroutine) number. These tasks
are accomplished with function keys F1, F3, and F7 shown in step 1
above. G files are discussed later in this appendix.
If you need to show the state of the M0 or M1 addressed bit, you can
transfer the state to an internal processor bit. This is illustrated
below, where an internal processor bit is used to indicate the
true/false state of a rung.
B3 B3 EQU M0:3.0
] [ ] [ EQUAL ( )
0 1 Source A N7:12 1
Source B N7:3
This rung will not show its true rung state because the EQU instruction is always shown
as true and the M0 instruction is always shown as false.
B3 B3 EQU B3
] [ ] [ EQUAL ( )
0 1 Source A N7:12 2
Source B N7:3 M0:3.0
( )
1
OTE instruction B3/2 has been added to the rung. This instruction shows the true or
false state of the rung.
The COP instructions below copy data from a processor bit file and
integer file to an M0 file. For the example, assume the data is
configuration information affecting the operation of the specialty I/O
module.
S:1 COP
] [ COPY FILE
15 Source #B3:0
Dest #M0:1.0
Length 16
First scan bit. It makes
this rung true only for COP
the first scan after COPY FILE
Source #N7:0
entering Run mode.
Dest #M0:1.16
Length 27
COP
COPY FILE
Source #M1:4.3
Dest #N10:0
Length 6
Access Time
During the program scan, the processor must access the specialty I/O
card to read/write M0 or M1 data. This access time must be added to
the execution time of each instruction referencing M0 or M1 data.
For the SLC 5/03 and SLC 5/04 processors, the instruction types
vary in their execution times.
➀ Except the OSR instruction and the instruction parameters noted on page B-2.
If you are using a SLC 5/02 Series B processor, add 1930 µs to the
program scan time for each bit instruction addressed to an M0 or M1
data file. If you are using a SLC 5/03 Series C processor, add 1160 µs.
COP
COPY FILE
Source #B3:0
Dest #M0:1.0
Length 34
If you are using a SLC 5/02 Series B processor, add 1580 µs plus
670 µs per word of data addressed to the M0 or M1 file. As shown
above, 34 words are copied from #B3:0 to M0:1.0. Therefore, this
adds 24360 µs to the scan time of the COP instruction. If you are
using a SLC 5/02 Series C processor, add 950 µs plus 400 µs per
word. This adds 14550 µs to the scan time of the COP instruction.
The SLC 5/03 processor access times depend on the instruction type.
Consult the table on B–5 for the correct access times to add. As an
example, if you use a COP to M file instruction like the one shown
above, add 772 µs plus 23 µs per word. This adds 1554 µs to the
SLC 5/03 processor scan time due to the COP instruction.
The SLC 5/04 processor access times depend on the instruction type.
Consult the table on B–5 for the correct access times to add. As an
example, if you use a COP to M file instruction like the one shown
above, add 735 µs plus 23 µs per word. This adds 1517 µs to the
SLC 5/04 processor scan time due to the COP instruction.
M0:2.1 B3
1 ] [ ( )
1 10
B3 M0:2.1 B3
2 ] [ ] [ ( )
12 1 14
XIC instructions in rungs 1 and 2 are addressed to the M0 data file. Each of
these instructions adds approximately 1 ms to the scan time (SLC 5/02
Series B processor).
M0:2.1 B3
1 ] [ ( )
1 10
B3 B3 B3
2 ] [ ] [ ( )
12 10 14
The first two ladder diagrams in the last section illustrate a technique
allowing you to capture and use M0 or M1 data as it exists at a
particular time. In the first figure, bit M0:2.1/1 could change state
between rungs 1 and 2. This could interfere with the logic applied in
rung 2. The second figure avoids the problem. If rung 1 is true, bit
B3/10 captures this information and places it in rung 2.
Certain specialty I/O modules retain the status of M0-M1 data after
power is removed. See your specialty I/O module user’s manual.
This means that an OTE instruction having an M0 or M1 address
remains on if it is on when power is removed. A “hold-in” rung as
shown below will not function as it would if the OTE instruction
were non-retentive on power loss. If the rung is true at the time
power is removed, the OTE instruction latches instead of dropping
out; when power is again applied, the rung will be evaluated as true
instead of false.
B3 M0:2.1
] [ ( )
0 1
M0:2.1
] [
1
M0:2.1
] [
1
The content of G files is accessed and edited offline under the I/O
Configuration function. You cannot access G files under the Monitor
File function. Data you enter into the G file is passed on to the
specialty I/O module when you download the processor file and
enter the REM Run or any one of the REM Test modes.
This is the starting point for configuring the G file and other
parameters of the specialty I/O module. Complete the following
steps to create and monitor the G file:
1. Press [F9], Specialty I/O Configuration. A screen similar to the
following is displayed:
address 0 1 2 3 4 5 6 7 8 9
G1:0 xxxx 0 0 0 0 0 0 0 0 0
G1:10 0 0 0 0 0 0
The function keys appearing below the data table indicate the three
data formats available to you – binary data, decimal data, and
hex/bcd data:
BINARY DECIMAL HEX/BCD
DATA DATA DATA
F1 F2 F3
The following figure illustrates the three G file data formats that you
can select. Word addresses begin with the file identifier G and the
slot number you have assigned to the specialty I/O module. In this
case, the slot number is 1. Sixteen words have been created
(addresses G1:0 through G1:15).
ÉÉÉÉÉ
ÉÉÉÉÉ ÉÉÉÉÉ
ÉÉÉÉÉ
Group 6 I:e.14 Group 6 O:e.14
Group 7 I:e.15 Group 7 O:e.15
ÉÉÉÉÉ
É ÉÉÉÉ
ÉÉÉÉÉ ÉÉÉÉÉ
ÉÉÉÉÉ
ÉÉÉÉÉ
Group 0 I:e.16 Group 0 O:e.16
ÉÉÉÉÉ
ÉÉÉÉÉ ÉÉÉÉÉ
ÉÉÉÉÉ
Group 1 I:e.17 Group 1 O:e.17
Group 2 I:e.18 Group 2 O:e.18
ÉÉÉÉÉ
ÉÉÉÉÉ ÉÉÉÉÉ
ÉÉÉÉÉ
Logical Logical Group 3
Group 3 I:e.19 O:e.19
Rack 2 Rack 2
Group 4 I:e.20 Group 4 O:e.20
Group 5 I:e.21 Group 5 O:e.21
Group 6 I:e.22 Group 6 O:e.22
Group 7 I:e.23 Group 7 O:e.23
Group 0 I:e.24 Group 0 O:e.24
Group 1 I:e.25 Group 1 O:e.25
Group 2 I:e.26 Group 2 O:e.26
Logical Logical
Group 3 I:e.27 Rack 3 Group 3 O:e.27
Rack 3
Group 4 I:e.28 Group 4 O:e.28
Group 5 I:e.29 Group 5 O:e.29
Group 6 I:e.30 Group 6 O:e.30
Group 7 I:e.31 Group 7 O:e.31
Logical
Rack 2
Group 1
Group 2
Group 3
ÉÉÉÉÉ
ÉÉÉÉÉ
ÉÉÉÉÉ
ÉÉÉÉÉ
I:e.17
I:e.18
I:e.19
Logical
Rack 2
Group 1
Group 2
Group 3
ÉÉÉÉÉ
ÉÉÉÉÉ
ÉÉÉÉÉ
ÉÉÉÉÉ
O:e.17
O:e.18
O:e.19
Group 4 I:e.20 Group 4 O:e.20
Group 5 I:e.21 Group 5 O:e.21
Group 6 I:e.22 Group 6 O:e.22
Group 7 I:e.23 Group 7 O:e.23
Group 0 I:e.24 Group 0 O:e.24
Group 1 I:e.25 Group 1 O:e.25
Group 2 I:e.26 Group 2 O:e.26
Logical Logical
Group 3 I:e.27 Rack 3 Group 3 O:e.27
Rack 3
Group 4 I:e.28 Group 4 O:e.28
Group 5 I:e.29 Group 5 O:e.29
Group 6 I:e.30 Group 6 O:e.30
Group 7 I:e.31 Group 7 O:e.31
Glossary
The following terms are used throughout this manual. Refer to the
Allen-Bradley Industrial Automation Glossary, Publication Number
AG-7.1, for a complete guide to Allen-Bradley technical terms.
G file The SLC file used to configure the scanner. You enter
configuration information into this file during SLC processor
programming. This file is loaded to the scanner by the SLC
processor upon entering run mode.
Input file The scanner’s input image file that is updated during
the SLC processor input scan.
Local SLC Chassis The chassis that contains the SLC processor
and scanner.
Logical Slot A logical slot consists of one input and one output
byte within a logical group. A byte consists of 8 bits, each bit
represents one terminal on a discrete I/O module.
M files The SLC M0 and M1 data files that reside in the scanner.
M files contain RIO network status (M1) and control (M0)
information. The contents of these files can be directly accessed by
your application program. Also, the M files are used to control and
monitor RIO block transfer operations.
Output file The scanner’s output file that is updated during the
SLC processor output scan.
Scanner Image The data table area within the scanner, used to
exchange I/O information between the scanner and all the adapters
on the RIO link. The scanner image is a portion of the SLC
processor image.
Slot The physical location in any SLC chassis used to insert I/O
modules.
U
understanding
I/O image files, 4-1
AllenBradley, a Rockwell Automation Business, has been helping its customers improve
productivity and quality for more than 90 years. We design, manufacture and support a broad
range of automation products worldwide. They include logic processors, power and motion
control devices, operator interfaces, sensors and a variety of software. Rockwell is one of the
world's leading technology companies.
Worldwide representation.
Argentina • Australia • Austria • Bahrain • Belgium • Brazil • Bulgaria • Canada • Chile • China, PRC • Colombia • Costa Rica • Croatia • Cyprus • Czech Republic • Denmark •
Ecuador • Egypt • El Salvador • Finland • France • Germany • Greece • Guatemala • Honduras • Hong Kong • Hungary • Iceland • India • Indonesia • Ireland • Israel • Italy •
Jamaica • Japan • Jordan • Korea • Kuwait • Lebanon • Malaysia • Mexico • Netherlands • New Zealand • Norway • Pakistan • Peru • Philippines • Poland • Portugal • Puerto
Rico • Qatar • Romania • RussiaCIS • Saudi Arabia • Singapore • Slovakia • Slovenia • South Africa, Republic • Spain • Sweden • Switzerland • Taiwan • Thailand • Turkey •
United Arab Emirates • United Kingdom • United States • Uruguay • Venezuela • Yugoslavia
AllenBradley Headquarters, 1201 South Second Street, Milwaukee, WI 53204 USA, Tel: (1) 414 3822000 Fax: (1) 414 3824444