The text of a manual · part 16 of 22
1747-SDN DeviceNet Scanner Module User Manual: A - Data Map Example
Pages 115 to 120 of 160, from 1747-SDN DeviceNet Scanner Module User Manual
The original document is the PDF (3.9 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-SDN
Page 115
Appendix
A
Data Map Example
What This Appendix Contains
Example Input Mapping Scheme
This appendix illustrates a basic mapping example that connects a DeviceNet network to 62 simple sensor-type devices. Each device sends one data byte that contains one data bit and one status bit. These are given in response to a strobe message.
Topic
Page
Example Input Mapping Scheme
115
Example Output Mapping Scheme
118
This example’s input mapping scheme is a simplified and fixed map of discrete input data and status bits for DeviceNet devices. It is mapped to discrete inputs and the device input data table.
Example Characteristics This example has the following characteristics: • Strobe is used to query DeviceNet devices. • Poll is disabled. • The input data bit is fixed and occupies the lowest-order bit in the lowest-order byte of the strobe (bit #1). • One bit of status data is accepted from each node responding to the strobe. • The status data bit is fixed and occupies the next lowest-order bit in the next lowest-order byte (after the input data bit) of the strobe (bit #2). • Input and status data bits accepted from each node are mapped to the scanner’s discrete-input data table. • Input and status data bits accepted from each node are fixed and predefined.
115
Publication 1747-UM655B-EN-P - June 2007
Page 116
116
Data Map Example
Example Framework This example adheres to the following structure: • There cannot be any 1771-SDN modules or other 1747-SDN modules on that network. • DeviceNet devices may reside only at nodes 1…62. • Address 0 must be used for the scanner. • The first word in the device input data table contains the module status word (this is applicable under any mapping scheme). • Input data and status bits received from nodes 1…62 are mapped to the scanner’s discrete-input data table. The following illustrates an input-data mapping scheme example for the 1747-SDN module. Input bits are mapped from a device’s message, to the scanner’s input data table, and to the processor’s input image table. The status and data bits for each scanned device are mapped to the scanner's discrete-input data table. Data bits are mapped in the first four words while status bits are mapped in the next four words of the table. The bit numbering for device data bits begins with 0. This numbering starts over in word 5 for device status bits. This feature makes it possible to directly correlate a device's MAC ID with the placement of its bits in the data table. For example, the data bit for node #11 is mapped to bit 11, word 1 in the data table. Its status bit is mapped to bit 11, word 5 of the data table. The processor reads the scanner's data table to transfer its contents to the SLC-processor input image table.
Publication 1747-UM655B-EN-P - June 2007
Page 117
Data Map Example
117
DeviceNet Message from Node #11 1 byte
S D
1747-SDN Module Discrete-input Data Table 15 SLC Processor Input Image Table Word 0
Words 1…31
Status
15
0 Word 0 11
0 Word 1
31
16 Word 2
47
32 Word 3
63
48 Word 4
DeviceNet Input Data (31 Words) 15 SLC Processor M1 File
Words 0…149
DeviceNet Input Data (150 Words)
Words 150…210
Reserved (61 Words)
Word 211
Scan Counter (1 Word)
WordS 212…215
Device Active Table (4 Words)
Words 216…219
Device Failure Table (4 Words)
Words 220…223
Auto Verify Table (4 Words)
Words 224…255
Client Server Table (32 Words)
11
0 Word 1
31
16 Word 2
47
32 Word 3
63
48 Word 4 Bit Number
In this example, nothing is mapped to the DeviceNet input data area of the processor's M1 file. All input data is mapped to the processor's input image table via the scanner's discrete-input data table.
Publication 1747-UM655B-EN-P - June 2007
Page 118
118
Data Map Example
Example Output Mapping Scheme
This example’s output mapping scheme is a simplified and fixed map of the discrete outputs and data from the device output data table to DeviceNet devices. Devices present in the default database are strobed only; therefore, the output data-map bits are mapped into each network’s strobe message. If the discrete table is available, it serves as a source for the strobe bits; otherwise, the source is found in M1/M0 file transfer locations.
Example Characteristics This example has the following characteristics: • Strobe is used to send output to the DeviceNet devices. • Poll is disabled. • One output data bit each is sent to nodes 1…62. • The output data bits are embedded in the 8 byte (64 bit) data portion of the DeviceNet strobe message. • The output bit string source within the strobe message is divided across the discrete outputs in the scanner’s discrete-output data table.
Example Framework This example adheres to the following structure: • When a 1747-SDN module is running this configuration, there cannot be any other 1747-SDN or 1771-SDN module on that network. • DeviceNet devices may reside only at nodes 1…62. • Address 0 must be used for the scanner. • The first word in the device output-image data table always contains the module command word (this is applicable under any mapping scheme). • Output bits received from processor for nodes 1…62 are mapped to the scanner’s discrete- output data table. The following illustrates an output-data mapping scheme example for the 1747-SDN module. Output bits are mapped from the processor’s output image table, to the scanner’s output data table, and to each device via strobe message.
Publication 1747-UM655B-EN-P - June 2007
Page 119
Data Map Example
119
The processor writes output data for each scanned device in the scanner's discrete-output data table. The scanner then maps each bit into a strobe message that is sent to all scanned devices. The bit number, where a particular device's data is mapped, directly corresponds to that device's MAC ID. This is true for mapping into the scanner's data table as well as the scanner's strobe message. For example, node # 11's output bit is mapped in bit number 11 of the scanner's output data table. In addition, this same output bit is mapped from bit 11 of the data table to bit number 11 in the strobe message. 1747-SDN Output Strobe Message The strobe message contains one bit for each scanned device on the network. 63 - - - - - - - - - - - - - - - - - - - - - - - -- - -11 ---- -------0
1747-SDN Module Discrete Output Data Table SLC Processor Output Image Table Word 0
15
Command (1 Word) 15
Words 1…31
0 Word 0
Device Output Data (31 Words)
11
0 Word 1
31
16 Word 2
47
32 Word 3
63
48 Word 4
SLC Processor M0 File Bit Number
Words 0…223
DeviceNet Output Data (224 Words)
Words 224…255
Client Server Table (32 Words)
In this example, nothing is mapped from the DeviceNet output data area of the processor's M0 file. All output data is mapped from the processor's output image table to the scanner's discrete-input data table.
Publication 1747-UM655B-EN-P - June 2007
Page 120
120
Data Map Example
Publication 1747-UM655B-EN-P - June 2007