Functions
5.5 Intelligent DP slaves (I-slaves)
PROFIBUS with STEP 7 V13
Function Manual, 12/2014, A5E03775446-AC
87
Programming the I-slave
To program the sample program for the I-slave, follow these steps:
1.
Using the SCL programming language, create a new function with the name
"preprocessing" in the project tree under "Program blocks" > "Add new block". Open the
function.
2.
In the interface of the function "preprocessing", create the following tags:
Name
Data type
Input/output type
input 1
bool
Input
input 2
bool
Input
result
bool
Output
3.
In the instruction window of the function "preprocessing", write the following program
code:
#result:=#input 1&#input 2;
4.
Call the function "preprocessing" in a cycle OB, for example, in OB1.
5.
Wire the function "preprocessing" in the cycle OB as follows:
Figure 5-18 I-slave sample program
Содержание SIMATIC ET 200AL
Страница 2: ......
Страница 143: ......
Страница 218: ......
Страница 250: ......
Страница 296: ......
Страница 337: ......
Страница 365: ......
Страница 392: ......
Страница 419: ......
Страница 451: ......
Страница 483: ......
Страница 597: ......
Страница 648: ......
Страница 702: ......
Страница 739: ......
Страница 781: ......
Страница 804: ......
Страница 828: ......
Страница 853: ......
Страница 880: ......
Страница 906: ......
Страница 996: ...Diagnostics ...
Страница 1121: ......
Страница 1565: ......