The text of a manual · part 14 of 21
Remote I/O Scanner 1747-SN User Manual, pages 104 to 112
Pages 104 to 112 of 171
The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1747-SN
Page 104
A-8
Specifications
Number of Normal Mode Logical Racks All Baud Configured(1) Rates
Complementary Mode 57.6K baud
115.2K baud
230.4K baud
1 Logical Rack
16.0
19.0
24.0
32.0
2 Logical Racks
19.0
23.0
27.0
36.0
3 Logical Racks
22.0
26.0
30.0
39.0
4 Logical Racks
25.0
28.0
34.0
42.0
(1) 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. RIO link protocol allows for a maximum of one BT to be sent to each logical rack on the RIO link during any single RIO scan. Therefore, if multiple BTs are sent to devices within the same logical rack, only the longest BT to that logical rack needs to be considered to determine your maximum throughput. The RIO scan time increase (Tri) for each logical rack is:
Baud Rate
RIO Scan Time Increase (Tri)
57.6K baud
0.300 x BT length + 5.0 ms
115.2K baud
0.150 x BT length + 3.5 ms
230.4K baud
0.075 x BT length +2.0 ms
The total increase in the RIO scan time (Tbtx) is equal to: Tbtx = sum of Tri for all logical racks
Example Discrete I/O Throughput with Block Transfers Present An SLC 5/03 is using a scanner to control a 115.2K baud RIO link that has 3 adapters and 4 logical devices.
Publication 1747-UM013B-EN-P - January 2005
Page 105
Specifications
A-9
Adapter #1 (1747-ASB module): • starting logical rack 0, logical group 0 • 12 logical groups (1 1/2 logical racks) • one 8 word and two 4 word BT write/read modules in logical rack 0 • one 2 word BT write/read module in logical rack 1 Adapter #2 (1771-ASB module): • starting logical rack 2, logical group 0 • 2 logical groups (1/4 logical rack) • one 64 word BT write/read module Adapter #3 (1771-ASB module): • starting logical rack 2, logical group 2 • 2 logical groups (1/4 logical rack) • one 32 word BT write/read module 1. Use the throughput formula to calculate the maximum throughput of the 1747-ASB module. Tdm-bt = 2Tps + 2TRIO + 2Tbtx + Tadp + TSNo-bt + TSNi + Tid + Tod Tps = 25.0 ms TRIO = The total RIO scan time (ms) Tbtx = Additional time due to sending any BT data on the RIO link Tadp = Two 1747-ASB module backplane scan times (calculated from ASB manual) = 2(4.5) = 9.0 ms TSNo-bt = 22.0 ms from the table on page A-14, TSNo with Block Transfers (Normal Mode). There are 3 logical racks configured. TSNi = 5.0 ms Tid = 10.0 ms, which is from I/O module instruction sheets Tod = 1.0 ms, which is from I/O module instruction sheets
Publication 1747-UM013B-EN-P - January 2005
Page 106
A-10
Specifications
Tdm-bt = 2(25.0) + 2TRIO + 2Tbtx + 9.0 + 22.0 + 5.0 + 10.0 + 1.0 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 B-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 = 1(5.5) + 1(4.0) + 2(3.5) 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 B-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) Tbtx = Tri0 + Tri1 + Tri2 = 4.7 + 3.8 + 13.1 = 21.6 ms 4. Substitute all the values for variables in the throughput formula and solve for throughput. Tdm-bt = 2(25.0) + 2(16.5) + 2(21.6) + 9.0 + 22.0 + 5.0 + 10.0 + 1.0 Tdm-bt = 173.2 ms = maximum throughput
Block Transfer Throughput Block transfer throughput is the time from when the BT is enabled via the EN bit, until the DN bit is processed. The following BT timing explanations are based on the directional continuous BT example Publication 1747-UM013B-EN-P - January 2005
Page 107
Specifications
A-11 shown on page, where a BT is retriggered automatically upon each completion. BT throughput is always slower than discrete data transfer. Completing a BT is dependent on the time involved for the: • SLC control program to enable the BT via an M0 file write
(1)
(2)
• scanner to detect that a BT has been requested • BT to be waiting in the queue due to another BT already being processed on the same logical rack
(3)
• scanner to schedule a pending bit(2) • adapter to acknowledge the request(4) • scanner to initiate the BT and transfer the data(2) • SLC control program to detect that the BT has completed (DN flag set)(1) The time to free up the BT buffer (by clearing the EN flag so another BT can be performed) depends on the: • instruction time of the M0 file write which clears the EN flag(1) • time for the scanner to detect that the EN flag has been cleared(2) • time for SLC control program to detect that the DN flag has been cleared(1) The formula to calculate BT throughput is: T M0 + T SN0 – bt ( number of BTs +1 ) + T btwait + 2T RIO + 2T btx + T adp – bt + T ps
The equation for freeing up the BT buffer is: T M0 + T SNo – bt ( Number of BTs ) + T ps
Substitute values for the variables in the formulas above. Locate these values in the following documents:
(1)
This is dependent on the SLC processor you are using.
(2)
Refer to the equations that follow.
(3)
The RIO network allows only one BT per logical rack (not logical device) per RIO scan. Therefore, if multiple BTs are performed on devices within the same logical rack, BTs will have to wait in the queue until any previously scheduled BTs for the same logical rack have been completed.
(4)
This is dependent on the RIO adapter.
Publication 1747-UM013B-EN-P - January 2005
Page 108
A-12
Specifications
Variable
Variable Description
Location of Variable
TM0
Time to perform M0 file write to enable BT appendix B
TSNo-bt
Scanner Output Delay time with BTs present. There must be an output delay time added for each BT buffer that is being used since the scanner processes only one BT enable or disable every TSNo-bt (to minimize the impact on discrete I/O throughput).(1)
see the section Determining TSNo-bt on page A-7
Tbtwait
Equals the sum of the throughput times for all BTs scheduled to the same logical rack (time waiting is queue), + TSNo-bt (time to schedule pending BT). If multiple BTs are not being performed to the same logical rack, this value equals zero.
calculated
TRIO
RIO scan time without BTs see the section RIO Scan Time Calculation (TRIO) on page
A-4 Tbtx
Amount that the RIO scan time can be increased due to BTs. This includes the time for the scanner to initiate the BT and transfer the data.
see the section Determining Tbtx on page A-8
Tadp-bt
Time for the adapter to acknowledge the BT request. For the 1747-ASB, the manual defines this as no more than one (ASB) backplane scan time and two RIO scans. However, the two RIO scans are already included in the above equation so only the ASB scan time needs to be added.
adapter user manual
Tps
One processor scan time may occur before the SLC control program detects that the DN flag has been set or cleared
Measured or estimated
(1) When calculating BT throughput, one TSNo-bt is also required to handle the BT response.
Publication 1747-UM013B-EN-P - January 2005
Page 109
Specifications
A-13
RIO Scanner Output Delay Time (TSNo) Tables The tables provided in this section show the maximum scanner output delay time (TSNo) for specific applications. TSNo is dependent on the following: • processor scan time, or time between immediate outputs (if no BTs are present) • number of logical racks configured • whether normal or complementary I/O mode is selected • RIO baud rate (if complementary I/O is selected) The following variables are used in the TSNo tables on page A-14:
Variable
Variable Description
TSNo
The maximum scanner output delay time
Tupd
The time between SLC processor output scan updates or immediate output updates
Thold
A constant time threshold that is dependent on your configuration. Refer to the tables on page A-14.
TSNo increases if the interval between Tupd decreases to the time threshold (Thold). If Tupd is less than Thold, then the larger TSNo number must be used. Otherwise, either number may be used.
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.
Determining the Number of Logical Racks Configured The number of logical racks configured is determined by the number of racks that contain configured devices. For example, if there are four 1/4 rack devices in logical rack 0 and one full rack device in logical rack 3, there would be two logical racks configured. Note that the Publication 1747-UM013B-EN-P - January 2005
Page 110
A-14
Specifications number of logical devices on the RIO network affects only TRIO, and only affects TSNo when additional logical racks are used. When complementary mode is selected, the number of configured racks is also determined by the number of primary or complementary racks configured, but not by both. (The maximum number of configured racks is 4.) That is, if there is a primary rack configured with a corresponding complementary rack, that is considered one logical rack. If there is a primary rack configured without a complementary rack (or vice versa), that also is considered one logical rack.
TSNo without M0 File Writes
Normal Mode(1) Number of Logical Racks Configured
All Baud Rates TSNo if Tupd ≤ Thold
Thold
TSNo if Tupd>Thold
1 Logical Rack
5.0
5.0
2.5
2 Logical Rack
7.0
7.0
4.0
3 Logical Rack
9.0
9.0
5.5
4 Logical Rack
11.0
11.0
7.0
(1) All times shown are in milliseconds (ms).
Complementary(1) (2) Number of Logical Racks Configured
57.6K baud
115.2K baud
230.4K baud
Thold TSNo if Tupd ≤ Thold
TSNo if Tupd>Thold
TSNo if Thold Tupd ≤ Thold
TSNo if Tupd>Thold
TSNo if Thold Tupd ≤ Thold
TSNo if Tupd>Thold
1 Logical Rack
6.0
5.0
4.0
7.0
7.0
4.0
10.0
9.0
4.0
2 Logical Rack
9.0
8.0
5.0
10.0
10.0
6.0
12.0
12.0
7.0
3 Logical Rack
12.0
11.0
7.0
12.0
12.0
8.0
16.0
16.0
10.0
4 Logical Rack
15.0
14.0
9.0
16.0
16.0
10.0
21.0
22.0
13.0
(1) All times shown are in milliseconds (ms). (2) Although a faster baud rate decreases RIO scan time (TRIO), it has an inverse affect on TSNo when complementary I/O mode is selected.
Publication 1747-UM013B-EN-P - January 2005
Page 111
Specifications
A-15
TSNo with M0 File Writes (No Block Transfers)
Normal Mode(1) Number of Logical Racks Configured
All Baud Rates TSNo if Tupd ≤ Thold
Thold
TSNo if Tupd>Thold
1 Logical Rack
8.0
6.0
4.5
2 Logical Rack
10.0
8.0
5.5
3 Logical Rack
12.0
10.0
7.0
4 Logical Rack
14.0
12.0
8.0
(1) All times shown are in milliseconds (ms).
Complementary(1) (2) Number of Logical Racks Configured
57.6K baud
115.2K baud
230.4K baud
TSNo if Thold Tupd ≤ Thold
TSNo if Tupd>Thold
TSNo if Tupd ≤Thold
Thold
TSNo if Tupd>Thold
TSNo if Thold Tupd ≤ Thold
TSNo if Tupd>Thold
1 Logical Rack
10.0
6.0
6.0
12.0
8.0
8.0
15.0
10.0
9.0
2 Logical Rack
12.0
9.0
8.0
14.0
11.0
9.0
17.0
15.0
12.0
3 Logical Rack
15.0
12.0
9.0
16.0
14.0
11.0
21.0
20.0
14.0
4 Logical Rack
18.0
15.0
10.0
20.0
17.0
12.0
26.0
24.0
17.0
(1) All times shown are in milliseconds (ms). (2) Although a faster baud rate decreases RIO scan time (TRIO), it has an inverse affect on TSNo when complementary I/O mode is selected.
Publication 1747-UM013B-EN-P - January 2005
Page 112
A-16
Specifications
Publication 1747-UM013B-EN-P - January 2005