Functions
5.5 Intelligent DP slaves (I-slaves)
PROFIBUS with STEP 7 V13
88
Function Manual, 12/2014, A5E03775446-AC
Programming the DP master
To program the sample program for the DP master, follow these steps:
1.
Using the SCL programming language, create a new function with the name "further
processing" in the project tree under "Program blocks" > "Add new block". Open the
function.
2.
In the interface of the function "further processing", create the following tags:
Name
Data type
Input/output type
result
bool
Input
output
bool
Output
3.
In the instruction window of the function "further processing", write the following program
code:
#output:=#result;
4.
Call the function "further processing" in a cycle OB, for example, in OB1.
5.
Wire the function "further processing" in the cycle OB as follows:
Figure 5-19 DP master sample program
Result
You mastered the task successfully.
Summary of Contents for SIMATIC ET 200AL
Page 2: ......
Page 143: ......
Page 218: ......
Page 250: ......
Page 296: ......
Page 337: ......
Page 365: ......
Page 392: ......
Page 419: ......
Page 451: ......
Page 483: ......
Page 597: ......
Page 648: ......
Page 702: ......
Page 739: ......
Page 781: ......
Page 804: ......
Page 828: ......
Page 853: ......
Page 880: ......
Page 906: ......
Page 996: ...Diagnostics ...
Page 1121: ......
Page 1565: ......