Siemens SIMATIC PCS 7 Function Manual
Siemens SIMATIC PCS 7 Function Manual

Siemens SIMATIC PCS 7 Function Manual

Process control system, simatic batch blocks v8.1
Hide thumbs Also See for SIMATIC PCS 7:
Table of Contents

Advertisement

SIMATIC
Process Control System PCS 7
SIMATIC BATCH blocks V8.1
Function Manual
09/2014
A5E32335968-AA
Interface blocks
System blocks
Feedback
1
2
3

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC PCS 7

  • Page 1 Interface blocks System blocks Feedback SIMATIC Process Control System PCS 7 SIMATIC BATCH blocks V8.1 Function Manual 09/2014 A5E32335968-AA...
  • Page 2 Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
  • Page 3: Table Of Contents

    Table of contents Interface blocks............................7 General information on the block description................7 BATCH interface blocks......................10 1.2.1 IEPH............................10 1.2.1.1 IEPH: Equipment Phase - BATCH Interface................10 1.2.1.2 I/Os of IEPH..........................15 1.2.1.3 IEPH message texts and associated values................17 1.2.1.4 Operator Control and Monitoring of IEPH...................19 1.2.2 IEOP............................21 1.2.2.1...
  • Page 4 Table of contents 1.3.5 IEPAR_PI............................62 1.3.5.1 IEPAR_PI: Equipment Parameter Module for Process Inputs.............62 1.3.5.2 I/Os of IEPAR_PI.........................62 1.3.6 IEPAR_PO...........................63 1.3.6.1 IEPAR_PO: Equipment Parameter Module for Process Outputs..........63 1.3.6.2 I/Os of IEPAR_PO........................64 1.3.7 IEPAR_REAL..........................65 1.3.7.1 IEPAR_REAL: Equipment Parameter Module for the Real Data Type........65 1.3.7.2 I/Os of IEPAR_REAL........................65 1.3.8...
  • Page 5 Table of contents 2.2.24 RPEPrepareOccupy........................81 2.2.25 RPEPrepareToCmpl........................82 2.2.26 RPESetCW..........................82 2.2.27 RPESetLinkCW...........................82 2.2.28 RPHControl..........................83 2.2.29 RPHGetAllRef..........................83 2.2.30 RPHGetAllSP..........................83 2.2.31 RPHGetRef..........................84 2.2.32 RPHSetRef..........................84 2.2.33 TagCollGetHeader........................84 2.2.34 TransBCSControl........................85 2.2.35 TransControl..........................85 2.2.36 TransGetAllPin..........................85 2.2.37 TransGetPin..........................85 2.2.38 TransGetPinOper........................86 2.2.39 TransGetPinVal...........................86 2.2.40 TransGetVal..........................86 2.2.41 TransSetGateVal.........................87 2.2.42 UnitParamControl........................87 Feedback..............................89 Your opinion of the online help....................89...
  • Page 7: Interface Blocks

    Interface blocks General information on the block description Introduction The block descriptions always organized in the following form: ● Overview of the block description ● Object name (class + number) ● Function ● Operating principle ● Calling OBs ● Error handling ●...
  • Page 8 Interface blocks 1.1 General information on the block description Calling OBs 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 9 Interface blocks 1.1 General information on the block description ● I/O Name of the parameter derived from the English name. Example: PV_IN = Process Variable INput (process variable, control variable). As far as permitted by SIMATIC conventions, the same names were used. ●...
  • Page 10: Batch Interface Blocks

    Interface blocks 1.2 BATCH interface blocks Permitted values Valid limit within the range of values of the data type. Operating control and monitoring of ... If an OS block exists for the PLC block, the fields on the faceplate are described in the table. BATCH interface blocks 1.2.1 IEPH...
  • Page 11 Interface blocks 1.2 BATCH interface blocks Legend for image Object in image Meaning Closed objects Final state Dashed objects Intermediate state Several arrows at one object Transition is possible from all active states except from "Idle" and "Completed" states. Arrows without text Automatic state transitions Arrows with text in capital letters State transitions by command, e.g., ABORT...
  • Page 12 Interface blocks 1.2 BATCH interface blocks 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 13 Interface blocks 1.2 BATCH interface blocks ● 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 14 Interface blocks 1.2 BATCH interface blocks Meaning Remark Set if STOPPED Static state is "stopped" Free Free STARTING Transient state is "starting" RESUMING Transient state is "resuming" COMPLETING Transient state is "completing" HOLDING Transient state is "holding" ABORTING Transient state is "aborting" STOPPING Transient state is "stopping"...
  • Page 15: I/Os Of Ieph

    Interface blocks 1.2 BATCH interface blocks Note Exception: The READY state may be generated at another static state if the IREADY input is used. ● A group error (bit 31) may be set in addition to any other state. ● The corresponding USTAT_L bit does not have to be set for entries in the "set if" column. Batch messages The associated values are occupied by the block as follows: Associated value 1 = batch name...
  • Page 16 Interface blocks 1.2 BATCH interface blocks I/O (parameter) Meaning Type Default Attribute Valid values F_TYPE Name of the phase type String[16] ‘‘ IABORT Operator input: Abort Bool ICONT Sets the CONTINUOUS Bool ID in the status word ICTRL Control word for control DWord inputs IHOLD...
  • Page 17: Ieph Message Texts And Associated Values

    Interface blocks 1.2 BATCH interface blocks I/O (parameter) Meaning Type Default Attribute Valid values USTEP_NO Step number in the recipe DWord VBA_ID Copy of UBA_ID DWord VBA_NAME Copy of UBA_NAME String[32] ‘‘ VLOOP_I Copy of ULOOP_I Word VSTEP_NO Copy of USTEP_NO DWord See also General information on the block description (Page 7)
  • Page 18 Interface blocks 1.2 BATCH interface blocks Message no. Block parameters Predefined Message class Can be suppressed by MSG_EVID_2 message text NOT BA_EN Function not enabled AS status (Status for BATCH Message) Q_STEP_T > STEP_T Function runtime AS status (Status exceeded Message) No message QUSTAT_L AND...
  • Page 19: Operator Control And Monitoring Of Ieph

    Interface blocks 1.2 BATCH interface blocks Associated value Block parameters AUX_PR09 AUX_PR10 1.2.1.4 Operator Control and Monitoring of IEPH Operating and monitoring 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 20 Interface blocks 1.2 BATCH interface blocks Representation Input/output field User authorization Block parameters Step no. VSTEP_NO Step time STEP_T Number of loops VLOOP_I Average number of steps Q_STEP_T Setpoints Enable for BATCH BA_EN bit 18 Tabular display of setpoints, for example, Each row of the list box setpoint, actual value, unit and parameter represents an IEPAR_ block...
  • Page 21: Ieop

    Interface blocks 1.2 BATCH interface blocks Result: You have successfully installed the "IEPH" block icon for calling the corresponding faceplate in the process picture you edited. 1.2.2 IEOP 1.2.2.1 IEOP: Equipment operation - BATCH interface Object name (class + number) FB 253 Calling OBs The OB in which you install the block (for example, OB1).
  • Page 22 Interface blocks 1.2 BATCH interface blocks Legend for image Object in image Meaning Closed objects Final state Dashed objects Intermediate state Many arrows at one state object Transition is possible from all active states except from "Idle" and "Completed" states. Arrows without text Automatic state transitions Arrows with text in capital letters...
  • Page 23 Interface blocks 1.2 BATCH interface blocks 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 24 Interface blocks 1.2 BATCH interface blocks ● 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 25 Interface blocks 1.2 BATCH interface blocks Meaning Remark Set if Free Free STARTING Transient state is "starting" RESUMING Transient state is "resuming" COMPLETING Transient state is "completing" HOLDING Transient state is "holding" ABORTING Transient state is "aborting" STOPPING Transient state is "stopping" Free Reserved (for SFC: Manual/Automatic mode requested)
  • Page 26 Interface blocks 1.2 BATCH interface blocks Note Exception: The READY state may be set additive at another static state if the IREADY input is used. ● A group error (bit 31) may be set in addition to any other state. ●...
  • Page 27: I/Os Of Ieop

    Interface blocks 1.2 BATCH interface blocks 1.2.2.2 I/Os of IEOP I/Os 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 phase type String[16] ‘‘ IABORT Control input: Abort Bool...
  • Page 28: Ieop Message Texts And Associated Values

    Interface blocks 1.2 BATCH interface blocks 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...
  • Page 29 Interface blocks 1.2 BATCH interface blocks Message no. Block parameters Predefined Message class Can be suppressed by MSG_EVID_2 message text NOT BA_EN Operation not AS status (Status enabled for BATCH Message) Q_STEP_T > STEP_T Operation runtime AS status (Status exceeded Message) No message QUSTAT_L AND 0x80000000...
  • Page 30: Operator Control And Monitoring Of Ieop

    Interface blocks 1.2 BATCH interface blocks Associated value Block parameters AUX_PR09 AUX_PR10 1.2.2.4 Operator Control and Monitoring of IEOP Operator control and monitoring 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 31 Interface blocks 1.2 BATCH interface blocks Representation Input/output field User authorization Block parameters Batch name VBA_NAME Step no. VSTEP_NO Step time STEP_T Number of loops VLOOP_I Average number of steps Q_STEP_T Setpoints Enable for BATCH BA_EN bit 18 Tabular display of setpoints: Each row of the list box For example, the setpoint, represents an IEPAR_ block...
  • Page 32: Tag_Coll

    Interface blocks 1.2 BATCH interface blocks 7. Click "Continue" in the Dynamic Wizard, and then click the search function "...". 8. The variable selection dialog displays all instantiated blocks. Select the required block, and then click OK > Continue > Finish. Result: You have successfully installed the "IEOP"...
  • Page 33: Unit_Plc

    Interface blocks 1.2 BATCH interface blocks See also General information on the block description (Page 7) 1.2.4 UNIT_PLC 1.2.4.1 UNIT_PLC: Unit allocation - BATCH interface Object name (class + number) FB 266 (Page 44) Calling OBs The OB in which you install the block (for example, OB 32). Function Using UNIT_PLC block, batch control coordinates the allocation of individual units to the active batches.
  • Page 34: Occupy And Release

    Interface blocks 1.2 BATCH interface blocks Event Message class L_ICTRL command, e.g. ISA 88 command, activated for STEP_NO: Batch step Status message - AS number L_ICTRL command, "e.g. ISA 88 command", not permitted for STEP_NO: Batch Status message - AS step number See also Operating and Monitoring of UNIT_PLC (Page 52)
  • Page 35: Status Word

    Interface blocks 1.2 BATCH interface blocks See also UNIT_PLC: Unit allocation - BATCH interface (Page 33) 1.2.4.3 Status Word Operating principle The status of UNIT_PLC is entered in the Q_STATUS status word and is monitored by BATCH. Definition of the Q_Status Meaning Remark Step control by operator...
  • Page 36: User Status Word

    Interface blocks 1.2 BATCH interface blocks Meaning Remark Free Free OCCUPIED UNIT_PLC is allocated BA_EN Enabled for BATCH PEND_OOS Pending out of Service; BA_EN = 0 is set at the earliest opportunity (allocation is canceled). Free Free Free Free ERROR Group error See also UNIT_PLC: Unit allocation - BATCH interface (Page 33)
  • Page 37: Command Interface For Rpes In A Unit

    Interface blocks 1.2 BATCH interface blocks 1.2.4.6 Command interface for RPEs in a unit Note The following functionality is only supported in AS-based mode. "L_ICTRL" / "L_ICTRL_STEP_NO" and "OS_ICTRL" / "OS_ICTRL_STEP_NO" operating principle Use the interface to set an ISA-88 command at an RPE in the associated unit that is currently being processed by the block "UNIT_PLC".
  • Page 38: Command Interface To Influence The Entire Unit

    Interface blocks 1.2 BATCH interface blocks Table for inputs "L_ICTRL" or "OS_ICTRL" The ISA-88 commands are transferred with the values stated in the table. ISA-88 command Value No command Start Stop Abort Hold (immediately) Reset (not possible for TRP) Resume Complete Pause (after step) See also...
  • Page 39: Settings For Communication Monitoring And Communication Buffer

    Interface blocks 1.2 BATCH interface blocks Name Data type Comment RPE status BYTE RPE_STATE_UNDEFINED = 0 RPE_STATE_EDITED= 1 RPE_STATE_IDLE= 2 RPE_STATE_STARTING = 3 RPE_STATE_RUNNING = 4 RPE_STATE_READY = 5 RPE_STATE_COMPLETING = 6 RPE_STATE_COMPLETED = 7 RPE_STATE_CONTINUE = 8 RPE_STATE_ABORTED = 9 RPE_STATE_ABORTING = 10 RPE_STATE_STOPPED = 11 RPE_STATE_STOPPING = 12...
  • Page 40 Interface blocks 1.2 BATCH interface blocks If VA_COUNT = 0, the monitoring time has elapsed; in other words, there is no contact to the PCS 7 OS or batch control. If LIFE = TRUE, monitoring is restarted at SP_COUNT. Note Time monitoring is active only when the unit is occupied by a batch.
  • Page 41: Eqm Db Consistency Check

    Interface blocks 1.2 BATCH interface blocks & ≥ See also UNIT_PLC: Unit allocation - BATCH interface (Page 33) 1.2.4.9 EQM DB consistency check Operating principle The EQM DB will be checked for consistency every time it is loaded to the AS. If the data in the EQM DB are inconsistent, the unit will be locked (block input "BA_EN"...
  • Page 42 Interface blocks 1.2 BATCH interface blocks Correcting the inconsistency Note The following function is reserved for service technicians. ● Trigger: Proceed as follows when adding new recipe functions or setpoints to release the unit to continue its batch. ● Trigger: Deleting existing recipe functions or setpoints that are not to be used any longer when continuing the batch (no longer present in recipe).
  • Page 43: Recipe Processing

    Interface blocks 1.2 BATCH interface blocks 1.2.4.10 Recipe processing Operating principle ● Recipe processing Each UNIT_PLC block manages exactly one unit in the AS. This block is the central block for batch control. Every ROP, RF or transition in the assigned unit is checked by this block and the specifications for further processing steps are defined.
  • Page 44: Unit_Plc Connectors

    Interface blocks 1.2 BATCH interface blocks While a recipe is being processed, it is possible to transfer diagnostic messages from a block to the BATCH Server. You turn on the diagnostic messages with the two block inputs "DebugTrace" and "TraceSTEP_NO". Note Use of this function will make high demands on recipe processing as well as system performance.
  • Page 45 Interface blocks 1.2 BATCH interface blocks I/O (parameter) Meaning Type Default Class Attribute OCM Permitted values BA_INFO BATCH data Struct structure CmdPropagation Predefinition for Hold HOLD, command RESUME, ABORT, STOP, COMPLET CopyEQMDB Copies Bool EQM_DB to IDB 1= Called block Bool is processed EN_LinkedUnitStatu...
  • Page 46 Interface blocks 1.2 BATCH interface blocks I/O (parameter) Meaning Type Default Class Attribute OCM Permitted values LIFE Lifebeat Bool bit (SP_COUNT is applied to VA_COUNT) MAT_NAME Material name String[ " MAT_SP Material ID of String[ " the batch product MSG_OR Trigger operator Bool prompt...
  • Page 47 Interface blocks 1.2 BATCH interface blocks I/O (parameter) Meaning Type Default Class Attribute OCM Permitted values QAvgRecProcTime Average time Time needed for batch control in the AS (per execution cycle) Q_ERRContRunTim At least one BOOL RUP / ROP / SUB has violated the monitoring time limit.
  • Page 48 Interface blocks 1.2 BATCH interface blocks I/O (parameter) Meaning Type Default Class Attribute OCM Permitted values URP_REL Recipe version String[ " USER_STATUS Free for use Word by PCS 7 programs USTAT_PRIO (not used) Byte VA_COUNT Actual Value: Lifebeat interval (counts down to 0) VBA_ID Batch ID...
  • Page 49 Interface blocks 1.2 BATCH interface blocks Error code Meaning The phase (EPH) is already allocated The EPH command has not been run A buffer needed for the batch process is too small The EQM data block contains invalid entries The event buffer is full System parameters The following system parameters must not be changed by the user.
  • Page 50: Unit_Plc Message Texts And Associated Values

    Interface blocks 1.2 BATCH interface blocks I/O (parameter) Meaning Type Default Attributes Permitted values Max_CycleRun Time limitation Time 25 ms for batch control in the AS (per processing cycle) PLCRecipeExecuti Unit release for Bool batch control in the AS MissingDBCount Consistency check: Instance data block...
  • Page 51 Interface blocks 1.2 BATCH interface blocks Message no. Block Predefined Message Can be suppressed MSG_EVID_1 parameters message text class PEND_OOS Unit registered for AS status maintenance (Status Message) Q_STATUS AND Unit error Process control 0x80000000 = 0x80000000 system message F (Fault) MSG_OR BATCH operator input...
  • Page 52: Operating And Monitoring Of Unit_Plc

    Interface blocks 1.2 BATCH interface blocks Associated value Block parameter BA_ID AUX_PR04 AUX_PR05 AUX_PR06 AUX_PR07 AUX_PR08 AUX_PR09 AUX_PR10 Assigning the associated values to the block parameters MSG_EVID_2 Associated value Block parameter BA_NA STEP_NO BA_ID CmdPropagString Max_CycleRun (ProcessCurrentTime - ProcessStartTime) L_ICTRL_STEP_NO AUX_PR08 AUX_PR09 AUX_PR10...
  • Page 53 Interface blocks 1.2 BATCH interface blocks Unit The "Unit" views displays data for the corresponding unit. You operate and monitor the corresponding unit here. Input/output field Block parameter Comment "Name" display UNIT_NAME "Status" display QUSTAT_L "Release for BATCH" check box BA_EN Bit 25 "Allocate"...
  • Page 54 Interface blocks 1.2 BATCH interface blocks Input/output field Block parameter Comment Formula FORMULA Formula version FORMULA_REL "BatchCC" button To open the control recipe window in BatchCC. BATCH Runtime must be started. Functions The "Functions" view displays all equipment phases of this unit in a table. Each equipment phase is arranged in a table row.
  • Page 55 Interface blocks 1.2 BATCH interface blocks Setting user authorizations Operator input can generally be enabled in the tab "Properties/Others" of the object properties of the UNIT_PLC and IEPH/IEOP faceplates. ● Yes - the object can be operated in process mode. ●...
  • Page 56 Interface blocks 1.2 BATCH interface blocks Unit status display by means of colored bar in the UNIT_PLC faceplate Note The following functionality is only supported in AS-based mode. In the PCS 7 OS, the status of a unit is indicated by means of a colored bar in the UNIT_PLC faceplate.
  • Page 57: Equipment Parameter Module

    Interface blocks 1.3 Equipment Parameter Module Equipment Parameter Module 1.3.1 IEPAR_BOOL 1.3.1.1 IEPAR_BOOL: Equipment Parameter Module for the Boolean Data Type Object name (type + number) FB 256 (Page 57) 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).
  • Page 58: Iepar_Dest

    Interface blocks 1.3 Equipment Parameter Module 1.3.2 IEPAR_DEST 1.3.2.1 IEPAR_DEST: Equipment Parameter Module for the DEST Data Type Object name (type + number) FB263 (Page 58) 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).
  • Page 59: Iepar_Dint

    Interface blocks 1.3 Equipment Parameter Module 1.3.3 IEPAR_DINT 1.3.3.1 IEPAR_DINT: Equipment Parameter Module for the Double Integer Data Type Object name (type + number) FB 255 (Page 59) 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.
  • Page 60: Iepar_Enum

    Interface blocks 1.3 Equipment Parameter Module 1.3.4 IEPAR_ENUM 1.3.4.1 IEPAR_ENUM: Equipment Parameter Module for the ENUM Parameter Type Object name (type + number) FB 259 (Page 61) Calling OBs The OB in which you install the block (for example, OB 32). Function The block is used to set the setpoints and acquire the actual values of enumeration types.
  • Page 61: I/Os Of Iepar_Enum

    Interface blocks 1.3 Equipment Parameter Module Figure 1-1 Assign enumeration type Operating principle The setpoints activated at the inputs are transferred to the outputs. 1.3.4.2 I/Os of IEPAR_ENUM I/Os I/O (parameter) Meaning Type Default Type Attribute Valid values ACT_VAL Actual value DInt (input) ENUM...
  • Page 62: Iepar_Pi

    Interface blocks 1.3 Equipment Parameter Module See also General information on the block description (Page 7) 1.3.5 IEPAR_PI 1.3.5.1 IEPAR_PI: Equipment Parameter Module for Process Inputs Object name (type + number) FB 260 (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 acquire process values of input materials (quantity, material ID, batch ID of origin)
  • Page 63: Iepar_Po

    Interface blocks 1.3 Equipment Parameter Module I/O (parameter) Meaning Type Default Type Attribute Valid values Q_SP_VAL Setpoint (output) Real QACT_VAL Actual value Real (output) QBAID_AC Batch ID actual DInt value (output) QBAID_SP Batch ID setpoint DInt (output) QMAT_ACT Material actual String[16] ‘‘...
  • Page 64: I/Os Of Iepar_Po

    Interface blocks 1.3 Equipment Parameter Module 1.3.6.2 I/Os of IEPAR_PO I/Os I/O (parameter) Meaning Type Default Type Attribute Valid values ACT_VAL Actual value (input) Real BA_ID_AC Batch ID actual DInt value (input) BA_ID_SP Batch ID setpoint DInt (input) EPE_CONN IEPH/IEOP DInt connection LOWLIMIT...
  • Page 65: Iepar_Real

    Interface blocks 1.3 Equipment Parameter Module 1.3.7 IEPAR_REAL 1.3.7.1 IEPAR_REAL: Equipment Parameter Module for the Real Data Type Object name (type + number) FB 257 (Page 65) 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.
  • Page 66: Iepar_Source

    Interface blocks 1.3 Equipment Parameter Module 1.3.8 IEPAR_SOURCE 1.3.8.1 IEPAR_SOURCE: equipment parameter module for the SOURCE data type Object name (type + number) FB 262 (Page 66) 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).
  • Page 67: Iepar_Str

    Interface blocks 1.3 Equipment Parameter Module 1.3.9 IEPAR_STR 1.3.9.1 IEPAR_STR: equipment parameter module for the STRING parameter type Object name (type + number) FB 258 (Page 67) 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.
  • Page 68: Iepar_Via

    Interface blocks 1.3 Equipment Parameter Module I/O (parameter) Meaning Type Default Attribute Valid values QACT_VAL Actual value String[16] ‘‘ (output) QRESULT Result bit Bool SP_ON_ERR Value returned if DInt the STRING => DInt conversion has failed SP_VAL Setpoint (input) String[16] ‘‘...
  • Page 69: I/Os Of Iepar_Via

    Interface blocks 1.3 Equipment Parameter Module 1.3.10.2 I/Os of IEPAR_VIA I/Os I/O (parameter) Meaning Type Default Type Attribute Valid values ACT_VAL Actual value (input) DInt 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 General information on the block description (Page 7)
  • Page 71: System Blocks

    System blocks Function blocks 2.1.1 RecipeControl RecipeControl: Runtime-system block Object name (class + number) FB 267 Function This internal system block is called by UNIT_PLC and controls units and recipe operations. 2.1.2 MemIDB64 MemID64: Runtime-system block Object name (class + number) FB 273 Function This internal system block provides a 64 KB buffer for internal data management.
  • Page 72: Eventsend Installation

    System blocks 2.1 Function blocks Calling OBs The block will be created by the SIMATIC BATCH configuration dialog in OB 35. Function The internal system block manages RPE events and is responsible for communication between AS and BCS. Batch messages Event Message class Communication error to BCS...
  • Page 73: Collect Eventsend Rpe Events And Communication With Bcs

    System blocks 2.1 Function blocks Note You can only use one instance of the block in the AS. 2.1.3.3 Collect EventSend RPE events and communication with BCS Event management and communication with SIMATIC BATCH server All RPE events saved in the "UNIT_PLC" block in the send buffer of the OB (implemented as instances of the "MenID64"...
  • Page 74: Eventsend Diagnostic Messages

    System blocks 2.2 Function calls Output Comment SNDBuf1State 2) Status: ● 0=EMPTY ● 1=WRITING ● 2=RDYTOSEND ● 3=SENDING ● 4=WAITFORACK SNDBuf1_FILL 2) Used buffer memory in % 2) Example for send buffer 1 You can monitor the communication status of the BSEND / BRCV block via the following outputs: Output Comment...
  • Page 75: Checkeqmdb

    System blocks 2.2 Function calls Object name (class + number) FC 190 Function This internal system function calls a function block outside of the standard processing cycle. 2.2.2 CheckEQMDB CheckEQMDB: Runtime-system block Object name (class + number) FC 192 Function This internal system function checks whether the EQM DB is present and, if so, whether it is valid.
  • Page 76: Commspdatatodb

    System blocks 2.2 Function calls Object name (class + number) FC 211 Function This internal function creates a data record with current status information and adds it to the system list. 2.2.5 CommSPDataToDB CommSPDataToDB: Runtime-system block Object name (class + number) FC 212 Function This internal function determines a setpoint and adds it to a status data record.
  • Page 77: Contpropagateref

    System blocks 2.2 Function calls Function This internal system function returns the status word of a recipe element (a recipe operation or recipe phase, for example). 2.2.8 ContPropagateRef ContPropagateRef: Runtime-system block Object name (class + number) FC 213 Function This internal function passes a reference value of a recipe operation on to an upstream recipe operation.
  • Page 78: Debugtrace

    System blocks 2.2 Function calls 2.2.11 DebugTrace DebugTrace: Runtime-system block Object name (class + number) FC 214 Function The function will be activated via the inputs of the UNIT_PLC block. Each time the function is called, a diagnostic message (sequence tracking) is saved in a send buffer. 2.2.12 EPARGet EPARGet: Runtime-system block...
  • Page 79: Ephgetsw

    System blocks 2.2 Function calls Object name (class + number) FC 184 Function This internal system function uses the EQM DB to determine the setpoint list and the management data required by it for an equipment phase. 2.2.15 EPHGetSW EPHGetSW: Runtime-system block Object name (class + number) FC 187 Function...
  • Page 80: Lookup_Id

    System blocks 2.2 Function calls Function This internal system function writes S88 commands to an equipment phase and calls this equipment phase outside of the processing cycle. 2.2.18 LookUp_ID LookUp_ID: Runtime-system block Object name (class + number) FC 182 Function This internal function determines elements within a list based on a defined parameter.
  • Page 81: Rpegetsp

    System blocks 2.2 Function calls 2.2.21 RPEGetSP RPEGetSP: Runtime-system block Object name (class + number) FC 195 Function This internal function returns the setpoints determined (see RPEGetSPList). 2.2.22 RPEGetSPList RPEGetSPList: Runtime-system block Object name (class + number) FC 194 Function This internal function uses the setpoint DB to determine setpoints.
  • Page 82: Rpepreparetocmpl

    System blocks 2.2 Function calls Function This function is called by RecipeControl and occupies a recipe element. If the recipe element is a unit or a recipe operation, all associated recipe elements are also occupied. 2.2.25 RPEPrepareToCmpl RPEPrepareToCmpl: Runtime-system block Object name (class + number) FC 209 Function...
  • Page 83: Rphcontrol

    System blocks 2.2 Function calls Function This internal function sets an SA 88 command which was transferred to the inputs "L_ICTRL" or "OS_ICTRL" at a recipe procedure element. The recipe procedure element is defined by the inputs "L_ICTRL_STEP_NO" or "OS_ICTRL_STEP_NO". 2.2.28 RPHControl RPHControl: Runtime-system block...
  • Page 84: Rphgetref

    System blocks 2.2 Function calls Function This internal function copies the recipe phase setpoints from the setpoint DB to the equipment phase. 2.2.31 RPHGetRef RPHGetRef: Runtime-system block Object name (class + number) FC 315 Function This internal function returns reference values and their lengths for units and recipe operations. 2.2.32 RPHSetRef RPHSetRef: Runtime-system block...
  • Page 85: Transbcscontrol

    System blocks 2.2 Function calls 2.2.34 TransBCSControl TransBCSControl: Runtime-system block Object name (class + number) FC 220 Function This internal system block is called by ContControl and controls transitions. The block starts and executes transitions. If a transition is "true" (i.e. the status is sent by the BCS), the status first changes to "ready to complete"...
  • Page 86: Transgetpinoper

    System blocks 2.2 Function calls Object name (class + number) FC 201 Function This internal function returns the individual transition conditions (both operands and the associated condition) of a transition. 2.2.38 TransGetPinOper TransGetPinOper: Runtime-system block Object name (class + number) FC 202 Function This internal function cancels transition conditions and returns the current operand (constant...
  • Page 87: Transsetgateval

    System blocks 2.2 Function calls Function This internal function cancels transition conditions. 2.2.41 TransSetGateVal TransSetGateVal: Runtime-system block Object name (class + number) FC 205 Function This internal function compares the binary input values of one logic with the result value of the previous logic.
  • Page 89: Feedback

    Feedback Your opinion of the online help We want to make our products even more user-friendly and would be grateful for your support. Your comments and suggestions help us the improve the quality and usability of our products. Please take a few minutes to fill in this questionnaire and return is by fax, e-mail or by post. Your opinion of the documentation SIMATIC BATCH blocks V8.1 Function Manual, 09/2014, A5E32335968-AA...
  • Page 91: Index

    Index EPARGet, 78 Feedback, 89 RPEEnumEleListCW, 80 Function, 33 Associated values, 17 General information on the block description, 7 Calling OBs, 8 Error handling, 8 Function, 7 I/Os, 8 Batch messages, 33 Object name, 7 Block parameters, 28 OCM, 9 Operating and monitoring, 10 Operating principle, 7 Permitted values, 10...
  • Page 92 Index IEPAR_DINT Batch messages, 15 Equipment parameter module for data type Equipment phase - BATCH interface, 10 Double Integer, 59 Function, 10 Function, 59 Message texts and message class, 17 I/Os, 59 Operating principle, 12 Operating principle, 59 Setting status bits, 14 IEPAR_ENUM IEPH: Equipment parameter module for parameter type...
  • Page 93 Index Settings of the communication buffer "RunAfterBufferFull", 40 START command, 37 TAG_COLL BATCH interface, 32 Function, 32 I/Os, 32 Operating principle, 32 TagCollGetHeader, 84 TransBCSControl, 85 TransControl, 85 TransGetAllPin, 85 TransGetPin, 85 TransGetPinOper, 86 TransGetPinVal, 86 TransGetVal, 86 TransSetGateVal, 87 Unit allocation - BATCH interface, 33 UNIT_PLC Function and operating principle, 33...

Table of Contents