The text of a manual · part 4 of 13
FLEX I/O PROFIBUS Adapter (Cat. No. 1794-APB) User Manual: 2 - How Communication Takes Place and I/O Image Table Mapping, pages 18 to 27
Pages 18 to 27 of 90, from FLEX I/O PROFIBUS Adapter (Cat. No. 1794-APB) User Manual
The original document is the PDF (924 KB). 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-IB16
Page 18
Chapter
2
How Communication Takes Place and I/O Image Table Mapping What this Chapter Contains
In this chapter, you will learn about:
• communication over the FLEX I/O backplane (between the PROFIBUS adapter and the I/O modules)
• how data is mapped into the I/O image table
Communication Over the I/O Backplane
One 1794-APB PROFIBUS 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 over the PROFIBUS network. The adapter communicates with its I/O modules over the backplane. I/O Module
I/O Module
I/O Module
Inputs
Inputs
Status
Status
Outputs
Outputs
Configuration
Configuration
Slot 2
Slot 8
0
Inputs Read
Network
PROFIBUS Adapter Write
Read Words
Status Outputs
Write Words
Configuration 15
Slot 1
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.6 – April 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. I/O Image
Module Image
Input Size 1 or 2 Words
Inputs
16-point Discrete Input Module 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.
Polled I/O Structure
The first word of output data sent by the adapter is the Adapter Status Word. Output data is received by the adapter in the order of the installed I/O modules. The Output data for Slot 1 is received first, followed by the Output data for Slot 2, and so on up to slot 8. All bits in the output status word are reserved 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 1 is first after the status word, followed by Input data from Slot 2, and so on up to slot 8. PROFIBUS Adapter Read Data Adapter Status Slot 1 Input Data
Network READ
Slot 2 Input Data
...
...
Slot 8 Input Data
Read
Write Data
Write
Adapter Status Slot 1 Output Data
Network WRITE
Slot 2 Output Data
...
...
Slot 8 Output Data
Publication 1794-6.5.6 – April 1996
I/O Module I/O Module Slot 1 Slot 2
...
I/O Module Slot 8
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 Module Fault Bits 7 6 5 4 3 2 1
Slot 1
Slot 2
Slot 3
Slot 4
Slot 6 Slot 5
Slot 7
15 14 13 12 11 10 19 8 Slot 8
Bit:
0
Reserved
Node Address Changed Bit
The adapter input status word bit descriptions are shown in the following table. Bit Description
Bit
Explanation
8
This bit is set (1) when an error is detected in slot position 1.
9
This bit is set (1) when an error is detected in slot position 2.
10
This bit is set (1) when an error is detected in slot position 3.
11
This bit is set (1) when an error is detected in slot position 4.
12
This bit is set (1) when an error is detected in slot position 5.
13
This bit is set (1) when an error is detected in slot position 6.
14
This bit is set (1) when an error is detected in slot position 7.
15
This bit is set (1) when an error is detected in slot position 8.
Reserved
1–7
Reserved
Node Address Changed
0
This bit is set (1) when the node address switch setting has been changed since power up.
I/O Module Fault
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 Publication 1794-6.5.6 – April 1996
Page 21
2–4
How Communication Takes Place and I/O Image Table Mapping
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. Until this power cycling occurs, the node address switches will not match the actual node address.
Mapping Data into the Image Table
All FLEX I/O modules are supported by the PROFIBUS adapter. Presently, these consist of: Module Description
For image table mapping, refer to:
Catalog Number
16 Sink Input Module
1794-IB16 page 2–4
16 Source Output Module
1794-OB16 page 2–6
8 Sensor Input Module
1794-IB8S page 2–7
8 Input Module
1794-IA8 page 2–8
8 Output Module
1794-OA8 page 2–8
8 Relay Output Module
1794-OW8 page 2–9
8 Input Analog Module
1794-IE8 page 2–10
4 Output Analog Module
1794-OE4 page 2–12
4 in/2 out Analog Combo Module
1794-IE4XOE2 page 2–15
8 Input RTD Analog Module
1794-IR8 page 2–17
8 Input Thermocouple Module
1794-IT8 page 2–21
SCANport Module
1203-FM1 page 2–25
1794-IB16 – 16-point Discrete Input Module Image Table Mapping I/O Image
Module Image
Input Size Read
Inputs
1 or 2 Words
Not used Output Size Write
Not used
0 or 1 Word
Delay Time
Delay Time
1794-IB16 Memory Map Decimal Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Size
Octal Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
Read Words
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Read Word 1
Not used
Publication 1794-6.5.6 – April 1996
Read Word 2
Page 22
How Communication Takes Place and I/O Image Table Mapping
Octal Bit
17
16
15
14
13
12
11
10
07
06
05
Not used Where
04 DT 12–15
03
2–5
02
01 DT 00–11
00
Read Words Write Word 1
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)
Publication 1794-6.5.6 – April 1996
Page 23
2–6
How Communication Takes Place and I/O Image Table Mapping
1794-IB16 Input Delay Times 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
1794-OB16 – 16-point Discrete Output Module Image Table Mapping
Read
I/O Image Input Size
Module Image
0 or 1 Word
Not used
Output Size Write
Outputs
1 or 2 Words Not used
1794-OB16 Memory Map Decimal Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Size
Octal. Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
Read Words
Not used O15
O14
O13
O12
O11
O10
O9
O8
O7
Not used Where
O = Output value (O0 corresponds to output 0, O1 corresponds to output 1, etc.)
Publication 1794-6.5.6 – April 1996
Read Word 1 O6
O5
O4
O3
O2
O1
O0
Write Word 1 Write Word 2
Page 24
How Communication Takes Place and I/O Image Table Mapping
2–7
1794-IB8S – 8-point Discrete Sensor Input Module Image Table Mapping I/O Image
Module Image
Input Size Read
Status
Inputs
1 or 2 Words Not used Output Size
Write
Delay Time
Not used 0 or 1 Word
Delay Time
1794-IB8S Memory Map Decimal Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Size
Octal Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
Read Words
S7
S6
S5
S4
S3
S2
S1
S0
D7
D6
D5
D4
D3
D2
D1
D0
Read Word 1
Not used
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 –
1794-IB8S Input Delay Times 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.6 – April 1996
Page 25
2–8
How Communication Takes Place and I/O Image Table Mapping
1794-IA8 – 8-point Discrete Input Module Image Table Mapping Module Image
I/O Image Input Size Read
Not used
Inputs
1 or 2 Words Not used Output Size
Write
Delay Time
Not used
0 or 1 Word
1794-IA8 Memory Map Decimal Bit
15
14
13
Octal Bit
17
16
15
12
11
10
09
08
14
13
12
11
10
Not used
07
06
05
04
03
02
01
00
Size
07
06
05
04
03
02
01
00
Read Words
D7
D6
D5
D4
D3
D2
D1
D0
Read Word 1
Not used
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)
1794-IA8 Input Delay Times Bits
Description
Maximum Delay Time
02
01
00
Delay Time for Inputs 00–07
Off to On
On to Off
0
0
0
0
0
1
Delay Time 0 (default)
8.6ms
26.6ms
Delay Time 1
9ms
27ms
0
1
0
1
0
Delay Time 2
10ms
28ms
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
1794-OA8 – 8-point Discrete Output Module Image Table Mapping I/O Image
Read
Input Size
Module Image
0 or 1 Word
Not used
Output Size Write
Publication 1794-6.5.6 – April 1996
1 or 2 Words
Not used
Outputs Not used
Page 26
How Communication Takes Place and I/O Image Table Mapping
2–9
1794-OA8 Memory Map Decimal Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Size
Oct. Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
Read Words
Not used Not used
O7
Read Word 1 O6
O5
O4
O3
O2
O1
O0
Not used Where
Write Word 1 Write Word 2
O = Output value (where O0 corresponds to output 0, O1 corresponds to output 1, etc.)
1794-OW8 – 8-point Discrete Relay Output Module Image Table Mapping I/O Image
Read
Input Size
Module Image
0 or 1 Word
Not used
Output Size
Not used
Outputs
1 or 2 Words
Write
Not used
1794-OW8 Memory Map Decimal Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Size
Oct. Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
Read Words
Not used Not used
O7
Read Word 1 O6
O5
O4
O3
O2
O1
Not used Where
O0
Write Word 1 Write Word 2
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.6 – April 1996
Page 27
2–10
How Communication Takes Place and I/O Image Table Mapping
1794-IE8 – 8 Input Analog Module Module Image Input Data Channel 0 Input Data Channel 1
I/O Image
Input Data Channel 2
Input Size
Input Data Channel 3 Input Data Channel 4
1 to 9 Words
Input Data Channel 5 Input Data Channel 6 Input Data Channel 7 Underrange
PU Configure select Not used
Output Size
Not used 0 or 1 Word
Not used Not used Not used
1794-IE8 Memory Map Decimal Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Size
Oct. Bit
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
Read Words
S
Analog Value Channel 0
Read Word 1
S
Analog Value Channel 1
Read Word 2
S
Analog Value Channel 2
Read Word 3
S
Analog Value Channel 3
Read Word 4
S
Analog Value Channel 4
Read Word 5
S
Analog Value Channel 5
Read Word 6
S
Analog Value Channel 6
Read Word 7
S
Analog Value Channel 7
Read Word 8
PU C7
Not used – set to zero C6
C5
C4
C3
C2
C1
C0
U7
U6
U5
U4
U3
U2
U1
U0
Read Word 9
F7
F6
F5
F4
F3
F2
F1
F0
Write Word 1
Not used – set to 0 Where:
PU = Power up bit – included in series B modules only. U = Underrange bits for 4-20mA inputs C = Configure select bit F = Full range bit S = sign bit (in 2’s complement)
Publication 1794-6.5.6 – April 1996
Write Word 2 thru 6