Siemens CM 1542-5 Operating Instructions Manual page 32

Simatic net, profibus
Hide thumbs Also See for CM 1542-5:
Table of Contents

Advertisement

Configuration, programming
4.3 Program blocks for FDL
Setting up a programmed FDL connection using TSEND_C
To set up a programmed FDL connection in STEP 7, follow the steps below:
1. Create a TSEND_C instruction in the program editor.
You will be prompted to create the relevant data block.
2. Program the block parameters.
Interconnect the CONNECT parameter of the TCON instruction with the previously
created variable "FDL_Connection" of the data type TCON_FDL.
The FDL connection is established and used for sending and receiving data.
Setting up an FDL connection in the user program
For programmed communication via FDL, you need to create and program the data block of
the system data type TCON_FDL yourself and call it directly at the instruction. Follow these
steps:
1. Create a global data block in the project tree.
2. In the global data block create a variable of the data type TCON_FDL.
The following example shows the global data block "FDL_connection" with the variable
"FDL_connection" of the data type TCON_FDL.
Figure 4-2
Programming an FDL connection
3. In the data block program the parameters of the FDL cconnection, e.g. the PROFIBUS
addresses.
The type of connection is specified with the "ServiceId" parameter. You will find details in
the STEP 7 information system.
4. Create a TCON instruction in the program editor.
5. Interconnect the CONNECT parameter of the TCON instruction with the previously
created variable "FDL_Connection" of the data type TCON_FDL.
In the example below, the CONNECT parameter of the TCON instruction is interconnected
with the tag "FDL_Connection" (data type TCON_FDL).
32
Operating Instructions, 11/2018, C79000-G8976-C290-04
CM 1542-5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S7-1500

Table of Contents