Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 10 of 21

Remote I/O Scanner 1747-SN User Manual: Scanner Configuration and Programming, pages 72 to 78

Pages 72 to 78 of 171, from Remote I/O Scanner 1747-SN User Manual

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 72

4-28

Scanner Configuration and Programming

M1 (Status) File Primary/Normal Device Fault Status Bit Number (decimal)

15

14

13

RIO Rack 3 Starting Group 4 2

12

11

0

6

10

9

RIO Rack 2 Starting Group 4 2

8

7

0

6

6

5

RIO Rack 1 Starting Group 4 2

4

3

0

6

2

1

0

RIO Rack 0 Starting Group 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

Primary Device Size, Word 9

1

1

1

0

0

1

1

0

1

1

1

1

1

0

0

1

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 0 Device Fault Status Word 12 x x x x x x x x x x x x

0

0

0

0

M1:e.12

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

4

3

2

1

0

0

6

6

The information contained in words 8, 9, and 10 indicates a three quarter logical rack device beginning at Logical Rack 3 Logical Group 2 is faulted or configured to an incorrect logical rack size. This device status is confirmed in bits 1, 2, and 3 of Device Fault Status Word 15.

e = slot number of the SLC rack containing the scanner x = not used/defined

M1 (Status) File Complementary Device Fault Status Bit Number (decimal)

15

14

13

RIO Rack 1 1 Starting Group 4 2

12

11

0

6

10

9

RIO Rack 10 Starting Group 4 2

8

7

0

6

6

5

RIO Rack 9 Starting Group 4 2

RIO Rack 8 Starting Group 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 8 Device Fault Status Word 12 x x x x x x x x

0

0

0

0 x x x x

M1:e.12

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 Logical Rack1 1 Device Fault Status Word 15 x x x x x x x x

0

0

0

0 x x x x

M1:e.14 x x x x x x x x

1

1

1

0 x x x x

M1:e.15

6

The information contained in word 3, 4, and 5 indicates a three quarter logical rack device beginning at group 2 is inhibited, faulted, or configured to an incorrect logical rack size. This device status is confirmed in bits 5, 6, and 7 of Device Fault Status Word 15.

e = slot number of the SLC rack containing the scanner x = not used/defined

RIO Status Example The following example illustrates an M1 status file example. It shows a typical M1 file and the G file used to configure the scanner. There are no inhibited devices specified in the M0 file (not shown). Notice that: • M1:e.8 is an image of word 1 (primary/normal logical device address) of the G file.

Publication 1747-UM013B-EN-P - January 2005

Page 73

Scanner Configuration and Programming

4-29

• M1:e.3 is an image of word 3 (complementary logical device address) of the G file. • M1:e.9 is an image/copy of word 2 (primary/normal logical device size) of the G file. • M1:e.4 is an image/copy of word 4 (complementary logical device size) of the G file. • The three quarter logical rack device located in logical rack 3 (M1:e.9/13) is not active. The fault is indicated by the Enabled Device Fault status bit, bit 0, word 0 (M1:e.0/0). • The three quarter logical rack device located in logical rack 11 (M1:e.4/13) is not active. The fault is indicated by the Enabled Device Fault status bit, bit 0, word 0 (M1:e.0/0). Because the device at M1:e.8/13 is faulted, bit 13 of word 10 (M1:e.10/13) is 0. M1:e.15/1 through M1:e.15/3, which correspond to M1:e.9/13 through M1:e.9/15 are also set to 1, indicating a problem with the device in logical rack 3. Because the device at M1:e.3/13 is faulted, bit 13 of word 5 (M1:e.5/13) is 0. M1:e.15/5 through M1:e.15/7, which correspond to M1:e.4/13 through M1:e.4/15 are also set to 1, indicating a problem with the device in logical rack 11.

M1 (Status) File Primary/Normal Bit Number (decimal)

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Status Word, Word 0 x x x x x x x x x x x x x x

1

1

M1 File M1:e.0

Baud Rate, Word 2 x x x x x x x x x x x x x x

0

1

M1:e.2

RIO Logical Rack 3

RIO Logical Rack 2

RIO Logical Rack 1

RIO Logical Rack 0

Primary Device Address, Word 8

0

0

1

0

0

0

1

0

0

0

0

1

1

0

0

1

M1:e.8

Primary Device Size, Word 9

1

1

1

0

0

1

1

0

1

1

1

1

1

0

0

1

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 0 Device Fault Status Word 12 x x x x x x x x x x x x

0

0

0

0

M1:e.12

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 e = slot number of the SLC rack containing the scanner x = not used/defined

G File

RIO Logical Rack 3 Starting Group 6 4 2 0

RIO Logical Rack 2 Starting Group 6 4 2 0

RIO Logical Rack 1 Starting Group 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

Primary Logical Image Size, Word 2

1

1

1

0

0

1

1

0

1

1

1

1

1

0

0

1

RIO Logical Rack 0 Starting Group 6 4 2 0

Publication 1747-UM013B-EN-P - January 2005

Page 74

4-30

Scanner Configuration and Programming

M1 (Status) File Complementary Bit Number (decimal)

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Status Word, Word 0 x x x x x x x x x x x x x x

1

1

M1 File M1:e.0

Baud Rate, Word 2 x x x x x x x x x x x x x x

0

1

M1:e.2

RIO Logical Rack 1 1

RIO Logical Rack 10

RIO Logical Rack 9

RIO Logical Rack 8

Complementary Device Starting Address, Word 3

0

0

1

0

0

0

1

0

0

0

0

1

1

0

0

1

M1:e.3

Complementary Device Image 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 8 Device Fault Status Word 12 x x x x x x x x

0

0

0

0 x x x x

M1:e.12

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 Rack 11 Device Fault Status Word 15 x x x x x x x x

1

1

1

0 x x x x

M1:e.15 e = slot number of the SLC rack containing the scanner x = not used/defined

G File

RIO Logical Rack 1 1 Starting Group 6 4 2 0

RIO Logical Rack 10 Starting Group 6 4 2 0

RIO Logical Rack 9 Starting Group 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

Complementary Logical Image Size, Word 4

1

1

1

0

0

1

1

0

1

1

1

1

1

0

0

1

IMPORTANT

RIO Communication Retry Counter (M1:e.16 -47)

Publication 1747-UM013B-EN-P - January 2005

RIO Logical Rack 8 Starting Group 6 4 2 0

Individual quarter logical racks within a device cannot be faulted. Therefore, only the starting logical group of the device needs to be monitored.

M1 File Status Words 16 through 47 - indicate how many RIO communication retries the scanner makes to each adapter on the RIO link if communication problems occur. Each word (16 through 47) contains a retry counter for each configured quarter logical rack (words 16 through 31 are for primary logical racks, 0 through 3, and 32 through 47 are for complementary racks, 8 through 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 through 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 through 47) correspond to the bits set in the Complementary Logical Device Address - Word 3 of the G file.

Page 75

Scanner Configuration and Programming

4-31

Your SLC control program cannot initialize/clear retry counters.

IMPORTANT

Retry Counter Example for Primary Devices The scanner’s I/O image tables are configured as shown with M1 status files displaying the corresponding retry counters:

G File - P rimary Bit Number

15

14

13

12

RIO Logical Rack 3 Starting Group 6 4 2 0 Primary Logical Device Address, Word 1

1

11

10

9

8

RIO Logical Rack 2 Starting Group 6 4 2 0

7

6

5

4

3

2

1

0

RIO Logical Rack 0 Starting Group 6 4 2 0

RIO Logical Rack 1 Starting Group 6 4 2 0

0

0

1

0

0

1

0

0

0

0

1

0

1

0

1

14

13

10

9

8

7

6

5

4

3

2

1

0

Specifies RIO addresses for primary logical devices.

G File - Comp lementary Bit Number

Complementary Logical Device Address, Word 3

15

12

11

RIO Logical Rack 1 Starting Group 6 4 2 0

1

RIO Logical Rack 10 Starting Group 6 4 2 0

0

1

0

0

1

0

0

RIO Logical Rack 9 Starting Group 6 4 2 0 1

0

0

0

RIO Logical Rack 8 Starting Group 6 4 2 0 1

0

0

0

1

Specifies RIO addresses for complementary devices.

M1:e.16 - communication retry counter for RIO logical rack 0, group 0 M1:e.17 - not used in this example M1:e.18 -communication retry counter for RIO logical rack 0, group 4 M1:e.19 - not used in this example M1:e.20 - communication retry counter for RIO logical rack 1, group 0 M1:e.21 - not used in this example M1:e.22 - not used in this example M1:e.23 - not used in this example M1:e.24 - not used in this example M1:e.25 - communication retry counter for RIO logical rack 2, group 2 M1:e.26 - not used in this example M1:e.27 - not used in this example M1:e.28 - communication retry counter for RIO logical rack 3, group 0 M1:e.29 - not used in this example M1:e.30 - not used in this example M1:e.31 - communication retry counter for RIO logical rack 3, group 6

Publication 1747-UM013B-EN-P - January 2005

Page 76

4-32

Scanner Configuration and Programming

M1:e.32 - communication retry counter for RIO logical rack 8, group 0 M1:e.33 - not used in this example M1:e.34 - not used in this example M1:e.35 - not used in this example M1:e.36 - communication retry counter for RIO logical rack 9, group 0 M1:e.37 - not used in this example M1:e.38 - not used in this example M1:e.39 - not used in this example M1:e.40 - communication retry counter for RIO logical rack 10, group 0 M1:e.41 - not used in this example M1:e.42 - not used in this example M1:e.43 - not used in this example M1:e.44 - communication retry counter for RIO logical rack 11, group 0 M1:e.45 - communication retry counter for RIO logical rack 11, group 2 M1:e.46 - not used in this example M1:e.47 - not used in this example

Understanding Slot Addressing

This section provides information about: • 2-slot addressing • 1-slot addressing • 1/2-slot addressing Understanding slot addressing is critical to most efficiently allocate your scanner’s I/O image files. Slot addressing refers to how each remote chassis slot is assigned a specific amount of the I/O image. The amount depends on which type of slot addressing you choose at your adapter; 2-slot, 1-slot, and 1/2-slot addressing is available, as shown below:

Publication 1747-UM013B-EN-P - January 2005

Page 77

Scanner Configuration and Programming

2-Slot Addressing

Two slots are addressed as one logical group. Input Image

Remote Chassis

4-33

15

Output Image

8 7

0

Slot 2

15

Slot 1

1-Slot Addressing

8 7 Slot 2

0 Slot 1

One slot is addressed as one logical group. Input Image 15

8 7

Output Image 0

15

8 7

0

Remote Chassis Slot 1

1/2-Slot Addressing

Slot 1

One slot is addressed as two logical groups. Input Image 15

Remote Chassis

8 7

Output Image 0

15

8 7

0

Slot 1

Slot 1

For more information on slot addressing, refer to your ASB module user manual. 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.

SLC/Scanner Configuration

(1)

Your SLC 5/02 processor can be programmed with an HHT (Hand-Held Terminal). Although the configuration steps are similar, they are not identical. Therefore, the following basic steps are provided. For specific instructions, refer to the user manual included with your programming device. For more information on M and G files, refer to appendix B. 1. Locate an open slot in your SLC chassis. Remember that you must use an SLC 5/02 or later processor.

(1) The SLC 5/03 and SLC 5/04 processors cannot be programmed with the HHT.

Publication 1747-UM013B-EN-P - January 2005

Page 78

4-34

Scanner Configuration and Programming

2. Assign the scanner to a physical slot in the SLC processor’s chassis by selecting Scanner from the list. If the scanner selection is not available, select OTHER from the I/O Configuration Screen and enter the Code ID number: 13608. 3. Enter the number of Scanned Input and Output Words using the Specialty I/O and Advanced Setup menus. The default value is 32 I/O words. You can specify less than 32 and reduce the processor scan time by transferring only the part of the input and output image that your application requires.

IMPORTANT

Do not set either of these values to 0. If you do, the scanner will not work correctly.

4. Using the Specialty I/O Configuration menu, set the M1 and M0 file sizes to 32 words (48 words if using complementary I/O). 32 words is the minimum required for operation. If you do not set the 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. If you are using the block transfer (BT) function, you should set the M1 and M0 file sizes to 3,300. Refer to Chapter 5 before completing this selection. 5. Set the G file size to 3 (5 if using complementary I/O) using the Specialty I/O Configuration menu. 6. Enter your setup information using the Modify G File menu.

IMPORTANT

Publication 1747-UM013B-EN-P - January 2005

SLC 5/02 processors scan chassis I/O slots left to right starting at slot 1, regardless of the module type. SLC 5/03 and later processors scan slots with discrete I/O modules first, left to right starting at slot 1, and then slots with specialty modules, left to right starting at slot 1.