EasyManua.ls Logo

Siemens SIWAREX WP241 - Calling of function block

Siemens SIWAREX WP241
184 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Communication
11.1 Integration in SIMATIC S7-1200
SIWAREX WP241
156 Manual, 04/2014, A5E33713528A
11.1.3
Calling of function block
This description is based on use of the WP241PR block with data record communication and
the following data:
Start address
SIWAREX WP241: 68 (see Creating the hardware configuration
(Page 154))
HW ID
SIWAREX WP241: 271 (see → Creating the hardware configuration (Page 154))
Instance data block number
of SIWAREX WP241 function block: DB241
The function block can be integrated at the desired position in the user program using drag
and drop. Calling of the FB must be carried out cyclically in the control program.
Figure 11-5 Calling of WP241PR block in user program
Function block parameter
Description
ADDR
Start address WP241 (see → Creating the
hardware configuration (Page 154))
HW_ID
HW ID WP241 (see → Creating the hardware
configuration (Page 154))
DB_NO
Number of FB-internal instance DB
LIFEBIT
Optional status bit can be used to monitor
communication
The generated instance DB (DB241 in this case) contains all data records of the WP241 as
well as all parameters required to exchange data between CPU and weighing module.
A separate FB call must be made in the user program for each weighing module. In this
manner, each scale receives its own instance DB which provides the respective scale
parameters. The input and output parameters of the FB must be matched to the respective
WP241 for each call.

Table of Contents

Related product manuals