Working With The Function Block - Siemens SIWAREX WP321 Operating Instructions Manual

Electronic weighing system
Hide thumbs Also See for SIWAREX WP321:
Table of Contents

Advertisement

Figure 11-6
Calling WP321 DR block (V3.x) in the user program
Function block parameter
ADDR
HW_ID
DB_NO
LIFEBIT
The generated instance DB (WP321 in this case) contains all data records of the WP321 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 WP321 for each call.
11.6

Working with the function block

Data records in SIWAREX weighing modules
All parameters in SIWAREX weighing modules are structured in data records. These data
records must be considered as connected packages and can only be respectively read into the
CPU or written to the SIWAREX as complete packages. Reading or writing of a single
parameter within a data record is not possible. You can find a description of all data records and
their parameters in chapter → Scale parameters and functions (Page 59).
Reading and writing of data records is performed using special command codes which can be
sent with three command mailboxes handled according to priority within the instance DB:
SIWAREX WP321
Operating Instructions, 08/2019, A5E33715669A-AD
Communication in SIMATIC S7-300/400/1200/1500
11.6 Working with the function block
Description
Start address WP321 (see → Hardware configura‐
tion of the electronic weighing system (Page 104))
HW ID WP321 (see → Hardware configuration of
the electronic weighing system (Page 104))
Number of FB-internal instance DB
Optional status bit can be used to monitor commu‐
nication
107

Advertisement

Table of Contents
loading

Table of Contents