The text of a manual · part 4 of 13
DeviceNet Adapter Module User Manual (Cat. No. 1794-ADN Series B): 2 - How Communication Takes Place and I/O Image Table Mapping, pages 18 to 27
Pages 18 to 27 of 96, from DeviceNet Adapter Module User Manual (Cat. No. 1794-ADN Series B)
The original document is the PDF (1.5 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 1794-ADN
Page 18
Chapter
2
How Communication Takes Place and I/O Image Table Mapping Chapter Objectives
In this chapter, you will learn about:
• communication over the Flex I/O backplane (between the DeviceNet adapter and the I/O modules) • how data is mapped into the I/O image table
Communication Over the Flex I/O Backplane
One 1794-ADN DeviceNet adapter can interface with up to eight terminal base units with installed Flex I/O modules, forming a Flex I/O system of up to eight slots. The adapter communicates to other network system components (typically one or more controllers or scanners, and/or programming terminals) over the DeviceNet network. The adapter communicates with its I/O modules over the backplane. I/O Module Inputs
Network
DeviceNet Adapter
Read
Write
0
Read Words
Status Outputs Configuration Slot 0
Write Words 15
I/O Module
I/O Module
Inputs
Inputs
Status
Status
Outputs
Outputs
Configuration
Configuration
Slot 1
Slot 7
The I/O map for a module is divided into read words and write words. Read words consist of input and status words, and write words consist of output and configuration words. The number of read words or write words can be 0 or more. The length of each I/O module’s read words and write words vary in size depending on module complexity. Each I/O module will support at least 1 input word or 1 output word. Status and configuration are optional, depending on the module.
Publication 1794-6.5.5 - October 1996
Page 19
2–2
How Communication Takes Place and I/O Image Table Mapping
For example, a 16 point discrete input module will have up to 2 read words and 1 write word.
16-point Discrete Input Module
I/O Image
Module Image
Input Size 1 or 2 Words
Inputs
Output Size 0 or 1 Word
Not used Not used
Delay Time
Delay Time
Check the I/O map for each module for the exact mapping.
I/O Structure
Output data is received by the adapter in the order of the installed I/O modules. The Output data for Slot 0 is received first, followed by the Output data for Slot 1, and so on up to slot 7. The first word of input data sent by the adapter is the Adapter Status Word. This is followed by the input data from each slot, in the order of the installed I/O modules. The Input data from Slot 0 is first after the status word, followed by Input data from Slot 2, and so on up to slot 7. DeviceNet Adapter Read Data Adapter Status Slot 0 Input Data
Network READ
Slot 1 Input Data
...
...
Slot 7 Input Data
Read
Write Data
Write
Slot 0 Output Data Slot 1 Output Data
...
...
Network WRITE
Slot 7 Output Data
Publication 1794-6.5.5 - October 1996
I/O Module I/O Module Slot 0 Slot 1
...
I/O Module Slot 7
Page 20
How Communication Takes Place and I/O Image Table Mapping
2–3
Adapter Input Status Word The input status word consists of:
• I/O module fault bits – 1 status bit for each slot • node address changed – 1 bit • I/O status – 1 bit I/O Module Fault Bits Slot 0
1 0 Slot 1
Slot 2
Not Used
Slot 3
9 8 7 6 5 4 3 2 Slot 5 Slot 4
10 through 15
Slot 6
15
Slot 7
Bit:
I/O State Bit Node Address Changed Bit
The adapter input status word bit descriptions are shown in the following table. Bit Description
Bit
Explanation
0
This bit is set (1) when an error is detected in slot position 0.
1
This bit is set (1) when an error is detected in slot position 1.
2
This bit is set (1) when an error is detected in slot position 2.
3
This bit is set (1) when an error is detected in slot position 3.
4
This bit is set (1) when an error is detected in slot position 4.
5
This bit is set (1) when an error is detected in slot position 5.
6
This bit is set (1) when an error is detected in slot position 6.
7
This bit is set (1) when an error is detected in slot position 7.
Node Address Changed
8
This bit is set (1) when the node address switch setting has been changed since power up.
I/O State
9
Bit = 0 - idle Bit = 1 - run
I/O Module Fault
10 thru 15
Not used - sent as zeroes.
Possible causes for an I/O Module Fault are:
• • • • • transmission errors on the Flex I/O backplane a failed module a module removed from its terminal base incorrect module inserted in a slot position the slot is empty The node address changed bit is set when the node address switch setting has been changed since power up. The new node address does not take affect until the adapter has been powered down and then powered back up.
Publication 1794-6.5.5 - October 1996
Page 21
2–4
How Communication Takes Place and I/O Image Table Mapping
Communication Choices
The FLEX I/O DeviceNet adapter module supports multiple communication choices. These choices all use the default I/O structure previously described. The adapter master makes the actual communication choice. The choices are: Polled – data is sent by the adapter in response to received data Strobe – data is sent by the adapter in response to the strobe command. The single bit allocated to the adapter in the strobe message is not used. If the configured size of the input data (sent from the adapter) is greater than 8 bytes, the strobe connection establishment will fail. In this case, the input size must be reconfigured to 8 bytes or less. Change of State – data is sent by the adapter based on detection of any changed value within the input data. Data is independently received based on change of state from the sender. Data in both directions can be acknowledged or unacknowledged depending on the run time configuration of the system. Cyclic – data is sent cyclically by the adapter based on a configured time value. Data is independently received cyclically from the sender. Data in both directions can be acknowledged or unacknowledged depending on the run time configuration of the system.
Mapping Data into the Image Table
All Flex I/O modules are supported by the DeviceNet adapter. At present, these consist of: Catalog Number:
For image table mapping refer to:
16 Sink Input Module
1794-IB16 page 2-5
16 Source Output Module
1794-OB16 page 2-6
10 Input/6 Output Module
1794-IB10XOB6 page 2-6
8 Electronically Fused Source Output Module
1794-OB8EP page 2-7
8 Sensor Input Module
1794-IB8S page 2-8
8 Input Module
1794-IA8 page 2-9
8 Output Module
1794-OA8 page 2-10
8 Relay Output Module
1794-OW8 page 2-10
8 Input Analog Module
1794-IE8 page 2-11
4 Output Analog Module
1794-OE4 page 2-13
4 in/2 out Analog Combo Module
1794-IE4XOE2 page 2-16
8 RTD Input Analog Module
1794-IR8 page 2-19
8 Thermocouple Input Module
1794-IT8 page 2-23
2 Channel SCANport Module
1203-FM1 page 2-27
Module Description
Publication 1794-6.5.5 - October 1996
Page 22
How Communication Takes Place and I/O Image Table Mapping
2–5
16-point Discrete Input Module (1794-IB16) Image Table Mapping I/O Image
Module Image
Input Size Read
Inputs
1 or 2 Words
Not used Output Size Write
Delay Time
Not used
0 or 1 Word
Delay Time
Memory Map of 16-Point Discrete Input Module Image Table – 1794-IB16 Decimal Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Octal Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Not used
Size Read Word 1 Read Word 2
Not used
DT 12-15
DT 00-11
Write Word 1
Where D = Input Data (D0 corresponds to input 0, D1 corresponds to input 1, etc. DT = Input Delay Time (DT 00-11 corresponds to inputs 0 thru 11; DT 12-15 corresponds to inputs 12 thru 15)
Input Delay Times for the 1794-IB16 Input Module Bits
Description Selected Delay Time
02
01
00
Delay Time for Inputs 00-11
05
04
03
Delay Time for Inputs 12-15
0
0
0
Delay Time 0 (default)
512µs
0
0
1
Delay Time 1
1ms
0
1
0
Delay Time 2
2ms
0
1
1
Delay Time 3
4ms
1
0
0
Delay Time 4
8ms
1
0
1
Delay Time 5
16ms
1
1
0
Delay Time 6
32ms
1
1
1
Delay Time 7
64ms
Publication 1794-6.5.5 - October 1996
Page 23
2–6
How Communication Takes Place and I/O Image Table Mapping
16-point Discrete Output Module (1794-OB16) Image Table Mapping
Read
I/O Image Input Size
Module Image
0 or 1 Word
Not used
Output Size
Outputs
1 or 2 Words
Write
Not used
Memory Map of 16-Point Discrete Output Module Image Table – 1794-OB16 Dec. Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Oct. Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
Size
Not used O15
O14
O13
O12
O11
O10
O9
O8
Read Word 1
O7
O6
O5
O4
O3
O2
O1
O0
Write Word 1
Not used
Write Word 2
Where O = Output value (O0 corresponds to output 0, O1 corresponds to output 1, etc.)
16-point Discrete Input/Output Module Image Table Mapping 1794-IB10XOB6 I/O Image Input Size Read
Module Image
0 to 1 Word
Not used
Inputs
Not used
Outputs
Output Size Write
0 to 2 Words
Not used
Memory Map of 16-Point Discrete Input/Output Module Image Table – 1794-IB10XOB6 Decimal Bits
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
(Octal Bits)
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
I9
I8
I7
I6
I5
I4
I3
I2
I1
I0
Read Word 1
O5
O4
O3
O2
O1
O0
Write Word 1
Not used Not used
Not used Where
I = Input Channel O = Output Channel
Publication 1794-6.5.5 - October 1996
Size
Write Word 2
Page 24
How Communication Takes Place and I/O Image Table Mapping
2–7
8-point Discrete Electronically Fused Output Module (1794-OB8EP) Image Table Mapping I/O Image Input Size Read
Module Image
0 or 1 Word
Fault Bits
Output Size
Reserved
Not used
FR
Outputs
1 or 2 Words
Write
Reserved
Memory Map of 8-Point Discrete Electronically Fused Output Module Image Table – 1794-OB8EP Dec. Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Oct. Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
F7
F6
F5
F4
F3
F2
F1
F0
Not used
FR
Reserved O7
O6
O5
O4
O3
Size Read Word 1
O2
O1
O0
Reserved
Write Word 1 Write Word 2
Where O = Output value (O0 corresponds to output 0, O1 corresponds to output 1, etc.) FV = overload fault bit (1 = fault present; 0 = no fault). F0 corresponds to output 0, F1 corresponds to output 1, and so on. FR = fault reset bit (1 = reset word; 0 = no change)
Publication 1794-6.5.5 - October 1996
Page 25
2–8
How Communication Takes Place and I/O Image Table Mapping
8-point Discrete Sensor Input Module (1794-IB8S) Image Table Mapping I/O Image
Module Image
Input Size Read
Status
1 or 2 Words
Inputs Not used
Output Size Write
Delay Time
Not used
0 or 1 Word
Delay Time
Memory Map of 8-Point Discrete Sensor Input Module Image Table – 1794-IB8S Dec. Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Oct. Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
S7
S6
S5
S4
S3
S2
S1
S0
D7
D6
D5
D4
D3
D2
D1
D0
Not used
Size Read Word 1 Read Word 2
Not used
DT 12-15
DT 00-11
Write Word 1
Where S = Status of input (where S1 corresponds to the diagnostic bit for input 1, S2 corresponds to the diagnostic bit for input 2, etc.) D = Input Data (where D0 corresponds to input 0, D1 corresponds to input 1, etc. DT = Input Delay Time (where DT 00-11 corresponds to inputs 0 thru 11; DT 12-15 corresponds to inputs 12 thru 15. Make certain that the delay time for 00-11 is the same as the delay time for 12-15. Smart Sensor Bits 08-15
S = Diagnostic data -
1 = Fault present (Smart) 0 = Normal (no errors)
Bits 00-07
D = Input data
1 = Sensor on 0 = Sensor off
1 = Diagnostics not disabled 0 = Normal (Disabled)
Bits 00-07
D = Input data
1 = Sensor on 0 = Sensor off
Standard Sensor Bits 08-15
S = Diagnostic data -
Input Delay Times for the 1794-IB8S Input Module Bits
Publication 1794-6.5.5 - October 1996
Description Selected Delay Time
02
01
00
Delay Time for Inputs 00-11
05
04
03
Delay Time for Inputs 12-15
0
0
0
Delay Time 0 (default)
512µs
0
0
1
Delay Time 1
1ms
0
1
0
Delay Time 2
2ms
0
1
1
Delay Time 3
4ms
1
0
0
Delay Time 4
8ms
1
0
1
Delay Time 5
16ms
1
1
0
Delay Time 6
32ms
1
1
1
Delay Time 7
64ms
Page 26
How Communication Takes Place and I/O Image Table Mapping
2–9
8-point Discrete Input Module (1794-IA8) Image Table Mapping Module Image
I/O Image Input Size Read
Not used
1 or 2 Words
Inputs Not used
Output Size Write
Delay Time
Not used
0 or 1 Word
Memory Map of 8-point Discrete Input Module Image Table – 1794-IA8 Dec. Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Oct. Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
D7
D6
D5
D4
D3
D2
D1
D0
Not used
Not used
Size Read Word 1 Read Word 2
Not used
DT 00-07
Write Word 1
Where D = Input Data (where D0 corresponds to input 0, D1 corresponds to input 1, etc. DT = Input Delay Time (where DT 00-07 corresponds to inputs 0 thru 7)
Input Delay Times for the 1794-IA8 Input Module Bits
Description
Maximum Delay Time
02
01
00
Delay Time for Inputs 00-07
Off to On
On to Off
0
0
0
Delay Time 0 (default)
8.6ms
26.6ms
0
0
1
Delay Time 1
9ms
27ms
0
1
0
Delay Time 2
10ms
28ms
0
1
1
Delay Time 3
12ms
30ms
1
0
0
Delay Time 4
17ms
35ms
1
0
1
Delay Time 5
26ms
44ms
1
1
0
Delay Time 6
43ms
61ms
1
1
1
Delay Time 7
78ms
96ms
Publication 1794-6.5.5 - October 1996
Page 27
2–10
How Communication Takes Place and I/O Image Table Mapping
8-point Discrete Output Module (1794-OA8) Image Table Mapping I/O Image Read
Input Size
Module Image
0 or 1 Word
Not used
Output Size Write
Not used
Outputs
1 or 2 Words
Not used
Memory Map of 8-point Discrete Output Module Image Table – 1794-OA8 Dec. Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Oct. Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
Size
Not used Not used
O7
Read Word 1 O6
O5
O4
O3
O2
O1
O0
Not used
Write Word 1 Write Word 2
Where O = Output value (where O0 corresponds to output 0, O1 corresponds to output 1, etc.)
8-point Discrete Relay Output Module (1794-OW8) Image Table Mapping I/O Image Read
Input Size
Module Image
0 or 1 Word
Not used
Output Size
Not used
1 or 2 Words
Write
Outputs Not used
Memory Map of 8-Point Discrete Relay Output Image Table – 1794-OW8 Dec. Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Oct. Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
Not used Not used
O7 Not used
Size Read Word 1
O6
O5
O4
O3
O2
O1
O0
Write Word 1 Write Word 2
Where O = Output value: where O0 corresponds to output 0, O1 corresponds to output 1, etc., and when bit = 0, the output is off; when bit = 1, the output is on.
Publication 1794-6.5.5 - October 1996