Functions
5.2 Intelligent IO devices (I-devices)
PROFINET with STEP 7
Function Manual, 05/2021, A5E03444486-AL
135
4.
Call the function "preprocessing" in a program cycle OB, for example, in OB1.
5.
Wire the function "preprocessing" in the program cycle OB as follows:
Figure 5-15 I-device sample program
Programming IO controller
To program the sample program for the IO controller, follow these steps:
1.
Using the SCL programming language, create a new function with the name "further
processing" in the project tree in "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 program cycle OB, for example, in OB1.
5.
Wire the function "further processing" in the program cycle OB as follows:
Figure 5-16 IO controller sample program
Result
The IO controller and the I-device can exchange data with each other through the
input/output transfer areas.
Содержание 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: ......