Functions
5.2 Intelligent IO devices (I-devices)
PROFINET with STEP 7
134
Function Manual, 05/2021, A5E03444486-AL
Configuring the transfer area
Configure a transfer area with the following properties in the I-device:
Figure 5-14 I-device transfer area, sample program
Programming I-device
To program the sample program for the I-device, follow these steps:
1.
Using the SCL programming language, create a new function with the name "preprocessing"
in the project tree in "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;
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: ......