SIWAREX M©
Manual
SIWAREX M V4.0 for PCS 7 V6.0 Library
Release 07/03
Qualified personnel
Only qualified personnel may commission and operate a device. For the purpose of the safety notes in this
manual, qualified personnel are those persons who are authorized to commission, ground and tag devices, systems
and electrical circuits in accordance with safety technology.
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, reproduction, utilization and revelation of its contents is not
permitted without express permission. Violators will be liable for damages, 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 manual 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 comments and suggestions are welcome.
© Siemens AG 1998-2003
Subject to change without prior notice.
2
Table of Contents
1 Description of the Function Block..........................................................................................................5
1.1 Type/Number .................................................................................................................................5
1.2 Application Area .............................................................................................................................5
1.3 Calling OBs ....................................................................................................................................5
1.4 Integrating the Component in the PCS7 Driver Concept....... Fehler! Textmarke nicht definiert.
1.5 Function .........................................................................................................................................6
1.5.1 Data Interface of a Data Record.............................................................................................6
1.5.2 Execution of Send/Read Jobs ................................................................................................7
1.5.3 Continuously Read Data Records ..........................................................................................7
1.5.3.1 Status (DR 31).................................................................................................................7
1.5.3.2 Weight Values (DR 30)....................................................................................................8
1.5.4 Operating Modes ....................................................................................................................8
1.5.4.1 Automatic Operating Mode..............................................................................................9
1.5.4.1.1 Command Specification...............................................................................................9
1.5.4.1.2 Setpoint......................................................................................................................10
1.5.4.1.3 Proportioning Data.....................................................................................................10
1.5.4.2 Manual Operating Mode................................................................................................11
1.5.4.2.1 Command Specification.............................................................................................11
1.5.4.2.2 Setpoint......................................................................................................................11
1.5.4.2.3 Proportioning Data.....................................................................................................11
1.5.4.3 Changing Operating Modes ..........................................................................................12
1.5.5 Address Parameterization ....................................................................................................12
1.5.6 Commissioning Functions ....................................................................................................12
1.5.7 Background Functions ..........................................................................................................13
1.6 Error Handling..............................................................................................................................13
1.6.1 Operational Errors ................................................................................................................14
1.6.2 Alarm Processing..................................................................................................................14
1.6.2.1 CPU Redundancy Error (OB72) ....................................................................................14
1.6.2.2 Diagnostic Alarm (OB 82)..............................................................................................14
1.6.2.3 Removal and Installation (OB 83) .................................................................................15
1.6.2.4 Rack Failure (OB 86).....................................................................................................15
1.7 RESTART ....................................................................................................................................15
1.8 Time Behaviour ............................................................................................................................15
1.9 Message Behaviour .....................................................................................................................16
1.10 Special Features/Restrictions ..................................................................................................16
1.11 I/O Bar ......................................................................................................................................17
2 Description of the Faceplate ...............................................................................................................22
2.1 General ........................................................................................................................................22
2.2 Faceplate Views...........................................................................................................................22
2.2.1 Standard (@PG_SIWA_M_STANDARD.pdl).......................................................................22
2.2.1.1 Status.............................................................................................................................22
2.2.1.2 Command ......................................................................................................................22
2.2.1.2.1 „@PG_SIWA_M_SCROLL.pdl ..................................................................................23
2.2.1.3 Unit ................................................................................................................................23
2.2.1.4 Decimal Point ................................................................................................................23
2.2.1.5 Missing Operating Authorization ...................................................................................24
2.2.1.6 Mode..............................................................................................................................24
2.2.1.7 Command ......................................................................................................................24
2.2.1.8 Status.............................................................................................................................24
2.2.1.9 Setpoint..........................................................................................................................25
2.2.1.10 Weight Values ...............................................................................................................25
2.2.2 Maintenance (@PG_SIWA_M_MAINTEN.pdl) ....................................................................25
2.2.3 Parameters (@PG_SIWA_M_Param.pdl) ............................................................................26
2.2.4 Message ...............................................................................................................................26
2.2.5 Batch.....................................................................................................................................26
3
2.3 Global C-Scripts ...........................................................................................................................27
2.4 Special Features of the Faceplate ...............................................................................................27
2.4.1 Units......................................................................................................................................27
2.4.2 No Icon Representation ........................................................................................................27
3 Sample Configuration..........................................................................................................................28
3.1 PLC ..............................................................................................................................................28
3.2 OS ................................................................................................................................................29
4 Tips and Tricks ....................................................................................................................................30
4.1 Creation of a Project Data Base ..................................................................................................30
5 Definitions and Abbreviations..............................................................................................................30
6 List of References ...............................................................................................................................30
4
1 Description of the Function Block
1.1 Type/Number
SIWA_M / FB 241
1.2 Application Area
The block is used to link the SIWAREX M (starting with firmware release 0117) to SIMATIC PCS 7.
It can only be used in a SIMATIC S7 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.)
OB72 For detection of CPU redundancy errors
OB82 Evaluation of the diagnostic alarm
OB83 Recognition of installation or removal of a module
OB86 Recognition of rack or branch malfunction
(event is generated when IM 153 does not respond via PROFIBUS-DP)
OB100 Recognition of startup
OB122 Recognition of I/O access errors
1.4 Integrating the Component in the PCS7 Driver Concept
The Siwa_M 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_M
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_M 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.
5
1.5 Function
The "SIWA_M" block is the interface between the SIWAREX M function module and the blocks of the
SIMATIC PCS 7 libraries.
Since time-critical control of proportioning devices is handled directly by the SIWAREX M, proportioning
procedures are not tied to the cycle time of the automation system (AS 400). This provides optimal
proportioning accuracy.
The proportioning data (e.g., setpoint, switch-off points, wait times, and so on) must be stored on the
SIWAREX M. The data on the module are divided into data records.
The "SIWA_M" function block offers an interface with which all (write-accessible) data records can be
written and all (read-accessible) data records can be read. With no triggering from the user, data
records 30 (i.e., weight values) and 31 (i.e., status) are read continuously and the information is made
available in the output bar.
The data records and functions of the SIWAREX M are described in detail in the SIWAREX M manual
(/4/).
NOTE:
Since the data are not cyclically read by the module, the following applies.
It is the responsibility of the user/plant operator to ensure that the data on the SIWAREX M are not
changed by access via SIWATOOL.
1.5.1 Data Interface of a Data Record
All data record fields are made available in the I/O bar to the user as IN_OUT or OUT parameters.
Remember that "weights" must be specified or output in REAL format. This makes user specifications
independent of the parameterized decimal point in the adjustment weight data record. During
transmission (i.e., prior to writing and after reading), the block handles conversion of the REAL values to
the DINT values required by the module and vice versa.
NOTE:
Linked parameters (IN_OUT) are not overwritten when a data record is read since the link overwrites
these data again.
In addition to the data fields of each data record, the following parameters are included in each data
record.
Parameter Data Type Class Description
S_xx* BOOL I Send bit, is set by the user
if the data record is to be written
(Block evaluates rising edge.)
R_xx BOOL I Receive bit, is set by the user
if 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 info on finished message
Low byte: See next page.
High byte: Error code data/handling error
depending on low byte
(xx = DR number)
* = Only present for write-accessible data records
6
The send or receive bits are monitored cyclically for rising edge. When a rising edge is detected, a
transmission job is stored.
After execution of the transmission job, the DONE_xx output is set for one cycle. During this cycle, the
user must evaluate the extra information on output ERR_xx. If ERR_xx = 0, there is no error.
The error code data error/handling error is described in the SIWAREX M manual /4/.
Meaning of the low byte of response word ERR_xx:
Low Byte Description
0 Transmission okay
1 Data error
2 Handling error
3 Wrong command code
4 Conversion error (REAL<->DINT conversion)
5 Wrong operating mode
6 Job termination due to new synchronization
7 WRITE COMMAND was not transferred.
8 Timeout job interface
9 Error during internal call of SFC RD_REC
10 Error during internal call of SFC WR_REC
1.5.2 Execution of Send/Read Jobs
The block begins executing the transmission jobs with DR 3 and continues with the next higher data
record number until it reaches DR 43. Using the ring principle, the block starts at the beginning again
(i.e., DR 3).
When jobs are executed, they are entered into a queue and will be executed on a first in first out basis.
The STOP command is an exception to this rule. When this command is triggered, it is transferred
during the next execution cycle.
One processing cycle requires several FB call cycles.
1.5.3 Continuously Read Data Records
Since data records DR 30 and DR 31 (i.e., weight values and status) are read by the block
automatically once during each processing cycle, this information is always current in the output bar.
1.5.3.1 Status (DR 31)
Parameter Type Description Bit Position in
STATUS-DWORD
EMPTY BOOL Empty message, active/inactive 24
STDSTILL BOOL Standstill 25
MAX_LOAD BOOL Max. load + 9e exceeded 26
MAN_TARE BOOL Tare memory loaded with manual tare value 27
EXTC_NEG BOOL Command cannot be executed via ext. contact 28
ZR_EXCED BOOL Gross weight outside the zero range 29
PRINT_NP BOOL Printing not possible 30
SYS_ERR BOOL System error (hardware fault) 31
SCAL_ADJ BOOL Scale adjusted 16
SC_TARED BOOL Scales tare 17
ZERO BOOL ¼ d zero 18
WR_PROT BOOL Write protection active 19
SRC_CLK BOOL Source time/date (S7/TD20) 20
7
LIM_VAL1 BOOL Limit value 1 active/inactive 21
LIM_VAL2 BOOL Limit value 2 active/inactive 22
LIM_VAL3 BOOL Limit value 3 active/inactive 23
REPROP_A BOOL re-proportioning was activated 8
M_FL_ER1 BOOL Material flow error 1 9
M_FL_ER2 BOOL Material flow error 2 10
M_FL_ERC BOOL Material flow error (coarse) 11
M_FL_ERF BOOL Material flow error (fine) 12
MON_I_R BOOL Monit. time for inch. mode or reprop. finished 13
COARSE BOOL Coarse flow on 0
FINE BOOL Fine flow on 1
TOL_PLUS BOOL Tolerance deviation + 2
TOL_MIN BOOL Tolerance deviation - 3
PROP_RUN BOOL Proportioning running 4
PROP_STA BOOL Proportioning started, wait for standstill 5
PROP_ABO BOOL Proportioning aborted 6
PROP_END BOOL Proportioning finished 7
In addition to the 30 boolean outputs, the information is bundled as DWORD and output. See table.
Parameter Data Type Description
STATUS DWORD Summary of the boolean status values in DWORD
1.5.3.2 Weight Values (DR 30)
Parameter Data Type Description
GROSS REAL Gross weight
NET REAL Net weight
TARE REAL Tare weight
1.5.4 Operating Modes
There are two operating modes.
Manual (control of SIWAREX M via faceplate, operator intervention)
Automatic (control of SIWAREX M via CFC links)
The operating mode can be specified by the operator or by a CFC link. The LIOP_SEL input (Selector
Link/Operator) decides whether the operator selects the operating mode or the controller specifies the
operating mode via CFC.
Example 1:
If LIOP_SEL is set (TRUE), the AUT_L input specifies the operating mode.
AUT_L = FALSE: MANUAL operating mode
AUT_L = TRUE: AUTOMATIC operating mode
Example 2:
If LIOP_SEL is not set (FALSE), the AUT_ON_OP input specifies the operating mode.
AUT_ON_OP = FALSE: MANUAL operating mode
AUT_ON_OP = TRUE: AUTOMATIC operating mode
Since AUT_ON_OP is written by the faceplate (due to operator inputs), it cannot be linked in CFC.
Use of the operating mode switch in the faceplate can be further influenced by the CFC. Using the
MANOP_EN and AUTOP_EN inputs, you can restrict which operating modes can be selected by the
operator.
8
The current operating mode can be read on output QMAN_AUT.
Parameter Data Type Description
AUT_ON_OP BOOL Operator Input: 0:Manual 1:Auto (oper. mode selection)
MANOP_EN BOOL Operator enable for Auto
AUTOP_EN BOOL Operator enable for Manual
AUT_L BOOL Link input: 0: Manual 1:Auto (oper. mode selection)
LIOP_SEL BOOL Oper. mode selection 0:AUT_ON_OP 1:AUT_L
QMAN_AUT BOOL Current oper. mode 0:Manual 1:Auto
Both operating modes have their own separate data areas where setpoint and proportioning data (DR
22 and DR 23) are specified as well as the commands to be executed.
1.5.4.1 Automatic Operating Mode
1.5.4.1.1 Command Specification
There are three command inputs (i.e., AUT_START, AUT_CONT and WGHT_CMD). There is one
"MTD" input for each of these command inputs. This is where the command code which is to be
executed is specified. The user must ensure a positive edge on these inputs.
As soon as a command is registered, the appropriate job is accepted and sent as soon as all write jobs
have been executed. The STOP command (AUT_STOP) is an exception to this rule. When detected,
the STOP command is transferred during the next transmission job.
C_A_DONE is reset at the beginning of the job. After completion of the job, output C_A_DONE is set
for one cycle. During this cycle, the user must evaluate the extra information on output C_A_ERR. See
also 1.4.1 ("Data Interface of a Data Record").
When an undefined command method is specified, the command is rejected with an error message
indicating that the command code is incorrect (C_A_ERR Low Byte 3).
Data interface for commands
Parameter Data Type Class Description
AUT_START BOOL I Auto start command
START_MTD WORD I Start method
AUT_CONT BOOL I Auto Continue command
CONT_MTD WORD I Continue method
AUT_STOP BOOL I Auto Stop command
WGHT_CMD BOOL I Trigger Auto weighing command
WGHT_MTD BYTE I Auto weighing command
C_A_DONE BOOL O (Command Automatic) finished
C_A_ERR WORD O (Command Automatic) status word
For meaning of START_MTD and CONT_MTD, see also SIWAREX M manual.
START_MTD/CONT_MTD Command
10 Start with auto. taring without re-proportioning
12 Start without auto. taring without re-proportioning
20 Start inching mode with auto. taring
22 Start inching mode without taring
30 Start with auto. taring with re-proportioning (continuous)
32 Start without auto. taring with re-proportioning (continuous)
40 Start with auto. taring with re-proportioning (in inching mode)
42 Start without auto. taring with re-proportioning (in inching mode)
9
Meaning of WGHT_MTD:
WGHT_MTD Command
1 Zero point valid (adjustment command)
2 Adjustment weight valid (adjustment command)
3 Tare
4 External spec. tare valid
5 Set to zero
7 Print text 1
8 Print text 2
9 Repeat last printout
13 Load factory settings
15 Delete tare
If triggered in manual mode, an automatic command is not executed. 5 is transferred to the low byte of
the error code (C_A_ERR), indicating that the command was rejected. The user must re-trigger the
command with the correct operating mode.
1.5.4.1.2 Setpoint
Data interface for setpoints
Parameter Data Type Class Description
SP_AUT REAL I/O Auto setpoint
SP_AUT_S BOOL I Send auto setpoint
SP_AUT_R BOOL I Receive auto setpoint
DONE_SPA BOOL O Finished message,
is set for one cycle when transmission finished
ERR_SPA WORD O Extra information on finished message
If sent successfully, the setpoint is also output to the output bar in parameter SP. This ensures that the
current setpoint is always available on the module regardless of the operating mode being used.
1.5.4.1.3 Proportioning Data
Data interface for proportioning data
Parameter Data Type Class Description
A_TOL_P REAL I/O Auto tolerance plus value
A_TOL_M REAL I/O Auto tolerance minus value
A_COARSE REAL I/O Auto coarse-flow switch-off value
A_FINE REAL I/O Auto fine-flow switch-off value
A_SETL_T REAL I/O Auto settling time (in seconds)
A_PD_S BOOL I Auto send proportioning data
A_PD_R BOOL I Auto receive proportioning data
DONE_PDA BOOL O Finished message,
is set for one cycle when transmission finished
ERR_PDA WORD O Extra information on finished message
10
1.5.4.2 Manual Operating Mode
As soon as manual mode is activated, the MAN_CMD input is monitored for changes. The faceplate
enters the command method in MAN_CMD. As soon as all write jobs have been performed (i.e., no
more write jobs are waiting), the command is sent. The STOP command is an exception. When
recognized, the STOP command is transferred with the next transmission job.
C_M_DONE FALSE is set at the beginning of the job. After the job is finished, the C_M_DONE output
is set for one cycle. During this cycle, the user must evaluate the extra information on the C_M_ERR
output.
When an undefined command method is specified, the command is rejected with an error message
indicating that the command code is incorrect (C_M_ERR low byte 3).
1.5.4.2.1 Command Specification
Data interface for commands
Parameter Data Type Class Description
MAN_CMD BYTE I Manual command
C_M_DONE BOOL O (Manual command) command sent
C_M_ERR WORD O (Manual command) status word
MAN_CMD is reset (=0) after execution of the command.
If triggered in automatic mode, a manual command is not executed. 5 is transferred to the low byte of
the error code (C_A_ERR) signalling that the command has been rejected. The user must re-trigger
the command with the correct operating mode.
1.5.4.2.2 Setpoint
Data interface for setpoints
Parameter Data Type-Class Description
SP_MAN REAL I/O Manual setpoint
SP_MAN_S BOOL I/O Manual send setpoint
SP_MAN_R BOOL I/O Manual receive setpoint
DONE_SPM BOOL O Finished message,
is set for one cycle when transmission finished
ERR_SPM WORD O Extra information on finished message
SP_MAN_S and SP_MAN_R are reset by the block after job execution.
When sent successfully, the setpoint is also output in the output bar of the SP parameter. This ensures
that the current setpoint is always available on the module regardless of the operating mode being
used.
1.5.4.2.3 Proportioning Data
Data interface for proportioning data
Parameter Data Type Class Description
M_TOL_P REAL I/O Manual tolerance plus value
M_TOL_M REAL I/O Manual tolerance minus value
11
M_COARSE REAL I/O Manual coarse-flow switch-off value
M_FINE REAL I/O Manual fine-flow switch-off value
M_SETL_T REAL I/O Manual settling time (in seconds)
M_PD_S BOOL I/O Send manual proportioning data
M_PD_R BOOL I/O Receive manual proportioning data
DONE_PDM BOOL O Finished message, is set for one cycle when
transmission finished
ERR_PDM WORD O Extra information on finished message
M_PD_S and M_PD_R are reset by the block after job execution.
1.5.4.3 Changing Operating Modes
When changing modes, already recognized commands (i.e., positive edge change) of the "old"
operating mode are no longer executed. Instead they are reported with an error message indicating
incorrect operating mode.
Proportioning data or setpoints which have been triggered for transmission are also rejected with this
error message if the transmission has not yet begun.
1.5.5 Address Parameterization
The block must be informed of the address of the SIWAREX M module. The following parameters can
be used for this purpose.
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
This information must agree with the configuration of the module in HW Config.
NOTE:
These parameters must always be specified in hexadecimal format.
1.5.6 Commissioning Functions
The "read all DR" and "write all DR" functions are available for commissioning.
"All" corresponds to DR 3 to 9, DR 22 to 29 and DR 43.
Parameter Data Type Class Description
S_ALL BOOL I/O Send "all" (send all DR)
DONE_S_ALL BOOL O Finished message for "Send All"
ERR_S_ALL BOOL O Status word for "Send All"
R_ALL BOOL I/O Receive "all" (receive all DR)
DONE_R_ALL BOOL O Finished message for "Receive All"
ERR_R_ALL BOOL O Status word for "Receive All"
If the module has been parameterized with SIWATOOL, the "R_ALL" function is a convenient way to
read in all relevant data records. DONE_R_ALL is set after the last data record has been read. If an
12
error occurred while one of the data records was being read, ERR_R_ALL is set. This error must then
be evaluated at the individual ERR_xx (xx = DR no.) interfaces.
The "S_ALL" function is available for exchanging modules. After a module has been replaced, this
function must be performed and the scales can immediately be put into operation again (assuming that
an R_ALL has been previously initiated). Re-parameterization via SIWATOOL is not necessary.
The "S_ALL" function can either be called from the faceplate or, for example, with a switch located on
site in the cabinet where the S_ALL input take effect (read in the switch via DI and link in CFC).
NOTE:
Initial parameterization must be performed with SIWATOOL.
S_ALL and R_ALL are reset after job execution (FALSE).
Both functions require several cycles.
The current operating mode determines the source from which the setpoint and the proportioning data
are to be read. At the same time, job processing is set to the beginning (i.e., DR 3 is processed first so
that the decimal position is transferred first).
1.5.7 Background Functions
At regular intervals, the SIWAREX M requests that DR 43 (tare and zero setting value more precise) be
read, this is to ensure that the SIWAREX M can be brought back into service immediately after a long
system standstill or down time without the need for a further zero setting. This is necessary, as the data
of DR 43 are not buffered on the SIWAREX M and are required for re-starting a new module. The
function block automatically reads in this data record on request.
The SIWAREX M also requests that DR 41 (date and time) be transferred. The module executes these
requests by sending the current time of the CPU.
Both functions can be suppressed by the user by setting the BGRD_OFF parameter.
1.6 Error Handling
Errors which can occur during a data record transmission are output in the data record mailbox on the
ERR_xx outputs. These must be evaluated by the user.
The following conditions are handled by the block algorithm.
QPARF=1: Parameterization error: Wrong DP station (SUBN_ID, RACK_NO, SLOT_NO)
QRACKF=1: DP device failure (IM 153 failed)
QMODF=1: Module removed or ext/int error or operational error
QPERAF=1: I/O access error. The block was unable to access the SIWAREX M.
If this happens 5 times in succession, QMODF is also set so that the
module is not longer accessed.
When QPARF, QRACKF or QMODF are set, the SIWAREX M is no longer accessed. After correction
of the error, the block automatically resumes communication and starts with a RESTART.
13
1.6.1 Operational Errors
When an operational error occurs during processing, different reactions are provided depending on the
cause.
QMODF is set and the module is no longer accessed for the following reasons.
Division by zero
Int. counting overflow
Int. buffer overflow (task communication)
Only a message is output for the following reasons.
Proportioning was terminated because limit value 3 (overfill limit value) was exceeded.
Int. print buffer overflow
Faulty data transmission to interface X3 (TTY)
Faulty data transmission to interface X2 (RS 232C)
Data interface for operational errors:
Parameter Data Type Class Description
QOPERL_E BOOL O Operational error
OPERL_ER WORD O Operational error info, bit-coded
OPERL_ER is bit-coded as with DR 51. See /4/.
1.6.2 Alarm Processing
1.6.2.1 CPU Redundancy Error (OB72)
If the SIWAREX M 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 M 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.2.2 Diagnostic Alarm (OB 82)
If diagnostic alarms have been enabled during SIWAREX M configuration in HW Config, asynchronous
errors are reported via diagnostic alarm. When diagnostic alarms occur, data record 0 is evaluated to
determine the cause of the alarm and specify further behaviour of the driver.
There are two categories of errors.
If one of the following errors occurs, QMODF = 1 is set. The block algorithm is not processed as long
as one of these errors is queued.
Type of Error Cause
Internal error RAM error, read-write check
Internal error EEPROM error, checksum check
Internal error A/D conversion error during read access
Internal error Watchdog error
External error Minimum voltage on the sense lines passed below
External error Control limit violated
14
Internal error "RAM error, checksum error (buffer malfunction)" is only reported and must be
acknowledged by transmitting DR 43. This must be done by the user.
Data interface for internal/external errors:
Parameter Data Type Class Description
QINT BOOL O Internal error
QEXT BOOL O External error
INT_ERR WORD O Error info for internal error (bit-coded)
EXT_ERR WORD O Error info for external error (bit-coded)
INT_ERR and EXT_ERR are set up as per DR 51.
1.6.2.3 Removal and Installation (OB 83)
When the arriving "removal and installation" alarm occurs, QMODF=1 is set.
The module is no longer accessed.
When the departing "removal and installation" alarm occurs, QMODF=0 is set.
A restart is then performed.
1.6.2.4 Rack Failure (OB 86)
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_M” 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 the arriving "rack failure" alarm occurs, QRACKF=1 is set.
The module is no longer accessed.
When the departing "rack failure" alarm occurs, QRACKF=0 is set.
A restart is then performed.
1.7 RESTART
During restart, the block uses SUBN_ID, RACK_NO and SLOT_NO to determine whether a module
with the characteristics of a SIWAREX M module is connected. If the wrong module type 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.
Otherwise a restart synchronization is performed with the module. Output QSTARTUP is set to indicate
that all values are invalid as long as this synchronization is being performed.
In addition, the current setpoint is read by the module and copied to SP (OUT).
Restart requires several cycles.
The block then assumes MANUAL mode.
1.8 Time Behaviour
The block has no time behaviour.
15
1.9 Message Behaviour
The block issues the following messages via SFB "ALARM_8P."
Message No. Block Parameter Default Text Message Class
1 QPARF Parameterization error S
2 QRACKF Rack failure S
3 QMODF Module error or module removed S
4 QPERF I/O access error S
5 QOPERL_E Operational error S
6 QDAT_ERR Data error PM
7 QHANDL_E Handling error PM
8 QINT_EXT Int./ext. error (HW) S
Message class:
S = PLC process control message/system
PM = process message
Assignment of the auxiliary values to the block parameters
Aux. Value Block Parameter
1 BA_NA
2 STEP_NO
3 BA_ID
4 SUBN1_ID
5 RACK_NO
6 SLOT_NO
7 OPERL_ER
8 DAT_ERR
9 HANDL_ER
10 SUBN2_ID
The block does not issue technological messages. The user can implement these messages with the
status indications (outputs) of the block and a message block from the PCS 7 library.
EN_MSG block parameter is available to disable the process control messages. As long as this
parameter is "TRUE," no process control messages are issued by the block.
1.10 Special Features/Restrictions
During parameterization, remember that the subnet ID, rack number and slot number must be
parameterized in hexadecimal format. If not, the function block will not work (QPARF =1). The
methods of the proportioning and weighing commands must also be parameterized or specified in
hexadecimal format.
The SIWAREX M module must always be operated with diagnostics activated (setting via HW Config).
If not, the block is unable to detect all module errors.
16
1.11 I/O Bar
S7_m_c, S7_visible
Description Parameter Type Class Default Commentary "x" = 'true',"-" = 'false'
Alarm_8p MSG_EVID DWORD I 0 Message ID -,x
EN_MSG BOOL I TRUE Enable 1=Alarming -,x
QMSG_SUP BOOL O FALSE 1=Alarming suppressed x,x
BATCH flexible BA_EN BOOL I TRUE Batch Enable x,x
BA_ID DWORD I/O 0 Batch ID -,x
BA_NA STRING[16],I '' Batch Name x,x
OCCUPIED BOOL I FALSE Occupied by Batch x,x
STEP_NO WORD I/O 0 Batch Step Number x,x
Adresse SUBN1_ID BYTE I 0 ID of Primary subnet -,-
SUBN2_ID BYTE I 0 ID of Redundant subnet -,-
RACK_NO WORD I 0 Rack Number -,-
SLOT_NO WORD I 0 Slot Number -,-
ADDR WORD I 0 connect to base address of Siwarex module -,-
Error RACKF BOOL I 0 1= Rack Failure -,-
MODF BOOL I 0 1= Module Failure -,-
PERAF BOOL I 0 1= I/O Module Access Failure -,-
QRACKF BOOL O FALSE 1=Rack Failure Module 1 -,-
QMODF BOOL O FALSE 1=Module1 Removed/Out of Order -,-
QPERAF BOOL O FALSE 1=I/O Module Access Failure -,-
QPARF BOOL O FALSE 1=Parameter Assignment Error -,-
QOPERL_E BOOL O FALSE 1=Operational Error -,-
QINT BOOL O FALSE 1=Internal Error -,-
INTERR01 BOOL O FALSE Internal Error 01: RAM error, read-write -,-
INTERR02 BOOL O FALSE Internal Error 02: RAM error, checksum test -,-
INTERR03 BOOL O FALSE Internal Error 03: EEPROM error, checksum test -,-
INTERR04 BOOL O FALSE Internal Error 04: A/D converter error read-in -,-
INTERR05 BOOL O FALSE Internal Error 05: Watchdog error -,-
QEXT BOOL O FALSE 1=External Error -,-
EXRERR01 BOOL O FALSE External Error 01: Minimum voltage has been
passed below on the sense lines -,-
EXRERR02 BOOL O FALSE External Error 02: Control limit exceeded or
passed below -,-
EXRERR05 BOOL O FALSE External Error 05: Interface remote display
Malfunctioning(Time monitoring) -,-
QDAT_ERR BOOL O FALSE 1=Data Error appeared -,-
QHANDL_E BOOL O FALSE 1=Handling Error appeared -,-
QGR_ERR BOOL O FALSE 1=Group Error x,-
OPERL_ER WORD O 0 Operational Error Info bitcoded -,-
INT_ERR WORD O 0 Error info 'int. err.' (bitcoded) -,-
EXT_ERR WORD O 0 Error info 'ext. err.' (bitcoded) -,-
DAT_ERR WORD O 0 Last Data Error -,-
HANDL_ER WORD O 0 Last Handling Error -,-
SFC_RETV WORD O 0 Return Val. of SFC RD_REC/WR_REC -,-
AUTO AUT_STRT BOOL I FALSE AUT start command -,-
STRT_MTD WORD I 16#A AUT start method -,-
AUT_CONT BOOL I FALSE AUT continue command -,-
CONT_MTD WORD I 16#C AUT continue method -,-
AUT_STOP BOOL I FALSE AUT stop command -,-
WGHT_CMD BOOL I FALSE AUT weight command -,-
WGHT_MTD BYTE I 16#3 AUT weight method -,-
C_A_DONE BOOL O FALSE (Command Automatic) command done -,-
C_A_ERR WORD O 0 (Command Autom.) command statusword -,-
HAND MAN_CMD WORD I/O 0 Manual Command coded x,x
C_M_DONE BOOL O FALSE (Command Manual)command done x,-
C_M_ERR WORD O 0 (Command Manual)command statusword x,-
Operating mode AUT_ON_OP BOOL I/O FALSE Operator Input: 0=MAN 1:AUT (mode) x,-
MANOP_EN BOOL I TRUE Enable: 1=Operator may input MANUAL -,-
AUTOP_EN BOOL I TRUE Enable: 1=Operator may input AUTO -,-
AUT_L BOOL I FALSE Linkable Input for MANUAL/AUTO Mode -,-
LIOP_SEL BOOL I FALSE Select: 1=Linking, 0=Operator active -,-
QMAN_AUT BOOL O FALSE 1=AUTO, 0=MANUAL Mode x,-
QMANOP BOOL O FALSE Status: 1=Oper. ena. for "MANUAL" Mode x,x
QAUTOP BOOL O FALSE Status: 1=Operator enabled for "AUTO" x,x
WEIGHTS GROSS REAL O 0 Gross weight x,-
NET REAL O 0 Net weight x,-
TARE REAL O 0 Tare weight x,-
STATUS EMPTY BOOL O FALSE Empty message, active/inactive -,-
17
STDSTILL BOOL O FALSE Standstill x,-
MAX_L_EX BOOL O FALSE Max. load + 9e exceeded x,-
MAN_TARE BOOL O FALSE Tare memory loaded with manual tare value -,x
EXTC_NEG BOOL O FALSE Command cannot executed via ext. contact -,x
ZR_EXCED BOOL O FALSE Gross weight outside the zero range -,x
PRINT_NP BOOL O FALSE Printing not possible -,x
SYS_ERR BOOL O FALSE System error (hardware fault) -,-
SCAL_ADJ BOOL O FALSE Scale adjusted -,x
SC_TARED BOOL O FALSE Scales tare -,x
ZERO BOOL O FALSE ¼ d zero -,x
WR_PROT BOOL O FALSE Write protection active -,x
SRC_CLK BOOL O FALSE Source time/date (S7/TD20) -,x
LIM_VAL1 BOOL O FALSE Limit value 1 active/inactive x,x
LIM_VAL2 BOOL O FALSE Limit value 2 active/inactive x,x
LIM_VAL3 BOOL O FALSE Limit value 3 active/inactive x,-
REPROP_A BOOL O FALSE Reproportioning was activated -,x
M_FL_ER1 BOOL O FALSE Material flow error 1 -,x
M_FL_ER2 BOOL O FALSE Material flow error 2 -,x
M_FL_ERC BOOL O FALSE Material flow error (coarse) -,x
M_FL_ERF BOOL O FALSE Material flow error (fine) -,x
MON_I_R BOOL O FALSE Monit. time for inch. mode or reprop. finished -,x
COARSE BOOL O FALSE Coarse flow on x,-
FINE BOOL O FALSE Fine flow on x,-
TOL_PLUS BOOL O FALSE Tolerance deviation + -,-
TOL_MIN BOOL O FALSE Tolerance deviation - -,-
PROP_RUN BOOL O FALSE Proportioning running -,-
PROP_STA BOOL O FALSE Proportioning started, wait for standstill -,-
PROP_ABO BOOL O FALSE Proportioning aborted -,-
PROP_END BOOL O FALSE Proportioning finished x,-
STATUS DWORD O 0 Statusbits summarized x,x
QSTARTUP BOOL O FALSE 1=startup active -,-
SETPOINT SP_AUT REAL I/O 0.0 Setpoint Auto -,-
SP_AUT_S BOOL I FALSE Setpoint Auto Send -,-
SP_AUT_R BOOL I FALSE Setpoint Auto Receive -,-
DONE_SPA BOOL O FALSE Ready SPA -,-
ERR_SPA WORD O 0 Statusword SPA -,-
SP_MAN REAL I/O 0.0 Setpoint Manual x,x
SP_MAN_S BOOL I/O FALSE Setpoint Manual Send x,x
SP_MAN_R BOOL I/O FALSE Setpoint Manual Receive x,x
DONE_SPM BOOL O FALSE Ready SPM x,-
ERR_SPM WORD O 0 Statusword SPM x,-
SP REAL O 0.0 Current Setpoint x,x
PROP_DATA A_TOL_P REAL I/O 0.0 Automatic Tolerance plus value -,-
A_TOL_M REAL I/O 0.0 Automatic Tolerance minus value -,-
A_COARSE REAL I/O 0.0 Automatic Coarse flow shutoff value -,-
A_FINE REAL I/O 0.0 Automatic Fine flow shutoff value -,-
A_SETL_T REAL I/O 2.0 Automatic Settling time (in sec) -,-
A_PD_S BOOL I FALSE Setpoint Auto Send -,-
A_PD_R BOOL I FALSE Setpoint Auto Receive -,-
DONE_PDA BOOL O FALSE Ready PDA transmit -,-
ERR_PDA WORD O 0 Statusword PDA -,-
M_TOL_P REAL I/O 0.0 Manual Tolerance plus value x,x
M_TOL_M REAL I/O 0.0 Manual Tolerance minus value x,x
M_COARSE REAL I/O 0.0 Manual Coarse flow shutoff value x,x
M_FINE REAL I/O 0.0 Manual Fine flow shutoff value x,x
M_SETL_T REAL I/O 2.0 Manual Settling time (in sec) x,x
M_PD_S BOOL I/O FALSE Send Manual Proportional Data x,x
M_PD_R BOOL I/O FALSE Receive Manual Proportional Data x,x
DONE_PDM BOOL O FALSE Ready PDM transmit x,-
ERR_PDM WORD O 0 Statusword PDM x,-
ADJ_DATA S_03 BOOL I FALSE Send DR 03 -,x
R_03 BOOL I FALSE Receive DR 03 -,x
DONE_03 BOOL O FALSE Ready DR 03 -,x
ERR_03 WORD O 0 Statusword DR 03 -,x
OP_MODE WORD I/O 0 Operating mode -,x
SCALE_TP WORD I/O 0 Scales type -,x
STDST_T REAL I/O 2,5 Standstill time in sec -,x
STDST_VL REAL I/O 1 Standstill value -,x
DEC_PNT WORD I/O 0 Decimal point x,x
CHAR_VAL DINT I/O 2 Characteristic val. area SIWAREX M -,x
W_UNIT WORD I/O W#16#6B67 Unit of weight x,x
INCR BYTE I/O B#16#1 Digital increment -,x
18
LIM_FREQ BYTE I/O B#16#2 Limit frequency, digital filter -,x
ADJ_WGHT REAL I/O 10000 Adjustment weight -,x
MAX_LOAD REAL I/O 10000 Maximum load -,x
LANGUAGE WORD I/O 0 Language -,x
ADJ_DIG0 DINT I/O 0 Adjustment digits 0 -,x
ADJ_DIG1 DINT I/O 50000 Adjustment digits 1 -,x
SCALE_NO BYTE I/O 0 Scales number -,x
SCALES_PARA S_04 BOOL I FALSE Send DR 04 -,x
R_04 BOOL I FALSE Receive DR 04 -,x
DONE_04 BOOL O FALSE Ready DR 04 -,x
ERR_04 WORD O 0 Statusword DR 04 -,x
RAM_EPRM BOOL I/O FALSE Storage of DR 4 (1 = RAM, 0 = EEPROM) -,x
AUT_ZERO BOOL I/O FALSE Scales adjustment, automatic setting to zero -,x
FILL_DED BOOL I/O FALSE Scales setting,fill/deduction weighing -,x
EMPTY_VL REAL I/O 50.0 Empty message value -,x
EMPTY_DT REAL I/O 5.0 Empty message delay time in sec -,x
ON_LIM1 REAL I/O 10000.0 Switch on point for limit value 1 -,x
OFF_LIM1 REAL I/O 9999.0 Switch off point for limit value 1 -,x
ON_LIM2 REAL I/O 1000.0 Switch on point for limit value 2 -,x
OFF_LIM2 REAL I/O 1010.0 Switch off point for limit value 2 -,x
ON_LIM3 REAL I/O 9000.0 Switch on point for limit value 3 -,x
OFF_LIM3 REAL I/O 8990.0 Switch off point for limit value 3 -,x
PROP_PARA S_05 BOOL I FALSE Send DR 05 -,x
R_05 BOOL I FALSE Receive DR 05 -,x
DONE_05 BOOL O FALSE Ready DR 05 -,x
ERR_05 WORD O 0 Statusword DR 05 -,x
RAM_PROM BOOL I/O FALSE Storage of DR 5 (1 = RAM, 0 = EEPROM) -,x
AUT_PRNT BOOL I/O FALSE Automatic printout for finished message -,x
SET_ABRT BOOL I/O TRUE Settling time aborted by standstill me -,x
AUTO_F_V BOOL I/O FALSE Autom. use of opt. fine flow shutoff value -,x
DO_DI S_06 BOOL I FALSE Send DR 06 -,x
R_06 BOOL I FALSE Receive DR 06 -,x
DONE_06 BOOL O FALSE Ready DR 06 -,x
ERR_06 WORD O 0 Statusword DR 06 -,x
ASS_DO_1 BYTE I/O B#16#5 Assignment signal output 1 -,x
ASS_DO_2 BYTE I/O B#16#6 Assignment signal output 2 -,x
ASS_DO_3 BYTE I/O B#16#7 Assignment signal output 3 -,x
ASS_DO_4 BYTE I/O B#16#F Assignment signal output 4 -,x
ASS_DI_1 BYTE I/O B#16#7 Assignment, command input 1 -,x
ASS_DI_2 BYTE I/O B#16#3 Assignment, command input 2 -,x
ASS_DI_3 BYTE I/O B#16#F Assignment, command input 3 -,x
RS232_PARA S_07 BOOL I FALSE Send DR 07 -,x
R_07 BOOL I FALSE Receive DR 07 -,x
DONE_07 BOOL O FALSE Ready DR 07 -,x
ERR_07 WORD O 0 Statusword DR 07 -,x
RS232_P WORD I/O W#16#3 Setting of the RS232 interface -,x
TTY_PARA S_08 BOOL I FALSE Send DR 08 -,x
R_08 BOOL I FALSE Receive DR 08 -,x
DONE_08 BOOL O FALSE Ready DR 08 -,x
ERR_08 WORD O 0 Statusword DR 08 -,x
TTY_PARA WORD I/O 0 Setting of the TTY interface -,x
AO_PARA S_09 BOOL I FALSE Send DR 09 -,x
R_09 BOOL I FALSE Receive DR 09 -,x
DONE_09 BOOL O FALSE Ready DR 09 -,x
ERR_09 WORD O 0 Statusword DR 09 -,x
AO_SETUP WORD I/O W#16#1 Setup for analog output -,x
AO_MAX_V REAL I/O 10000.0 Maximum output value for analog output -,x
SPEC_VAL_AO S_24 BOOL I FALSE Send DR 24 -,x
R_24 BOOL I FALSE Receive DR 24 -,x
DONE_24 BOOL O FALSE Ready DR 24 -,x
ERR_24 WORD O 0 Statusword DR 24 -,x
SPEC_VAO REAL I/O 0.0 Value for analog output specified -,x
STRING_FIELD_1 S_26 BOOL I FALSE Send DR 26 -,x
R_26 BOOL I FALSE Receive DR 26 -,x
DONE_26 BOOL O FALSE Ready DR 26 -,x
ERR_26 WORD O 0 Statusword DR 26 -,x
STRFLD11 DWORD I/O D#16#0 String field 1, Character 1-4 -,x
STRFLD12 DWORD I/O D#16#0 String field 1, Character 5-8 -,x
STRFLD13 DWORD I/O D#16#0 String field 1, Character 9-12 -,x
STRFLD14 DWORD I/O D#16#0 String field 1, Character 13-16 -,x
STRING_FIELD_2 S_27 BOOL I FALSE Send DR 27 -,x
R_27 BOOL I FALSE Receive DR 27 -,x
19
DONE_27 BOOL O FALSE Ready DR 27 -,x
ERR_27 WORD O 0 Statusword DR 27 -,x
STRFLD21 DWORD I/O D#16#0 String field 2, Character 1-4 -,x
STRFLD22 DWORD I/O D#16#0 String field 2, Character 5-8 -,x
STRFLD23 DWORD I/O D#16#0 String field 2, Character 9-12 -,x
STRFLD24 DWORD I/O D#16#0 String field 2, Character 13-16 -,x
SPEC_TARE S_28 BOOL I FALSE Send DR 28 -,x
R_28 BOOL I FALSE Receive DR 28 -,x
DONE_28 BOOL O FALSE Ready DR 28 -,x
ERR_28 WORD O 0 Statusword DR 28 -,x
SPEC_TAR REAL I/O 0.0 Tare specified externally -,x
ADD_PROP_PARA S_29 BOOL I FALSE Send DR 29 -,x
R_29 BOOL I FALSE Receive DR 29 -,x
DONE_29 BOOL O FALSE Ready DR 29 -,x
ERR_29 WORD O 0 Statusword DR 29 -,x
INCH_T REAL I/O 1.0 Inching time in sec -,x
MON_TI_P REAL I/O 10.0 Mon. time for inching mode or reprop. in sec -,x
MF_M_T1 REAL I/O 3.0 Material flow monitoring time 1 (coarse) in sec -,x
MF_M_V1 REAL I/O 2.0 Material flow monitoring value 1 (coarse) -,x
MF_M_T2 REAL I/O 3.0 Material flow monitoring time 2 (fine) in sec -,x
MF_M_V2 REAL I/O 2.0 Material flow monitoring value 2 (fine) -,x
DEL_TM_C REAL I/O 2.0 Delay time f. material flow monitoring coarse sec -,x
DEL_TM_F REAL I/O 2.0 Delay time for material flow monitoring fine in sec -,x
WEIGHTS_H R_32 BOOL I FALSE Receive DR 32 -,x
DONE_32 BOOL O FALSE Ready DR 32 -,x
ERR_32 WORD O 0 Statusword DR 32 -,x
GROSS_H REAL O 0.0 Gross indicated more precisely -,x
NET_H REAL O 0.0 Net indicated more precisely -,x
DIGITS R_33 BOOL I FALSE Receive DR 33 -,x
DONE_33 BOOL O FALSE Ready DR 33 -,x
ERR_33 WORD O 0 Statusword DR 33 -,x
UNFILTRD DINT O 0 Unfiltered raw value -,x
FILTERED DINT O 0 Filtered raw value -,x
AO_VAL R_34 BOOL I FALSE Receive DR 34 -,x
DONE_34 BOOL O FALSE Ready DR 34 -,x
ERR_34 WORD O 0 Statusword DR 34 -,x
AO_VAL DINT O 0 DA converter value -,x
ADD_MEAS_VAL R_35 BOOL I FALSE Receive DR 35 -,x
DONE_35 BOOL O FALSE Ready DR 35 -,x
ERR_35 WORD O 0 Statusword DR 35 -,x
OPT_F_V REAL O 0.0 Optimized fine flow shutoff value -,x
PRINT_DATA R_40 BOOL I FALSE Receive DR 40 -,x
DONE_40 BOOL O FALSE Ready DR 40 -,x
ERR_40 WORD O 0 Statusword DR 40 -,x
GROSS_LP REAL O 0.0 Gross weight of last print -,x
NET_LP REAL O 0.0 Net weight of last print -,x
TARE_LP REAL O 0.0 Tare weight of last print -,x
WGH_NO REAL O 0.0 Consecutive weighing number -,x
DAT_TIME DT O DT#1990-1-1-0:0:0.0 Date and time of last print -,x
SP_LP REAL O 0.0 Setpoint of last print -,x
DATE_TIME S_41 BOOL I FALSE Send DR 41 -,x
R_41 BOOL I FALSE Receive DR 41 -,x
DONE_41 BOOL O FALSE Ready DR 41 -,x
ERR_41 WORD O 0 Statusword DR 41 -,x
DAT_TIM DT O DT#1990-1-1-0:0:0.0 Date and time -,x
VERS R_42 BOOL I FALSE Receive DR 42 -,x
DONE_42 BOOL O FALSE Ready DR 42 -,x
ERR_42 WORD O 0 Statusword DR 42 -,x
TYPE_ID WORD O 0 Type ID 1 -,x
PROG_VER WORD O 0 Program version x,x
SWITCHES WORD O 0 Switch settings (DIP switches) -,x
EXTRA_INFO S_43 BOOL I FALSE Send DR 43 -,x
R_43 BOOL I FALSE Receive DR 43 -,x
DONE_43 BOOL O FALSE Ready DR 43 -,x
ERR_43 WORD O 0 Statusword DR 43 -,x
TARE_H REAL I/O 0.0 Tare more precise -,x
ZERO_V_H REAL I/O 0.0 Zero value more precise -,x
TAR_INFO WORD I/O 0 Tare information -,x
Commissioning S_ALL BOOL I/O FALSE Send "all" x,-
DONE_S_ALL BOOL O FALSE Ready S_ALL -,-
ERR_S_ALL BOOL O FALSE Statusword S_ALL -,-
R_ALL BOOL I/O FALSE Receive "all" x,-
20
DONE_R_ALL BOOL O FALSE Ready R_ALL -,-
ERR_R_ALL BOOL O FALSE Statusword R_ALL -,-
BGRD_OFF BOOL I FALSE 1=Background processing off -,x
21
2 Description of the Faceplate
The following figures/sections show the bodies of the faceplate and the allocation of the operator-
controllable and monitorable fields to the parameters of the related PLC block.
A faceplate has several blocks. Each block points to the PLC block on the OS from a certain
perspective. The following chapter describes these blocks.
2.1 General
The faceplate for the Siwarex-M 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-M-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_M_STANDARD.pdl)
2.1.1.2
command
2.1.1.1
status
2.1.1.3
unit
2.1.1.4
decimal point
2.2.1.1 Status
Dependent on the value of the “STATUS“ parameter the status of the Siwarex module is written in clear
text in this box. Output is in two lines and language-dependently in German or English.
2.2.1.2 Command
The element serves to write an analog value selected from a combobox to the command input
“MAN_CMD“. With a mouseclick the view “@PG_SIWA_M_SCROLL.pdl“ iis opened in the
“OperationWindow “ by a C-script adapted for the faceplate..
22
2.2.1.2.1 @PG_SIWA_M_SCROLL.pdl
Value
The view “@PG_SIWA_M_SCROLL.pdl“ is based on the view “@FPD_BedAnalog.PDL“. The main
difference is that the analog value is not entered in an IO field but a command is selected to which the
analog value is assigned as a command code. The commands are listed in the view
“@PG_SIWA_MOMAND_SCROLL.PDL“ in individual text boxes:
On selecting a command with the mouse, the command code is written in the IO field “Value“ of the view
“@PG_SIWA_M_SCROLL.pdl“. If the output value “Value“ is changed the transferred command is color
highlighted, the command code of which is transferred to the module with “OK”.
2.2.1.3 Unit
When changing the “W_UNIT“parameter all user objects which display weight values in this view are
supplied wtih the new unit.
2.2.1.4 Decimalpunkt
The “DEC_PNT“ parameter supplies the number of decimal places. The analog values can be displayed
with a different number of decimal places. This is done by making the respective IO field (ValueX) visible
within the user objects which display the analog values. The necessary C-script is called when changing
the “DEC_PNT“ parameter.
23
2.2.1.5 Missing Operation Authorization
When opening the standard view, the operation authorization is checked and the comboboxes of the
command input and operating mode selected are grayed out if level 5 operating authorization is missing.
2.2.1.6 Mode
When the drop-down field is not activated, the current operating mode is indicated. This is determined
by the QMAN_AUT variable.
There are two operating modes (i.e., manual and automatic). This is written to the AUT_ON_OP input.
The QMANOP and QAUTOP outputs can be used to disable selection of the applicable operating mode
(shaded in gray).
2.2.1.7 Command
If MANUAL operating mode has been set, the operator can issue commands here. These commands
are listed below.
Start with taring without re-proportioning
Start without taring without re-proportioning
Start with taring with re-proportioning (continuous)
Start without taring with re-proportioning (continuous)
Start with taring with re-proportioning (in inching mode)
Start without taring with re-proportioning (in inching mode)
Start inching mode with taring
Start inching mode without taring
Stop proportioning
Set to zero
Delete tare
Taring
The commands affect the MAN_CMD variable.
2.2.1.8 Status
Assignment of the states to the variables:
Status Parameter
Limit value 3 LIM_VAL3
Empty message EMPTY
Standstill STDSTILL
Hardware error SYS_ERR
The following text is indicated in the text field.
TOL+ TOL- PROP_RUN PROP_STA PROP_ABO PROP_END Text
0 0 0 0 0 0 ""
0 0 0 0 0 1 Proportioning finished
1 0 0 0 0 1 Proportioning finished
w. TOL_P (Tol +)
0 1 0 0 0 1 Proportioning finished
w. TOL_M (Tol -)
0 0 1 0 0 0 Proportioning running
0 0 0 1 0 0 Wait for standstill
0 0 0 0 1 0 Proportioning terminated
24
2.2.1.9 Setpoint
The "setpoint" output field shows the SP (OUT) variable.
2.2.1.10 Weight Values
Assignment of the values to the variables:
Field Parameter
Gross GROSS
Net NET
Tare TARE
2.2.2 Maintenance (@PG_SIWA_M_MAINTEN.pdl)
The “Send Param.” and “Rcv. Param” buttons are switched inoperable by C-scripts in automatic mode or
when parameters are still being sent or received (“S_ALL“ or “R_ALL“ = 1).
The "Send Parameters" button sets the "S_ALL" input to TRUE. The "Rcv. Parameters" button sets
"R_ALL" to TRUE.
The "FW" text field shows the current firmware version of the SIWAREX M which is read from the
PROG_VER parameter in DR42.
25
2.2.3 Parameters (@PG_SIWA_M_Param.pdl)
decimal point
unit
manual/auto
The ”Send” and “Receive” buttons have the same functions as the “Send Param.” And “Rcv. Param.”
buttons of the view “@PG_SIWA_M_MAINTEN.pdl“ (see section 2.2.2). Unit and decimal point are
handled exactly the same as in view “@PG_SIWA_M_STANDARD.pdl“ (see section 2.2.1.3 and 2.2.1.4)
Assignment of the values to the variables:
Field/Button Parameter
TOL+ M_TOL_P
TOL- M_TOL_M
Coarse M_COARSE
Fine M_FINE
Settling time M_SETL_T
Send proportioning data M_PD_S
Receive proportioning data M_PD_R
Setpoint SP_MAN
Send setpoint SP_MAN_S
Receive setpoint SP_MAN_R
With the Send/Receive buttons, the value TRUE is written to the parameter.
This view shows the manual values in the controller (in the instance data block) and not the current
data of the module. If you want to change the data of the module, use the "Receive" button to read the
current data from the module and further process them (i.e., change and send).
2.2.4 Message
The message window corresponds to the standard message window of the FaceplateDesigner.
2.2.5 Batch
The batch window corresponds to the standard batch window of the FaceplateDesigner.
26
2.3 Global C-Scripts
The C-scripts “FPD_Siwa_OpenInputBoxAnalog“, “FPD_Siwa_OpenInputBoxBin“ are slightly modified
original FaceplateDesigner scripts.
The script “FPD_Siwa_OpenNoPermission“ opens the image “@FPD_NoPermission.pdl“.
2.4 Special Features of the Faceplate
2.4.1 Units
The units of the weight values are read from the W_UNIT variable and indicated (i.e., multiple
configuration/entry of this value is not necessary).
2.4.2 No Icon Representation
The faceplate of the SIWAREX M does not support symbol representation (i.e., WinCC resources must
be used to present the SIWAREX M data in an overview screen).
The call of the top field representation (i.e., process window) is configured with the Wizard "Picture
selection via measurement point".
See also chapter 3.
27
3 Sample Configuration
This sample configuration will give you an overview of the steps required during a PCS 7 project to
install a SIWAREX M in a CFC plan, commission it from there, and how to configure the faceplate call in
WinCC.
Prerequisites:
You have already set up a PCS 7 project with the SIMATIC manager. The SIWAREX M module has
been configured decentrally (distributed) in an IM 153-1 or IM 153-2 in HW Config (activate alarms).
The SIWAREX M has been commissioned with SIWATOOL.
3.1 PLC
Open a new CFC plan.
Take FB241 "SIWA_M" function block from the "SIWA_M" library and enter it in the CFC plan.
Configure the SUBN_ID, RACK_NO, SLOT_NO and ADDR parameters. This information is
located in your HW Config. SUBN_ID is the network address which is shown on the connection of
the CPU to your IM 153. RACK_NO corresponds to the PROFIBUS address of the IM 153.
SLOT_NO corresponds to the slot of the SIWAREX M.
Compile the project, with ‘generate modul driver’ checked and load it to the CPU.
Switch the CPU to RUN-P.
Read in all relevant data records by setting the "R_ALL" parameter.
After the configuration data have been read in (DONE_R_ALL = 1 cycle long TRUE), the weight
values are output correctly to the block bar.
NOTE:
As long as the decimal point has not been read from the SIWAREX M, the weight values in PCS 7 are
not weighted with the decimal point (i.e., if decimal points have been parameterized for the module), the
weight values will not be indicated correctly on the I/O bar.
28
3.2 OS
After you have instanced a SIWA_M block in the CFC and have transferred the data to WinCC
("Options" menu-> "PLC-OS Connection data"), the data are available in WinCC.
You can now use the various tags (parameter) in your screens and link an I/O field with the net weight
value of your SIWAREX M, for example.
To open the related faceplate in Runtime, perform the following steps.
Prerequisite: You have already executed the Split Screen Wizard (Editor Base Data in WinCC).
Open your screen with the graphics designer.
Select the object to be clicked to make the block appear (e.g., a container or just a button).
The Dynamic Wizard is located in the bar on the edge. If it is not visible, activate it with the "view-
>Toolbars..." menu (view -> icon bar).
In its "Picture Functions" index card, select the entry "Picture selection via measurement point" and
double click it.
A Wizard appears to lead you through the configuration. 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) when activated with the left mouse button, select this entry.
In the next window, you will be asked for the structure type. Since you want to open the faceplate
for the SIWAREX M, select the "SIWA_M" structure type.
In the next window, select the instance of the SIWA_M. Press the corresponding button to open a
selection dialog box. Select the desired instance, and confirm with OK.
In the same window, select the appearance of the faceplate. The last entry "group display" is the
usual choice.
The last window gives you another summary of your configuration. Confirm this with "finish".
Configuration of the faceplate call is complete.
To create an icon screen, use the resources of WinCC (e.g., the object status indication).
29
30
4 Tips and Tricks
4.1 Creation of a Project Data Base
Before beginning a project in which you want to use PCS 7 blocks, you can adjust the blocks to your
own requirements. You can change the system attributes of the block links such as visibility in CFC
(S7_visible), user texts for binary values (S7_string_0, S7_string_1), texts for analogue values (S7_unit,
S7_shortcut), the linkability in CFC (S7_link, example: GAIN, TN, TV for the controller), and so on. The
attributes for messages (S7_server, S7_a_type) may not be changed. Changing the S7_m_c attribute
will restrict the functionality of the related faceplate.
To adjust the library, proceed as shown below.
Copy the entire library with operating system resources 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 STEP 7 projects. Create a new library for different
tasks in additional projects.
5 Definitions and Abbreviations
OS Operator Station
PLC Automation System
FB Function block
DR Data Record
6 List of References
/4/ SIWAREX M manual (starting with firmware release 0117), Release 11/00