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

The text of a manual · part 5 of 19

PLC-5 DeviceNet Scanner Module 1771-SDN User Manual: 2 - Planning Your Configuration and Data Mapping Your Devices

Pages 29 to 38 of 149, from PLC-5 DeviceNet Scanner Module 1771-SDN User Manual

The original document is the PDF (3.4 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 1771-SDN

Page 29

Chapter

2

Planning Your Configuration and Data Mapping Your Devices

This chapter introduces questions you should ask before configuring your 1771-SDN Scanner. In addition, it presents an example DeviceNet network and I/O data mapping scheme for a photoeye and a RediSTATION operator interface module. The following table identifies what this chapter covers and where to find specific information.

What You Need to Know

For information about

See page

What You Need to Know

2-1

Beginning the Process

2-1

The Example Network

2-2

What’s Next

2-9

To map data via your 1771-SDN Scanner module, you must understand: • your network requirements • how input data is mapped • how output data is mapped

Beginning the Process

Planning before configuring your 1771-SDN module helps make sure that you can: • use your memory and bandwidth efficiently • cater to device-specific needs and requirements • give priority to critical I/O transfers • leave room for expansion

1

Publication 1771-UM118C-EN-P - June 2003

Page 30

2-2

Planning Your Configuration and Data Mapping Your Devices

A very important question to answer is “what is on your network?” You should be familiar with each device’s: • communication requirements • I/O importance and size • frequency of message delivery You should also ask “how might this network appear in the future?” At this point in your planning, it is advantageous for you to have some idea of how the network could be expanded. I/O data mapping can be performed automatically by the RSNetWorx software. But when mapping your I/O, you also have the opportunity to allot room for future I/O. This can save time and effort in the future. For example, RSNetWorx will automatically map the devices as efficiently as possible, but the result is that multiple devices may share the same word location in memory. However, you can also have the system map the devices such that no two devices share the same memory location by selecting the “Dword align” option when performing automapping. You can manually map the devices if you need to assign them to specific memory locations. For details refer to the Help screens provided by the RSNetWorx for DeviceNet software. Additional support can be found at the Rockwell Software website: http://www.software.rockwell.com.

The Example Network

The following example illustrates a data mapping plan for a DeviceNet network. Note that even if the mapping is performed automatically by the RSNetWorx software, you must know where the devices are mapped in order to use them in your network.

Example Network Devices This example network has the following devices: • a PC running RSNetWorx for DeviceNet software • a 1771-SDN Scanner module interfacing a PLC-5 processor with DeviceNet • a Series 9000 photoelectric sensor (strobed) • a RediSTATION operator interface (polled)

Publication 1771-UM118C-EN-P - June 2003

Page 31

Planning Your Configuration and Data Mapping Your Devices

IMPORTANT

2-3

In the following example, output is data sent to a device from a controller. Input is data collected from a device by a controller.

The system you will set up is shown below: PC running Windows NT or Windows 95/98, containing RSNetWorx for DeviceNet software Series 9000 Photoelectric Sensor Node 62 ∗

1770-KFD Communication Module

Node 9 ∗

DeviceNet Network Node 0

Node 7

RediSTATION Operator Interface

1771-SDN and PLC-5 in 1771 I/O Chassis * See note below

IMPORTANT

Each end of the DeviceNet trunk cable must be properly terminated with a resistor. Refer to the DeviceNet Cable Planning and Installation Manual, publication DN-6.7.2 for detailed information.

Publication 1771-UM118C-EN-P - June 2003

Page 32

2-4

Planning Your Configuration and Data Mapping Your Devices

RediSTATION Operator Interface Data Mapping The RediSTATION has both inputs and outputs that must be mapped. The input byte is mapped to the 1771-SDN module’s block transfer read data table and then to the PLC-5 processor’s input data file. The output byte is mapped to the 1771-SDN module’s block transfer write data table and then to the PLC-5 processor’s output data file. The mapping procedure, using RSNetWorx for DeviceNet software, is described on pages 4-14 to 4-17. RediSTATION operator interface Two input bits from the RediSTATION will be mapped: bit 1 for the green Start button and bit 0 for the red Stop button.

Indicator light green start light

Bit 4 of the input byte indicates if the bulb is missing.

red start light start bit (green button) The RediSTATION operator interface produces one byte of input data and uses one byte of output data.

input

1 byte 7

6 output

5

4

G R 3

2

1

7

6

5

4

0

L

1 byte 3

2

1

0

One output bit for the RediSTATION’s indicator light (on/off) will be mapped.

In the RediSTATION’s bits for the red and green buttons and the indicator light status bit: • 1 = ON • 0 = OFF

Publication 1771-UM118C-EN-P - June 2003 stop bit (red button)

status bit for indicator light

Page 33

Planning Your Configuration and Data Mapping Your Devices

2-5

Mapping RediSTATION Input Data for a Block Transfer Read The RediSTATION operator interface’s input byte is mapped to the scanner’s block transfer read data table through a 62 word BTR. In this example, we use data file N9:0. RediSTATION Input Byte

What’s Happening? The bits for the RediSTATION operator interfaces’s red and green buttons are mapped into the 1771-SDN Scanner’s BTR data table.

1

2

1 byte

= unused bits

The BTR data table is then transferred via a BTR to the PLC-5 processor’s input data file.

Important: The 1771-SDN module only makes the data file available for the processor to read. The 1771-SDN does not move the data file to the processor.

1 Note: This example uses 1-slot addressing.

0000 0000 0000 0000

N9:1

0000 0000 0000 00GR

N9:2

0000 0000 0000 0000

N9:3

0000 0000 0000 0000

N9:4

0000 0000 0000 0000

N9:5

0000 0000 0000 0000

N9:61

0000 0000 0000 0000

= bits reserved for module status word

1771-SDN Scanner Block Transfer Read Data Table reserved for module status word

Word 0 G

PLC-5 Processor Input Data File1 N9:0

R = bit for red button (STOP) G = bit for green button (START)

G R

R

Word 1 Word 2

2

1 This mapping is based upon the example in chapter 4.

The mapping for your system may be different.

Word 3 Word 4

Word 61 Example: The green START button from the RediSTATION appears in the PLC-5 processor’s input file at address N9:1/1.

The red STOP button from the RediSTATION appears in the PLC-5 processor’s input file at address N9:1/0.

Publication 1771-UM118C-EN-P - June 2003

Page 34

2-6

Planning Your Configuration and Data Mapping Your Devices

Mapping RediSTATION Output Data for a Block Transfer Write The RediSTATION operator interface’s output byte is mapped to the 1771-SDN module’s block transfer write data table. Within the output byte is bit 0 for the indicator light. The PLC-5’s output data file is transferred by the processor application to turn the light on or off. In this example, we use N10 for the output data file. What’s Happening? 1

2

RediSTATION Output start/stop station node address 7

The PLC-5 processor’s output data file containing the indicator light bit for the RediSTATION is transferred via a BTW to the 1771-SDN Scanner’s BTW data table. The BTW data table is then sent to the RediSTATION via a polled message from which the RediSTATION receives its indicator light bit.

1 byte

2

Note: This example uses 1-slot addressing.

0000 0000 0000 0000

N10:1

0000 0000 0000 000L

N10:2

0000 0000 0000 0000

N10:3

0000 0000 0000 0000

N10:4

0000 0000 0000 0000

N10:5

0000 0000 0000 0000

N10:61

0000 0000 0000 0000

L = bit for the station indicator light = unused bits

= bits reserved for module status word 1771-SDN Scanner Block Transfer Write Data Table reserved for module status word

PLC-5 Processor Output Data File1 N10:0

L

L

Word 1 Word 2

1

Word 3 Word 4

Word 61

1 This mapping is based upon the example in chapter 4.

The actual mapping for your system may be different. Example: The RediSTATION’s indicator light (L) is taken from N10:1/0 in the PLC-5 processor’s output data file.

Publication 1771-UM118C-EN-P - June 2003

Word 0

Page 35

Planning Your Configuration and Data Mapping Your Devices

2-7

Photoeye Input Data Mapping The photoelectric sensor (photoeye) inputs are mapped to the 1771-SDN module’s block transfer read data table and then to the PLC-5 processor’s input data file. The procedure for doing this using RSNetWorx for DeviceNet software is described on pages 4-14 to 4-17. The photoeye has no outputs to map. Series 9000 Photoeye Two input bits from the photoeye will be mapped: the status bit and the data bit. The photoeye produces one byte of input data in response to the strobe message. input status bit

S D

1 byte 7

6

5

4

3

2

1 data bit

0

Publication 1771-UM118C-EN-P - June 2003

Page 36

2-8

Planning Your Configuration and Data Mapping Your Devices

Mapping Photoeye Input Data for a Block Transfer Read The photoeye’s input byte is mapped to the scanner’s block transfer read data table through a 62 word BTR. In this example, we use data file N9. Photoeye Input Byte

What’s Happening? 1 The status and data bits from the photoeye are mapped into the 1771-SDN Scanner’s BTR data table. 2

The BTR data table is then transferred via a BTR to the PLC-5 processor’s input data file.

Important: The 1771-SDN module only makes the data available for the processor to read. The 1771-SDN module does not move the data to the processor.

1 byte

S D

= unused bits 1 Note: This example uses 1-slot addressing.

= bits reserved for module status word

1771-SDN Scanner Block Transfer Read Data Table reserved for module status word

S D

RediSTATION

PLC-5 Processor Input Data File1 N9:0

0000 0000 0000 0000

N9:1

0000 00SD 0000 0000

N9:2

0000 0000 0000 0000

N9:3

0000 0000 0000 0000

N9:4

0000 0000 0000 0000

N9:5

0000 0000 0000 0000

Word 0 Word 1 Word 2 Word 3

2 Word 4

Word 61 N9:61 1

0000 0000 0000 0000

This mapping is based upon the example in chapter 4. The actual mapping for your system may be different.

Publication 1771-UM118C-EN-P - June 2003

Example: The Status bit from the photoeye appears in the PLC-5 processor’s integer file at address N9:1/9. The Data bit from the photoeye appears in the PLC-5 processor’s integer file at address N9:1/8.

Page 37

Planning Your Configuration and Data Mapping Your Devices

What’s Next?

2-9

Chapter 3 describes how to set up the system hardware for the example application.

Publication 1771-UM118C-EN-P - June 2003

Page 38

2-10

Planning Your Configuration and Data Mapping Your Devices

Notes

Publication 1771-UM118C-EN-P - June 2003