SIWAREX M(c) 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 (c) (c) 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(c) 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. (c) 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 3 4 5 6 Global C-Scripts ...........................................................................................................................27 2.3 2.4 Special Features of the Faceplate ...............................................................................................27 2.4.1 Units......................................................................................................................................27 2.4.2 No Icon Representation ........................................................................................................27 Sample Configuration..........................................................................................................................28 3.1 PLC ..............................................................................................................................................28 3.2 OS ................................................................................................................................................29 Tips and Tricks ....................................................................................................................................30 4.1 Creation of a Project Data Base ..................................................................................................30 Definitions and Abbreviations..............................................................................................................30 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 S_xx* Data Type BOOL R_xx BOOL DONE_xx BOOL ERR_xx WORD Class Description I Send bit, is set by the user if the data record is to be written (Block evaluates rising edge.) I Receive bit, is set by the user if the data record is to be read (Block evaluates rising edge.) O Finished message, is set for one cycle when transmission is finished 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 0 1 2 3 4 5 6 7 8 9 10 Description Transmission okay Data error Handling error Wrong command code Conversion error (REAL<->DINT conversion) Wrong operating mode Job termination due to new synchronization WRITE COMMAND was not transferred. Timeout job interface Error during internal call of SFC RD_REC 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 EMPTY BOOL STDSTILL MAX_LOAD MAN_TARE EXTC_NEG ZR_EXCED PRINT_NP SYS_ERR SCAL_ADJ SC_TARED ZERO WR_PROT SRC_CLK BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL Description Bit Position in STATUS-DWORD Empty message, active/inactive 24 Standstill 25 Max. load + 9e exceeded 26 Tare memory loaded with manual tare value 27 Command cannot be executed via ext. contact 28 Gross weight outside the zero range 29 Printing not possible 30 System error (hardware fault) 31 Scale adjusted 16 Scales tare 17 1/4 d zero 18 Write protection active 19 Source time/date (S7/TD20) 20 7 LIM_VAL1 LIM_VAL2 LIM_VAL3 REPROP_A M_FL_ER1 M_FL_ER2 M_FL_ERC M_FL_ERF MON_I_R COARSE FINE TOL_PLUS TOL_MIN PROP_RUN PROP_STA PROP_ABO PROP_END BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL Limit value 1 active/inactive Limit value 2 active/inactive Limit value 3 active/inactive re-proportioning was activated Material flow error 1 Material flow error 2 Material flow error (coarse) Material flow error (fine) Monit. time for inch. mode or reprop. finished Coarse flow on Fine flow on Tolerance deviation + Tolerance deviation Proportioning running Proportioning started, wait for standstill Proportioning aborted Proportioning finished 21 22 23 8 9 10 11 12 13 0 1 2 3 4 5 6 7 In addition to the 30 boolean outputs, the information is bundled as DWORD and output. See table. Parameter STATUS Data Type DWORD Description Summary of the boolean status values in DWORD 1.5.3.2 Weight Values (DR 30) Parameter GROSS NET TARE Data Type REAL REAL REAL Description Gross weight Net weight 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 AUT_ON_OP MANOP_EN AUTOP_EN AUT_L LIOP_SEL QMAN_AUT Data Type BOOL BOOL BOOL BOOL BOOL BOOL Description Operator Input: 0:Manual 1:Auto (oper. mode selection) Operator enable for Auto Operator enable for Manual Link input: 0: Manual 1:Auto (oper. mode selection) Oper. mode selection 0:AUT_ON_OP 1:AUT_L 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 AUT_START START_MTD AUT_CONT CONT_MTD AUT_STOP WGHT_CMD WGHT_MTD C_A_DONE C_A_ERR Data Type BOOL WORD BOOL WORD BOOL BOOL BYTE BOOL WORD Class I I I I I I I O O Description Auto start command Start method Auto Continue command Continue method Auto Stop command Trigger Auto weighing command Auto weighing command (Command Automatic) finished (Command Automatic) status word For meaning of START_MTD and CONT_MTD, see also SIWAREX M manual. START_MTD/CONT_MTD 10 12 20 22 30 32 40 42 Command Start with auto. taring without re-proportioning Start without auto. taring without re-proportioning Start inching mode with auto. taring Start inching mode without taring Start with auto. taring with re-proportioning (continuous) Start without auto. taring with re-proportioning (continuous) Start with auto. taring with re-proportioning (in inching mode) Start without auto. taring with re-proportioning (in inching mode) 9 Meaning of WGHT_MTD: WGHT_MTD 1 2 3 4 5 7 8 9 13 15 Command Zero point valid (adjustment command) Adjustment weight valid (adjustment command) Tare External spec. tare valid Set to zero Print text 1 Print text 2 Repeat last printout Load factory settings 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 SP_AUT SP_AUT_S SP_AUT_R DONE_SPA Data Type REAL BOOL BOOL BOOL Class I/O I I O ERR_SPA WORD O Description Auto setpoint Send auto setpoint Receive auto setpoint Finished message, is set for one cycle when transmission finished 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 A_TOL_P A_TOL_M A_COARSE A_FINE A_SETL_T A_PD_S A_PD_R DONE_PDA Data Type REAL REAL REAL REAL REAL BOOL BOOL BOOL Class I/O I/O I/O I/O I/O I I O ERR_PDA WORD O Description Auto tolerance plus value Auto tolerance minus value Auto coarse-flow switch-off value Auto fine-flow switch-off value Auto settling time (in seconds) Auto send proportioning data Auto receive proportioning data Finished message, is set for one cycle when transmission finished 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 MAN_CMD C_M_DONE C_M_ERR Data Type BYTE BOOL WORD Class I O O Description Manual command (Manual command) command sent (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 SP_MAN SP_MAN_S SP_MAN_R DONE_SPM Data REAL BOOL BOOL BOOL Type-Class I/O I/O I/O O ERR_SPM WORD O Description Manual setpoint Manual send setpoint Manual receive setpoint Finished message, is set for one cycle when transmission finished 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 M_TOL_P M_TOL_M Data Type REAL REAL Class Description I/O Manual tolerance plus value I/O Manual tolerance minus value 11 M_COARSE M_FINE M_SETL_T M_PD_S M_PD_R DONE_PDM REAL REAL REAL BOOL BOOL BOOL I/O I/O I/O I/O I/O O ERR_PDM WORD O Manual coarse-flow switch-off value Manual fine-flow switch-off value Manual settling time (in seconds) Send manual proportioning data Receive manual proportioning data Finished message, is set for one cycle when transmission finished 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 SUBN1_ID SUBN2_ID RACK_NO SLOT_NO ADDR Data Type BYTE BYTE WORD WORD WORD Class Description I ID of primary subnet I ID of redundant subnet I Rack number I Slot number 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 S_ALL DONE_S_ALL ERR_S_ALL R_ALL DONE_R_ALL ERR_R_ALL Data Type BOOL BOOL BOOL BOOL BOOL BOOL Class I/O O O I/O O O Description Send "all" (send all DR) Finished message for "Send All" Status word for "Send All" Receive "all" (receive all DR) Finished message for "Receive All" 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 QOPERL_E OPERL_ER Data Type BOOL WORD Class O O Description Operational error 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 Internal error Internal error Internal error Internal error External error External error Cause RAM error, read-write check EEPROM error, checksum check A/D conversion error during read access Watchdog error Minimum voltage on the sense lines passed below 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 QINT QEXT INT_ERR EXT_ERR Data Type BOOL BOOL WORD WORD Class O O O O Description Internal error External error Error info for internal error (bit-coded) 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. 1 2 3 4 5 6 7 8 Block Parameter QPARF QRACKF QMODF QPERF QOPERL_E QDAT_ERR QHANDL_E QINT_EXT Default Text Message Class Parameterization error S Rack failure S Module error or module removed S I/O access error S Operational error S Data error PM Handling error PM 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 1 2 3 4 5 6 7 8 9 10 Block Parameter BA_NA STEP_NO BA_ID SUBN1_ID RACK_NO SLOT_NO OPERL_ER DAT_ERR HANDL_ER 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 Description Alarm_8p BATCH flexible Adresse Error AUTO HAND Operating mode WEIGHTS STATUS Parameter MSG_EVID EN_MSG QMSG_SUP BA_EN BA_ID BA_NA OCCUPIED STEP_NO SUBN1_ID SUBN2_ID RACK_NO SLOT_NO ADDR RACKF MODF PERAF QRACKF QMODF QPERAF QPARF QOPERL_E QINT INTERR01 INTERR02 INTERR03 INTERR04 INTERR05 QEXT EXRERR01 Type Class DWORD I BOOL I BOOL O BOOL I DWORD I/O STRING[16],I BOOL I WORD I/O BYTE I BYTE I WORD I WORD I WORD I BOOL I BOOL I BOOL I BOOL O BOOL O BOOL O BOOL O BOOL O BOOL O BOOL O BOOL O BOOL O BOOL O BOOL O BOOL O BOOL O Default 0 TRUE FALSE TRUE 0 '' FALSE 0 0 0 0 0 0 0 0 0 FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE EXRERR02 BOOL O FALSE EXRERR05 BOOL O FALSE QDAT_ERR QHANDL_E QGR_ERR OPERL_ER INT_ERR EXT_ERR DAT_ERR HANDL_ER SFC_RETV AUT_STRT STRT_MTD AUT_CONT CONT_MTD AUT_STOP WGHT_CMD WGHT_MTD C_A_DONE C_A_ERR MAN_CMD C_M_DONE C_M_ERR AUT_ON_OP MANOP_EN AUTOP_EN AUT_L LIOP_SEL QMAN_AUT QMANOP QAUTOP GROSS NET TARE EMPTY BOOL BOOL BOOL WORD WORD WORD WORD WORD WORD BOOL WORD BOOL WORD BOOL BOOL BYTE BOOL WORD WORD BOOL WORD BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL REAL REAL REAL BOOL O O O O O O O O O I I I I I I I O O I/O O O I/O I I I I O O O O O O O FALSE FALSE FALSE 0 0 0 0 0 0 FALSE 16#A FALSE 16#C FALSE FALSE 16#3 FALSE 0 0 FALSE 0 FALSE TRUE TRUE FALSE FALSE FALSE FALSE FALSE 0 0 0 FALSE S7_m_c, S7_visible Commentary "x" = 'true',"-" = 'false' Message ID -,x Enable 1=Alarming -,x 1=Alarming suppressed x,x Batch Enable x,x Batch ID -,x Batch Name x,x Occupied by Batch x,x Batch Step Number x,x ID of Primary subnet -,ID of Redundant subnet -,Rack Number -,Slot Number -,connect to base address of Siwarex module -,1= Rack Failure -,1= Module Failure -,1= I/O Module Access Failure -,1=Rack Failure Module 1 -,1=Module1 Removed/Out of Order -,1=I/O Module Access Failure -,1=Parameter Assignment Error -,1=Operational Error -,1=Internal Error -,Internal Error 01: RAM error, read-write -,Internal Error 02: RAM error, checksum test -,Internal Error 03: EEPROM error, checksum test -,Internal Error 04: A/D converter error read-in -,Internal Error 05: Watchdog error -,1=External Error -,External Error 01: Minimum voltage has been passed below on the sense lines -,External Error 02: Control limit exceeded or passed below -,External Error 05: Interface remote display Malfunctioning(Time monitoring) -,1=Data Error appeared -,1=Handling Error appeared -,1=Group Error x,Operational Error Info bitcoded -,Error info 'int. err.' (bitcoded) -,Error info 'ext. err.' (bitcoded) -,Last Data Error -,Last Handling Error -,Return Val. of SFC RD_REC/WR_REC -,AUT start command -,AUT start method -,AUT continue command -,AUT continue method -,AUT stop command -,AUT weight command -,AUT weight method -,(Command Automatic) command done -,(Command Autom.) command statusword -,Manual Command coded x,x (Command Manual)command done x,(Command Manual)command statusword x,Operator Input: 0=MAN 1:AUT (mode) x,Enable: 1=Operator may input MANUAL -,Enable: 1=Operator may input AUTO -,Linkable Input for MANUAL/AUTO Mode -,Select: 1=Linking, 0=Operator active -,1=AUTO, 0=MANUAL Mode x,Status: 1=Oper. ena. for "MANUAL" Mode x,x Status: 1=Operator enabled for "AUTO" x,x Gross weight x,Net weight x,Tare weight x,Empty message, active/inactive -,- 17 SETPOINT PROP_DATA ADJ_DATA STDSTILL MAX_L_EX MAN_TARE EXTC_NEG ZR_EXCED PRINT_NP SYS_ERR SCAL_ADJ SC_TARED ZERO WR_PROT SRC_CLK LIM_VAL1 LIM_VAL2 LIM_VAL3 REPROP_A M_FL_ER1 M_FL_ER2 M_FL_ERC M_FL_ERF MON_I_R COARSE FINE TOL_PLUS TOL_MIN PROP_RUN PROP_STA PROP_ABO PROP_END STATUS QSTARTUP SP_AUT SP_AUT_S SP_AUT_R DONE_SPA ERR_SPA SP_MAN SP_MAN_S SP_MAN_R DONE_SPM ERR_SPM SP A_TOL_P A_TOL_M A_COARSE A_FINE A_SETL_T A_PD_S A_PD_R DONE_PDA ERR_PDA M_TOL_P M_TOL_M M_COARSE M_FINE M_SETL_T M_PD_S M_PD_R DONE_PDM ERR_PDM S_03 R_03 DONE_03 ERR_03 OP_MODE SCALE_TP STDST_T STDST_VL DEC_PNT CHAR_VAL W_UNIT INCR BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL DWORD BOOL REAL BOOL BOOL BOOL WORD REAL BOOL BOOL BOOL WORD REAL REAL REAL REAL REAL REAL BOOL BOOL BOOL WORD REAL REAL REAL REAL REAL BOOL BOOL BOOL WORD BOOL BOOL BOOL WORD WORD WORD REAL REAL WORD DINT WORD BYTE O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O I/O I I O O I/O I/O I/O O O O I/O I/O I/O I/O I/O I I O O I/O I/O I/O I/O I/O I/O I/O O O I I O O I/O I/O I/O I/O I/O I/O I/O I/O FALSE Standstill FALSE Max. load + 9e exceeded FALSE Tare memory loaded with manual tare value FALSE Command cannot executed via ext. contact FALSE Gross weight outside the zero range FALSE Printing not possible FALSE System error (hardware fault) FALSE Scale adjusted FALSE Scales tare FALSE 1/4 d zero FALSE Write protection active FALSE Source time/date (S7/TD20) FALSE Limit value 1 active/inactive FALSE Limit value 2 active/inactive FALSE Limit value 3 active/inactive FALSE Reproportioning was activated FALSE Material flow error 1 FALSE Material flow error 2 FALSE Material flow error (coarse) FALSE Material flow error (fine) FALSE Monit. time for inch. mode or reprop. finished FALSE Coarse flow on FALSE Fine flow on FALSE Tolerance deviation + FALSE Tolerance deviation FALSE Proportioning running FALSE Proportioning started, wait for standstill FALSE Proportioning aborted FALSE Proportioning finished 0 Statusbits summarized FALSE 1=startup active 0.0 Setpoint Auto FALSE Setpoint Auto Send FALSE Setpoint Auto Receive FALSE Ready SPA 0 Statusword SPA 0.0 Setpoint Manual FALSE Setpoint Manual Send FALSE Setpoint Manual Receive FALSE Ready SPM 0 Statusword SPM 0.0 Current Setpoint 0.0 Automatic Tolerance plus value 0.0 Automatic Tolerance minus value 0.0 Automatic Coarse flow shutoff value 0.0 Automatic Fine flow shutoff value 2.0 Automatic Settling time (in sec) FALSE Setpoint Auto Send FALSE Setpoint Auto Receive FALSE Ready PDA transmit 0 Statusword PDA 0.0 Manual Tolerance plus value 0.0 Manual Tolerance minus value 0.0 Manual Coarse flow shutoff value 0.0 Manual Fine flow shutoff value 2.0 Manual Settling time (in sec) FALSE Send Manual Proportional Data FALSE Receive Manual Proportional Data FALSE Ready PDM transmit 0 Statusword PDM FALSE Send DR 03 FALSE Receive DR 03 FALSE Ready DR 03 0 Statusword DR 03 0 Operating mode 0 Scales type 2,5 Standstill time in sec 1 Standstill value 0 Decimal point 2 Characteristic val. area SIWAREX M W#16#6B67 Unit of weight B#16#1 Digital increment x,x,-,x -,x -,x -,x -,-,x -,x -,x -,x -,x x,x x,x x,-,x -,x -,x -,x -,x -,x x,x,-,-,-,-,-,x,x,x -,-,-,-,-,-,x,x x,x x,x x,x,x,x -,-,-,-,-,-,-,-,-,x,x x,x x,x x,x x,x x,x x,x x,x,-,x -,x -,x -,x -,x -,x -,x -,x x,x -,x x,x -,x 18 LIM_FREQ ADJ_WGHT MAX_LOAD LANGUAGE ADJ_DIG0 ADJ_DIG1 SCALE_NO SCALES_PARA S_04 R_04 DONE_04 ERR_04 RAM_EPRM AUT_ZERO FILL_DED EMPTY_VL EMPTY_DT ON_LIM1 OFF_LIM1 ON_LIM2 OFF_LIM2 ON_LIM3 OFF_LIM3 PROP_PARA S_05 R_05 DONE_05 ERR_05 RAM_PROM AUT_PRNT SET_ABRT AUTO_F_V DO_DI S_06 R_06 DONE_06 ERR_06 ASS_DO_1 ASS_DO_2 ASS_DO_3 ASS_DO_4 ASS_DI_1 ASS_DI_2 ASS_DI_3 RS232_PARA S_07 R_07 DONE_07 ERR_07 RS232_P TTY_PARA S_08 R_08 DONE_08 ERR_08 TTY_PARA AO_PARA S_09 R_09 DONE_09 ERR_09 AO_SETUP AO_MAX_V SPEC_VAL_AO S_24 R_24 DONE_24 ERR_24 SPEC_VAO STRING_FIELD_1 S_26 R_26 DONE_26 ERR_26 STRFLD11 STRFLD12 STRFLD13 STRFLD14 STRING_FIELD_2 S_27 R_27 BYTE REAL REAL WORD DINT DINT BYTE BOOL BOOL BOOL WORD BOOL BOOL BOOL REAL REAL REAL REAL REAL REAL REAL REAL BOOL BOOL BOOL WORD BOOL BOOL BOOL BOOL BOOL BOOL BOOL WORD BYTE BYTE BYTE BYTE BYTE BYTE BYTE BOOL BOOL BOOL WORD WORD BOOL BOOL BOOL WORD WORD BOOL BOOL BOOL WORD WORD REAL BOOL BOOL BOOL WORD REAL BOOL BOOL BOOL WORD DWORD DWORD DWORD DWORD BOOL BOOL I/O I/O I/O I/O I/O I/O I/O I I O O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I I O O I/O I/O I/O I/O I I O O I/O I/O I/O I/O I/O I/O I/O I I O O I/O I I O O I/O I I O O I/O I/O I I O O I/O I I O O I/O I/O I/O I/O I I B#16#2 10000 10000 0 0 50000 0 FALSE FALSE FALSE 0 FALSE FALSE FALSE 50.0 5.0 10000.0 9999.0 1000.0 1010.0 9000.0 8990.0 FALSE FALSE FALSE 0 FALSE FALSE TRUE FALSE FALSE FALSE FALSE 0 B#16#5 B#16#6 B#16#7 B#16#F B#16#7 B#16#3 B#16#F FALSE FALSE FALSE 0 W#16#3 FALSE FALSE FALSE 0 0 FALSE FALSE FALSE 0 W#16#1 10000.0 FALSE FALSE FALSE 0 0.0 FALSE FALSE FALSE 0 D#16#0 D#16#0 D#16#0 D#16#0 FALSE FALSE Limit frequency, digital filter Adjustment weight Maximum load Language Adjustment digits 0 Adjustment digits 1 Scales number Send DR 04 Receive DR 04 Ready DR 04 Statusword DR 04 Storage of DR 4 (1 = RAM, 0 = EEPROM) Scales adjustment, automatic setting to zero Scales setting,fill/deduction weighing Empty message value Empty message delay time in sec Switch on point for limit value 1 Switch off point for limit value 1 Switch on point for limit value 2 Switch off point for limit value 2 Switch on point for limit value 3 Switch off point for limit value 3 Send DR 05 Receive DR 05 Ready DR 05 Statusword DR 05 Storage of DR 5 (1 = RAM, 0 = EEPROM) Automatic printout for finished message Settling time aborted by standstill me Autom. use of opt. fine flow shutoff value Send DR 06 Receive DR 06 Ready DR 06 Statusword DR 06 Assignment signal output 1 Assignment signal output 2 Assignment signal output 3 Assignment signal output 4 Assignment, command input 1 -,x Assignment, command input 2 -,x Assignment, command input 3 -,x Send DR 07 Receive DR 07 Ready DR 07 Statusword DR 07 Setting of the RS232 interface Send DR 08 Receive DR 08 Ready DR 08 Statusword DR 08 Setting of the TTY interface Send DR 09 Receive DR 09 Ready DR 09 Statusword DR 09 Setup for analog output Maximum output value for analog output Send DR 24 Receive DR 24 Ready DR 24 Statusword DR 24 Value for analog output specified Send DR 26 Receive DR 26 Ready DR 26 Statusword DR 26 String field 1, Character 1-4 String field 1, Character 5-8 String field 1, Character 9-12 String field 1, Character 13-16 Send DR 27 Receive DR 27 -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x 19 DONE_27 ERR_27 STRFLD21 STRFLD22 STRFLD23 STRFLD24 SPEC_TARE S_28 R_28 DONE_28 ERR_28 SPEC_TAR ADD_PROP_PARA S_29 R_29 DONE_29 ERR_29 INCH_T MON_TI_P MF_M_T1 MF_M_V1 MF_M_T2 MF_M_V2 DEL_TM_C DEL_TM_F WEIGHTS_H R_32 DONE_32 ERR_32 GROSS_H NET_H DIGITS R_33 DONE_33 ERR_33 UNFILTRD FILTERED AO_VAL R_34 DONE_34 ERR_34 AO_VAL ADD_MEAS_VAL R_35 DONE_35 ERR_35 OPT_F_V PRINT_DATA R_40 DONE_40 ERR_40 GROSS_LP NET_LP TARE_LP WGH_NOREAL DAT_TIME SP_LP DATE_TIME S_41 R_41 DONE_41 ERR_41 DAT_TIM VERS R_42 DONE_42 ERR_42 TYPE_ID PROG_VER SWITCHES EXTRA_INFO S_43 R_43 DONE_43 ERR_43 TARE_H ZERO_V_H TAR_INFO Commissioning S_ALL DONE_S_ALL ERR_S_ALL R_ALL BOOL WORD DWORD DWORD DWORD DWORD BOOL BOOL BOOL WORD REAL BOOL BOOL BOOL WORD REAL REAL REAL REAL REAL REAL REAL REAL BOOL BOOL WORD REAL REAL BOOL BOOL WORD DINT DINT BOOL BOOL WORD DINT BOOL BOOL WORD REAL BOOL BOOL WORD REAL REAL REAL O DT REAL BOOL BOOL WORD DT BOOL BOOL WORD WORD WORD WORD BOOL BOOL BOOL WORD REAL REAL WORD BOOL BOOL BOOL BOOL O O I/O I/O I/O I/O I I O O I/O I I O O I/O I/O I/O I/O I/O I/O I/O I/O I O O O O I O O O O I O O O I O O O I O O O O O 0.0 O O I I BOOL O O I O O O O O I I O O I/O I/O I/O I/O O O I/O FALSE Ready DR 27 0 Statusword DR 27 D#16#0 String field 2, Character 1-4 D#16#0 String field 2, Character 5-8 D#16#0 String field 2, Character 9-12 D#16#0 String field 2, Character 13-16 FALSE Send DR 28 FALSE Receive DR 28 FALSE Ready DR 28 0 Statusword DR 28 0.0 Tare specified externally FALSE Send DR 29 FALSE Receive DR 29 FALSE Ready DR 29 0 Statusword DR 29 1.0 Inching time in sec 10.0 Mon. time for inching mode or reprop. in sec 3.0 Material flow monitoring time 1 (coarse) in sec 2.0 Material flow monitoring value 1 (coarse)-,x 3.0 Material flow monitoring time 2 (fine) in sec 2.0 Material flow monitoring value 2 (fine) 2.0 Delay time f. material flow monitoring coarse sec 2.0 Delay time for material flow monitoring fine in sec FALSE Receive DR 32 FALSE Ready DR 32 0 Statusword DR 32 0.0 Gross indicated more precisely 0.0 Net indicated more precisely FALSE Receive DR 33 FALSE Ready DR 33 0 Statusword DR 33 0 Unfiltered raw value 0 Filtered raw value FALSE Receive DR 34 FALSE Ready DR 34 0 Statusword DR 34 0 DA converter value FALSE Receive DR 35 FALSE Ready DR 35 0 Statusword DR 35 0.0 Optimized fine flow shutoff value FALSE Receive DR 40 FALSE Ready DR 40 0 Statusword DR 40 0.0 Gross weight of last print 0.0 Net weight of last print 0.0 Tare weight of last print Consecutive weighing number -,x DT#1990-1-1-0:0:0.0 Date and time of last print 0.0 Setpoint of last print FALSE Send DR 41 FALSE Receive DR 41 O FALSE Ready DR 41 0 Statusword DR 41 DT#1990-1-1-0:0:0.0 Date and time FALSE Receive DR 42 FALSE Ready DR 42 0 Statusword DR 42 0 Type ID 1 0 Program version 0 Switch settings (DIP switches) -,x FALSE Send DR 43 FALSE Receive DR 43 FALSE Ready DR 43 0 Statusword DR 43 0.0 Tare more precise 0.0 Zero value more precise 0 Tare information FALSE Send "all" FALSE Ready S_ALL FALSE Statusword S_ALL FALSE Receive "all" -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x -,x x,x -,x -,x -,x -,x -,x -,x -,x x,-,-,x,- 20 DONE_R_ALL ERR_R_ALL BGRD_OFF BOOL BOOL BOOL O O I FALSE FALSE FALSE Ready R_ALL Statusword R_ALL 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 operatorcontrollable 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 Limit value 3 Empty message Standstill Hardware error Parameter LIM_VAL3 EMPTY STDSTILL SYS_ERR The following text is indicated in the text field. TOL+ TOL- PROP_RUN PROP_STA PROP_ABO PROP_END Text 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 "" Proportioning finished Proportioning finished w. TOL_P (Tol +) Proportioning finished w. TOL_M (Tol -) Proportioning running Wait for standstill 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 Gross Net Tare Parameter GROSS NET 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) manual/auto decimal point unit 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 TOL+ TOLCoarse Fine Settling time Send proportioning data Receive proportioning data Setpoint Send setpoint Receive setpoint Parameter M_TOL_P M_TOL_M M_COARSE M_FINE M_SETL_T M_PD_S M_PD_R SP_MAN SP_MAN_S 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 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 PLC FB DR Operator Station Automation System Function block Data Record 6 List of References /4/ SIWAREX M manual (starting with firmware release 0117), Release 11/00 30