Process control system, basis library readme v9.0 sp1 online (26 pages)
Summary of Contents for Siemens SIMATIC PCS 7
Page 1
Overview of the Block ______________ Description SIMATIC Process Control System PCS 7 SIMATIC BATCH Interface Blocks V7.1 ______________ BATCH interface blocks Equipment Parameter ______________ Module SIMATIC Process Control System PCS 7 SIMATIC BATCH Interface Blocks V7.1 Function Manual 03/2009 A5E02171101-01...
Page 2
Trademarks All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Table of contents Overview of the Block Description ......................5 BATCH interface blocks..........................9 IEPH...............................9 2.1.1 IEPH: Equipment Phase - BATCH Interface..................9 2.1.2 Operator Control and Monitoring of IEPH..................16 2.1.3 I/Os of IEPH ..........................19 IEOP.............................21 2.2.1 IEOP: Equipment Operation - BATCH Interface................21 2.2.2 I/Os of IEOP ..........................27 2.2.3...
Page 4
Table of contents IEPAR_SOURCE ........................55 3.8.1 IEPAR_SOURCE: equipment parameter module for the SOURCE data type ......55 3.8.2 I/Os of IEPAR_SOURCE......................56 IEPAR_STR ..........................57 3.9.1 IEPAR_STR: equipment parameter module for the STRING parameter type......57 3.9.2 I/Os of IEPAR_STR........................58 3.10 IEPAR_TKEY ..........................
Overview of the Block Description Introduction The block descriptions always organized in the following form: ● Overview of the block description ● Object name (type + number) ● Function ● How the block functions ● Calling OBs ● Error handling ●...
Page 6
Overview of the Block Description Calling OBs This section contains information about the organization blocks (OBs) in which the block being described must be installed. When using CFC, the block is installed in the cyclic OBs (cyclic interrupt) and automatically in the OBs listed in the taskbar of the block (for example, in OB100 for a hot restart).
Page 7
Overview of the Block Description I/Os of ... The I/Os represent the data interface of the block. Via these I/Os, you can transfer data to the block and fetch results from it. Table 1-1 I/Os of ... Meaning Type Default Type Attr.
Page 8
Overview of the Block Description ● Attr. (Attribute) Additional characteristics of the parameter when used in CFC. Input and output parameters that are not interconnected can have parameters assigned (input/output parameters only with online FCs). Output parameters cannot have values assigned and can be transferred in CFC by interconnecting them to an input of the same data type.
BATCH interface blocks IEPH 2.1.1 IEPH: Equipment Phase - BATCH Interface IEPH: Equipment Phase - BATCH Interface Object name (type + number) FB 254 (Page 19) Calling OBs The OB in which you install the block (for example, OB1). Function The IEPH block serves as the interface between a BATCH recipe step of the type RPH (recipe phase) and the user programs on the automation system for control and status information.
Page 10
BATCH interface blocks 2.1 IEPH The IEPH block allows the following status changes: Operating principle ● Allocate / Enable A recipe step can occupy the block by setting the identifier OCCUPIED = 1. It also enters an occupied information based on the batch name, batch number, the step number (UBA_NAME, UBA_ID, USTEP_NO) and, if necessary, the step monitoring time (STEP_T).
Page 11
BATCH interface blocks 2.1 IEPH ● Status word The reaction to user input is signaled at the USTAT_L status input of the user block which is interconnected with the IEPH block. The status, including other block information, is returned at output QUSTAT_L and is monitored by BATCH. The bit assignment is synchronized with the assignment at the SFC_CTRL block.
Page 12
BATCH interface blocks 2.1 IEPH ● Start lock The "Start lock" identifier in the status word or input "ILOCK" can be used to inform the BATCH block that start or resume is not desired. Note The start lock must have been set in IDLE state if the BATCH is to comply with the start lock.
Page 13
BATCH interface blocks 2.1 IEPH Allocation of the status words USTAT_L and QUSTAT_L Meaning Remark Set if IDLE the static state is "inactive" RUNNING the static state is "active" COMPLETED the static state is "completed" HELD the static state is "held" ABORTED the static state is "aborted"...
Page 14
BATCH interface blocks 2.1 IEPH Rules for setting the status bits ● The static states ´represent the most important data in BATCH. The transition states are optional. The RUNNING state may be activated directly after the IDLE state, for example. ●...
Page 15
BATCH interface blocks 2.1 IEPH Batch messages The associated values are occupied by the block as follows: Associated value 1 = batch name UBA_NAME Associated value 2 = step number USTEP_N0 Associated value 3 = batch ID UBA_ID Block parameters Value Event Message class...
BATCH interface blocks 2.1 IEPH 2.1.2 Operator Control and Monitoring of IEPH Controlling and Monitoring of IEPH The following table shows the assignment of the parameters of the IEPH block to the input / output fields of the corresponding faceplate for the following views: ●...
Page 17
BATCH interface blocks 2.1 IEPH Representation Input/output field User authorization Block parameters Batch "Status" display QUSTAT_L Buttons "T", "H", "B" Status in string, hexadecimal, and binary format Operation and display "Batch" Enable for BATCH BA_EN bit 18 Occupy OCCUPIED bit 24 Batch no.
Page 18
BATCH interface blocks 2.1 IEPH Using a template to create a batch faceplate Graphics Designer (WinCC-Explorer) provides a template for selecting batch faceplates in PCS 7 OS pictures. 1. Open the required process picture in Graphics Designer. 2. Open the "@Template_Batch.pdl" template file by selecting the File > Open command. 3.
BATCH interface blocks 2.1 IEPH 2.1.3 I/Os of IEPH I/Os of IEPH I/O (parameter) Meaning Type Default Type Attribute Valid values BA_EN BATCH - occupy enable Bool EPE_CONN Interconnection with DInt IEPAR blocks F_TYPE Name of the phase type String[16] ‘‘...
Page 20
BATCH interface blocks 2.1 IEPH I/O (parameter) Meaning Type Default Type Attribute Valid values STEP_T Setpoint for step run time DInt in seconds UBA_ID Batch ID DWord UBA_NAME Batch name String[32] ‘‘ ULOOP_I Number of step Word activations (for loops) USTAT_L Status word input DWord...
BATCH interface blocks 2.2 IEOP IEOP 2.2.1 IEOP: Equipment Operation - BATCH Interface IEOP: Technical operation - BATCH Interface Object name (type + number) FB 253 (Page 27) Calling OBs The OB in which you install the block (for example, OB1). Function The IEOP block is used when complex functions must be implemented in the automation system and these are to be executed in the BATCH recipe as a recipe operation step.
Page 22
BATCH interface blocks 2.2 IEOP The block allows the following status changes: Operating principle ● Allocate / Enable A recipe step can occupy the block by setting the identifier OCCUPIED = 1. It also enters an occupied information based on the batch name, batch number, the step number (UBA_NAME, UBA_ID, USTEP_NO) and, if necessary, the step monitoring time (STEP_T).
Page 23
BATCH interface blocks 2.2 IEOP ● Status word The reaction to user input is signaled at the USTAT_L status input of the user block which is interconnected with the IEOP block. The status, including other block information, is returned at output QUSTAT_L and is monitored by BATCH. The bit assignment is synchronized with the assignment at the SFC_CTRL block.
Page 24
BATCH interface blocks 2.2 IEOP ● Continuous mode or bumpless changeover When operating in continuous mode, two recipe steps (time-based) successively use the same block without resetting this block between the steps. The block only reports the READY state at the end of the first cycle. BATCH then sets the status ID for continuous mode by setting input ICONT instead of terminating the block by setting ITERM.
Page 25
BATCH interface blocks 2.2 IEOP Allocation of the status words USTAT_L and QUSTAT_L Meaning Remark Set if IDLE the static state is "inactive" RUNNING the static state is "active" COMPLETED the static state is "completed" HELD the static state is "held" ABORTED the static state is "aborted"...
Page 26
BATCH interface blocks 2.2 IEOP Rules for setting the status bits ● Static states are of highest importance in BATCH. The transition states are optional. The RUNNING state may be activated directly after the IDLE state, for example. ● Only one static state and one transition state may be active simultaneously. Example: allowed: HELD on its own...
BATCH interface blocks 2.2 IEOP 2.2.2 I/Os of IEOP I/O of IEOP I/O (parameter) Meaning Type Default Type Attribute Valid values BA_EN BATCH - occupy enable Bool EPE_CONN Interconnection with IEPAR DInt blocks F_TYPE Name of the function type String[16] ‘‘...
Page 28
BATCH interface blocks 2.2 IEOP I/O (parameter) Meaning Type Default Type Attribute Valid values STEP_T Step runtime setpoint in DInt seconds UBA_ID Batch ID DWord UBA_NAME Batch name String[32] ‘‘ ULOOP_I Number of step activations Word (for loops) USTAT_L Status word input DWord USTEP_NO Step number in the recipe...
BATCH interface blocks 2.2 IEOP 2.2.3 Operator Control and Monitoring of IEOP Operator Control and Monitoring of IEOP The following table shows the assignment of the parameters of the IEOP block to the input/output fields of the corresponding faceplates for the following views: ●...
Page 30
BATCH interface blocks 2.2 IEOP Representation Input/output field User authorization Block parameters Batch "Status" display QUSTAT_L Buttons "T", "H", "B" Status in string, hexadecimal, and binary format Operation and display "Batch" Enable for BATCH BA_EN bit 18 Occupy OCCUPIED bit 24 Batch no.
Page 31
BATCH interface blocks 2.2 IEOP Using a template to create a batch faceplate Graphics Designer (WinCC-Explorer) provides a template for selecting batch faceplates in PCS 7 OS pictures. 1. Open the required process picture in Graphics Designer. 2. Open the "@Template_Batch.pdl" template file by selecting the File > Open command. 3.
BATCH interface blocks 2.3 TAG_COLL TAG_COLL 2.3.1 TAG_COLL: TAG_Collect - BATCH Interface TAG-COLL:TAG_Collect - BATCH Interface Object name (type + number) FB 252 (Page 33) Calling OBs The OB in which you install the block (for example, OB1). Function The block serves as a collector block for the IEPARs that are used in transition conditions in the BATCH recipe editor and that are not available as IEPAR in the IEPH.
BATCH interface blocks 2.3 TAG_COLL 2.3.2 I/Os of TAG_COLL I/Os of TAG_COLL I/O (parameter) Meaning Type Default Type Attribute EPE_CONN Interconnection with IEPAR DInt blocks F_TYPE Name of the process tag String[16] " type See also Overview of the Block Description (Page 5) SIMATIC BATCH Interface Blocks V7.1 Function Manual, 03/2009, A5E02171101-01...
BATCH interface blocks 2.4 IUNIT_BLOCK IUNIT_BLOCK 2.4.1 IUNIT_BLOCK: Unit Allocation - BATCH Interface IUNIT_BLOCK: Unit allocation - BATCH interface Object name (type + number) FB 251 (Page 38) Calling OBs The OB in which you install the block (for example, OB1). Funktion Using IUNIT_BLOCK, batch control coordinates the allocation of individual units to the active batches.
Page 35
BATCH interface blocks 2.4 IUNIT_BLOCK ● User status word The status word USER_STATUS can be set freely by other PCS7 applications. It is also available in PCS 7 OS as QUSER_STATUS. The status can be requested by the corresponding application programs on this OS. The status word may no be used by any user programs.
Page 36
BATCH interface blocks 2.4 IUNIT_BLOCK Definition of the Q_Status Meaning Remark Step control by operator Step control by transition Step control by operator and transition Step control by condition or transition Not used Not used Step control mode affects the phase level Step control mode affects the operation level Bits 8 to 15: Identical to RUP_STAT Reserved...
Page 37
BATCH interface blocks 2.4 IUNIT_BLOCK Batch messages Block parameters Value Event Message class Q_STATUS bit 24 Unit occupied Status message - AS Q_STATUS bit 24 Unit enabled Status message - AS Q_STATUS bit 25 Unit not enabled for batch Status message - AS Q_STATUS bit 25 Unit enabled for batch Status message - AS...
BATCH interface blocks 2.4 IUNIT_BLOCK 2.4.2 I/Os of IUNIT_BLOCK I/Os of UNIT_BLOCK I/O (parameter) Meaning Type Default Type Attribute Permitted values AS_OS_ERR Lifebeat Bool monitoring BA_EN BATCH occupied Bool enable FORMULA Formula String[32] "‘ ICTRL (not used) Byte LIFE Sign-of-life bit Bool (SP_COUNT is applied to VA_COUNT)
Page 39
BATCH interface blocks 2.4 IUNIT_BLOCK I/O (parameter) Meaning Type Default Type Attribute Permitted values VBA_NAME Batch name (output) String[32] " VRP_NAME Recipe name, version String[64] " See also Overview of the Block Description (Page 5) SIMATIC BATCH Interface Blocks V7.1 Function Manual, 03/2009, A5E02171101-01...
BATCH interface blocks 2.4 IUNIT_BLOCK 2.4.3 Operator Control and Monitoring of IUNIT_BLOCK Operating and Monitoring of IUNIT_BLOCK The following table shows the assignment of the parameters of the IUNIT_BLOCK block to the input/output fields of the corresponding faceplates for the following views: Unit allocations and phases.
Page 41
BATCH interface blocks 2.4 IUNIT_BLOCK Setting user authorizations Operator input can generally be enabled in the tab "Properties/Others" of the object properties of the IUNIT and IEPH/IEOP faceplates. ● Yes - the object can be operated in process mode. ● No- the object cannot be operated in process mode. In order to operate the object, the operator must additionally have the authorization.
Equipment Parameter Module IEPAR_BOOL 3.1.1 IEPAR_BOOL: Equipment Parameter Module for the Boolean Data Type IEPAR_BOOL: Equipment Parameter Module for the Boolean Data Type Object name (type + number) FB 256 (Page 44) Calling OBs The OB in which you install the block (for example, OB1). Function The block is used to set the setpoints and to acquire the process values of the BOOL data type (bit variable).
Equipment Parameter Module 3.1 IEPAR_BOOL 3.1.2 I/Os of IEPAR_BOOL I/O of IEPAR_BOOL I/O (parameter) Meaning Type Default Type Attributes OCM Valid values ACT_VAL Actual value Bool (input) EPE_CONN IEPH/IEOP DInt connection Q_SP_VAL Setpoint (output) Bool QACT_VAL Actual value Bool (output) SP_VAL Setpoint (input) Bool...
Equipment Parameter Module 3.2 IEPAR_DEST IEPAR_DEST 3.2.1 IEPAR_DEST: Equipment Parameter Module for the DEST Data Type IEPAR_DEST: Equipment Parameter Module for the DEST Data Type Object name (type + number) FB263 (Page 45) Calling OBs The OB in which you install the block (for example, OB1). Function The block is used to set the setpoints and to acquire the process values of the data type double integer for the target destination (location ID).
Equipment Parameter Module 3.3 IEPAR_DINT IEPAR_DINT 3.3.1 IEPAR_DINT: Equipment Parameter Module for the Double Integer Data Type IEPAR_DINT: Equipment Parameter Module for the Double Integer Data Type Object name (type + number) FB 255 (Page 47) Calling OBs The OB in which you install the block (for example, OB1). Function The block is used to set the setpoints and to acquire the process values of the data type double integer.
Equipment Parameter Module 3.3 IEPAR_DINT 3.3.2 I/Os of IEPAR_DINT I/Os of IEPAR_DINT I/O (parameter) Meaning Type Default Type Attribute ACT_VAL Actual value DInt (input) EPE_CONN IEPH/IEOP DInt connection LOWLIMIT Low limit DInt Q_SP_VAL Setpoint (output) DInt QACT_VAL Actual value DInt (output) SP_VAL Setpoint (input)
Equipment Parameter Module 3.4 IEPAR_ENUM IEPAR_ENUM 3.4.1 IEPAR_ENUM: Equipment Parameter Module for the ENUM Parameter Type IEPAR_ENUM: Equipment Parameter Module for the ENUM Parameter Type Object name (type + number) FB 259 (Page 48) Calling OBs The OB in which you install the block (for example, OB1). Function The block is used to set the setpoints and acquire the process values of enumerated data types, such as selection list and decoder.
Equipment Parameter Module 3.5 IEPAR_PI IEPAR_PI 3.5.1 IEPAR_PI: Equipment Parameter Module for Process Inputs IEPAR_PI: Equipment Parameter Module for Process Inputs Object name (type + number) FB 260 (Page 50) Calling OBs The OB in which you install the block (for example, OB1). Function The block is used to set the setpoints and acquire process values of input materials (quantity, material ID, batch ID of origin)
Equipment Parameter Module 3.5 IEPAR_PI 3.5.2 I/Os of IEPAR_PI I/Os of IEPAR_PI I/O (parameter) Meaning Type Default Type Attribute Valid values ACT_VAL Actual value Real (input) BA_ID_AC Actual value batch DInt ID (input) BA_ID_SP Batch ID setpoint DInt (input) EPE_CONN IEPH/IEOP DInt connection...
Equipment Parameter Module 3.6 IEPAR_PO IEPAR_PO 3.6.1 IEPAR_PO: Equipment Parameter Module for Process Outputs IEPAR_PO: Equipment Parameter Module for Process Outputs Object name (type + number) FB 261 (Page 52) Calling OBs The OB in which you install the block (for example, OB1). Function The block is used to set the setpoints and collect the process values of main, secondary, intermediate and waste products (quantity, material, batch ID of origin).
Equipment Parameter Module 3.6 IEPAR_PO 3.6.2 I/Os of IEPAR_PO I/Os of IEPAR_PO I/O (parameter) Meaning Type Default Type Attribute Valid values ACT_VAL Actual value Real (input) BA_ID_AC Actual value batch DInt ID (input) BA_ID_SP Batch ID setpoint DInt (input) EPE_CONN IEPH/IEOP DInt connection...
Equipment Parameter Module 3.7 IEPAR_REAL IEPAR_REAL 3.7.1 IEPAR_REAL: Equipment Parameter Module for the Real Data Type IEPAR_REAL: Equipment Parameter Module for the Real Data Type Object name (type + number) FB 257 (Page 54) Calling OBs The OB in which you install the block (for example, OB1). Function The block is used to set the setpoints and to acquire the process values of the data type real.
Equipment Parameter Module 3.7 IEPAR_REAL 3.7.2 I/Os of IEPAR_REAL I/Os of IEPAR_REAL I/O (parameter) Meaning Type Default Type Attribute Valid values ACT_VAL Actual value Real (input) EPE_CONN IEPH/IEOP DInt connection LOWLIMIT Low limit Real LOWLIMIT < UPLIMIT Q_SP_VAL Setpoint (output) Real QACT_VAL Actual value...
Equipment Parameter Module 3.8 IEPAR_SOURCE IEPAR_SOURCE 3.8.1 IEPAR_SOURCE: equipment parameter module for the SOURCE data type IEPAR_SOURCE: equipment parameter module for the SOURCE data type Object name (type + number) FB 262 (Page 56) Calling OBs The OB in which you install the block (for example, OB1). Function The block is used to set the setpoints and to acquire the process values of the data type double integer for the source destination (location ID).
Equipment Parameter Module 3.8 IEPAR_SOURCE 3.8.2 I/Os of IEPAR_SOURCE I/Os of IEPAR_SOURCE I/O (parameter) Meaning Type Default Type Attribute Valid values ACT_VAL Actual value DInt (input) EPE_CONN IEPH/IEOP DInt connection Q_SP_VAL Setpoint (output) DInt QACT_VAL Actual value DInt (output) SP_VAL Setpoint (input) DInt See also...
Equipment Parameter Module 3.9 IEPAR_STR IEPAR_STR 3.9.1 IEPAR_STR: equipment parameter module for the STRING parameter type IEPAR_STR: equipment parameter module for the STRING parameter type Object name (type + number) FB 258 (Page 58) Calling OBs The OB in which you install the block (for example, OB1). Function The block is used to set setpoints and collect process values of the string parameter type.
Equipment Parameter Module 3.10 IEPAR_TKEY 3.10 IEPAR_TKEY 3.10.1 IEPAR_TKEY: equipment parameter module for the TKEY data type IEPAR_TKEY: equipment parameter module for the TKEY data type Note This block is reserved for future extensions. Please do not use this block. Object name (type + number) FB 265 (Page 60) Calling OBs...
Equipment Parameter Module 3.10 IEPAR_TKEY 3.10.2 I/Os of IEPAR_TKEY I/Os of IEPAR_TKEY I/O (parameter) Meaning Type Default Type Attribute Valid values EPE_CONN IEPH/IEOP DInt connection SP_TSN Transfer Set Name DInt from Batch SP_TID Transfer ID from STRING ‘’ Batch SP_TC Transfer Counter DInt from Batch...
Equipment Parameter Module 3.11 IEPAR_VIA 3.11 IEPAR_VIA 3.11.1 IEPAR_VIA: equipment parameter module for the VIA data type IEPAR_VIA: equipment parameter module for the VIA data type Object name (type + number) FB 264 (Page 62) Calling OBs The OB in which you install the block (for example, OB1). Function The block is used to set the setpoints and to acquire the process values of the data type double integer for the via destination (location ID).
Equipment Parameter Module 3.11 IEPAR_VIA 3.11.2 I/Os of IEPAR_VIA I/Os of IEPAR_VIA I/O (parameters) Meaning Type Default Type Attribute Valid values ACT_VAL Actual value DInt (input) EPE_CONN IEPH/IEOP DInt connection Q_SP_VAL Setpoint (output) DInt QACT_VAL Actual value DInt (output) SP_VAL Setpoint (input) DInt See also...
Index I/Os, 47 Operating principle, 46 IEPAR_ENUM Equipment parameter module for parameter type General information on the block description, 5 ENUM, 48 Calling OBs, 6 Function, 48 Error handling, 6 I/Os, 48 Function, 5 Operating principle, 48 I/Os, 7 IEPAR_PI Object name, 5 Equipment parameter module for process inputs, 49 OCM, 8...
Page 64
Index Function, 61 Creating a Batch faceplate, 41 I/Os, 62 Function, 34 Operating principle, 61 I/Os, 38 IEPH: Operating and monitoring, 40 Allocation of ICTRL, 12 Operating principle, 34 Allocation of the status words USTAT_L and Q_Status, 36 QUSTAT_L, 13 Setting user authorizations, 41 Batch messages, 15 Unit allocation - BATCH interface, 34...