Integrating The Function Blocks In The User Project - Siemens ET 200S 1SI Function Manual

Table of Contents

Advertisement

4. In the hardware catalog, open the PROFIBUS DP folder and the ET 200S subfolder and
select, for example, the IM 151-1 interface module (Article No.: 6ES7 151-1AA02-0AB0 or
follow-up module).
5. Use a drag-and-drop operation to place the IM 151-1 I/O device on the PROFIBUS subnet
of your project. The Properties - PROFIBUS IM 151-1 Interface dialog box opens. In this
dialog box, select the address that you have set on the IM 151-1 (see the
Distributed I/O System ) manual) and confirm your selection with OK.
The selected IM 151-1 I/O device is inserted in the project.
6. The inserted I/O device must now be fitted with your project modules. To do this, open the
IM 151-1 subfolder under the selected I/O device in the hardware catalog, and select the
appropriate modules, beginning with a power module in slot 1. The serial interface modules
with Article No. 6ES7 138-4DF0☐-0AB0 are located in the CP subfolder.
In this subfolder, select the appropriate module for your application. Use a drag-and-drop
operation to place these modules in the ET 200S.
Note
Diagnostic alarms are not enabled by default. Activate the alarms for each module in the
Properties dialog box.
7. Save and compile your project.
2.5

Integrating the function blocks in the user project

Creating the FBs instance in the user project
The function blocks are part of the program library of the SIMOTION SCOUT engineering
system. For working with the blocks, an instance has to be created in the user project for each
function block used.
Example:
VAR_GLOBAL
...
myInstET200S_SISend
myInstET200S_SIReceive
myInstET200S_SIGetV24Sig : _ET200S_SI08_getV24Sig;
myInstET200S_SISetV24Sig : _ET200S_SI08_setV24Sig;
...
END_VAR
Call (LAD representation)
The LAD representation of the individual function blocks can be found in the respective function
block descriptions.
Supplement to the ET 200S 1SI serial interface module
Function Manual, 01/2015, xxx
2.5 Integrating the function blocks in the user project
: _ET200S_SI08_send;
: _ET200S_SI08_receive;
Description
ET 200S
// create FB instance
// create FB instance
// create FB instance
// create FB instance
15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simotion et 200s

Table of Contents