Call Parameters Of The Fb Siwa_U; Addr:= 256, Input, Int; Db_Scale:= 9, Input, Int; Db_Vector:= 8, Input, Int - Siemens Siwarex U Device Manual

Universal weighing module for simatic s7 300 and et 200m
Hide thumbs Also See for Siwarex U:
Table of Contents

Advertisement

8.4 Call parameters of the FB SIWA_U

The call parameters of the FB SIWA:U are described in the following section. In the
delivery condition, the call parameters were defined as variables in the scale DB.
It is possible to define the call parameters with other variables of the same type.
When calling the FB SIWA_U, the number of the instance DB to be generated
must be specified.
The parameters are explained for channel 1. For the two-channel module, these
explanations apply accordingly. The variables for channel 2 have the appendix "2",
e.g. "DB_SIWA_U".i_GROSS_WEIGT_CH2.
8.4.1

ADDR:= 256, input, INT

SIWAREX U requires for operation 16 bytes in the input and output address area
of the SIMATIC-CPU. The ADDR parameter must correspond with the definition in
the HW configuration.
8.4.2

DB_SCALE:= 9, input, INT

A scale DB must be defined for every SIWAREX U, in which the parameter of the
SIWAREX U and the current actual value are found. The number of the DB can be
chosen freely. DB9 has been defined as the scale DB in the project planning
package. In addition, UDT9 is delivered as a template for data block creation.
8.4.3

DB_VECTOR:= 8, input, INT

The content of the vector DB may not be changed by the user. It only has to be
loaded once per SIMATIC CPU, independently of the number of SIWAREX U
modules used. The number of the DB can be chosen freely.
8.4.4

CMD_IN:= "DB_SIWA_U".i_CMD_INPUT, input, INT

The user controls all command using this input variable, whether for transferring
a data record or executing a weighing task. The commands are described in
Chapter
6
and triggers the command using variable
CMD_EN:= "DB_SIWA_U".bo_CMD_EN (see Chapter
doesn't delete the command number, but after the execution of the command
resets the trigger variable
CMD_EN:= "DB_SIWA_U".bo_CMD_EN.
8.4.5

CMD_INPR:= "DB_SIWA_U".bo_CMD_IN_PROGRESS, Output, BOOL

The bit informs the user that a command is currently being processed.
8.4.6

CMD_FOK:= "DB_SIWA_U".bo_CMD_FOK, output, BOOL

The bit notifies the user for a cycle that his command has been executed without
any errors (finished OK). The bit is set for one cycle (edge) only.
SIWAREX U
Commands. The user prepares the command number using this variable
7BCOMMUNICATION IN SIMATIC S7
The FB SIWA_U
8.4.18).
8-53

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Siwarex U and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF