DP Master Application Examples
47
6.3
32 Discrete Input Module
The following table shows where the data appears in the SLC for a Siemens
ET200B 32DI module mapped at different addresses in COM PROFIBUS
(The scanner is in slot 2.).
6.4
Example: M0/M1 Addressing
The scanner occupies slot 2 in the SLC rack. An 8DO/24DI module is
assigned output address Q240 and input address Q250 in COM PROFIBUS.
The output data is found at M0:2.120 low byte. The input data is found at
M1:2.125 and M1:2.126 low byte.
6.5
Example: Accessing Data
The following example shows how to:
•
use an internal SLC file to set up the Ignore Slave Status table (see
section 9.3) and copy it to the scanner on the first scan
•
use a delay at startup to allow slaves to come online before you
configure the module to generate a fault if any DP slaves are faulted
• use
internal
SLC
timers
to
distribute
access to the M0 and M1 files
over time to minimize the impact on the SLC logic scan
Module starting address in COM PROFIBUS
Module data
address
P0
P1
Q0
Q1
I0.0
I:2.0/0
I:2.0/8
M1:2.0/0
M1:2.0/8
I0.7
I:2.0/7
I:2.0/15
M1:2.0/7
M1:2.0/15
I1.0
I:2.0/8
I:2.1/0
M1:2.0/8
M1:2.1/0
I1.7
I:2.0/15
I:2.1/7
M1:2.0/15
M1:2.1/7
I2.0
I:2.1/0
I:2.1/8
M1:2.1/0
M1:2.1/8
I2.7
I:2.1/7
I:2.1/15
M1:2.1/7
M1:2.1/15
I3.0
I:2.1/8
I:2.2/0
M1:2.1/8
M1:2.2/0
I3.7
I:2.1/15
I:2.2/7
M1:2.1/15
M1:2.2/7
Summary of Contents for SST-PFB-SLC
Page 7: ...Contents vii Technical Data 105 Index 107 A...
Page 8: ...SST PFB SLC User s Guide viii...
Page 14: ...SST PFB SLC User s Guide 6...
Page 20: ...SST PFB SLC User s Guide 12...
Page 34: ...SST PFB SLC User s Guide 26...
Page 53: ...45 6 DP Master Application Examples...
Page 56: ...SST PFB SLC User s Guide 48 Sample Program...
Page 57: ...DP Master Application Examples 49 Sample continued...
Page 66: ...Using the Scanner Module as a DP Slave 58...
Page 67: ...59 8 Using FDL...
Page 75: ...Using FDL 67 Sample Program...
Page 76: ...SST PFB SLC User s Guide 68 Sample Continued...
Page 80: ...SST PFB SLC User s Guide 72 Sample Program...
Page 81: ...SST PFB SLC User s Guide 73 Sample Continued...
Page 85: ...SST PFB SLC User s Guide 77...
Page 86: ...SST PFB SLC User s Guide 78...
Page 87: ...79 9 Diagnostics This chapter describes system diagnostics...
Page 105: ...97 11 Network Parameter Defaults This chapter describes network defaults...