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

The text of a manual · part 7 of 21

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

Pages 45 to 53 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 45

Chapter

4

Scanner Configuration and Programming

This chapter contains information necessary to: • understand remote I/O image files • understand RIO configuration using G files • control and view RIO devices using the M0 and M1 files • understand slot addressing • quickly configure the RIO Scanner

Understanding Remote Input and Output Image Files

1

The SLC system allows you to assign up to 32 words of input and output image data to a scanner. This allows your scanner to access a maximum of 4 full logical racks (512 input and output points) of data from remote devices.

Publication 1747-UM013B-EN-P - January 2005

Page 46

4-2

Scanner Configuration and Programming

SN Series B Scanner (RIO Master)

Scanner Input and Output Images Output Image Bit Number Octal17 Bit Number Decimal15

Logical Rack 0

Logical Rack 1

Logical Rack 2

Logical Rack 3

10 7 8 7

Word 0 Word 1 Word 2 Word 3 Word 4 Word 5 Word 6 Word 7 Word 8 Word 9 Word 10 Word 1 1 Word 12 Word 13 Word 14 Word 15 Word 16 Word 17 Word 18 Word 19 Word 20 Word 21 Word 22 Word 23 Word 24 Word 25 Word 26 Word 27 Word 28 Word 29 Word 30 Word 31

Input Image 0 0

Bit Number Octal17 Bit Number Decimal15

Logical Rack 0

Logical Rack 1 The scanner accommodates up to 32 words of output for remote devices. Logical Rack 2

Logical Rack 3

Word 0 Word 1 Word 2 Word 3 Word 4 Word 5 Word 6 Word 7 Word 8 Word 9 Word 10 Word 1 1 Word 12 Word 13 Word 14 Word 15 Word 16 Word 17 Word 18 Word 19 Word 20 Word 21 Word 22 Word 23 Word 24 Word 25 Word 26 Word 27 Word 28 Word 29 Word 30 Word 31

10 7 87

Notethat some RIO devices (e.g., 1771) use octal bit numbers. 0 0

The scanner accommodates up to 32 words of input from remote devices.

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.

Publication 1747-UM013B-EN-P - January 2005

Page 47

Scanner Configuration and Programming

4-3 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

Word 0

SLC Input File Address I:e.0

Logical Rack 0 Group 1

Word 1

I:e.1

Logical Rack 0 Group 2

Logical Logical Rack 0 Group 3 Rack 0 Logical Rack 0 Group 4

Word 2

I:e.2

Word 3

I:e.3

Word 4

I:e.4

Logical Rack 0 Group 5

I:e.5

Logical Rack 0 Group 6

Word 5 Word 6

Logical Rack 0 Group 7

Word 7

I:e.7

Logical Rack 1 Group 0

Word 8

I:e.8

Logical Rack 1 Group 1

Word 9

I:e.9

Logical Rack 1 Group 2

Logical Logical Rack 1 Group 3 Rack 1 Logical Rack 1 Group 4

Word 10

I:e.10

Word 11

I:e.11

Word 12

I:e.12

Logical Rack 1 Group 5

Word 13

I:e.13

Logical Rack 1 Group 6 Logical Rack 1 Group 7 Logical Rack 2 Group 0

Word 14 Word 15 Word 16

I:e.14

Logical Rack 2 Group 1

Word 17

I:e.17

Logical Rack 2 Group 2

Word 18

I:e.18

Word 19

I:e.19 I:e.20

Logical Rack 2 Group 5

Word 20 Word 21

Logical Rack 2 Group 6

Word 22

I:e.22

Logical Rack 2 Group 7

Word 23

I:e.23

Logical Rack 3 Group 0

Word 2 4

I:e.24

Logical Rack 3 Group 1

Word 25

I:e.25

Logical Rack 3 Group 2

Logical Logical Rack 3 Group 3 Rack 3 Logical Rack 3 Group 4

Word 26

I:e.26

Word 27

I:e.27

Word 28

I:e.28

Logical Rack 3 Group 5 Logical Rack 3 Group 6

Word 29 Word 30

I:e.29

Logical Rack 3 Group 7

Word 31

I:e.31

Logical Rack 0 Group 0

Logical Logical Rack 2 Group 3 Rack 2 Logical Rack 2 Group 4

Bit Number (octal)

I:e.6

I:e.15 I:e.16

I:e.21

I:e.30

17 8

16 8

15 8

14 8

13 8

12 8

11 8

10 8

78

68

58

48

38

28

18

08

The 1747-SN Scanner’s I/O image structure is described below: • The I/O image file consists of four logical racks (numbered 0,1,2, and 3) of input image and four logical racks of output image. • Each logical rack consists of eight logical groups (numbered 0, 1, 2, 3, 4, 5, 6, and 7). • Each logical group consists of two words (an input word and an output word). • Each word consists of two bytes (a high and a low byte). Low byte is bits 0 to 7 and high byte is bits 8 to 15. • Each byte consists of 8 bits with each bit having the ability to control one discrete I/O point.

Publication 1747-UM013B-EN-P - January 2005

Page 48

4-4

Scanner Configuration and Programming

RIO Configuration Using G Files

When you program your SLC system you use the G file to configure 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.

For RSLogix 500 version 5.50 and later, configure the 1747-BSN M0/M1 size for 5548 words so that this non-generic G file configuration screen appears after you click on the configure G file button. For RSLogix 500 versions prior to 5.50, configure the 1747-BSN M0/M1 size for 5547 words in order for this non-generic G file configuration screen to appear after you click on the configure G file button. Neither your application program nor your programming device can access or alter the G file while online with the processor. To change the G file you must go offline into the program file, make any necessary changes, and download the program containing the altered

Publication 1747-UM013B-EN-P - January 2005

Page 49

Scanner Configuration and Programming

4-5 configuration. The G file consists of five words which are described below. Word 0 - contains scanner information for the SLC processor. Your programming device automatically sets up Word 0. Do not attempt to alter word 0.

IMPORTANT

The term “primary” is used in conjunction with the term “complementary,” when referring to a complementary I/O configuration. “Primary” refers to I/O image space found in Logical Racks 0 through 3 when in complementary I/O mode and “normal” refers to the same image space (racks 0 through 3) when not in complementary I/O mode.

Word 1, Primary/Normal Logical Device Address - specifies the logical starting address of each primary/normal RIO link device. The logical address consists of the logical rack number (0, 1, 2, or 3) and starting logical group (0, 2, 4, or 6). Each bit in this word represents a logical address. To specify an address you place a 1 at the bit corresponding to the starting logical address of each logical device. Word 2, Primary/Normal Device Logical Image Size - specifies the logical image size (amount of scanner I/O image) of the devices set in word 1. As with word 1, these bits correspond to RIO logical rack and logical group numbers. To specify image size, you place a 1 at each group a device occupies. Word 3, Complementary Logical Device Address - specifies the logical starting address of each complementary RIO link device. The logical address consists of the logical rack number (8, 9, 10, or 11 because a complementary device is always 8 above its primary) and starting logical group (0, 2, 4, or 6). Each bit in this word represents a logical address. To specify an address you place a 1 at the bit corresponding to the starting logical address of each logical device. Word 4, Complementary Device Logical Image Size - specifies the logical image size (amount of scanner I/O image) of the complementary devices set in word 3. As with word 3, these bits correspond to RIO logical rack and logical group numbers. To specify image size you place a 1 at each group a device occupies.

Publication 1747-UM013B-EN-P - January 2005

Page 50

4-6

Scanner Configuration and Programming

Setting device addresses in word 3 of the G file configures the system to operate in the complementary I/O mode. Not setting device addresses in word 3 causes the system to operate only in the primary/normal mode. If you wish to operate in the complementary mode and you only have primary devices configured, word 3 of the G file must be set to a decimal “1,” and word 4 of the G file must be equal to zero.

IMPORTANT

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 2 Starting Logical Group

RIO Logical Rack 3 Starting Logical Group Primary/Normal Logical Device Address, Word 1

Primary/Normal Logical Image Size, Word 2

Complementary Logical Device Address, Word 3

Complementary Logical Image Size, Word 4

RIO Logical Rack 1 Starting Logical Group

RIO Logical Rack 0 Starting Logical Group

6

4

2

0

6

4

2

0

6

4

2

0

6

4

2

0

0

0

1

0

0

0

1

0

0

0

0

1

1

0

0

1

6

RIO Rack 3 Image Size 4 2

0

6

RIO Rack 2 Image Size 4 2

0

6

RIO Rack 1 Image Size 4 2

0

6

RIO Rack 0 Image Size 4 2

0

1

1

0

0

1

0

1

1

1

1

0

1

1

1

1

RIO Logical Rack 1 1 Starting Logical Group

RIO Logical Rack 10 Starting Logical Group

6

4

2

0

6

4

2

0

6

4

2

0

6

4

2

0

0

0

1

0

0

0

1

0

0

0

0

1

1

0

0

1

6

RIO Rack 1 Image Size 4 2

0

6

RIO Rack 10 Image Size 4 2

0

6

RIO Rack 9 Image Size 4 2

0

6

RIO Rack 8 Image Size 4 2

0

1

1

0

0

1

0

1

1

1

1

0

1

1

1

Note: A complementary logical rack is always numbered 8 above its primary logical rack. Also, logical racks 8, 9, 10, and 11 are sometimes referred to as complementary logical racks 0, 1, 2, and 3.

Publication 1747-UM013B-EN-P - January 2005

1

RIO Logical Rack 9 Starting Logical Group

0

1

RIO Logical Rack 8 Starting Logical Group

0

Contains scanner information for the SLC. Your programming device automatically sets the scanner information. Specifies the RIO starting addresses of primary/normal logical devices. Specifies the logical image size assigned to primary/normal logical devices set in Word 1.

Specifies the RIO starting addresses of complementary logical devices. Specifies the logical image size assigned to complementary logical devices set in Word 3. Quarter Logical Rack Devices Full Logical Rack Device Half Logical Rack Device Three Quarter Logical Rack Device

Page 51

Scanner Configuration and Programming

4-7

Rules for Configuring the Scanner 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.

Concerning Complementary I/O • It is valid for you to have a complementary device configured even if no associated primary device exists. Also, complementary devices do not have to be the same logical image size as the primary device. • G file words 1 and 2 can both be zero (no primary devices). However, in this case there must be at least one complementary device configured in G file words 3 and 4.

Publication 1747-UM013B-EN-P - January 2005

Page 52

4-8

Scanner Configuration and Programming

• If there is at least one primary device configured in G file words 1 and 2, words 3 and 4 can both be zero, or the G file size can be set to 3 (complementary mode not selected). • The starting group of the primary and complementary chassis should be the same if they share the same image space. If the starting group is not the same, the image of the complementary device must not “cross over” into the space of a primary device. For example, if a primary device exists at Logical Rack 1 Logical Group 4, the maximum size of a complementary device at Logical Rack 9 Logical Group 0 is a half logical rack, so its image does not cross over into Logical Group 4. • A complementary device cannot be configured at locations where primary devices are configured unless they both start at the same location. • If you configure your system so that complementary I/O is not selected (words 3 and 4 are zero), you must not set up any of the actual devices to be in the primary mode. If you do, the system will flag the device as faulted and prevent the device from running. • Control functions (i.e., device inhibit, device reset, and device output reset) are only selectable for the primary device, but also apply to the complementary device. Control functions for complementary devices cannot be exclusively enabled.

Example G File Showing Primary and Complementary Device Configurations In the example that follows, we configured the scanner to communicate with primary and complementary devices. These are the device addresses and image sizes: • Logical Racks 0/8, Logical Group 2 contain a primary 3/4 logical rack device, and a complementary 3/4 logical rack device. • Logical Racks 1/9, Logical Group 0 contain no primary device, and a complementary 1/2 logical rack device. • Logical Racks 1/9, Logical Group 6 contain a primary 1/4 logical rack device, and a complementary 1/4 logical rack device. • Logical Racks 2/10, Logical Group 0 contain a primary 3/4 logical rack device, and a complementary 1/4 logical rack device. • Logical Racks 3/11, Logical Group 2 contain a primary 1/4 logical rack device, and a complementary 1/2 logical rack device. • Logical Racks 3/11, Logical Group 6 contain a primary 1/4 logical rack device, and no complementary device.

Publication 1747-UM013B-EN-P - January 2005

Page 53

Scanner Configuration and Programming

4-9

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 2 Starting Logical Group

RIO Logical Rack 3 Starting Logical Group Primary/Normal Logical Device Address, Word 1

Primary/Normal Logical Image Size, Word 2

Complementary Logical Device Address, Word 3

Complementary Logical Image Size, Word 4

RIO Logical Rack 1 Starting Logical Group

RIO Logical Rack 0 Starting Logical Group

6

4

2

0

6

4

2

0

6

4

2

0

6

4

2

0

1

0

1

0

0

0

0

1

1

0

0

0

0

0

1

0

6

RIO Rack 3 Image Size 4 2

0

6

RIO Rack 2 Image Size 4 2

0

6

RIO Rack 1 Image Size 4 2

0

6

RIO Rack 0 Image Size 4 2

0

1

0

0

0

1

1

1

0

0

1

1

0

1

1

RIO Logical Rack 1 1 Starting Logical Group

RIO Logical Rack 10 Starting Logical Group

6

4

2

0

6

4

2

0

0

1

0

0

0

0

6

RIO Rack 1 Image Size 4 2

0

6

RIO Rack 10 Image Size 4 2

0

1

0

0

0

1

1

0

0

1

RIO Logical Rack 9 Starting Logical Group

RIO Logical Rack 8 Starting Logical Group

0

6

4

2

0

6

4

2

0

1

1

0

0

1

0

0

1

0

0

6

RIO Rack 9 Image Size 4 2

0

6

RIO Rack 8 Image Size 4 2

0

1

1

0

1

1

1

0

1

1

Publication 1747-UM013B-EN-P - January 2005