You are on page 1of 20

SIWAREX U

Manual
SIWAREX U V4.0 Library for PCS 7 V6.0
Release 07/03










Qualified personnel
A device may only be commissioned and operated by qualified personnel. For the purposes of these
safety notes, qualified personnel are those persons who are authorized to commission, ground or tag
devices, systems and electrical circuits in accordance with safety standards.


Brand names
SIMATIC

and SIWAREX

are registered brand names of Siemens AG. Other designations mentioned in


this publication may be brand names whose use by third parties may violate the rights of the owner.


Publisher A&D PI 14


Copyright

Siemens AG 1998-2003 All rights reserved


Passing on this document to third parties, duplication, utilization and revelation of its contents is not
permitted without express permission. Violators will be liable for damages. All right reserved, particularly
in case a patent is granted or a utility model is registered.

Siemens AG
A&D PI14
Weighing Systems SIWAREX
D-76181 Karlsruhe
Homepage: http://www.siwarex.com/


Exclusion of liability
Although we have checked the contents of this publication for agreement with the hardware and software
described, full agreement cannot be guaranteed. The information in this manual is checked at regular
intervals and necessary corrections included in the next edition.
Your suggestions for improvement are welcome.
Siemens AG 1998-2003
Subject to change without prior notice.


2
Table of Contents

1 Description of the Automation Block (Function Block)..........................................................................4
1.1 Type/Number .................................................................................................................................4
1.2 Application Area.............................................................................................................................4
1.3 Calling OBs ....................................................................................................................................4
1.4 Integrating the Component in the PCS7 Driver Concept...............................................................4
1.5 Function .........................................................................................................................................4
1.5.1 Data Interface of a Data Record.............................................................................................6
1.5.1.1 Zeroing Interface .............................................................................................................7
1.5.1.2 Service Interface..............................................................................................................7
1.5.2 Processing the Send/Read Jobs ............................................................................................8
1.5.3 Weight Value Status Error (DR 31/32) ...................................................................................8
1.5.4 Simulation ...............................................................................................................................9
1.5.5 Address Parameterization ......................................................................................................9
1.5.6 Module Configuration..............................................................................................................9
1.6 Trouble-Shooting .........................................................................................................................10
1.6.1 Alarm Processing..................................................................................................................10
1.6.1.1 Process Alarm (OB40)...................................................................................................10
1.6.1.2 CPU Redundancy Error (OB72) ....................................................................................10
1.6.1.3 Diagnostic Alarm (OB82)...............................................................................................10
1.6.1.4 Removal and Installation (OB83) ..................................................................................11
1.6.1.5 Rack Failure (OB86)......................................................................................................11
1.7 Startup (RESTART) .....................................................................................................................11
1.8 Time Behaviour ............................................................................................................................12
1.9 Messages.....................................................................................................................................12
1.10 I/O Bar ......................................................................................................................................13
2 Description of the Screen Block..........................................................................................................15
2.1 General ........................................................................................................................................15
2.2 Faceplate Views...........................................................................................................................15
2.2.1 Standard (@PG_SIWA_U_STANDARD.pdl) .......................................................................15
2.2.1.1 Module Type..................................................................................................................16
2.2.1.2 Decimal Point Channel 1...............................................................................................16
2.2.2 Maintenance (@PG_SIWA_U_MAINTEN.pdl).....................................................................16
2.2.3 Message ...............................................................................................................................17
2.3 Special Features of the Screen Block..........................................................................................17
2.3.1 Units......................................................................................................................................17
2.3.2 No Symbol Presentation.......................................................................................................17
3 Sample Configuration..........................................................................................................................18
3.1 PLC..............................................................................................................................................18
3.2 OS................................................................................................................................................19
4 Tips and Tricks....................................................................................................................................20
5 Definitions and Abbreviations..............................................................................................................20
6 List of References ...............................................................................................................................20



3
1 Description of the Automation Block (Function
Block)

1.1 Type/Number

SIWA_U / FB 242



1.2 Application Area

This function block is used to link SIWAREX U to SIMATIC PCS 7.
It can only be used in a SIMATIC S7-400 which is the PROFIBUS-DP master. In addition, the CPU
must have message capability via ALARM_8P.
Basic parameterization of the module is performed via HW Config. Initial parameterization is performed
with SIWATOOL.


1.3 Calling OBs

The block can be installed as an alternative in the following OBs.
Cyclic task: OB1
Timed alarm OB: Example: OB32

The block must be installed with the same instance in the following OBs.
(This is performed automatically when CFC is used.)
OB40 For limit value evaluation via process alarm
OB72 For detection of CPU redundancy errors
OB82 For evaluation of the diagnostic alarm
OB83 For recognition of installation or removal of the module
OB86 For recognition of rack failure.
(Event is generated when IM 153 does not respond via PROFIBUS-DP.)
OB100 For recognition of startup

1.4 Integrating the Component in the PCS7 Driver Concept

The Siwa_U component is fully integrated in the PCS7 driver concept as of Version 4.0. The messages
"Rack error", "Module error" and "Periphery access error" are no longer generated by the Siwa_U
component itself but by the components created with the PCS7 driver wizard.

The ADDR input must be switched with the input word of the base adress of the appropriate Siwarex
module. If the start address of the module is at byte 512 for example, switching takes place with the
IW512: Select ADDR input -> right mouse button -> switch to operand .. -> enter "IW512".

After inserting the Siwa_U component in the CFC the driver wizard must be started so that the
necessary wiring with the Siwarex component can be made. The inputs RACKF, MODF and PERAF are
wired with the corresponding outputs of the MOD component.


1.5 Function

4
The "SIWA_U" block is the interface between a 1 and 2-channel SIWAREX U and the blocks of the
SIMATIC PCS 7 libraries.
The block continuously reads the weight values of the available channels and processes the alarms
related to the module. The block supports removal and installation of the module during running
operation.
The data record fields are provided to the user in the I/O bar as IN_OUT (for read/write-accessible data)
or OUT parameters (only for read-accessible data). Remember that the weight values must be specified
in REAL format. This makes user specifications independent of the parameterized decimal point in the
adjustment weight data record in the I/O bar. During transmission (i.e., before for write-accesses and
after for read-accesses), the block handles conversion of the REAL values to the INT format required by
the module by weighting the values with the decimal point of the adjustment data record.
Commissioning and adjustment of the scales are performed with SIWATOOL.
After initial commissioning with SIWATOOL, all parameters can be read in at one time. The "R_ALL
Receive all" input is available for this purpose. The data records* 40, 3, (4), 5, 6, 21, (22) are read in
sequentially.
The reverse function "S_ALL - Send all" is available for module replacement. This function can be used
to trigger all data records* DR 3, (4), 5, 6, 21, (22) for sending. This is only recommended if data have
been read to the data record so that "current" adjustment digits are present in the adjustment data and
the module can be started without new adjustment (i.e., commands).
*Data records shown in brackets only exist on the 2-channel SIWAREX U.

In addition, the block offers separate interfaces for individual transmission of data records 3, 4, 5, 6, 21,
22 and 40.

Communication is handled by SFCs 58 and 59 for reading and writing the data record.

The functions of the SIWAREX U are described in detail in the equipment manual of SIWAREX U (/4/).

IMPORTANT:
Since the data are not read from the module cyclically, the following applies.
It is the responsibility of the user/plant user to ensure the data on the SIWAREX U are not changed by
accesses with SIWATOOL. There is presently no criterion in the data interface between AS and
SIWAREX U which enables automatic detection of changes.


Note:
Since data records are transmitted sequentially and only a maximum of one data record can be processed
per block call cycle, transmission of data records or commands interrupts the continuous reading of the
weight values of the channels. This means that transmission of data records or commands should not be
triggered while a proportioning procedure which uses the weight values is running since the proportioning
procedure would not be able to react fast enough to changes in weight values (e.g., to close valves).



5
1.5.1 Data Interface of a Data Record

Since the data record fields are set up in the I/O bar as IN_OUT (or OUT for data which can only be read)
parameters, the data can be specified and written, and read in from the module. During read access,
linked parameters are not overwritten since the link overwrites these data.

The following parameters are supplemented for each data record in addition to the data fields of a data
record.

Parameter Data Type Class Description
S_xx* BOOL I Sending bit;
is set by the user when the data record is to be written
(Block evaluates rising edge.)
R_xx BOOL I Receiving bit;
is set by the user when the data record is to be read
(Block evaluates rising edge.)
DONE_xx BOOL O Finished message;
is set for one cycle when transmission is finished
ERR_xx WORD O Extra information on the finished message;
(For explanation, see table further down.)
(xx = DR number)
* = Only with data records which can be write-accessed

The sending bits or the receiving bits are monitored cyclically for a rising edge. If a rising edge is
detected, a transmission job is stored.
After the transmission job has been processed, the DONE_xx output is set for one cycle. The user must
evaluate the extra information on the ERR_xx output during this cycle. If ERR_xx = 0, no errors have
occurred. At the same time, the user must also check the interface of data records 31 and 32 for
synchronous and asynchronous errors. For the meaning of the error numbers indicated there, see /4/.

Meaning of the ERR_xx response word

ERR_xx Description
0 Transmission okay
4 Conversion error (REAL<->INT conversion)
6 Job termination due to restart
9 Error during internal call of SFC RD_REC*
10 Error during internal call of SFC WR_REC*
11 Transmission only possible with 2-channel SIWAREX U

* The return value of the SFC is output simultaneously on the SFC_RETV (OUT) parameter.



6
1.5.1.1 Zeroing Interface

For operation of the module, an interface for zeroing of the scales channel is implemented separately for
each channel. The user only needs to program one edge on input Cx_Z_CMD to execute this command.
Output Cx_Z_C_D (x = channel number) indicates that the command has been executed.

Parameter Data Type Class Description
C1_Z_CMD BOOL I Zeroing command, channel 1
C1_Z_C_D BOOL O Zeroing command, channel 1, DONE
ERR_C1_Z WORD O Extra information on finished message
For meaning, see table in
"1.4.1 Data Interface for a Data Record"
C2_Z_CMD BOOL I Zeroing command, channel 2
C2_Z_C_D BOOL O Zeroing command, channel 2, DONE
ERR_C2_Z WORD O Extra information on finished message
For meaning, see table in
"1.4.1 Data Interface for a Data Record"
The user must also evaluate the synchronous error interface here with a positive edge on the Cx_Z_C_D
bit.



1.5.1.2 Service Interface

After initial commissioning with SIWATOOL, all parameters can be read in at one time. The "R_ALL
Receive all" input is available for this purpose. Data records 40, 3, (4), 5, 6, 21, and (22) are read in
sequentially.
The reverse function "Send all" is available for module replacement. This function can be used to trigger
all data records (DR 3, 4, 5, 6, 21, and 22) for sending. This is only recommended if data have been read
to the data record so that "current" adjustment digits are present in the adjustment data and the module
can be started without new adjustment (i.e., commands).

Parameter Data Type Class Description
S_ALL BOOL I Send "all" (Send all DR)
R_ALL BOOL I Receive "all" (Receive all DR)
DONE_S_ALL BOOL O Finished message for "Send All"
DONE_R_ALL BOOL O Finished message for "Receive All"
ERR_S_ALL BOOL O An error occurred while a data record
was being transferred.
ERR_R_ALL BOOL O Group message.
-> Evaluate interfaces of the data records.

NOTE:
Initial parameterization must be performed with SIWATOOL.

S_ALL and R_ALL are reset (FALSE) after job processing. Both functions require several cycles.



7
1.5.2 Processing the Send/Read Jobs

Normally, the block reads data records 31 and 32. In addition to the weight value outputs (GROSS_Cx)
for each channel, a "DONE_Cx" bit exists which is set in that cycle during which the respective weight
value is updated on the output. This is reset during the next cycle if another update has not taken place
again.

If another data record is to be transferred, this is inserted (i.e., the specified data record is transferred
before the records 31,32). The finished message of the job is not output by setting the DONE bit until after
the data records 21,32 are read in so that the user also has time to evaluate the synchronous error
interface.
The block does not prioritize the transmission or zeroing command (i.e., the transmission bits of these
interfaces are normally evaluated for a positive edge and stored as jobs). These jobs are then processed
using the ring principle.

While a commissioning function (S/R_ALL) is running, the trigger bits of the transmission interface and the
two zeroing interfaces are not evaluated. Only once the finished message of the S/R_ALL functions have
been received are the trigger bits of these data records evaluated again. Previously triggered jobs are still
processed before S/R_ALL. Since the transmission interface is used internally for sequential transmission
of the service data, the outputs of the transmission interface are also updated after each DR.
If block processing is interrupted by QMODF, all waiting jobs are deleted. Since old values of the trigger
edge flags are set to "FALSE," trigger bits which are still set are triggered again when the module returns.



1.5.3 Weight Value Status Error (DR 31/32)

As long as QCHF_x is not queued, the data record 31/32 of the channels is continuously updated.

Parameter Data Type Description
GROSS_C1 REAL GROSS WEIGHT, channel 1
QC1ASY_E BOOL 1 = Group error, ASY error, channel 1
QC1SYN_E BOOL 1 = SYNC error during last write access, channel 1
QC1LIMV1 BOOL 1 = Lim. value 1, channel 1, active
QC1LIMV2 BOOL 1 = Lim. value 2, channel 1, active
QC1_ADJ BOOL 1 = Channel 1 adjusted
C1ASY_ER WORD ASYNCHRONOUS errors, channel 1
C1SYN_ER WORD SYNCHRONOUS errors, channel 1



8
1.5.4 Simulation

To make commissioning even easier, a simulation value can be output for the two weight value channels.
This value must be cut in at the applicable input parameter and activated with an additional input. The
simulation value is then output directly to the weight value regardless of whether the module or the
channel have reported errors.

Parameter Data Type Class Description
SIMON_1 BOOL I Switch ON: 1 = Simulated value, channel 1
SIMON_2 BOOL I Switch ON: 1 = Simulated value, channel 2
SIM_CH1 REAL I Simulated value, channel 1
SIM_CH2 REAL I Simulated value, channel 2

Note:
When simulation has been activated for a channel, the simulation only affects the gross weight value
(e.g., limit value indications) continue to be dependent on the actual weight value on the module and not
the simulation value).



1.5.5 Address Parameterization

The address of the SIWAREX U module must be made known to the block. The following parameters are
available for this.

Parameter Data Type Class Description
SUBN1_ID BYTE I ID of primary Subnet
SUBN2_ID BYTE I ID of redundant Subnet
RACK_NO WORD I Rack number
SLOT_NO WORD I Slot number
ADDR WORD I Must be connected with the base address of Siwarex module


These specifications must correspond to the module configuration in HW-Config.
The block algorithm determines the logical address of the module during startup or after changes in the
address parameterization are made. This address is then used to access the module. If an appropriate
module is not found in this slot, QMODF is output, and no further accesses are made to the module.
Determination whether the module can be accessed is made:
1. Not until the correct module has been installed or
2. After appropriate changes in the address parameterizationare are made

QMODF = FALSE is then set if necessary.



1.5.6 Module Configuration

When configuring the module in HW Config, remember that alarm generation must be set to "YES" in the
"Module parameter" screen of the SIWAREX U module. The entries "diagnosis" or "diagnosis+process"
are permitted for the "select alarm" parameter. The type of communication must be set to "SFC-
communication."



9
1.6 Trouble-Shooting

Errors which may occur while a data record is being transferred are output in the data record mailbox on
the ERR_xx outputs. These must be evaluated by the user.
The block's algorithm handles the following errors.
QPARF=1: Parameterization error:
Wrong DP station number (SUBN_ID, RACK_NO, SLOT_NO)
QRACKF=1: DP station failure (IM 153 failed)
QMODF=1: Module removed or out of order

The SIWAREX U is no longer accessed when QPARF, QRACKF or QMODF are queued. After the error
has been corrected, the block automatically resumes communication and begins with a RESTART.



1.6.1 Alarm Processing

1.6.1.1 Process Alarm (OB40)

When a process alarm occurs (if configured in HW Config), the limit value outputs QCxLIMV1 and
QCxLIMV2 (for channel x = 1 or 2) are updated with the information from the local data of OB40.
In addition, the QINT output is inverted to signal the occurrence of the process alarm.

1.6.1.2 CPU Redundancy Error (OB72)

If the SIWAREX U is connected redundantly via two DP channels to two H-CPUs but communication is
only possible via one DP CHANNEL; THOW ENTIRE COMMUNICATION TO THE SIWAREX U fails in
the event of a stop of the CPU connected with this channel. The RACK component in the OB72 detects
this and sends the information on to the Siwarex component in OB72.

1.6.1.3 Diagnostic Alarm (OB82)

Diagnostic alarms must have been enabled when the SIWAREX U was configured.
Asynchronous errors are reported via the diagnostic alarm and evaluated.
When diagnostic alarms have occurred, data records DR 0 and DR 1 are evaluated to determine the
cause of the alarm.
The following error states are imaged on QMODF (i.e., module out of order).
Watchdog has been triggered.
EPROM error (program)
EEPROM error (data)
RAM error (read-write error)
ADC error during read-access
External voltage supply (24 V) is not present.

In addition, when one of these errors occurs, the QCHF_1 and QCHF_2 outputs are set.

The following error states are imaged on the corresponding channel error output (QCHF_x with channel x
= 1 or 2).
ADC control limit exceeded
Minimum voltage on sense line dropped below
Counting overflow for gross weight
10

In addition, the error codes are linked as in DR 31 and 32 and output to outputs QC1ASY_E or
QC2ASY_E where they can be evaluated by the user.

With the identifier "error departing," a check is made to determine whether or not there are more
asynchronous errors are queued. If so, QCHF_x and, if necessary, QMODF are reset.

1.6.1.4 Removal and Installation (OB83)

When the arriving removal/insertion alarm occurs, both QMODF and QCHF_1 and QCHF_2 are set. As
long as QMODF is set, no further cyclic accesses to the SIWAREX U are made (i.e., only alarm
processing). The last shown values will be frozen.
When the departing alarm occurs, diagnostic data records DR 0 and DR 1 are read and evaluated. If no
module error has occurred, QMODF is reset (i.e., to 0).



1.6.1.5 Rack Failure (OB86)

When the ET200M is connected redundantly by two DP channels to an H-system, the component
receives information whether the rack can be reached through the Profibus via the inputs SUBN1ACT and
SUBN2ACT. These inputs must be connected with the outputs of the same name of the RACK
component created by the CFC driver wizard. The SIWA_U component must be called in the OBs 100,
86 and 72 in the process order after the corresponding RACK component (the CFC driver wizard creates
this automatically).

When an arriving rack failure alarm occurs, QRACKF, QCHF_1 and QCHF_2 = 1 are set. As long as
QRACKF is set, no further cyclic accesses to the SIWAREX U are made (i.e., only alarm processing).
The last shown values will be frozen.
When the departing alarm occurs, QRACKF is reset, and diagnostic records DR 0 and DR 1 are read and
evaluated.



1.7 Startup (RESTART)

During startup, the block uses SUBN_ID, RACK_NO and SLOT_NO to determine whether a module with
the characteristics of a SIWAREX U module is connected. If the wrong module (i.e., module type
identifier other than 08C1 hex) is detected at this address or the module cannot be accessed, the driver
sets its QPARF = 1 output and performs no further I/O accesses.

NOTE:
Since the module identifiers for the 1 and 2-channel SIWAREX U modules are identical, the system is
unable to determine during startup whether the correct SIWAREX U module configured in HW Config is
installed (i.e., no parameterization error can be output by the block).

Data records 40 (containing information on the number of channels on the SIWAREX U) and 31/32 are
then read. The first time the data records 31/32 are read, this is still counted as part of startup which is
indicated by QSTARTUP = TRUE.
Startup requires several cycles (QSTARTUP = TRUE) and indicates that all values are invalid.
QSTARTUP = FALSE and cyclic processing are then started.


11

1.8 Time Behaviour

The block has no time behaviour.


1.9 Messages

Message generation to WinCC is implemented with SFB 35 "ALARM_8P." This SFB is included as an
instance in the FB being created.

Message No. Block Param. Default Text Msg. Class
1 QPARF Parameterization error S
2 QRACKF Rack failure S
3 QMODF Module error S
4 QC1SYN_E Synchronous error, channel 1 PM
5 QC2SYN_E Synchronous error, channel 2 PM
6 QC1ASY_E Asynchronous error, channel 1 S
7 QC2ASY_E Asynchronous error, channel 2 S
8 Not used
Message class: S = PLC process control technology/system
PM = process message

Assignment of the auxiliary values to the block parameters

Auxiliary Value Block Parameter
1 SUBN_ID
2 RACK_NO
3 SLOT_NO
4 C1ASY_ER
5 C1SYN_ER
6 C2ASY_ER
7 C2SYN_ER
8 Not used
9 Not used
10 Not used

The block does not issue technological messages. The user can implement these messages using the
status indications (outputs) of the block and a message block from the PCS 7 library.
The EN_MSG block parameter is available to disable the process control technology messages. As long
as this is "FALSE," the block does not send process control technology messages.



12
1.10 I/O Bar

Description Parameter Type Class Commentary (English) S7_string_1 S7_unit
Alarm_8p MSG_EVID DWORD I Message ID
EN_MSG BOOL I Enable 1 = Alarming
QMSG_SUP BOOL O 1 = Alarming suppressed
Adresse SUBN1_ID BYTE I ID of primary Subnet
SUBN2_ID BYTE I ID of redundant Subnet
RACK_NO WORD I Rack number
SLOT_NO WORD I Slot number
ADDR WORD I connect to base address of Siwarex module
Error RACKF BOOL I 1= Rack Failure
MODF BOOL I 1= Module Failure
PERAF BOOL I 1= 1=I/O Module Access Failure
QRACKF BOOL O 1 = Rack failure, module 1
QMODF BOOL O 1 = Module removed/out of order
QPERAF BOOL O 1 = I/O module access failure
QPARF BOOL O 1 = Parameter assignment error
QCHF_1 BOOL O 1 = Channel 1 error
QCHF_2 BOOL O 1 = Channel 2 error
QERR BOOL O Inverted ENO
QGR_ERR BOOL O Group error
SFC_RETV WORD O Return value of SFC RD_REC/WR_REC
Process alarm QINT BOOL O Inverted at process alarm
Simulation SIMON_1 BOOL I Switch ON: 1=Simulated value, channel 1
SIMON_2 BOOL I Switch ON: 1=Simulated value, channel 2
SIM_CH1 REAL I Simulated value, channel 1
SIM_CH2 REAL I Simulated value, channel 2
Channel 1 GROSS_C1 REAL O Gross, channel 1 kg
DONE_C1 BOOL O Gross updated, channel 1
QC1ASY_E BOOL O 1=Asynchronous error (group error) channel 1
QC1SYN_E BOOL O 1=Synchronous error at last write access, channel 1
QC1LIMV1 BOOL O 1=Limit value 1 active, channel 1
QC1LIMV2 BOOL O 1=Limit value 2 active, channel 1
QC1_ADJ BOOL O 1=Scales adjusted, channel 1
C1ASY_ER WORD O Asynchronous errors, channel 1
C1SYN_ER WORD O Synchronous errors, channel 1
Channel 2 GROSS_C2 REAL O Gross, channel 2 kg
DONE_C2 BOOL O Gross updated, channel 2
QC2ASY_E BOOL O 1=Asynchronous error (group error), channel 2
QC2SYN_E BOOL O 1=Synchronous error at last write access, channel 2
QC2LIMV1 BOOL O 1=Limit value 1 active, channel 2
QC2LIMV2 BOOL O 1=Limit value 2 active, channel 2
QC2_ADJ BOOL O 1=Scales adjusted, channel 2
C2ASY_ER WORD O Asynchronous errors, channel 2
C2SYN_ER WORD O Synchronous errors, channel 2
Set to zero C1 C1_Z_CMD BOOL I/O Zero command, channel 1 Set to zero Ch.1
C1_Z_C_D BOOL O Ready, set to zero command, channel 1
ERR_C1_Z WORD O Status word, command transmission, channel 1
Set to zero C2 C2_Z_CMD BOOL I/O Set to zero command, channel 2 Set to zero Ch.2
C2_Z_C_D BOOL O Set to zero command done, channel 2
ERR_C2_Z WORD O Status word, command transmission, channel 2
IBS S_ALL BOOL I/O Send "all" Send "all"
DONE_S_ALL BOOL O Ready S_ALL
ERR_S_ALL BOOL O Statusword S_ALL
R_ALL BOOL I/O Receive "all" Receive "all"
DONE_R_ALL BOOL O Ready R_ALL
ERR_R_ALL BOOL O Statusword R_ALL
ADJ_DATA and S_03 BOOL I Send DR 03
SCALES_PARA R_03 BOOL I Receive DR 03
Channel 1 DONE_03 BOOL O DR 03 finished
ERR_03 WORD O Status word DR 03
C1ZERO_V WORD I/O Zero setting value, channel 1
C1ADJUST WORD I/O Adjust data, channel 1
C1DIG_0 WORD I/O Adjustment digit 0, channel 1
C1DIG_1 WORD I/O Adjustment digit 1, channel 1
C1ADJ_W REAL I/O Adjustment weight, channel 1
ADJ_DATA and S_04 BOOL I Send DR 04
SCALES_PARA R_04 BOOL I Receive DR 04
Channel 2 DONE_04 BOOL O DR 04 finished
ERR_04 WORD O Status word DR 04
C2ZERO_V WORD I/O Zero setting value, channel 2
C2ADJUST WORD I/O Adjust data, channel 2
C2DIG_0 WORD I/O Adjustment digit 0, channel 2
C2DIG_1 WORD I/O Adjustment digit 1, channel 2
C2ADJ_W REAL I/O Adjustment weight, channel 2
General param. S_05 BOOL I Send DR 05
R_05 BOOL I Receive DR 05
DONE_05 BOOL O DR 05 finished
ERR_05 WORD O Status word DR 05
MODUL_NO BYTE I/O Module number
INTERF_P BYTE I/O Interface parameters
REM_DSP BYTE I/O Type of remote display
LED1 BYTE I/O Allocation LED1
LED2 BYTE I/O Allocation LED2
Specified value 1 S_06 BOOL I Send DR 06
Specified value 2 R_06 BOOL I Receive DR 06
DONE_06 BOOL O DR 06 finished
ERR_06 WORD O Status word DR 06
SPEC_V1 INT I/O Specified value 1
SPEC_V2 INT I/O Specified value 2
LIM VALUES CH1 S_21 BOOL I Send DR 21
R_21 BOOL I Receive DR 21
13
DONE_21 BOOL O DR 21 finished
ERR_21 WORD O Status word DR 21
C1ON_L1 REAL I/O Limit value 1 ON, channel 1
C1OFF_L1 REAL I/O Limit value 1 OFF, channel 1
C1ON_L2 REAL I/O Limit value 2 ON, channel 1
C1OFF_L2 REAL I/O Limit value 2 OFF, channel 1
LIM VALUES CH2 S_22 BOOL I Send DR 22
R_22 BOOL I Receive DR 22
DONE_22 BOOL O DR 22 finished
ERR_22 WORD O Status word DR 22
C2ON_L1 REAL I/O Limit value 1 ON, channel 2
C2OFF_L1 REAL I/O Limit value 1 OFF, channel 2
C2ON_L2 REAL I/O Limit value 2 ON, channel 2
C2OFF_L2 REAL I/O Limit value 2 OFF, channel 2
VERSION R_40 BOOL I Receive DR 40
DONE_40 BOOL O DR 40 finished
ERR_40 WORD O Status word DR 40
VER WORD O Version
CHECKSUM WORD O Checksum
MODULTYP BYTE O Module type
Status QSTARTUP BOOL O 1=Startup active



14
2 Description of the Screen Block

The following screens/sections show the bodies of the faceplate and the assignment of the operator
control/monitoring fields to the parameters of the corresponding PLC block. For an overview of faceplates
in PCS 7, see chapter 2.4 ("Overview of Screen Blocks") in .
A faceplate has several bodies. Each body points to the PLC block on the OS from a certain viewpoint.
These bodies will now be described in the next few sections.



2.1 General

The faceplate for the Siwarex-U module was created with the FaceplateDesigner of PCS7-Version 6.0.
The generated WinCC images and scripts can be adapted to individual requirements.

The standard tools delivered with the FaceplateDesigers described in the general FaceplateDesigner
documentation are used for the most part. This description deals particularly with the special features
which have been implemented for the Siwarex-U-Faceplate.

The objects which are invisible in WinCC runtime are also displayed in all faceplate views.


2.2 Faceplate Views

2.2.1 Standard (@PG_SIWA_U_STANDARD.pdl)



2.3.1.1
module type
2.3.1.2
Decimal
point
channel 1















Assignment of the states to the variables
Status Parameter
Limit value 1 (channel 1) QC1LIMV1
Limit value 2 (channel 1) QC1LIMV2
Limit value 1 (channel 2) QC2LIMV1
Limit value 2 (channel 2) QC2LIMV2
Adjusted (channel 1) QC1_ADJ
Adjusted (channel 2) QC2_ADJ

Assignment of the weight values to the variables
15

Field Parameter
Gross (channel 1) GROSS_C1
Gross (channel 2) GROSS_C2

The buttons of the particular channel control the zeroing interface (i.e., they set the Cx_Z_CMD (x =
channel number) parameters TRUE). While the command is being executed (i.e., transmission of the
data record), the button is shown in gray.
If only a 1-channel SIWAREX U is connected, the channel-2 area is not shown in the standard screen.

2.2.1.1 Module Type

Channel 2 is switched visible in the faceplate depending on the value of the MODULE TYPE parameter.

The C2ADJUST parameter supplies the number of decimal places of the gross value of channel 2
among other things. Depending on the value, the IO field of the corresponding number of decimal places
is made visible within the user object for the gross value of channel 2.




2.2.1.2 Decimal Point Channel 1

The C1ADJUST parameter supplies the number of decimal places of the gross value of channel 1.
Depending on the value, the IO field of the corresponding number of decimal places is made visible within
the user object for the gross value of channel 1.


2.2.2 Maintenance (@PG_SIWA_U_MAINTEN.pdl)

















The Send Param. Button sets the "S_ALL" input to TRUE. The Rcv. Param. button sets "R_ALL" to
TRUE. The Send Param. and Rcv. Param buttons are switched inoperable by C-scripts in automatic
mode or if parameters are still being sent or received (S_ALL or R_ALL = 1).
The firmware version is read out of the VER parameter and displayed.

16


2.2.3 Message

The message window corresponds to the standard message window of the FaceplateDesigner.


2.3 Special Features of the Screen Block

2.3.1 Units

The units indicated for the weight values are read from the "unit" attribute of the GROSS_Cx weight value
parameters (x = channel number). The unit configured in SIWATOOL is only used for indication in
SIWATOOL (i.e., it is separate from the configuration on the SIWAREX U module and the configuration in
the CFC). This means that the user must adjust the units. See configuration in CFC.






2.3.2 No Symbol Presentation

The faceplate of the SIWAREX U does not support symbol presentation (i.e., you will have to use WinCC
resources to present SIWAREX U data in an overview screen).
The call of the control field representation (i.e., process window) is configured with the wizard "Picture
selection via measurement point."
For more information, see chapter 3 ("Sample Configuration").



17
3 Sample Configuration

This sample configuration provides an overview of the steps to be taken within a PCS 7 project to insert a
SIWAREX U in a CFC diagram and to commission it from there. It shows how to configure the call of the
faceplate using WinCC.

Prerequisites
You have already set up a PCS 7 project with the SIMATIC Manager.
The SIWAREX U module has been configured decentrally in an IM 153-1 or IM 153-2 in HW Config.
Remember to activate alarms.
The SIWAREX U has been commissioned with SIWATOOL.



3.1 PLC

Open a new CFC diagram.
Pull the FB242 function block "SIWA_U" from the "SIWA_U" library to the CFC diagram.
Configure the SUBN_ID, RACK_NO, SLOT_NO and ADDR parameters. You will find this information
in your HW Config. SUBN_ID is the network address shown on the connection of the CP to your IM
153. RACK_NO is the PROFIBUS address of the IM 153, and SLOT_NO is the slot of the SIWAREX
U.
Compile the project, with generate modul driver checked and load it to the CPU.
Switch the CPU to RUN-P.
Now read "all" relevant data records by setting the R_ALL parameter to TRUE.
After the configuration data have been read (DONE_R_ALL = TRUE for one cycle), the weight values
are correctly output on the block bar.

NOTE:
As long as the decimal position of the SIWAREX U has not been read, the weight values are not weighted
with a decimal point (i.e., if decimal points are parameterized on the module, the weight values will be
indicated incorrectly in the I/O bar).



18
3.2 OS

After you have "instanced" a SIWA_U block in the CFC and transferred the data to WinCC (Menu
"Options" -> "OS\compile"), the data are available in WinCC.
You can now insert the various tags (parameters) in your screens and link an I/O field with the weight
value of your SIWAREX U, for example.
To be able to open the related faceplate during runtime, proceed as shown below.
Prerequisite: You must have already executed the Split Screen Wizard (Editor Base Data in WinCC).
Open your screen with Graphics Designer.
Select the object to be clicked to make the faceplate appear. This can also be a container or just a
button.
The Dynamic Wizard is located in the side bar. If not visible, activate it in the menu "View -
>Toolbar..."



Under its index divider card "Picture Functions" select the entry "Picture selection via measurement
point" and double-click it.
A wizard appears which will lead you through further configuration steps. Follow the instructions of
the wizard, and make the requested entries.
First, you will be asked for a trigger. If the faceplate is to appear over your object (i.e., the container)
after clicking the left mouse button, select this entry.
The next screen asks for the structure type. Since you want to open the faceplate for the SIWAREX
U, select structure type "SIWA_U."
The instance of the SIWA_U must be selected in the next screen. Click the corresponding button to
open a selection dialog screen. Select the desired instance there, and confirm with OK.
In the same screen, select the appearance of the faceplate. A typical presentation is the last entry
("Group display").
The last screen gives you another summary of your configuration. Confirm this with "Finish."
Configuration of the faceplate call is complete.

Use WinCC to create an icon (e.g., the object for status indication).



19
20
4 Tips and Tricks

Creation of project data base

Before beginning a project in which you want to use PCS 7 blocks, adapt the blocks to your requirements.
You can change the system attributes of the block links such as visibility in CFC (S7_visible), the operator
control texts for binary values (S7_string_0 and S7_string_1), the texts for the analogue values (S7_unit
and S7_shortcut), the linkability in CFC (S7_link, e.g., for GAIN, TN, TV for controller) and so on. The
attributes for messages (S7_server and S7_a_type) may not be changed. If you change the S7_m_c
attribute, this restricts the functionality of the related faceplate.

To adapt the library, proceed as shown below.
Using the resources of the operating system, copy the complete library to another folder.
Open the copied library with the SIMATIC Manager.
Change the system attributes as described in the chapter on system attributes of the manual on
structuring ES systems technologically and phase-overlapping.

You can now use these modified blocks for your STEP7 projects. For other projects with different tasks,
create a new library.



5 Definitions and Abbreviations

OS Operator Station
PLC Automation System
FB Function Block
DR Dat Record
DB Data Block
SFC (System Function Call)
SIWATOOL Windows software for parameterizing and
commissioning the SIWAREX U



6 List of References

/4/ SIWAREX U manual, release 09/01

You might also like