Siemens SIMATIC PROFINET Function Manual page 111

With step 7 v14
Hide thumbs Also See for SIMATIC PROFINET:
Table of Contents

Advertisement

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
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:
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
Result
The IO controller and the I-device can exchange data with each other through the
input/output transfer areas.
PROFINET with STEP 7 V14
Function Manual, 09/2016, A5E03444486-AG
I-device sample program
Name
result
output
IO controller sample program
Data type
bool
bool
5.2 Intelligent IO devices (I-devices)
Input / output type
Input
Output
Functions
111

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents