220
Programming and Operating Manual Industrial Controls Function Block Library SIMOCODE pro for SIMATIC PCS 7 SIMOCODE pro PCS 7 Library V8.0 10/2013 Edition Answers for industry.

Manual Simocode Pro Pcs7 Library v80 en-US

Embed Size (px)

Citation preview

Page 1: Manual Simocode Pro Pcs7 Library v80 en-US

Programming and Operating Manual

Industrial ControlsFunction Block Library SIMOCODE pro for SIMATIC PCS 7SIMOCODE pro PCS 7 Library V8.0

10/2013Edition

Answers for industry.

Page 2: Manual Simocode Pro Pcs7 Library v80 en-US
Page 3: Manual Simocode Pro Pcs7 Library v80 en-US

SIMOCODE pro PCS 7 Library V8.0

___________________

___________________

___________________

___________________

___________________

___________________

___________________

___________________

___________________

Industrial Controls

SIMOCODE pro SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual

10/2013 A5E31625078002A/RS-AA/001

Introduction 1

Information about the library 2

Templates 3

Faceplate - Views 4

Description of the blocks 5

Driver generator 6

Parameter A

Technical Data B

Abbreviations C

Page 4: Manual Simocode Pro Pcs7 Library v80 en-US

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

3ZX1012-0CS16-2BC0 Ⓟ 10/2013 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Legal information Warning notice system

This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.

DANGER indicates that death or severe personal injury will result if proper precautions are not taken.

WARNING indicates that death or severe personal injury may result if proper precautions are not taken.

CAUTION indicates that minor personal injury can result if proper precautions are not taken.

NOTICE indicates that property damage can result if proper precautions are not taken.

If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.

Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.

Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.

Trademarks All names identified by ® are registered trademarks of 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.

Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Page 5: Manual Simocode Pro Pcs7 Library v80 en-US

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 5

Table of contents

1 Introduction................................................................................................................................... 9

1.1 Components of the software package ....................................................................................... 9

1.2 Installing the library .................................................................................................................. 9

1.3 Configuration steps ................................................................................................................ 10

1.4 Driver generator ..................................................................................................................... 10

1.5 Configuring in HW Config ....................................................................................................... 12

1.6 Configuring in SIMOCODE ES ............................................................................................... 15 1.6.1 Parameter settings ................................................................................................................. 16

1.7 Configuring of the fail-safe, digital PROFIsafe module ............................................................ 17

1.8 Configuration with SIMATIC PDM ........................................................................................... 18

1.9 Further documentation ........................................................................................................... 18

2 Information about the library ......................................................................................................... 19

2.1 Overview of the blocks ........................................................................................................... 19

2.2 Control functions .................................................................................................................... 19

2.3 Faceplates - Structure ............................................................................................................ 22

2.4 Block icons ............................................................................................................................. 25

2.5 Supported functions ............................................................................................................... 28 2.5.1 Maintenance Station ............................................................................................................... 28 2.5.2 Web Navigator ....................................................................................................................... 28

3 Templates .................................................................................................................................. 31

3.1 Overview of the templates, control functions and blocks ......................................................... 31

3.2 Using templates ..................................................................................................................... 32

3.3 Template OvlRly ..................................................................................................................... 35

3.4 Template Direct ...................................................................................................................... 35

3.5 Template Reverse .................................................................................................................. 36

3.6 Template MCCB ..................................................................................................................... 36

3.7 Template StarDel ................................................................................................................... 37

3.8 Template RevStarDel ............................................................................................................. 37

3.9 Template Dahland .................................................................................................................. 38

3.10 Template RevDahl.................................................................................................................. 38

3.11 Template PoleChng ................................................................................................................ 39

3.12 Template RevPoleCh ............................................................................................................. 39

Page 6: Manual Simocode Pro Pcs7 Library v80 en-US

Table of contents

SIMOCODE pro PCS 7 Library V8.0

6 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

3.13 Template SolValve ..................................................................................................................40

3.14 Template Positner ...................................................................................................................40

3.15 Template SoftStr .....................................................................................................................41

3.16 Template RevSoftStr ...............................................................................................................41

4 Faceplate - Views ....................................................................................................................... 43

4.1 Batch view @PG_APL_Batch.pdl ............................................................................................43

4.2 Trend view @PG_APL_Trend.pdl ............................................................................................44

4.3 Alarm view @PG_APL_Alarm.pdl ............................................................................................45

4.4 Memo view ..............................................................................................................................46

4.5 Preview view ...........................................................................................................................46

4.6 MMMeas - Standard ................................................................................................................48

4.7 MMStat - Standard ..................................................................................................................52

4.8 MMTime - Logbook .................................................................................................................54

4.9 MMRevDhl - Views ..................................................................................................................56 4.9.1 MMRevDhl - Standard .............................................................................................................56 4.9.2 MMRevDhl - Maintenance .......................................................................................................58 4.9.3 MMRevDhl - Preview ...............................................................................................................59

4.10 MMOprtn - Views ....................................................................................................................61 4.10.1 MMOprtn - Standard................................................................................................................61 4.10.2 MMOprtn - Limits .....................................................................................................................63 4.10.3 MMOprtn - Diagnostics ............................................................................................................64 4.10.4 MMOprtn - Process image .......................................................................................................66

5 Description of the blocks .............................................................................................................. 75

5.1 Functions for all blocks ............................................................................................................75 5.1.1 Calling OBs .............................................................................................................................75 5.1.2 Called blocks...........................................................................................................................76 5.1.3 Worst signal status ..................................................................................................................76 5.1.4 Quality code ............................................................................................................................77 5.1.5 Error numbers .........................................................................................................................79 5.1.6 Parameterizable functions via the Feature connection .............................................................80

5.2 Diagnostics block MMDiag ......................................................................................................81 5.2.1 Description of MMDiag ............................................................................................................81 5.2.2 Message characteristics ..........................................................................................................81 5.2.3 Driver generator ......................................................................................................................83 5.2.4 Start-up characteristics ............................................................................................................83 5.2.5 Module error............................................................................................................................83 5.2.6 IO station failure (PROFIBUS DP or PROFINET IO) ................................................................84 5.2.7 Failure of a PROFIBUS DP station ..........................................................................................85 5.2.8 SIMOCODE pro slave diagnostics ...........................................................................................85 5.2.9 Malfunction when loading the OB ............................................................................................86 5.2.10 Interconnections of the MMDiag block .....................................................................................87

5.3 Block for MMMeas measured value function ............................................................................88 5.3.1 Description of MMMeas ...........................................................................................................88

Page 7: Manual Simocode Pro Pcs7 Library v80 en-US

Table of contents

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 7

5.3.2 Operating modes .................................................................................................................... 88 5.3.3 Measured values .................................................................................................................... 89 5.3.3.1 Read measured values ........................................................................................................... 90 5.3.3.2 Assignment of the cyclic process image.................................................................................. 92 5.3.3.3 Write analog output ................................................................................................................ 93 5.3.3.4 Acyclic reading ....................................................................................................................... 93 5.3.3.5 Reading and writing data records ........................................................................................... 93 5.3.4 Message characteristics ......................................................................................................... 94 5.3.5 Start-up characteristics ........................................................................................................... 96 5.3.6 Status information .................................................................................................................. 96 5.3.7 Enabled operations ................................................................................................................ 97 5.3.8 Assigning addresses in HW Config ......................................................................................... 97

5.4 Block for statistical function MMStat ....................................................................................... 99 5.4.1 Description of MMStat ............................................................................................................ 99 5.4.2 Operating modes .................................................................................................................... 99 5.4.3 Statistical values .................................................................................................................. 100 5.4.4 Reading and writing data records ......................................................................................... 101 5.4.5 Message characteristics ....................................................................................................... 102 5.4.6 Start-up characteristics ......................................................................................................... 104 5.4.7 Status information ................................................................................................................ 104 5.4.8 Enabled operations .............................................................................................................. 105 5.4.9 Assigning addresses in HW Config ....................................................................................... 105

5.5 Block for timestamping MMTime ........................................................................................... 107 5.5.1 Description MMTime ............................................................................................................ 107 5.5.2 Logbook function .................................................................................................................. 108 5.5.3 Messages ............................................................................................................................ 111 5.5.4 Signaling response ............................................................................................................... 113 5.5.5 Driver generator ................................................................................................................... 115 5.5.6 Start-up characteristics ......................................................................................................... 115 5.5.7 Assigning addresses in HW Config ....................................................................................... 115

5.6 MMRevDhl motor block ........................................................................................................ 116 5.6.1 Application ........................................................................................................................... 116 5.6.1.1 Description of MMRevDhl ..................................................................................................... 116 5.6.1.2 Operating modes .................................................................................................................. 117 5.6.1.3 Mode changeover error ........................................................................................................ 119 5.6.1.4 Forcing operating modes ...................................................................................................... 120 5.6.1.5 Control functions for directions ............................................................................................. 121 5.6.2 Output signal for ready to start .............................................................................................. 121 5.6.3 Resetting of the block ........................................................................................................... 122 5.6.4 Restart lock after changing direction of rotation or switching off the motor ............................. 122 5.6.5 Limit value monitoring with hysteresis ................................................................................... 122 5.6.6 Rapid stop ............................................................................................................................ 122 5.6.7 Specify warning times for controls ........................................................................................ 123 5.6.8 Issuing maintenance release ................................................................................................ 123 5.6.9 Suppressing messages using the MsgLock parameter.......................................................... 124 5.6.10 Simulation ............................................................................................................................ 124 5.6.11 Monitoring functions ............................................................................................................. 125 5.6.12 Motor Protection ................................................................................................................... 127 5.6.13 Interlocking........................................................................................................................... 127 5.6.14 Disabling interlocks .............................................................................................................. 129 5.6.15 Group fault ........................................................................................................................... 130

Page 8: Manual Simocode Pro Pcs7 Library v80 en-US

Table of contents

SIMOCODE pro PCS 7 Library V8.0

8 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.6.16 User-defined auxiliary values and user-defined status ...........................................................130 5.6.17 Message characteristics ........................................................................................................130 5.6.18 Fault handling .......................................................................................................................133 5.6.19 Invalid input signals ...............................................................................................................133 5.6.20 Enable for measurement and statistics ..................................................................................133 5.6.21 Enabled operations ...............................................................................................................134 5.6.22 Status information .................................................................................................................135

5.7 MMOprtn driver block ............................................................................................................138 5.7.1 Description of MMOprtn.........................................................................................................138 5.7.2 Operating modes...................................................................................................................138 5.7.3 Motor current.........................................................................................................................139 5.7.4 Device functions ....................................................................................................................139 5.7.5 Reading and writing data records ..........................................................................................140 5.7.6 Current limits .........................................................................................................................141 5.7.7 Hysteresis .............................................................................................................................142 5.7.8 Emergency start ....................................................................................................................142 5.7.9 Self-test ................................................................................................................................143 5.7.10 Trip reset...............................................................................................................................144 5.7.11 Group fault ............................................................................................................................144 5.7.12 Fault handling .......................................................................................................................144 5.7.13 Invalid input signals ...............................................................................................................145 5.7.14 Message characteristics ........................................................................................................145 5.7.15 Messages via EventTs message block ..................................................................................146 5.7.16 System text libraries for warning and trip ...............................................................................147 5.7.17 Assigning addresses in HW Config ........................................................................................150 5.7.18 Process images for the MMOprtn block .................................................................................152 5.7.19 Enabled operations ...............................................................................................................166 5.7.20 Status information .................................................................................................................167 5.7.21 Diagnostics information .........................................................................................................168 5.7.22 Assignment of the diagnostics information .............................................................................175

6 Driver generator ......................................................................................................................... 183

6.1 Driver blocks .........................................................................................................................183

6.2 Requirements for generating the module drivers ....................................................................185

6.3 Object lists and action lists ....................................................................................................185

A Parameter ................................................................................................................................. 187

A.1 MMDiag block parameter ......................................................................................................187

A.2 MMMeas block parameter .....................................................................................................196

A.3 Block parameter MMStat .......................................................................................................200

A.4 Block parameter MMTime .....................................................................................................203

A.5 MMRevDhl block parameter ..................................................................................................205

A.6 Block parameter MMOprtn.....................................................................................................210

B Technical Data .......................................................................................................................... 215

B.1 Header information ................................................................................................................216

C Abbreviations ............................................................................................................................ 217

Page 9: Manual Simocode Pro Pcs7 Library v80 en-US

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 9

Introduction 1 1.1 Components of the software package

The SIMOCODE pro PCS 7 Library V8.0 integrates SIMOCODE pro C / V devices into the PCS 7 environment via blocks.

The SIMOCODE pro PCS 7 Library V8.0 contains the following components:

No. Hardware Functions Name FB no. 1 SIMOCODE pro

DPV1 and SIMOCODE pro PROFINET

Diagnostics function MMDiag (Page 81)

FB1300

2 Measured value function MMMeas (Page 88)

FB1302

3 Statistics function MMStat (Page 99) FB1303 4 Time stamping, logbook function MMTime

(Page 107) FB1304

5 SIMOCODE pro Motor block – control functions for High Feature reversing starters

MMRevDhl (Page 116)

FB1305

6 SIMOCODE pro DPV1 and SIMOCODE pro PROFINET

Driver block for operating SIMOCODE pro C / V devices

MMOprtn (Page 138)

FB1301

● Block library (function blocks and faceplates)

– Diagnostics block MMDiag

– MMMeas, MMStat, MMTime signal blocks

– MMRevDhl motor block

– MMOprtn driver block

● List Manual

● Online help with context-sensitive help

● Installation program

● Readme file for installation

1.2 Installing the library

Starting the installation 1. Place the CD in the CD-ROM drive of your PG/PC.

2. Launch the "setup.exe" program.

Page 10: Manual Simocode Pro Pcs7 Library v80 en-US

Introduction 1.3 Configuration steps

SIMOCODE pro PCS 7 Library V8.0

10 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

All the other information you need will be provided during the installation process.

Note Readme file

Note the information in the readme file.

1.3 Configuration steps

Procedure 1. Configuring with HW Config

2. Make the necessary interconnections for the inputs and outputs in the CFC Editor

In so doing, all of the inputs and outputs used must be within the process image.

3. Compile the CFC chart using the "Generate Module Driver" function.

Reference Additional information is available in the "Process Control System PCS 7 Compendium Part A - Configuration Guidelines" Operating Manual on the Internet (http://support.automation.siemens.com/WW/view/en/63187279).

1.4 Driver generator The "Generate Module Driver" function is available for signal processing in PCS 7. Once the hardware has been configured in HW Config and the technological functions have been configured in the CFC, this function automatically generates, interconnects, and parameterizes the required module drivers, to the extent possible. These module drivers are responsible for diagnosing and reporting errors during signal processing.

The Setup program installs XML files for connecting SIMOCODE pro C / V with the driver generator.

Supported modules and configurations The driver concept for SIMOCODE pro C / V modules takes into account the operation of various SIMOCODE control functions:

● As a DP slave direct on the DP master system (connection via GSD, PDM object or S7 module via OM SIMOCODE pro)

● As a DP slave behind a Y-Link (connection via GSD or PDM object)

Page 11: Manual Simocode Pro Pcs7 Library v80 en-US

Introduction 1.4 Driver generator

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 11

● As a PROFINET IO Device direct on the PN-IO Controller (connection via GSD or S7 module via OM SIMOCODE pro PN)

● As a shared PN IO Device in conjunction with a PROFIsafe configuration with DM-F PROFIsafe fail-safe digital module on two different IO Controllers (connection via GSD or S7 module via OM SIMOCODE pro PN) for a GSD-file-based configuration.

Reference 1. You will find the GSD files for SIMOCODE pro C / V on the Internet

(http://support.automation.siemens.com).

2. Enter the following search term in the "Product Name or Part Number" field under "Search Product Support Documents:

SIMOCODE pro C GSD / SIMOCODE pro V / SIMOCODE pro V PN GSD

3. Under Downloads click the relevant entry, e.g., "PROFIBUS / PROFINET GSD files: Simocode"

4. This displays another Internet page where you can download the GSD files.

5. The SIMOCODE pro object manager (OM) is a component part of the SIMOCODE ES 2007 Premium configuring software. To install, select the appropriate "SIMOCODE pro Integration in STEP 7" option when executing the Setup program for SIMOCODE pro.

Purpose of the driver generator A signal-processing block is inserted in the CFC for each SIMOCODE pro device, and the connection to the hardware is established using symbolic addressing.

The "Generate Module Driver" option inserts the additionally required OB_DIAG1 / OB_DIAG1_PN block and then connects and assigns the corresponding parameters.

Page 12: Manual Simocode Pro Pcs7 Library v80 en-US

Introduction 1.5 Configuring in HW Config

SIMOCODE pro PCS 7 Library V8.0

12 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

1.5 Configuring in HW Config The SIMOCODE pro PROFIBUS and PROFINET devices along with their associated components are inserted and configured in HW Config.

Note

The following graphics show example configurations in HW Config.

SIMOCODE pro C on the DP master system

Figure 1-1 SIMOCODE pro C on the DP master system

SIMOCODE Pro V on the DP master system

Figure 1-2 SIMOCODE Pro V on the DP master system

Page 13: Manual Simocode Pro Pcs7 Library v80 en-US

Introduction 1.5 Configuring in HW Config

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 13

SIMOCODE pro V PN on Industrial Ethernet

Figure 1-3 SIMOCODE pro V PN on Industrial Ethernet

SIMOCODE pro V on PROFIBUS DP behind a Y-link

Figure 1-4 SIMOCODE pro V on PROFIBUS DP behind a Y-link

SIMOCODE pro V PN on H-CPU via PROFINET

Figure 1-5 SIMOCODE pro V PN on H-CPU via PROFINET

Page 14: Manual Simocode Pro Pcs7 Library v80 en-US

Introduction 1.5 Configuring in HW Config

SIMOCODE pro PCS 7 Library V8.0

14 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Supported control functions The SIMOCODE pro Library supports the following control functions:

● On SIMOCODE pro C:

– Direct starter

– Reversing starter

– Overload relay

– Molded-case circuit breaker (MCCB)

● On SIMOCODE pro V:

– Direct starter

– Reversing starter

– Overload relay

– Molded-case circuit breaker (MCCB)

– Star-delta starter

– Star-delta reversing starter

– Dahlander

– Dahlander reversing starter

– Solenoid valve

– Positioners 1–5

– Pole-changing starter

– Pole-changing reversing starter

– Soft starter

– Soft reversing starter

See also Description of MMOprtn (Page 138)

Page 15: Manual Simocode Pro Pcs7 Library v80 en-US

Introduction 1.6 Configuring in SIMOCODE ES

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 15

1.6 Configuring in SIMOCODE ES

Purpose of the SIMOCODE ES software SIMOCODE ES is used to configure SIMOCODE pro devices.

Note

Transmission of modified device parameters is possible under the following conditions: • The device is not in the SIMOCODE pro "remote" mode. • No ON control command is active. • No motor current is flowing.

Note

Some device parameters can be modified independently of the conditions named above. You can recognize these parameters by the blue motor symbol in front of the parameter.

Parameter settings SIMOCODE pro requires that some parameters have specific settings to ensure correct operation of the signal blocks:

● Parameters that define the assignment of the cyclic I/O interface. These parameters are shown in italics in the following overview.

● Parameters that are already preset in the templates for application selection in SIMOCODE ES for the control function (*).

General settings (valid for all control functions)

Device parameters → Bus parameters Diagnosis triggered by device fault Active — Diagnosis triggered by process faults Active — Diagnosis triggered by process warnings Active — * Diagnosis triggered by process messages

Not active —

Startup parameter block Active Configuration with SIMOCODE ES or SIMATIC PDM

Standard functions → Test/reset Test 1 Cyclic receive bit 0.3 — Reset 1 Cyclic receive bit 0.6 — Emergency start Cyclic receive bit 0.4 —

The settings are a suggestion. They depend on the actual wiring of the SIMOCODE pro inputs and outputs.

Page 16: Manual Simocode Pro Pcs7 Library v80 en-US

Introduction 1.6 Configuring in SIMOCODE ES

SIMOCODE pro PCS 7 Library V8.0

16 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Settings for other parameters are required, for example, for motor protection. These are not described here.

1.6.1 Parameter settings The following list shows the settings for the parameters in SIMOCODE ES.

Table 1- 1 Parameter settings in SIMOCODE ES

Control function Template APL block Parameters in SIMOCODE ES

Non-maintained command

Saving change-over command

Feedback time

Execution time

Inter-locking time

Change-over pause

Overload relay OvlRly MMOprtn – – – – – – Direct starter Direct MotL Default – ① – –

Reversing starter Reverse MotRevL Default Default ① –

Circuit breaker MCCB MotL Default – ① – –

Star-delta starter StarDel MotL Default – ① – –

Star-delta reversing starter

RevStarDel MotRevL Default Default ① ② –

Dahlander Dahland MotSpdL Default Default ① – ③ Dahlander reversing starter

DevDahl MMRevDhl Default Default ① ② ③

Pole-changing starter

PoleChng MotSpdL Default Default ① – ③

Pole-changing reversing starter

RevPoleCh MMRevDhl Default Default ① ② ③

Solenoid valve SolValve VlvL Default – – ① – –

Positioner 1 Positner VlvMotL Default – ① ② –

Positioner 2 Positner VlvMotL Default Default ① ② –

Positioner 3 Positner VlvMotL Default – ① ② –

Positioner 4 Positner VlvMotL Default – ① ② –

Positioner 5 Positner VlvMotL Default – ① ② –

Soft starter SoftStr MotL Default – ① – –

Soft reversing starter RevSoftStr MotRevL Default Default ① ② –

① < Dynamic monitoring time, MonTiDynamic ≥ MonTiStatic ② < Pause time ③ < Change-over time – not applicable

Page 17: Manual Simocode Pro Pcs7 Library v80 en-US

Introduction 1.7 Configuring of the fail-safe, digital PROFIsafe module

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 17

1.7 Configuring of the fail-safe, digital PROFIsafe module From product version E06 onwards, SIMOCODE pro V supports the DM-F PROFIsafe fail-safe module, with which safety-related tripping of the motor is possible from an F-CPU via PROFIBUS / PROFIsafe.

From the perspective of the fail-safe section of the controller that transfers fail-safe signals via PROFIBUS / PROFIsafe, the DM-F PROFIsafe module represents a digital output with which the two relay enabling circuits of the DM-F PROFIsafe module can be switched on simultaneously or tripped in a fail-safe manner.

To enable fail-safe tripping via the DM-F PROFIsafe by the F-CPU, the PROFIsafe module must be configured in addition to the module for basic type 1 or 2 when integrating via GSD or PDM. When integrating via OM SIMOCODE pro, configuring must be carried out with PROFIsafe.

Address assignment Of the DM-F PROFIsafe module's assigned addresses, user data is assigned to the following output address in the F-CPU:

Byte in F-CPU

Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

x+0 — — — — — — — Output

Note

You are only allowed to access the address reserved for user data (output byte x, bit 0). Other address ranges assigned by DM-F PROFIsafe, are, among other things, reserved for safety-related communication between the DM-F PROFIsafe module and the F-CPU according to PROFIsafe.

Additional information Detailed information on accessing the F I/O can be found in the S7 F / FH Systems, Configuring and Programming (http://support.automation.siemens.com/WW/view/en/2201072) manual.

Assignment of the PROFIsafe address Each DM-F PROFIsafe fail-safe digital module has its own PROFIsafe address. You must set the PROFIsafe address on the module prior to commissioning.

The PROFIsafe addresses (F_Source_Add, F_Dest_Add) are automatically assigned when you configure the DM-F PROFIsafe module in STEP 7.

You can find the PROFIsafe address that must be set on the DM-F PROFIsafe module in the HW Config under the object properties for the PROFIsafe module; it is shown in decimal and hexadecimal notation in the F_Dest_Add parameter. Convert this address to binary notation and set it via the DIP address switch on the DM-F PROFIsafe module.

Page 18: Manual Simocode Pro Pcs7 Library v80 en-US

Introduction 1.8 Configuration with SIMATIC PDM

SIMOCODE pro PCS 7 Library V8.0

18 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Enter an icon for the fail-safe output in HW Config. In conjunction with F systems, this icon is then connected in CFC with the fail-safe channel driver (output VALUE). When integrating SIMOCODE pro V with GSD file via the Object Manager (OM), the F_CH_BO block is used as the channel driver.

Additional information Please refer to the system manual "SIMOCODE pro Safety - fail-safe digital modules (www.siemens.de/industrial-controls/manuals)" for more information on using the fail-safe digital modules.

1.8 Configuration with SIMATIC PDM You can use the SIMATIC PDM software to configure the SIMOCODE pro C / V devices. The devices are accessed via the PROFIBUS interface.

You can find information on configuration using the SIMATIC PDM software in the documentation for SIMATIC PDM and SIMOCODE pro EDD.

Note

Transmission of modified device parameters is possible under the following conditions: • The device is not in the SIMOCODE pro "remote" mode. • No ON control command is active. • No motor current is flowing.

1.9 Further documentation

Overview More information

● Online help for PCS 7 Advanced Process Library V8.0

● Online help for SIMATIC PCS 7 Process Control System

● Function manuals for SIMATIC PCS 7 Process Control System on the Internet (http://support.automation.siemens.com/WW/view/en/10806846/133300)

● System Manual SIMOCODE pro PROFINET on the Internet (http://support.automation.siemens.com/WW/view/en/61896631)

Page 19: Manual Simocode Pro Pcs7 Library v80 en-US

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 19

Information about the library 2 2.1 Overview of the blocks

The library contains the following blocks for SIMOCODE pro:

Table 2- 1 Blocks

No. Name Function 1 MMDiag (Page 81) Diagnostics function 2 MMMeas (Page 88) Measured value function 3 MMStat (Page 99) Statistics function 4 MMTime (Page 107) Time stamping, logbook function 5 MMRevDhl (Page 116) Control functions for High Feature reversing starters 6 MMOprtn (Page 138) Function for operating SIMOCODE pro devices

2.2 Control functions The library supports all SIMOCODE pro control functions. Motor blocks of the Advanced Process Library (APL) are used for this. For control functions that are not supported by the APL motor blocks (two directions of rotation, two speeds), the library contains the block MMRevDhl.

For communication with the SIMOCODE pro device, the channel block FbSwtMMS from the APL is used.

Device-specific functions that do not belong to the standard of the APL motor blocks are provided by the other blocks of the SIMOCODE pro Library.

Page 20: Manual Simocode Pro Pcs7 Library v80 en-US

Information about the library 2.2 Control functions

SIMOCODE pro PCS 7 Library V8.0

20 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Control functions and blocks The table shows the control functions and the corresponding blocks with which the APL is linked into the SIMOCODE pro PCS 7 Library V8.0.

Table 2- 2 Control functions and blocks

Control functions APL blocks Blocks from the SIMOCODE pro Library

Overload relay1 – MMOprtn MMDiag MMMeas MMStat MMTime

Direct starter Soft starter Circuit breaker Star-delta starter

MotL

Reversing starter Star-delta reversing starter Soft reversing starter

MotRevL

Dahlander Pole-changing starter

MotSpdL

Solenoid valve VlvL Positioners 1–5 VlvMotL Dahlander reversing starter Pole-changing reversing starter

– MMRevDhl MMOprtn MMDiag MMMeas MMStat MMTime

1 MMOprtn can be used for the overload relay control function without APL motor blocks.

Page 21: Manual Simocode Pro Pcs7 Library v80 en-US

Information about the library 2.2 Control functions

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 21

Converting the blocks to SIMOCODE pro faceplates

Figure 2-1 SIMOCODE pro APL PCS 7 V8.0

Reference For more information, refer to the Function Manual "PCS7 Process Control System, PCS7 Advanced Process Library V8.0" on the Internet (http://support.automation.siemens.com/WW/view/en/57265842).

See also Overview of the templates, control functions and blocks (Page 31)

Page 22: Manual Simocode Pro Pcs7 Library v80 en-US

Information about the library 2.3 Faceplates - Structure

SIMOCODE pro PCS 7 Library V8.0

22 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

2.3 Faceplates - Structure A faceplate displays all the elements of a block graphically. The faceplate is displayed in a separate window on the Operator Station (OS). You can call the faceplate:

● Using picture selection keys

● From the process tag list

● By clicking the specific block icon

Structure of a faceplate

① Name of block ② Comments, e.g., name of starter ③ "Pin faceplate" button:

You can use this button to secure the faceplate when switching the range. ④ "Back to Process" button:

You can use this button to return to the original process picture. ⑤ Toolbar for selecting the view:

Right clicking on an entry opens the selected view in a separate window. ⑥ Overview window

Icons

① Standard ⑤ Maintenance ⑨ Memo ② Alarm ⑥ Preview ⑩ Batch ③ Limits ⑦ Diagnostics ⑪ Logbook ④ Trend ⑧ Process image

Page 23: Manual Simocode Pro Pcs7 Library v80 en-US

Information about the library 2.3 Faceplates - Structure

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 23

Overview window The overview window shows the overall status of the block:

① Group display:

Indicates whether unacknowledged alarms and warnings are pending. ② LOCK status for messages, authorization level 5 and higher ③ Message suppression ④ Message acknowledgement, authorization level 5 and higher ⑤ Occupied - Batch:

This function indicates whether the block instance of SIMATIC BATCH is assigned. ⑥ Signal status of the block ⑦ Reserved

Expanded command area For inputs in the dialog window that require confirmation by the operator, the command area is expanded in the faceplate. The corresponding options are then available, depending on the selection.

Figure 2-2 Example of expanded command area

The expanded command area can be programmed with a 2- or 3-level access concept for the operator. The access can be changed in the WinCC Explorer using the internal @APLCommandExecutionSteps variable. Level 2: The operator only needs to press the command to execute. Level 3: The operator must also press the OK button to execute the command.

Page 24: Manual Simocode Pro Pcs7 Library v80 en-US

Information about the library 2.3 Faceplates - Structure

SIMOCODE pro PCS 7 Library V8.0

24 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Authorization levels Some commands are subject to permission with authorization levels via WIN CC. The authorization levels are updated when a view is opened. The user can only execute the commands that are enabled for him.

The authorization levels are created for the project by means of a user ID.

Figure 2-3 Assigning authorization levels in WinCC

Configuration aids Software and templates for configuring faceplates:

● The Graphics Designer in WinCCExplorer

● Templates in the Faceplate Designer

● PCS 7-specific standard views Trend, Batch, Alarm, Memo

● Additionally required views, user objects, and functions

Reference The configuration of faceplates and icons follow the standards of the Advanced Process Library.

For more information about this and authorization levels, refer to Function Manual "Process Control System PCS7, PCS7 Advanced Process Library V8.0" on the Internet (http://support.automation.siemens.com/WW/view/en/57265842).

Page 25: Manual Simocode Pro Pcs7 Library v80 en-US

Information about the library 2.4 Block icons

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 25

2.4 Block icons

Creating block icons in CFC The MMTime, MMRevDhl and MMOprtn blocks can each be displayed via various block icons.

To create a block icon, select the number for the appropriate block icon in the object properties of the block, e.g. the number 7 for the Dahlander control function. During the AS-OS compilation, the block icons are extracted from file @PCS7Typicals_MM80.pdl to the picture file of the current project.

Clicking on the block icon opens the corresponding faceplate and the block icon remains highlighted as long as this faceplate is opened.

MMTime block icons The MMTime block provides 2 block icons.

Table 2- 3 MMTime block icons

Number Icon 1

2

Page 26: Manual Simocode Pro Pcs7 Library v80 en-US

Information about the library 2.4 Block icons

SIMOCODE pro PCS 7 Library V8.0

26 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

MMRevDhl block icons The MMRevDhl block provides 2 block icons.

Table 2- 4 MMRevDhl block icons

Number Icon 1

2

MMOprtn block icons The MMOprtn block provides the following block icons:

Table 2- 5 MMOprtn block icons

Number SIMOCODE pro control function Icon 1 Overload relay

2 13

Direct starter / soft starter

3 14

Reversing starter / soft starter

4 Molded-case circuit breaker (MCCB)

Page 27: Manual Simocode Pro Pcs7 Library v80 en-US

Information about the library 2.4 Block icons

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 27

Number SIMOCODE pro control function Icon 5 Star-delta starter

6 Star-delta reversing starter

7 9

Dahlander / pole-changing starter

8 10

Dahlander reversing starter / Pole-changing reversing starter

11 Solenoid valve

12 Positioners 1-5

The status display at the block icon depends upon the final status of the drive, but not on the feedback received from the drive.

See also Description of MMOprtn (Page 138)

Description MMTime (Page 107)

Description of MMRevDhl (Page 116)

Page 28: Manual Simocode Pro Pcs7 Library v80 en-US

Information about the library 2.5 Supported functions

SIMOCODE pro PCS 7 Library V8.0

28 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

2.5 Supported functions

2.5.1 Maintenance Station The SIMOCODE pro Library PCS 7 V8.0 supports the function of the Maintenance Station, via GSD, via PDM object, and via OM SIMOCODE pro.

2.5.2 Web Navigator The SIMOCODE pro PCS 7 Library V8.0 supports the Web Navigator functions.

You will find further information on configuring the Web Navigator functions in the manual "PCS 7 - OS Web Option" under C:\Program Files\SIEMENS\Documentation\English.

MMRevDhl faceplate in the Web Navigator

Page 29: Manual Simocode Pro Pcs7 Library v80 en-US

Information about the library 2.5 Supported functions

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 29

MMOprtn faceplate in the Web Navigator

MMMeas faceplate in the Web Navigator

Page 30: Manual Simocode Pro Pcs7 Library v80 en-US

Information about the library 2.5 Supported functions

SIMOCODE pro PCS 7 Library V8.0

30 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

MMStat faceplate in the Web Navigator

Page 31: Manual Simocode Pro Pcs7 Library v80 en-US

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 31

Templates 3 3.1 Overview of the templates, control functions and blocks

The templates from the SIMOCODE pro PCS 7 Library V8.0 are templates that you can adopt unchanged to implement control functions in your project. The templates thus simplify the engineering for configuring the blocks and they support their problem-free functioning.

You can also modify the templates or create completely new ones. The interconnections that must then be created manually can be found in the available templates.

Templates for the control functions The table below assigns the possible control functions to the associated template:

Table 3- 1 Templates for the control functions

No. Control function Template APL blocks SIMOCODE blocks

1 Overload relay OvlRly (Page 35) FbSwtMMS MMOprtn1 MMMeas MMStat MMTime

2 Direct starter Direct (Page 35) MotL1 EventTs FbSwtMMS

3 Reversing starter Reverse (Page 36) MotRevL1 EventTs FbSwtMMS

4 Circuit breaker MCCB (Page 36) MotL1 EventTs FbSwtMMS

5 Star-delta starter StarDel (Page 37) MotL1 EventTs FbSwtMMS

6 Star-delta reversing starter RevStarDel (Page 37) MotRevL1 EventTs FbSwtMMS

7 Dahlander Dahland (Page 38) MotSpdL1 EventTs FbSwtMMS

8 Dahlander reversing starter RevDahl (Page 38) EventTs FbSwtMMS

MMRevDhl1 MMOprtn1 MMMeas MMStat MMTime

9 Pole-changing starter PoleChng (Page 39) MotSpdL1 EventTs FbSwtMMS

MMOprtn1 MMMeas MMStat MMTime

Page 32: Manual Simocode Pro Pcs7 Library v80 en-US

Templates 3.2 Using templates

SIMOCODE pro PCS 7 Library V8.0

32 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

No. Control function Template APL blocks SIMOCODE blocks

10 Pole-changing reversing starter

RevPoleCh (Page 39) EventTs FbSwtMMS

MMRevDhl1 MMOprtn1 MMMeas MMStat MMTime

11 Solenoid valve SolValve (Page 40) VlvL1 EventTs FbSwtMMS

MMOprtn1 MMMeas MMStat MMTime 12 Positioners 1–5 Positner (Page 40) VlvMotL1

EventTs FbSwtMMS

13 Soft starter SoftStr (Page 41) MotL1 EventTs FbSwtMMS

14 Soft reversing starter RevSoftStr (Page 41) MotRevL1 EventTs FbSwtMMS

1 Block icon available

For more information about the APL blocks, refer to the Function Manual "PCS7 Process Control System, PCS7 Advanced Process Library V8.0" on the Internet (http://support.automation.siemens.com/WW/view/en/57265842).

3.2 Using templates The templates for the control functions are located in the SIMOCODE pro Library under: Simocode Pro PCS7 LibV80 > Blocks+Templates\Templates >

Select a template, e.g. Reverse for a reversing starter, and drag and drop it to the CFC chart. Alternatively, you can also copy the template direct to the chart container or to the required location in the technological hierarchy view.

Page 33: Manual Simocode Pro Pcs7 Library v80 en-US

Templates 3.2 Using templates

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 33

Figure 3-1 Catalog with templates

To edit the template, right-click on the template and select "Open" from the shortcut menu. The template is opened as a CFC chart.

Manual interconnections In the CFC chart, connect "Input Word Address of Simocode base Module" in the right-hand sheet bar with the logical address of the basic unit.

There are two ways of doing this:

● Via the already created symbolic name

● Via direct input of the calculated address

Repeat the procedure on CFC sheet 2. To do so, change the view in CFC with the selection list Sheet / Overview in the symbol bar.

Page 34: Manual Simocode Pro Pcs7 Library v80 en-US

Templates 3.2 Using templates

SIMOCODE pro PCS 7 Library V8.0

34 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Automatic interconnections If the option "Generate Block Driver“ is activated in the "Compile Program" dialog, interconnections that are not yet available but that are necessary will be automatically executed.

Table 3- 2 Automatic interconnections

CFC Sheet 1 CFC Sheet 2 Inputs • Diagnostic Address of Simocode Pro Module

• Logical Address of Simocode Pro Module • ModFAct from MMDiag • Slv_Typ from MMDiag • RdEn from MMDiag • RackFAct from MMDiag • OMODE_00 of MOD_SWT

Outputs • Output word of the basic module –

In addition to the interconnections, the driver generator automatically generates the following charts and connects them with the template:

● SUBNET DP

● OB_DIAG1

● RACK

● MMDiag

● MOD_SWT

The textual interconnections supplied in the template can be deleted individually and entirely. The driver generator replaces the textual interconnections automatically.

You control deletion of the textual interconnections using the menu command Options → Delete Textual Interconnections.

Remove unused blocks The following blocks (CFC Sheet 2) are not absolutely necessary for operating SIMOCODE:

● MMMeas

● MMStat

● MMTime

They provide further functions such as measured values (e.g. temperature), statistical data, and time stamping.

These blocks can be deleted (right mouse key → delete or select block → Del). After renewed compiling and downloading to the PLC, these functionalities are no longer available for the user program.

Page 35: Manual Simocode Pro Pcs7 Library v80 en-US

Templates 3.3 Template OvlRly

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 35

3.3 Template OvlRly This template supports the control function Overload relay.

It contains one instance each of the following blocks:

● MMOprtn

● MMMeas

● MMStat

● MMTime

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library and create the necessary links

to the respective blocks.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

3.4 Template Direct This template supports the control function Direct starter.

It contains one instance each of the following blocks:

● MotL

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

Page 36: Manual Simocode Pro Pcs7 Library v80 en-US

Templates 3.5 Template Reverse

SIMOCODE pro PCS 7 Library V8.0

36 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

3.5 Template Reverse This template supports the control function Reversing starter.

It contains one instance each of the following blocks:

● MotRevL

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

3.6 Template MCCB This template supports the control function Circuit breaker.

It contains one instance each of the following blocks:

● MotL

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

Page 37: Manual Simocode Pro Pcs7 Library v80 en-US

Templates 3.7 Template StarDel

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 37

3.7 Template StarDel This template supports the control function Star-delta starter.

It contains one instance each of the following blocks:

● MotL

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

3.8 Template RevStarDel This template supports the control function Star-delta reversing starter.

It contains one instance each of the following blocks:

● MotRevL

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

Page 38: Manual Simocode Pro Pcs7 Library v80 en-US

Templates 3.9 Template Dahland

SIMOCODE pro PCS 7 Library V8.0

38 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

3.9 Template Dahland This template supports the control function Dahlander.

● MotSpdL

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

3.10 Template RevDahl This template supports the control function Dahlander reversing starter.

● MMRevDhl

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

Page 39: Manual Simocode Pro Pcs7 Library v80 en-US

Templates 3.11 Template PoleChng

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 39

3.11 Template PoleChng This template supports the control function Pole-changing starter.

● MotSpdL

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

3.12 Template RevPoleCh This template supports the control function Pole-changing reversing starter.

● MMRevDhl

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

Page 40: Manual Simocode Pro Pcs7 Library v80 en-US

Templates 3.13 Template SolValve

SIMOCODE pro PCS 7 Library V8.0

40 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

3.13 Template SolValve This template supports the control function Solenoid valve.

● VlvL

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

3.14 Template Positner This template supports the control function Positioner.

● VlvMotL

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

Page 41: Manual Simocode Pro Pcs7 Library v80 en-US

Templates 3.15 Template SoftStr

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 41

3.15 Template SoftStr This template supports the control function Soft starter.

● MotL

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

3.16 Template RevSoftStr This template supports the control function Soft reversing starter.

● MotRevL

● MMOprtn

● MMMeas

● MMStat

● MMTime

● EventTs

● FbSwtMMS

Interconnections 1. Instantiate the template from the SIMOCODE pro Library.

2. Link the parameters PZDIn01 (SIMOCODE blocks) / PZDIn1 (FbSwtMMS) with the logical address of the starter.

Page 42: Manual Simocode Pro Pcs7 Library v80 en-US

Templates 3.16 Template RevSoftStr

SIMOCODE pro PCS 7 Library V8.0

42 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Page 43: Manual Simocode Pro Pcs7 Library v80 en-US

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 43

Faceplate - Views 4 4.1 Batch view @PG_APL_Batch.pdl

Batch view

① BatchEn Enable status of the batch (Status1.Bit1) ② Occupied Occupied status of batch (Status1.Bit0) ③ BatchName Name of batch ④ BatchID Identification number of the batch ⑤ StepNo Number of steps

Page 44: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.2 Trend view @PG_APL_Trend.pdl

SIMOCODE pro PCS 7 Library V8.0

44 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

4.2 Trend view @PG_APL_Trend.pdl The "Trend" view is available in blocks in which curves are generated online from measured values, for example, the motor current.

The "Trend" view is available in the MMRevDhl, MMOprtn and MMMeas blocks.

Trend view

Configuring the view The block parameters that are evaluated for the trend are configured in the block icon of the block. To configure the view, use the TrendPictureName, TrendConfiguration and Trend colour properties. Up to 10 parameters can be used for the view

1. The file name TrendPictureName is identical for all the blocks in the library: "@PCS7_APL_TrendBin.PDL".

2. TrendConfiguration is entered in the following format: <ParameterName>;<TrendControl>;<Reserved>;<Name of the Curve> e.g. MotCurr#Value;_TrendCtrl1_;Reserved;MotorCurrent

3. Trend colour determines the color of the curve.

Page 45: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.3 Alarm view @PG_APL_Alarm.pdl

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 45

4.3 Alarm view @PG_APL_Alarm.pdl The "Alarm" view is available in the MMRevDhl, MMOprtn, MMStat, MMMeas and MMTime blocks.

Alarm view

Figure 4-1 Alarm view, MMRevDhl as an example

Figure 4-2 Alarm view, with an example of MMTime for SIMOCODE pro V PROFIBUS

Page 46: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.4 Memo view

SIMOCODE pro PCS 7 Library V8.0

46 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

4.4 Memo view In the "Memo" view, you can leave temporary messages for other OS operators. You enter them in the input field and store them by selecting the "Active memo checkbox."

The "Memo" view is available in the MMRevDhl block.

Memo view

The next time the faceplate is opened and the process display is changed, the user will be informed in the status line of the block icon and the faceplate that a new message exists.

Switching off the radio button clears the displays on the status lines.

4.5 Preview view The preview shows the enabled operations for each signal block.

The operator may execute the command.

The operator may execute the command. The command is currently blocked by a process in the block.

The operator is not permitted to execute the command.

Page 47: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.5 Preview view

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 47

Preview – MMOprtn

Preview – MMMeas

Preview – MMStat

See also MMRevDhl - Preview (Page 59)

Page 48: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.6 MMMeas - Standard

SIMOCODE pro PCS 7 Library V8.0

48 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

4.6 MMMeas - Standard

Standard 1 view

① Display of the operating mode ② Current values

Current values as bars (Curr_OpScale high value, low value) Phase current in % le (CurrL1, CurrL2, CurrL3)

Maximum motor current in % le (ImMax) Last trip current in % le (TripCurr) Phase unbalance in % (PhaUnbal)

Page 49: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.6 MMMeas - Standard

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 49

③ Voltage values Current values UL1-UL3 as bars (Vol_OpScale high value, low value) in volts (MotVol1, MotVol2, MotVol3) Active power in watts (ActPower) Apparent power in VA (AppPower) Power factor Cos phi in % (MotCosPhi)

④ Button for updating the data (RdDataOp). Button is deactivated if RackF_Act = 1.

Page 50: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.6 MMMeas - Standard

SIMOCODE pro PCS 7 Library V8.0

50 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Standard 2 view

① Thermal motor model

Thermal memory in % (ThmMotMod) Remaining motor cooling-down period (MotColTm) Remaining time to trip (Triptime)

② Temperature module 1 (for SIMOCODE pro devices) Temperature module values (MaxTemp, TMTemp1, TMTemp2, TMTemp3)

③ Ground fault detection module Ground fault current (EFltCurr) Last trip current (ETrpCurr)

④ Analog module 1 (for SIMOCODE pro devices) Analog values as bars (Ana_OpScale high value, low value) Analog values in % (AMIn1, AMIn2, AMIn3, AMOut)

⑤ Button for updating the data (RdDataOp). Button is deactivated if RackF_Act = 1.

Page 51: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.6 MMMeas - Standard

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 51

Standard 3 view (for SIMOCODE pro V PROFINET devices)

① Temperature module 2

Temperature module values (Max2Temp, TM2Temp1, TM2Temp2, TM2Temp3) ② Analog module 2

Analog values as bars (Ana_OpScale high value, low value) Analog values in % (AM2In1, AM2In2, AM2Out)

③ Button for updating the data (RdDataOp). Button is deactivated if RackF_Act = 1.

Page 52: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.7 MMStat - Standard

SIMOCODE pro PCS 7 Library V8.0

52 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

4.7 MMStat - Standard

Standard 1 View

① Display of the mode and button for switching between modes ② Operating hours (D_OpH, M_OpH, M_IntOpH) ③ Number of starts, number of starts "clockwise," number of starts "counterclockwise"

(N_Strt, N_IntCwStrt, N_IntCcwStrt) Permissible starts (P_Strt) Motor stop time (M_StpTm)

④ Consumed energy in KWh (EngyCon) Number of parameterizations (N_Param) Number of overload trips (N_OvlTrp) Number of internal overload trips (N_IntOvlTrp)

⑤ Time until test required (TmTstReq) ⑥ Button for updating the data (RdDataOp). Button is deactivated if RackF_Act = 1.

Page 53: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.7 MMStat - Standard

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 53

Standard 2 View

① Timers

Timers 1-4 (Tmr1Act, Tmr2Act, Tmr3Act, Tmr4Act) Timers 5-6 (Tmr5Act, Tmr6Act) (for SIMOCODE pro PROFINET devices)

② Counter Counters 1-4 (Cnt1Act, Cnt2Act, Cnt3Act, Cnt4Act) Counters 5-6 (Cnt5Act, Cnt6Act) (for SIMOCODE pro PROFINET devices)

③ Calculation modules Calculation modules 1-2 – Output (CalMod1Out, CalMod2Out) Calculation modules 3-4 – Output (CalMod3Out, CalMod4Out) (for SIMOCODE pro PROFINET devices)

④ Button for updating the data (RdDataOp). Button is deactivated if RackF_Act = 1.

Page 54: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.8 MMTime - Logbook

SIMOCODE pro PCS 7 Library V8.0

54 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

4.8 MMTime - Logbook The Logbook view shows the error buffer with tripping faults and events (Page 108) saved by a SIMOCODE pro device.

The logbook can be updated using the "Refresh" button.

Logbook view for PROFIBUS With PROFIBUS, up to 21 messages are listed with ID and operating hours of the device.

Figure 4-3 Logbook view for PROFIBUS

Note Alarm view

In the Alarm view (Page 45), the information is entered if the time stamping function is activated.

Page 55: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.8 MMTime - Logbook

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 55

Logbook view for PROFINET With PROFINET, up to 21 messages are listed with ID and real-time stamp.

Figure 4-4 Logbook view for PROFINET

Page 56: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.9 MMRevDhl - Views

SIMOCODE pro PCS 7 Library V8.0

56 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

4.9 MMRevDhl - Views

4.9.1 MMRevDhl - Standard

Standard view

① Buttons

• for switching between modes (AutoModOp, ManModOp, LocalOp, OosOp)

• for starting and stopping the motor (FwdMan, FFwdMan, RevMan, FRevMan, StopMan)

• for resetting the trip (TrpRstOp) The buttons open the expanded command area; authorization level 5 and higher

② Interlocks and Bypass conditions • Status of enable (Permit, Perm_En) • Protection (Protect, Prot_En) • Interlocking (IntLock, Intl_En)

③ Analog user-defined auxiliary values (UserAna1) ④ Button for switching to the standard view of a faceplate.

Display is only visible when the corresponding block input is connected. ⑤ Status display of the block, e.g. monitoring, maintenance, errors. ⑥ Automatic preview

The display is only visible in "manual mode," in "local mode," or with a reset request in "automatic mode," when the current output signals are not identical to the control in "automatic mode." The display shows what state the motor would enter if you switched from "manual" or "local" mode to "automatic mode," or performed a reset to "automatic mode."

⑦ Motor status (see table)

Page 57: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.9 MMRevDhl - Views

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 57

Icons for motor status ⑦ Status Symbol Status Symbol Motor running forward

Motor running in reverse

Motor running fast forward

Motor running in fast reverse

Motor fault

Motor stops

See also Interlocking (Page 127)

Page 58: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.9 MMRevDhl - Views

SIMOCODE pro PCS 7 Library V8.0

58 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

4.9.2 MMRevDhl - Maintenance

Maintenance view

① Monitoring

Control and runtime in seconds, monitoring time (MonTiDynamic, MonTiStatic) Activation of monitoring (Monitor) opens the expanded command area; authorization level 6 and higher

② Service Activation of simulation (SimOn) Maintenance enable (MS_RelOp) The buttons open the expanded command area; authorization level 7 and higher

③ Button on faceplate MMMeas; visible if the input parameter SelMeas is logically combined with an output parameter of MMMeas

④ Button on faceplate MMStat; visible if the input parameter SelStat is logically combined with an output parameter of MMStat

⑤ Operator control enable

• The operator may execute the command. • The operator cannot execute the command because the command is currently blocked

by a process. • The operator is not permitted to execute the command (OS_Perm). The displays are dependent on the bit values in the OS_PermOut and OS_PermLog parameters.

See also Monitoring functions (Page 125)

Page 59: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.9 MMRevDhl - Views

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 59

4.9.3 MMRevDhl - Preview

Preview view

① "Automatic" display

If the block is in "Automatic" mode, the current status of the block will be displayed (e.g. "Start <<")

② Operator control enable

Page 60: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.9 MMRevDhl - Views

SIMOCODE pro PCS 7 Library V8.0

60 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

• The operator may execute the command. • The operator cannot execute the command because the command is currently blocked

by a process. • The operator is not permitted to execute the command. The displays are dependent on the bit values in the OS_PermOut and OS_PermLog parameters.

③ Displays the current control signals Enable * 0 = No OS activation enable for starting the motor 1 = Enable for starting / stopping from neutral position Protection * 0 = Protection interlock is active; if the interlock condition disappears, you must perform a reset for the block 1 = Protection interlock is not active Interlock * 0 = Interlocking without reset is active; you may operate the block without reset once the interlocking condition is cleared 1 = Interlock is not active Local: 1 = Block operating in Local mode Motor protection: 1 = Motor is in "good" state Interlock deactivated 0 = Bypassing deactivated 1 = Bypassing of the interlock in Local mode and during simulation

Inputs and outputs Local stop: 1 = Stop motor in Local mode Start Local →: 1 = Start motor in Local mode Start Local →→: 1 = Start motor in Local mode Start Local ←: 1 = Start motor in Local mode Start Local ←←: 1 = Start motor in Local mode Feedback →: 1 = Motor has started and is running forward Feedback →→: 1 = Motor has started and is running fast forward Feedback ←: 1 = Motor has started and is running in reverse Feedback ←←: 1 = Motor has started and is running in fast reverse Stop: 1 = Stop motor Start →: 1 = Start motor forward Start →→: 1 = Start motor fast forward Start ←: 1 = Start motor in reverse Start ←←: 1 = Start motor in fast reverse

④ Button for switching to the standard view of a faceplate. * Display is only visible when the corresponding block input is connected.

See also Preview view (Page 46)

Page 61: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 61

4.10 MMOprtn - Views

4.10.1 MMOprtn - Standard

Standard view

① Display of the control function ② Button for changing the operating mode (AutoModOp, ManModOp, LocalOp, OosOp);

opens the expanded command range ③ Buttons

• for emergency start • for testing • for resetting the trip (TrpRstOp) The buttons open the expanded command area; authorization level 5 and higher.

④ Button for switching to the standard view of a faceplate for representing the measured values (MMMeas); visible if the Selfp1 input parameter of the MMOprtn block is configured.

⑤ Status display of the block, e.g. monitoring, maintenance, group error (emergency start is not available on solenoid valves).

⑥ Motor status (see table)

Page 62: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

62 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Icons for motor status ⑥ Status Symbol Status Symbol Status Symbol Motor ON

Motor stops

Motor fault

Motor running forward

Motor running in reverse

Motor running fast forward

Motor running in fast reverse

Overload operation OK

Overload fault

Valve open

Valve closed

Valve fault

Circuit breaker OK

Circuit breaker closed

Circuit breaker fault

Positioner open

Positioner closed

Positioner fault

Page 63: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 63

4.10.2 MMOprtn - Limits

Limits view

① Value

Display of the motor current in % with corresponding signal status (MotCurr) Upper and lower range for motor current (OpScale.High, OpScale.Low) The values provide information on the display range for the bar graph (Curr_OpScale) of the process value. The scale range is defined in the Engineering Station (ES).

② Limits for additional value • "H alarm": Alarm high (Curr_TH) • "H warning": Warning high (Curr_WH) • Hysteresis • "L warning": Warning low (Curr_TL) • "L alarm": Alarm low (Curr_WL) If the background color of the field is white, you can change the value in the expanded operating area in 3 ways: • Entry in the input box • Setting using the slider • Entry by direct operation

③ Button for updating the values (RdDataOp).

Page 64: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

64 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

④ Bar graph for current The visible range in the bar graph depends on the configuration in the Engineering Station (ES). The colored triangles show the specified limits: • Red: Alarm • Yellow: Warning

Operator control enable • The operator may execute the command. • The operator cannot execute the command because the command is currently blocked

by a process. • The operator is not permitted to execute the command (OS_Perm). The displays are dependent on the bit values in the OS_PermOut and OS_PermLog parameters.

4.10.3 MMOprtn - Diagnostics In the SIMOCODE pro PCS 7 library V8.0, all available diagnostics messages are displayed in the diagnostics view.

Based on the parameters, there are diagnostics views for the status, events, warnings, and trips.

Status diagnostics

Page 65: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 65

Event diagnostics

Warning diagnostics

Page 66: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

66 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Trip diagnostics

See also Diagnostics information (Page 168)

4.10.4 MMOprtn - Process image The Process image view displays the values for the process image inputs (PII) and the process image outputs (PIQ). Which inputs and outputs are displayed depends on the control function selected.

Process image – Overload relay

Figure 4-5 Process image – Overload relay

Page 67: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 67

Process image – Direct starter

Figure 4-6 Process image – Direct starter

Process image – Reversing starter

Figure 4-7 Process image – Reversing starter

Page 68: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

68 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Process image – Molded-case circuit breaker (MCCB)

Figure 4-8 Process image – Circuit breaker

Process image – Star-delta starter

Figure 4-9 Process image – Star-delta starter

Page 69: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 69

Process image – Star-delta reversing starter

Figure 4-10 Process image – Star-delta reversing starter

Process image – Dahlander

Figure 4-11 Process image – Dahlander

Page 70: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

70 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Process image – Dahlander reversing starter

Figure 4-12 Process image – Dahlander reversing starter

Page 71: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 71

Process image – Pole-changing starter

Figure 4-13 Process image – Pole-changing starter

Page 72: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

72 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Process image – Pole-changing reversing starter

Figure 4-14 Process image – Pole-changing reversing starter

Process image – Valve

Figure 4-15 Process image – Valve

Page 73: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 73

Process image – Positioners 1–5

Figure 4-16 Process image – Positioner

Process image – Soft starter

Figure 4-17 Process image – Soft starter

Page 74: Manual Simocode Pro Pcs7 Library v80 en-US

Faceplate - Views 4.10 MMOprtn - Views

SIMOCODE pro PCS 7 Library V8.0

74 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Process image – Soft reversing starter

Figure 4-18 Process image - Soft reversing starter

See also Process images for the MMOprtn block (Page 152)

Page 75: Manual Simocode Pro Pcs7 Library v80 en-US

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 75

Description of the blocks 5 5.1 Functions for all blocks

5.1.1 Calling OBs The "Generate module driver" function automatically inserts a SIMOCODE pro block into the following organization blocks within the run sequence of the CFC:

Table 5- 1 Organization blocks

OB Description MMDiag MMMeas MMStat MMTime MMRevDhl MMOprtn OB1 Cyclic program X – – – – – OB30...OB381 Cyclic alarms X X X X X X OB40 Process alarm X – – X – – OB82 Diagnostics alarm X – – – – – OB83 Insert/remove interrupt X – – – – – OB85 Program execution error X – – – – – OB86 Rack fault X – – – – – OB100 Restart (warm restart) X X X X X X 1 Insert the block in OB32, if read/write access is slow.

"X" = The OB calls the block, "–" = The OB does not call the block.

Reference You can obtain further information on the organization blocks in the "Process Control System PCS 7 System Functions" manual and in the system and standard functions reference manual for S7-300/400 on the internet (http://support.automation.siemens.com/WW/view/en/44240604).

Page 76: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.1 Functions for all blocks

SIMOCODE pro PCS 7 Library V8.0

76 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.1.2 Called blocks The SIMOCODE pro blocks call the following blocks:

Table 5- 2 Called blocks

Block Description MMDiag MMMeas MMStat MMTime MMRevDhl MMOprtn SFB35 ALARM_8P Generates block-specific

messages with values for 8 signals

X X X X X X

SFB52 RDREC Reads a data record X X X X – X SFB53 WRREC Writes a data record – – – – – X SFB54 RALRM Receives alarm X – – X – X SFC6 RD_SINFO Reading of OB start

information X X X X X X

SFC13 DPNRM_DG Reads the diagnostic data of the DP slave

X – – – – X

SFC20 BLKMOV Copying of tags – – – X X – SFC51 RDSYSST Reads the system status

list or the sublist X – – – – –

SFC64 TIME_TCK Reads the system time X X – – – X "X" = The SIMOCODE pro block calls this block, "–" = the SIMOCODE pro block does not call this block.

5.1.3 Worst signal status Worst Signal Status ST_Worst is formed from the following parameters:

Block Parameter MMRevDhl FbkFwdOut.ST

FbkRevOut.ST FbkFFwdOut.ST FbkFRevOut.ST LocalLi.ST FFwdLocal.ST FwdLocal.ST StopLocal.ST RevLocal.ST FRevLocal.ST Trip.ST

MMOprtn ModF_Act.ST RackF_Act.ST GenFlt.ST GenWarn.ST EmrgStOn.ST AutAct.ST CstAut.ST TrpRstLi.ST RdDataLi.ST GrpErr.ST RdErr.ST WrErr.ST

Page 77: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.1 Functions for all blocks

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 77

Block Parameter MMMeas ModF_Act.ST

RackF_Act.ST GrpErr.ST RdErr.ST

MMStat ModF_Act.ST RackF_Act.ST GrpErr.ST RdErr.ST

MMDiag ModF_Act.ST RackF_Act.ST GrpErr.ST Cst.ST Rack1Err.ST Rack2Err.ST RdErr.ST

MMTime RdErr.ST

5.1.4 Quality code The status and quality of a rack is checked by means of the Quality Code.

Table 5- 3 Quality Code

Quality Code

Priority 1 Occurs when... Meaning MMMeas MMStat

MMDiag MMRevDhl MMOprtn

16#80 6 No error Good X X X X 16#60 – SimOn Simulated value – – X – 16#00 0 • RackF_Act

• ModF_Act • BusFlt

Bad, device related, value not valid

X 1 X X X

16#28 1 • Subnet error Rack1Err or Rack2Err

• OB not loaded.

Bad, device related

– X – –

16#28 2 From preceding blocks

Bad, process-specific

X – X X

16#68 3 General warning Uncertain, device related

X X X X

16#78 4 CST Uncertain, process-specific

– X X X

16#A4 – Maintenance demand

– – X –

16#FF – Default setting – X – – – 1 0 = low; > 0 = high

"X"= The Quality Code occurs in this block, "–" = The quality code does not occur in this block.

Page 78: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.1 Functions for all blocks

SIMOCODE pro PCS 7 Library V8.0

78 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Icons The icons for the Quality Code are displayed in the block icon and in the overview window of the faceplates.

Table 5- 4 Icons for Quality Code display

Quality Code Symbol Meaning 16#80

Good

16#60

Local function check / simulation

16#00 1

Bad, device related, value not valid

16#28 1

Bad, process-specific

16#68

Uncertain, device related

16#78

Uncertain, process-specific

16#A4

Maintenance demand

1 Active Quality Codes for the Trip, Intlock, Permit, and Protect parameters in the interlock status.

Reference You can obtain further information on the Quality Code display, in the PCS 7 libraries APL Styleguide programming manual in the Internet (http://support.automation.siemens.com/WW/view/en/59062870).

Page 79: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.1 Functions for all blocks

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 79

5.1.5 Error numbers

Table 5- 5 Error numbers per block

Error code

Error type Description MMDiag MMMeas MMStat MMRevDhl MMOprtn

-1 – Predefined value when inserting the block; the block is not processed.

X X X X X

0 – No error X X X X X 1 System error Rack failure X X X – X 2 System error The module has been removed. – – – – X 3 System error The module does not respond. X X X – X 4 System error Subnet 1 or subnet 2 error X – – – – 5 System error Module inserted, but invalid

module type – – – – X

41 Programming error

The value for LocalSetting I/O is not within the permissible limits of 0 to 4.

– – – X –

42 Programming error

LocalSetting = 0 or LocalSetting = 3 or LocalSetting = 4 and LocalLi = 1

– – – X –

51 Programming error

Error number for invalid signal state e.g. FwdLocal = 1 and StopLocal = 1 FwdAut = 1 and StopAut = 1 AutModLi = 1 and ManModLi = 1 FwdForce = 1 and RevForce = 1

– – – X X

52 Programming error

LocalAct = 1 and LocalSetting = 2 or 4 and SimOn = 1

– – – X –

"X" = Error occurs in this block, "–" = Error does not occur in this block

See also IO station failure (PROFIBUS DP or PROFINET IO) (Page 84)

Fault handling (Page 144)

Page 80: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.1 Functions for all blocks

SIMOCODE pro PCS 7 Library V8.0

80 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.1.6 Parameterizable functions via the Feature connection The modules of the library have an input named Feature. You can influence various responses of the block via this input.

The Feature Bits are assigned in the following order:

Table 5- 6 Meaning of Feature.Bits

Feature.Bit Meaning MMRevDhl MMOprtn MMMeas MMStat

MMTime

Feature.Bit0 Set startup characteristics 0 = Reset outputs to substitute value (OB100) 1 = Outputs are assigned the last valid value

X X – –

Feature.Bit1 Response for Out of service mode X X X – Feature.Bit2 Resets the commands for switching between modes X X – – Feature.Bit3 Enable resetting of the commands for the control setting X – – – Feature.Bit4 Set switch mode or pushbutton mode

0 = Pushbutton mode 1 = Switch mode

X X – –

Feature.Bit5 Set switching mode X – – – Feature.Bit7 Enable direct changeover between forward and reverse

operation X – – –

Feature.Bit9 Reset via input signals in the event of interlocking (protection) or errors

X – – –

Feature.Bit10 Exit local mode 1 = When Manual LOCAL mode is exited, switch to the last setting of AUTO / MANUAL mode.

X X – –

Feature.Bit11 Enable runtime for feedback signals X – – – Feature.Bit14 Enable rapid stop via faceplate X – – – Feature.Bit17 Activate bumpless changeover to automatic mode X – – – Feature.Bit19 Reset even in locked state X – – – Feature.Bit21 Bumpless switchover to automatic mode X – – – Feature.Bit22 Update acknowledgment and error status of the alarm

call X X X X

Feature.Bit24 Enable local operator control permission X X X – Feature.Bit25 Suppression of all messages X X X X Feature.Bit27 Interlock display with LocalSetting 2 or 4 X – – – Feature.Bit30 Define reset as a function of the mode X – – – Feature.Bit31 Enable reset of interlocks in manual mode X – – – The default setting is 0 in each case.

For more information about the parameterizable functions, refer to the function manual "Process Control System PCS 7. PCS 7 Advanced Process Library V8.0" in the Internet (http://support.automation.siemens.com/WW/view/de/57265842).

Page 81: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.2 Diagnostics block MMDiag

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 81

5.2 Diagnostics block MMDiag

5.2.1 Description of MMDiag

Purpose of the block The MMDiag block is responsible for diagnosis of the SIMOCODE pro device.

● It evaluates the acyclic events:

– Start

– DP/IO station failure

– Module fault

– Process alarm

– Diagnosis alarm

● It generates the associated Quality Codes.

● It reads all diagnostic information for the MOD_SWT block.

● It transmits the status information to the signal processing block via the OMODE parameter output.

Views The MMDiag block does not support views.

5.2.2 Message characteristics MMDiag signals the following errors:

● DP/IO station fault (Rack1Err, Rack2Err)

● Rack failure (RackF_Act)

● Module fault (ModF_Act)

● Connection fault (BusFlt)

An error generates a group error GrpErr in output parameter Err_Act.

The Subn1_Id and Subn2_Id parameters of the SUBNET function block (FB106) are linked to the Subn1_Id and Subn2_Id parameters of the MMDiag. block. These parameters pass on the error information of the primary and of the redundant master system. This information is provided to output parameters Rack1Err and Rack2Err of the MMDiag block.

Page 82: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.2 Diagnostics block MMDiag

SIMOCODE pro PCS 7 Library V8.0

82 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Message block MsgEvId1

Table 5- 7 Output messages MMDiag

Message block Message No. Block parameters Message text Message class *

MsgEvId1 1 Rack1Err $$BlockComment$$Subnet1@1%d@:fault S 2 Rack2Err $$BlockComment$$Subnet2@2%d@:fault S 3 RackF_Act $$BlockComment$$Device @3%d@: failure S 4 ModF_Act $$BlockComment$$Device

Rack@3%d@/Module@4%d@: Module error S

5 BusFlt $$BlockComment$$DP Slave Rack@3%d@:not reachable

S

6 ExtMsg1 ** $$BlockComment$$External Message 1 A 7 ExtMsg2 ** $$BlockComment$$External Message 2 A 8 ExtMsg3 ** $$BlockComment$$External Message 3 A

* S = AS, OS process control fault; A = Alarm ** User-definable message

Auxiliary values

Table 5- 8 Structure of the auxiliary values ALARM_8P

Message No. Auxiliary value

Block parameters Meaning

1 1 Subn1Id ID of the primary DP master system 2 2 Subn2Id ID of the redundant DP master system 3 3 Rack_No Rack number 4 4 Slot_No Slot number 5 5 ExtVa105 Auxiliary value 5, user-definable 6 6 ExtVa106 Auxiliary value 6, user-definable 7 7 ExtVa107 Auxiliary value 7, user-definable 8 8 ExtVa108 Auxiliary value 8, user-definable 9 9 ExtVa109 Auxiliary value 9, user-definable 10 10 ExtVa110 Auxiliary value 10, user-definable

The MsgStat1, MsgAckn1, and MsgErr1 parameters transfer the following information:

● Message status

● Message error

● Message acknowledgment status

Page 83: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.2 Diagnostics block MMDiag

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 83

5.2.3 Driver generator The "Generate Module Driver" function automatically inserts the MMDiag block into the following organization blocks within the run sequence:

● OB1 (cyclic program)

● OB40 (process alarm)

● OB82 (diagnostics alarm)

● OB83 (pull/plug alarm)

● OB85 (program execution error)

● OB86 (rack failure)

● OB100 (cold restart)

The block is inserted behind the OB_DIAG1 block in the CFC chart.

The Rack_No, Slot_No, SubSlot_No, SubAddr, DAddr, LAddr, Subn1Id, Subn2Id, and SubN_Typ inputs are configured via the information from HW Config.

5.2.4 Start-up characteristics In OB100, the identifier for "Start up" is entered in output OMODE (OMODE = 16#xx01xxxx).

The alarm messages are suppressed in the OB100 for the RunUpCyc no. of times.

Acknowledge the errors GrpErr, RackF_Act, ModF_Act, Rack1Err, and Rack2Err.

5.2.5 Module error Following a restart and when AccId = TRUE , a check of the module addressed with LAddr is carried out. The system status list SSL ID xC91 is read out for this purpose. If the module addressed with LAddr is missing, the ModF_Act output is set and the identifier for "higher-level fault" is entered for the OMODE output (OMODE = 16#40xxxxxx).

The module fault is detected by the event number 16#61 for PROFIBUS and 16#51 for PROFINET for event class 16#39.

The module fault is detected while the SIMOCODE pro device is configured behind a Y-Link.

The logical address of the module (LAddr) is derived based on the geographical address of the module, e.g. from SubN1_Id, Rack_No, Slot_No, SubSlot_No, and SubAddr.

Note

The "module rack fault" takes precedence over the module fault.

Page 84: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.2 Diagnostics block MMDiag

SIMOCODE pro PCS 7 Library V8.0

84 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.2.6 IO station failure (PROFIBUS DP or PROFINET IO) The OB_DIAG1 / OB_DIAG1_PN block detects the failure of the station, and evaluates it based on the event class and event number (see table).

In the event of a fault, the identifier for "higher-level fault" (OMODE = 16#40xxxxxx) is entered for the OMODE output.

Fault Event number Event class PROFIBUS DP PROFIBUS DP station failure (RackF_Act) 16#C4 16#39 PROFIBUS DP station return 16#C4 16#38 PROFIBUS DP station error 16#C5 16#39 Reset PROFIBUS DP station error 16#C5 16#38 PROFIBUS DP station return, but error in assignment of the module parameters

16#C6, 16#C7 16#38

PROFINET IO PROFINET IO system failure 16#CA 16#39 PROFINET IO station failure 16#CB 16#39 Reset PROFINET IO station error 16#C5 16#38 Return of PROFINET IO station, but error 16#CC 16#38 Return of PROFINET IO station, but target configuration not equal to actual configuration

16#CD 16#39

Return of PROFINET IO station, but error in assignment of the module parameters

16#CE 16#39

If the "rack failure" error (RackF_Act = 1) occurs, the connection to the device is lost (BusFlt = 1).

Reference You will find more information about the organization blocks in the reference manual System and Standard Functions for S7-300/400 in the Internet (http://support.automation.siemens.com/WW/view/en/44240604).

See also Error numbers (Page 79)

Page 85: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.2 Diagnostics block MMDiag

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 85

5.2.7 Failure of a PROFIBUS DP station

The station diagnostics for SIMOCODE pro are read by the SFC13 (DPNRM_DG), stored in a temporary buffer, and passed on to the DiagStn output parameter.

The diagnostics messages are available in the Bit 0 of the Byte 0 of the DP slave.

The PROFIBUS connection error is reported at the BusFlt output of the MMDiag block and as an alarm in WinCC.

Table 5- 9 Possible reasons for the connection error

Byte 0 Meaning Reason or remedy Bit 0 1: DP slave cannot be

accessed by the DP master.

• DP slave cannot be accessed by the DP master. • Is the station address of the DP slave set correctly? • Is the bus connection plug connected? • Is voltage applied to the DP slave? • Is the RS 485 Repeater secured correctly? • Has a reset been performed on the DP slave?

5.2.8 SIMOCODE pro slave diagnostics The block accesses the data required for system diagnostics via the SFCs DPNRM_DG, RD_SINFO and RDSYSST.

The PROFIBUS station diagnostics for SIMOCODE pro are read by SFC13 DPNRM_DG and passed to the Diag_Inf output parameter.

These diagnostic messages are available in the following bytes of the DP slave: Station status 1, 2, and 3 in byte 0, byte 1, and byte 2.

Table 5- 10 Bit assignment of the station diagnostics

DIAG Bit

Diagnostic message

0 Error in device access. 1 Device is not yet ready for data exchange. 2 Device configuration is incorrect. 3 External diagnostics pending (group diagnostics display). 4 The function is not supported by the DP slave, e.g., PROFIBUS address change by

the software 5 DP master cannot interpret DP slave response. 6 DP slave type does not match the software configuration. 7 Transfer of parameters to DP slave configured with a different DP master. 8 DP slave parameters must be transferred again.

Page 86: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.2 Diagnostics block MMDiag

SIMOCODE pro PCS 7 Library V8.0

86 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

DIAG Bit

Diagnostic message

9 A diagnostic message is pending. DP slave will not function until the error is corrected.

10 Bit on DP slave is always "1". 11 Watchdog function activated for DP slave 12 DP slave has received the "FREEZE" command. 13 DP slave has received the "SYNC" command. 14 DP slave has been removed. 15 More diagnostic messages than DP slave can store.

The DP master cannot write all diagnostic messages sent by the DP slave to its diagnostic buffer.

5.2.9 Malfunction when loading the OB Interrupt OB 85 sets or resets the priority class error GrpErr (malfunction when loading OBs).

Table 5- 11 Events during which OB 85 GrpErr is reset

Fault Event number Event class Error when creating a start event for an OB. This is not loaded to the CPU.

16#A1, 16#A2, or 16#A3

16#35

Error when the operating system accesses a module. 16#B1, 16#B2 16#39 16#B3 16#39 or 16#38

GrpErr is only triggered once for one execution cycle of the block.

Page 87: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.2 Diagnostics block MMDiag

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 87

5.2.10 Interconnections of the MMDiag block The module driver function generates the driver blocks and creates all necessary interconnections between the driver blocks RACK / OB_DIAG1 / OB_DIAG1_PN, MOD_SWT and the signal processing blocks of SIMOCODE pro V/C. Parameterization of the corresponding parameters is performed automatically.

The MMOprtn, MMMeas, and MMStat blocks must be inserted manually into the CFC chart.

Driver blocks with interconnections

The blocks highlighted in yellow are driver blocks.

Diagnostics information The MMDiag block reads the diagnostic information and transfers it via the Diag_Sts, Diag_Evt, Diag_Wrn, and Diag_Trp output parameters to the MMOprtn block.

Page 88: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.3 Block for MMMeas measured value function

SIMOCODE pro PCS 7 Library V8.0

88 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.3 Block for MMMeas measured value function

5.3.1 Description of MMMeas

Purpose of the block The MMMeas block gathers measured value parameters from data record 94. It receives diagnostic data from the MMDiag block.

For SIMOCODE pro C / V PROFIBUS and PROFINET devices, the MMMeas block provides information on the following topics:

● Current values

● Voltage values

● Active power

● Apparent power

● Thermal motor model

● Temperature

● Asymmetry

● Ground fault

Views The MMMeas block supports the following views:

● Trend (Page 44)

● Alarm (Page 45)

● Preview (Page 46)

● Standard (Page 48)

5.3.2 Operating modes The following operating modes are displayed on the block:

● Local

● ON

● Out of service (Oos)

See also Process images for the MMOprtn block (Page 152)

Page 89: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.3 Block for MMMeas measured value function

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 89

5.3.3 Measured values The MMMeas block reads measured values via data record DS94.

Table 5- 12 DS94

No. Data record number

Read access/write access

Number of bytes

Description

1 DS94 R 64 Read measured values

The values are read from the SIMOCODE pro device with the RDREC function. This information is written to the output parameters.

Measured values for SIMOCODE pro devices The measured values depend on the type of the basic unit, and with SIMOCODE pro V on the expansion modules used (UM, AM, TM, EM).

Unsupported values are read and displayed as zero.

Table 5- 13 Measured values for SIMOCODE pro PROFIBUS devices

Measured values SIMOCODE pro C/V E01

SIMOCODE pro V from E02

Parameter

Thermal memory available available ThmMotMod Phase unbalance available available PhaUnbal Maximum current I_max available available ImMax Current I_L1 available available CurrL1 Current I_L2 available available CurrL2 Current I_L3 available available CurrL3 Last trip current available available TripCurr Time to trip available available TripTime Recovery time available available MotcolTm Cooling-down period available available MotColTm UM – Cos-Phi – available on current /

voltage measuring modules UM

MotCosPhi UM – voltage U_L1 – MotVol1 UM – voltage U_L2 – MotVol2 UM – voltage U_L3 – MotVol3 UM – active power – ActPower UM – apparent power – AppPower AM – output – available on analog

modules AM AMOut

AM – input 1 – AMIn1 AM – input 2 – AMIn2 AM – input 3 – AMIn3 AM – input 4 – AnaIn4

Page 90: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.3 Block for MMMeas measured value function

SIMOCODE pro PCS 7 Library V8.0

90 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Measured values SIMOCODE pro C/V E01

SIMOCODE pro V from E02

Parameter

TM – max. temperature – available on temperature modules TM

MaxTemp TM – temperature 1 – TMTemp1 TM – temperature 2 – TMTemp2 TM – temperature 3 – TMTemp3 EM – ground fault current – available on ground

fault modules EM

EFltCurr EM – last ground fault trip current

– ETrpCurr

Additional measured values for PROFINET devices

Table 5- 14 Additional measured values for PROFINET devices

Measured values SIMOCODE pro V from E02

Parameter

AM2 – output Available on analog modules AM AM2Out AM2 – input 1 AM2In1 AM2 – input 2 AM2In2 TM2 – max. temperature Available on temperature modules TM

MaxTemp2

TM2 – temperature 1 TM2Temp1 TM2 – temperature 2 TM2Temp2 TM2 – temperature 3 TM2Temp3

5.3.3.1 Read measured values

InputMode The PZDInxx inputs are assigned to the ModeInxx parameter inputs. These determine whether the measured values are read acyclically from data records (ModeInxx = 0) or cyclically (ModeInxx <> 0).

Measured values for SIMOCODE pro devices

Table 5- 15 Assignment of ModeInxx

Modexxxx Meaning 0 Measured value is read from data record. Cyclic measured values: 1 Maximum current I_max 2 Current I_L1 3 Current I_L2 4 Current I_L3 5 Phase unbalance

Page 91: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.3 Block for MMMeas measured value function

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 91

Modexxxx Meaning 6 Thermal memory 7 Time to trip 8 Cooling-down period 9 Last trip current 10 Max. temperature 11 Temperature 1 12 Temperature 2 13 Temperature 3 14 Voltage U_L1 15 Voltage U_L2 16 Voltage U_L3 17 AM – input 1 18 AM – input 2 19 Power factor 20 Active power 1 21 Apparent power 1 28 EM – ground fault current 29 EM – last ground fault trip current 1 If the active power or the apparent power should be read in cyclically, two consecutive inputs have

to be configured with ModeInxx = 20 and ModeInxx = 21 respectively because the active power and apparent power occupy a double word in SIMOCODE pro.

Measured values for SIMOCODE pro PROFINET devices

Table 5- 16 Assignment of ModeInxx

Modexxxx Meaning 0 Measured value is read from data record. Cyclic measured values: 22 TM2 – max. temperature 23 TM2 – temperature 1 24 TM2 – temperature 2 25 TM2 – temperature 3 26 AM2 – input 1 27 AM2 – input 2

Page 92: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.3 Block for MMMeas measured value function

SIMOCODE pro PCS 7 Library V8.0

92 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Assignment to the SIMOCODE pro basic units The table shows the assignment of the inputs PZDInxx and Mode to the basic unit types.

Table 5- 17 Assignment to the basic units

Basic unit type ( BUTyp parameter)

Input word PZDInxx Input ModeInxx

BU 1 PZDIn45 PZDIn67 PZDIn89

ModeIn45 ModeIn67 ModeIn89

BU 2 not available not available SIMOCODE pro PROFINET: BU 3

PZDIn10 PZDIn12 PZDIn14 PZDIn16 PZDIn18

ModeIn10 ModeIn12 ModeIn14 ModeIn16 ModeIn18

5.3.3.2 Assignment of the cyclic process image The IO Controller sends cyclic receive data to SIMOCODE pro. The SIMOCODE pro device returns cyclic send data as a reply.

Table 5- 18 Assignment of PZDOutxx to the analog value output

Basic unit type SIMOCODE pro byte

Cyclic receive data PZDOutxx

BU 1 2–31 Analog value 1 PZDOut23 SIMOCODE pro PROFINET: BU 3

4–5 Analog value 2 PZDOut45

1 If the basic unit type 1 uses bytes 2 and 3 of the cyclic receive data, bytes 4 to 9 of the cyclic send data can be additionally assigned.

Table 5- 19 Assignment of PZDInxx to the feedback from SIMOCODE pro

Basic unit type SIMOCODE pro byte

Cyclic send data

PZDInxx

BU 1 4–5 Values parameterized in SIMOCODE ES

PZDIn45 6–7 PZDIn67 8–9 PZDIn89

SIMOCODE pro PROFINET: BU 3

10–11 – PZDIn10 12–13 PZDIn12 14–15 PZDIn14 16–17 PZDIn16 18–19 PZDIn18

Page 93: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.3 Block for MMMeas measured value function

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 93

5.3.3.3 Write analog output The analog output can be written cyclically to the SIMOCODE pro device.

With the parameter LiOp, you can parameterize whether the operator-controllable input AMOutIn, AM2OutIn (LiOp = FALSE) or the interconnectable input AMOutLi, AM2OutLi is used (LiOp = TRUE).

If the interconnectable input is selected, the operator-controllable input is deactivated.

5.3.3.4 Acyclic reading Reading the data record 94 is either triggered using the interconnectable input parameter RdDataLi, in the OS when selecting the faceplate, or by OS operation (RdDataOp = 1).

The data that is read is normalized and sent to the output parameters.

If an error occurs, the values are set to zero and the output RdErr = 1 is set.

5.3.3.5 Reading and writing data records The RDREC function is used to read the data records and the WRREC function is used to write commands and values to the SIMOCODE pro device.

The "Read Data" button in the faceplates is used to update the displayed values.

Read parameter data record Reading data records is performed irrespective of the current mode.

Reading is performed with the following parameters:

Table 5- 20 Read parameter data record

Parameter Value Meaning RdDataOp 1 1 Read data record RdDataLi 1 0 -> 1 Read data record RdEn 1 Enable read data record RstEnrgy 1 Delete energy consumption RdErr 1 Error when reading WrErr 1 Error when writing RdWrAct 1 Reading/writing data record ended 1 not in Out of service mode and in case of rack failure

Page 94: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.3 Block for MMMeas measured value function

SIMOCODE pro PCS 7 Library V8.0

94 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Errors when reading/writing data record The following errors can occur when reading/writing the data record:

Table 5- 21 Errors when reading/writing data record

Error code (W#16#...)

Description

8085 Due to a problem in the system, information is not currently available (for example, due to a lack of resources).

80A2 DP protocol error at layer 2 80A3 • PROFIBUS DP: DP protocol error with Direct-Data-Link-Mapper or user

interface/user • PROFINET IO: General CM error

80A4 Bus communication disrupted 80C0 The module has the data record, however there are no read data yet. 80C2 The module currently processes the maximum possible jobs for a CPU. 80C3 The required operating resources (memory, etc.) are currently occupied. 80C4 Internal temporary error. Job could not be carried out.

Repeat the job. If this error occurs often, check your installation for sources of electrical interference.

80C6 Data record transfer was canceled due to priority class cancellation. 80C7 Job cancelled due to restart (warm restart) or cold restart of DP master.

If any of these errors is detected, the function call to read or write data record is executed again. The maximum count of these repetitive calls is set to 300 beyond which an error is reported as a read error or write error at the RdErr or WrErr output parameter respectively.

5.3.4 Message characteristics MMMeas reports the following errors at the block output:

● Rack fault (RackF_Act)

● Module fault (ModF_Act)

An error generates a group error GrpErr in output parameter Err_Act.

These errors are not reported as alarms as they are already part of the MMDiag block (both on the DP master system and behind the Y-Link). The alarms are reported using ALARM_8P function.

The messages can be enabled or disabled using the MsgLock input. The alarms are also suppressed if the block is in Out of service mode. The alarms are suppressed for RunUpCyc number of times on warm restart.

Page 95: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.3 Block for MMMeas measured value function

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 95

Message block MsgEvId1

Table 5- 22 Output messages

Message block Message No. Block parameters Message text Message class *

MsgEvId1 1 ExtMsg1 ** $$BlockComment$$External Message1 A 2 ExtMsg2 ** $$BlockComment$$External Message 2 A 3 ExtMsg3 ** $$BlockComment$$External Message 3 A 4 ExtMsg4 ** $$BlockComment$$External Message 4 A 5 ExtMsg5 ** $$BlockComment$$External Message 5 A 6 ExtMsg6 ** $$BlockComment$$External Message 6 A 7 ExtMsg7 ** $$BlockComment$$External Message 7 A 8 ExtMsg8 ** $$BlockComment$$External Message 8 A

* A = Alarm ** User-definable message

Auxiliary values The block supports 10 programmable auxiliary values.

Table 5- 23 Structure of the auxiliary values ALARM_8P

Message No.

Auxiliary value Block parameters Meaning

1 1 ExtVa101 External value 1, user-definable 2 2 ExtVa102 External value 2, user-definable 3 3 ExtVa103 External value 3, user-definable 4 4 ExtVa104 External value 4, user-definable 5 5 ExtVa105 External value 5, user-definable 6 6 ExtVa106 External value 6, user-definable 7 7 ExtVa107 External value 7, user-definable 8 8 ExtVa108 External value 8, user-definable 9 9 ExtVa109 External value 9, user-definable 10 10 ExtVa110 External value 10, user-definable

The MsgStat1, MsgAckn1, and MsgErr1 parameters transfer the following information:

● Message status

● Message error

● Message acknowledgment status

Page 96: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.3 Block for MMMeas measured value function

SIMOCODE pro PCS 7 Library V8.0

96 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.3.5 Start-up characteristics The alarm messages are suppressed in the OB100 for the RunUpCyc no. of times.

5.3.6 Status information

Status information MMMeas The status information is communicated to WinCC for display in the faceplates.

Table 5- 24 Status information – MMMeas

Status1 Bit

Description

0 ... 2 Reserved 3 OosAct.Value 4 OosLi active 5 Reserved 6 LocalAct.Value 7...27 Reserved 28 1 = Group fault 29 MsgLock 30 1 = Rack failure 31 Slv_Typ

Page 97: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.3 Block for MMMeas measured value function

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 97

5.3.7 Enabled operations

Operator permissions The operator permissions for control commands are configured in the OS_Perm structured parameters. These are transferred to WinCC by the OS_PermOut and OS_PermLog parameters. The operating parameters are controlled via the FBs in CFC/SFC.

The operator permissions control operation only in the faceplate.

Table 5- 25 Operator permissions – MMMeas

OS_Perm bit

OS_PermOut bit

OS_PermLog bit

Description

0 0 0 Reserved 1 1 1 1 = Operator is permitted to change to ON

mode. 2 2 2 Reserved 3 3 3 1 = Operator is permitted to change to "Out

of service" (Oos) mode. 4...20 4...20 4...20 Reserved 21 21 21 1 = Operator is permitted to read data from

the device 22 22 22 1 = Operator is permitted to write at output

AM Operator enabled to write AM output

23 23 23 1 = Operator is permitted to write at output AM2

24…31 24…31 24…31 Reserved

OS_PermOut contains the release information of all parameters. OS_PermLog contains the release based on the current modes.

5.3.8 Assigning addresses in HW Config The two bytes of the process image inputs (PII) are transferred from the SIMOCODE device based on the logical address configured for the module. This is a manual configuration that a user has to configure for both the inputs and outputs.

Page 98: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.3 Block for MMMeas measured value function

SIMOCODE pro PCS 7 Library V8.0

98 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Symbolic name in HW Config The PZDIn01 input parameter of the block is interconnected with the corresponding input of the logical address of the device (LAddr).

The logical word address can be assigned to a symbolic name (*).

Figure 5-1 Symbolic name in HW Config

See also Interconnections of the MMDiag block (Page 87)

Page 99: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.4 Block for statistical function MMStat

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 99

5.4 Block for statistical function MMStat

5.4.1 Description of MMStat

Purpose of the block The MMStat block gathers statistical data from data record 95. It receives diagnostic data from the MMDiag block.

For SIMOCODE pro C / V PROFIBUS and PROFINET devices, the MMStat block provides information about the following topics:

● Device operating hours

● Motor hours run

● Number of starts

● Number of overload trips

● Current measurement

● Timers

● Counter

Views The MMStat block supports the following views:

● Trend (Page 44)

● Alarm (Page 45)

● Preview (Page 46)

● Standard (Page 52)

5.4.2 Operating modes The following operating modes are displayed on the block:

● Local

● ON

● Out of service (Oos)

Page 100: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.4 Block for statistical function MMStat

SIMOCODE pro PCS 7 Library V8.0

100 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.4.3 Statistical values The MMStat block reads statistical information via the DS95 data record.

Table 5- 26 DS95

No. Data record number

Read access/write access

Number of bytes

Description

1 DS95 R 90 Read statistical values

The DS95 data record is based on the read capability. The values are read from the SIMOCODE pro device with the RDREC function. This information is written to the output parameters.

Statistical values for SIMOCODE pro devices The statistical values depend on the type of basic unit.

NOTICE

Unsupported values

Values for functions that are not available on the SIMOCODE device are read as zero.

Table 5- 27 Statistical values for SIMOCODE pro devices

Statistical value SIMOCODE pro C SIMOCODE pro V Parameter Device operating hours available available D_OpH Motor operating hours available available M_OpH Internal motor operating hours available available M_IntOpH Downtime available available M_StpTm Permissible starts available available P_StrtAct Number of overload trips available available N_OvlTrp Number of internal overload trips

available available N_IntOvlTrp

Number of starts available available N_Strt Internal number of starts "Clockwise"

available available N_IntCwStrt

Internal number of starts "Counterclockwise"

available available N_IntCcwStrt

Number of parameter assignments

available available N_Param

Time until test required not available available TmTstReq Energy consumption not available Available with UM EngyCon Timer 1 Actual value available available Tmr1Act Timer 2 Actual value available available Tmr2Act Timer 3 Actual value not available available Tmr3Act Timer 4 Actual value not available available Tmr4Act

Page 101: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.4 Block for statistical function MMStat

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 101

Statistical value SIMOCODE pro C SIMOCODE pro V Parameter Counter 1 - Actual value available available Cnt1Act Counter 2 - Actual value available available Cnt2Act Counter 3 - Actual value not available available Cnt3Act Counter 4 - Actual value not available available Cnt4Act Calculation module 1 not available available CalMod1Out Calculation module 2 not available available CalMod2Out

Additional statistical values for PROFINET devices

Table 5- 28 Additional statistical values for PROFINET devices

Statistical value SIMOCODE pro PROFINET Parameter Timer 5 Actual value available Tmr5Act Timer 6 Actual value available Tmr6Act Counter 5 - Actual value available Cnt5Act Counter 6 - Actual value available Cnt6Act Calculation module 3 available CalMod3Out Calculation module 4 available CalMod4Out Analog MultiplexerOutput available AnaMulOut

5.4.4 Reading and writing data records The RDREC function is used to read the data records and the WRREC function is used to write commands and values to the SIMOCODE pro device.

The "Read Data" button in the faceplates is used to update the displayed values.

Read parameter data record Reading data records is performed irrespective of the current mode.

Reading is performed with the following parameters:

Table 5- 29 Read parameter data record

Parameter Value Meaning RdDataOp 1 1 Read data record RdDataLi 1 0 -> 1 Read data record RdEn 1 Enable read data record RstEnrgy 1 Delete energy consumption RdErr 1 Error when reading

Page 102: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.4 Block for statistical function MMStat

SIMOCODE pro PCS 7 Library V8.0

102 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

WrErr 1 Error when writing RdWrAct 1 Reading/writing data record ended 1 not in Out of service mode and in case of rack failure

Errors when reading/writing data record The following errors can occur when reading/writing the data record:

Table 5- 30 Errors when reading/writing data record

Error code (W#16#...)

Description

8085 Due to a problem in the system, information is not currently available (for example, due to a lack of resources).

80A2 DP protocol error at layer 2 80A3 • PROFIBUS DP: DP protocol error with Direct-Data-Link-Mapper or user

interface/user • PROFINET IO: General CM error

80A4 Bus communication disrupted 80C0 The module has the data record, however there are no read data yet. 80C2 The module currently processes the maximum possible jobs for a CPU. 80C3 The required operating resources (memory, etc.) are currently occupied. 80C4 Internal temporary error. Job could not be carried out.

Repeat the job. If this error occurs often, check your installation for sources of electrical interference.

80C6 Data record transfer was canceled due to priority class cancellation. 80C7 Job cancelled due to restart (warm restart) or cold restart of DP master.

If any of these errors is detected, the function call to read or write data record is executed again. The maximum count of these repetitive calls is set to 300 beyond which an error is reported as a read error or write error at the RdErr or WrErr output parameter respectively.

5.4.5 Message characteristics MMStat signals the following errors at the block output:

● Rack fault (RackF_Act)

● Module fault (ModF_Act)

An error generates a group error GrpErr in output parameter Err_Act.

These errors are not signaled as alarms as they are already part of the MMDiag block (both on the DP master system and behind the Y-Link). The alarms are output using the ALARM_8P function.

The messages can be enabled or disabled using the MsgLock input. The alarms are also suppressed if the block is in Out of service mode. The alarms are suppressed for RunUpCyc number of times on warm restart.

Page 103: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.4 Block for statistical function MMStat

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 103

Message block MsgEvId1

Table 5- 31 Output messages

Message block Message No. Block parameters Message text Message class *

MsgEvId1 1 ExtMsg1 ** $$BlockComment$$External message 1 A 2 ExtMsg2 ** $$BlockComment$$External message 2 A 3 ExtMsg3 ** $$BlockComment$$External message 3 A 4 ExtMsg4 ** $$BlockComment$$External message 4 A 5 ExtMsg5 ** $$BlockComment$$External message 5 A 6 ExtMsg6 ** $$BlockComment$$External message 6 A 7 ExtMsg7 ** $$BlockComment$$External message 7 A 8 ExtMsg8 ** $$BlockComment$$External message 8 A

* A = Alarm ** User-definable message

Auxiliary values The block supports 10 programmable auxiliary values.

Table 5- 32 Structure of the auxiliary values ALARM_8P

Message No.

Auxiliary value Block parameters Meaning

1 1 ExtVa101 External value 1, user-definable 2 2 ExtVa102 External value 2, user-definable 3 3 ExtVa103 External value 3, user-definable 4 4 ExtVa104 External value 4, user-definable 5 5 ExtVa105 External value 5, user-definable 6 6 ExtVa106 External value 6, user-definable 7 7 ExtVa107 External value 7, user-definable 8 8 ExtVa108 External value 8, user-definable 9 9 ExtVa109 External value 9, user-definable 10 10 ExtVa110 External value 10, user-definable

The MsgStat1, MsgAckn1, and MsgErr1 parameters transfer the following information:

● Message status

● Message error

● Message acknowledgment status

Page 104: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.4 Block for statistical function MMStat

SIMOCODE pro PCS 7 Library V8.0

104 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.4.6 Start-up characteristics The alarm messages are suppressed in the OB100 for the RunUpCyc no. of times.

5.4.7 Status information

Status information MMStat The status information is communicated to WinCC for display in the faceplates.

Table 5- 33 Status information – MMStat

Status1 Bit

Description

0 ... 2 Reserved 3 OosAct.Value 4 OosLi active 5 Reserved 6 LocalAct.Value 7 ... 27 Reserved 28 1 = General fault 29 MsgLock activated 30 1 = Rack failure 31 Reserved

Page 105: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.4 Block for statistical function MMStat

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 105

5.4.8 Enabled operations

Operator permissions The operator permissions for control commands are configured in the OS_Perm structured parameters. These are transferred to WinCC via the OS_PermOut and OS_PermLog parameters. The operator parameters are operable from the FBs in CFC/SFC.

The operator permissions control operation only in the faceplate.

Table 5- 34 Operator permissions – MMStat

OS_Perm bit

OS_PermOut bit

OS_PermLog bit

Description

0 0 0 Reserved 1 1 1 1 = Operator is permitted to change to ON

mode. 2 2 2 Reserved 3 3 3 1 = Operator is permitted to change to "Out of

service" (Oos) mode 4...20 4...20 4...20 Reserved 21 21 21 1 = Operator is permitted to read data from the

device 22…31 22…31 22…31 Reserved

OS_PermOut contains the permission information of all the parameters. OS_PermLog contains the permission evaluated based on the current operating states.

5.4.9 Assigning addresses in HW Config The two bytes of the process image inputs (PII) are transferred from the SIMOCODE device based on the logical address configured for the module. This is a manual configuration that a user has to configure for both the inputs and outputs.

Page 106: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.4 Block for statistical function MMStat

SIMOCODE pro PCS 7 Library V8.0

106 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Symbolic name in HW Config The PZDIn01 input parameter of the block is interconnected with the corresponding input of the logical address of the device (LAddr).

The logical word address can be assigned to a symbolic name (*).

Figure 5-2 Symbolic name in HW Config

See also Interconnections of the MMDiag block (Page 87)

Page 107: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.5 Block for timestamping MMTime

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 107

5.5 Block for timestamping MMTime

5.5.1 Description MMTime The block executes the following functions:

● Time stamping: SIMOCODE pro V PROFIBUS can timestamp up to 8 digital signals with high temporal precision (10 ms). In the process, every change in the state of the digital signals will be recorded. If the time stamping function is activated, SIMOCODE pro V PROFIBUS transfers the time-stamped events to the control system additionally for the signals configured in the device.

● Logbook function: The block reads out the error buffer of SIMOCODE pro C / V and SIMOCODE pro V PROFINET. This logbook function is available for all basic units.

Time stamping function with SIMOCODE pro V PROFIBUS To use time stamping, the DP master being used must support the time synchronization function via PROFIBUS (e.g. DP master connections for SIMATIC S7-400). Alternatively, you can use a master clock (e.g. SICLOCK).

You can activate time synchronization for SIMOCODE pro V in STEP 7 HW Config in the slave properties under "Time Synchronization".

The set synchronization interval must correspond to the configuration of the clock master.

The time-stamped events are saved in the device and transferred to the control system. This is displayed in the Alarm (Page 45) view.

Logbook function with SIMOCODE pro V PROFINET SIMOCODE pro V PROFINET supports time synchronization via the Network Time Protocol (NTP).

If a valid time is available, the trip errors and events in the error buffer are logged with the date and time of day (real-time stamping).

Otherwise, logging is carried out with a time stamp that reproduces the operating hours of the device.

Views The MMTime block supports the following views:

● Alarm (Page 45)

● Logbook (Page 54)

The MMTime block can be indicated via two block icons (Page 25).

Page 108: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.5 Block for timestamping MMTime

SIMOCODE pro PCS 7 Library V8.0

108 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.5.2 Logbook function The error buffer is available for SIMOCODE pro C / V PROFIBUS and PROFINET .

The error buffer contains the tripping events and events that a SIMOCODE pro device has saved.

A maximum of 21 messages are recorded and displayed in the Logbook view (Page 54).

Each message contains the following attributes:

Attributes PROFIBUS devices PROFINET devices Tripping events Output LogId1 to LogId21 Number of the message Number of the message Output LogTm1 to LogTm21 Operating hours of the

device Real-time stamp 1

Text of the message Events2 Output EnCktCls / EnCktOpn Number of the message Number of the message Output ClsTmStmp / OpnTmStmp Time stamp Time stamp Text of the message 1 Date and real time are logged, if there is a valid time that has been synchronized via an NTP clock

or set manually with SIMOCODE ES. 2 When using DM-F expansion modules with SIMOCODE pro V.

Data records The values are read from the SIMOCODE pro device with the RDREC function. This information is written to the output parameters.

No. Data

record number

Read access/write access

Number of bytes

Description For PROFIBUS

For PROFINET

1 DS72 R 125 Read tripping event Yes Yes 2 DS73 R 165 Read event (DM-F) Yes Yes 3 DS76 R 193 Time stamp for tripping

event No Yes

4 DS77 R 193 Time stamp for events (DM-F)

No Yes

Tripping events

Table 5- 35 Messages about tripping event – MMTime

No. Message No. Event 1 0 Hardware fault basic unit 2 1 Module fault

Page 109: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.5 Block for timestamping MMTime

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 109

No. Message No. Event 3 2 Temporary components 4 3 Configuration fault 5 4 Parameterization 6 5 Bus 7 6 PLC/PCS 8 8 Execution ON command 9 9 Execution Stop command 10 10 FB ON 11 11 FB OFF 12 12 Stalled positioner 13 13 Double 0 14 14 Double 1 15 15 End position 16 16 Antivalence 17 17 Cold starting (TPF) test position feedback 18 18 UVO fault 19 19 OPO error (operational protection OFF) 20 25 Asymmetry 21 26 Overload 22 27 Overload + phase failure 23 28 Internal ground fault 24 29 External ground fault 25 31 Thermistor trip level 26 32 Thermistor short-circuit 27 33 Thermistor open circuit 28 35 TM1 trip T> 29 36 TM1 sensor fault 30 37 TM1 Out of Range 31 38 EM open circuit 32 39 EM short-circuit 33 40 Trip level I> 34 41 Trip level I< 35 42 Trip level P> 36 43 Trip P< 37 44 Trip level cos phi< 38 45 Trip level U< 39 46 AM1 trip level 0/4–20 mA> 40 47 AM1 trip level 0/4–20 mA< 41 48 Stalled rotor 42 52 Number of starts > 43 56 External fault 1 44 57 External fault 2

Page 110: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.5 Block for timestamping MMTime

SIMOCODE pro PCS 7 Library V8.0

110 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

No. Message No. Event 45 58 External fault 3 46 59 External fault 4 47 60 External fault 5 48 61 External fault 6 49 64 Analog module open circuit 50 65 Test trip 51 66 DM-F safety-related tripping 52 67 DM-F wiring 53 68 DM-FL cross circuit 54 72 TM2 trip T> 55 73 TM2 sensor fault 56 74 TM2 Out of Range 57 80 AM2 trip level 0/4–20 mA> 58 81 AM2 trip level 0/4–20 mA< 59 88 AM2 open circuit 60 – No. power-on: In the message text, x will be replaced with the value of

the error message ID. 61 104 Warning level T > 62 106 TM2 sensor fault 63 107 TM2 Out of Range 64 112 Warning level 0/4-20mA> 65 113 Warning level 0/4-20mA< 66 120 AM2 open circuit 67 128 TM2 warning level T> 68 129 TM2 trip level T> 69 130 TM2 sensor fault 70 131 TM2 Out of Range 71 138 AM2 warning level 0/4-20mA> 72 139 AM2 warning level 0/4-20mA< 73 140 AM2 trip level 0/4-20mA> 74 141 AM2 trip level 0/4-20mA< 75 142 Limit monitoring 5 76 143 Limit monitoring 6 77 160 AM2 open circuit

Page 111: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.5 Block for timestamping MMTime

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 111

DM-F events When using DM-F Local and DM-F PROFIsafe fail-safe digital modules, the "Enabling circuit closed" and "Enabling circuit open" events are saved.

Table 5- 36 Messages about events – MMTime

No. Message No. Event 1 200 or 202 Enabling circuit closed 2 201 or 203 Enabling circuit open

5.5.3 Messages The following application is only available for SIMOCODE pro PROFIBUS devices (Slv_Typ = 0).

Signal messages and special messages SIMOCODE detects three message buffers: DS12, DS13, and DS14. Each of these data sets had 180 bytes to contain 16 messages.

Table 5- 37 Assignment

Byte.Bit Description Size 0.0 Signal message or special message 1 12 bytes 12.0 Signal message or special message 2 12 bytes 24.0 Signal message or special message 3 12 bytes … … … 180.0 Signal message or special message 16 12 bytes

Page 112: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.5 Block for timestamping MMTime

SIMOCODE pro PCS 7 Library V8.0

112 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Structure of a signal message

Table 5- 38 Signal message assignment

Byte.Bit Description Type IDs (important for SIMOCODE-III) 0.0 Slot number of

module Byte[1] 0x01: DPV1 slot model

0x04: S7 slot model 1.0 Channel number of

module Byte[1] 0x00 .. 0x07: Number of timestamping - Input

2.0 Signal status Byte[1] Bit 7: 1 = input signal = rising edge 0 = output signal = falling edge Bit 6: 0 = Not used

3.0 Reserved Byte[1] 0x00 4.0 Time Byte[8] Bit 0:

1 = Clock is synchronized, 0 = Clock is not synchronized

Up to 8 signal messages can be configured via SIMOCODE ES. To display the signal messages, the timestamping must be activated in SIMOCODE ES.

Structure of a special message Special messages are predefined. There are 5 special messages that are displayed, depending on the alarm type.

Table 5- 39 Special message assignment

Byte.Bit Description Type IDs (important for SIMOCODE-III) 0.0 Slot number of

module Byte[1] 0x0: DPV1 slot model

0x02: S7 slot model 1.0 Specifier of the

special message Byte[1] 0x01: Start-up data

0x02: Time-of-day frame failure 0x04: Time difference between frame and internal clock > 1 second 0x05: STOP of functionality and timestamping 0x06: Buffer full

2.0 Feature of the special message

Byte[1] 01h: START / INCOMING 00h: END / OUTGOING

3.0 Reserved Byte[1] 0x00 4.0 Time Byte[8] Total time according to ISP process:

Bit 0: 1 = Clock is synchronized, 0 = Clock is not synchronized

Page 113: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.5 Block for timestamping MMTime

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 113

5.5.4 Signaling response The errors are signaled in WinCC. After the alarm has been generated, the message is transmitted to the Alarm view by the MMTime faceplate together with the time stamp.

Message block MsgEvId1 The following messages are generated:

Table 5- 40 Output messages

Message block Message No. Block parameters Message text Message class *

MsgEvId1 1 SrStaTmst[0] $$BlockComment$$Restart S 2 SrStaTmst[1] $$BlockComment$$Error in time stamp

message frame S

3 SrStaTmst[2] $$BlockComment$$Difference between time stamp message frame and internal clock > 1 sec.

S

4 SrStaTmst[3] $$BlockComment$$Failure of time stamping functionality

S

5 SrStaTmst[4] $$BlockComment$$Buffer overflow S 6 Reserved 7 Reserved 8 Reserved

* S = AS, OS process control fault

Table 5- 41 Structure of the auxiliary values ALARM_8P1

Message No. Auxiliary value

Block parameters Meaning

1 1 SarrTimeStamp[0] Timestamp array value special message 2 2 SarrBatchName Name of batch 3 3 SdwStepNoLoc Step number 4 4 SdwBatchId Identification number of the batch 5 5 ExtVa105 External value 5, user-definable 6 6 ExtVa106 External value 6, user-definable 7 7 ExtVa107 External value 7, user-definable 8 8 ExtVa108 External value 8, user-definable 9 9 ExtVa109 External value 9, user-definable 10 10 ExtVa110 External value 10, user-definable

Page 114: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.5 Block for timestamping MMTime

SIMOCODE pro PCS 7 Library V8.0

114 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Message block MsgEvId2 The following messages are generated:

Table 5- 42 Output messages

Message block Message No. Block parameters Message text Message class MsgEvId2 1 SarMsgEff2[1] $$BlockComment$$ Signal 0 S

2 SarMsgEff2[2] $$BlockComment$$ Signal 1 S 3 SarMsgEff2[3] $$BlockComment$$ Signal 2 S 4 SarMsgEff2[4] $$BlockComment$$ Signal 3 S 5 SarMsgEff2[5] $$BlockComment$$ Signal 4 S 6 SarMsgEff2[6] $$BlockComment$$ Signal 5 S 7 SarMsgEff2[7] $$BlockComment$$ Signal 6 S 8 SarMsgEff2[8] $$BlockComment$$ Signal 7 S

* S = AS, OS process control fault

Table 5- 43 Structure of the auxiliary values ALARM_8P

Message No. Auxiliary value

Block parameters Meaning

1 1 SarrTimeStamp[1] Timestamp array value signal message 2 2 SarrBatchName Name of batch 3 3 SdwStepNoLoc Step number 4 4 SdwBatchId Identification number of the batch 5 5 ExtVa205 External value 5, user-definable 6 6 ExtVa206 External value 6, user-definable 7 7 ExtVa207 External value 7, user-definable 8 8 ExtVa208 External value 8, user-definable 9 9 ExtVa209 External value 9, user-definable 10 10 ExtVa210 External value 10, user-definable

The MsgStat1, MsgAckn1, and MsgErr1 parameters transfer the following information:

● Message status

● Message error

● Message acknowledgment status

Parameters SigMsg1 to SigMsg8 are messages that can be defined by the user via SIMOCODE ES.

Page 115: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.5 Block for timestamping MMTime

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 115

5.5.5 Driver generator The "Generate Module Driver" function automatically inserts the MMTime block into the following organization blocks within the run sequence:

● OB40 (process alarm)

● OB100 (cold restart)

The DAddr input is parameterized via the information from the HW Config.

5.5.6 Start-up characteristics In OB100, the identifier for "Start up" is entered in output OMODE (OMODE = 16#xx01xxxx).

The alarm messages are suppressed in the OB100 for the RunUpCyc no. of times.

Acknowledge the errors GrpErr, RackF_Act, ModF_Act, Rack1Err, and Rack2Err.

5.5.7 Assigning addresses in HW Config The two bytes of the process image inputs (PII) are transferred from the SIMOCODE device based on the logical address configured for the module. This is a manual configuration that a user has to configure for both the inputs and outputs.

The Generate module driver function shall insert the driver blocks and generate all the required interconnections between the driver blocks RACK, OB_DIAG1 / OB_DIAG1_PN, MOD_SWT. All the interconnections between these OB_DIAG1 / OB_DIAG1_PN, MOD_SWT driver blocks and SIMOCODE signaling blocks shall be performed manually.

The MMTime block shall be inserted manually by the user in the CFC chart.

Procedure The following configuration shall be done by the user manually for all the above mentioned blocks:

1. Parameterize the diagnostic address of the SIMOCODE pro module to the MMDiag block.

2. Parameterize DPA_Link based on the hardware configuration (0 = DP-MASTER, 1 = Behind the Y-link)

See also Interconnections of the MMDiag block (Page 87)

Page 116: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

116 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.6 MMRevDhl motor block

5.6.1 Application

5.6.1.1 Description of MMRevDhl

Purpose of the block The MMRevDhl motor block controls the operation of a Dahlander High Feature reversing starter.

The following commands are available in automatic mode and in manual mode:

● Forward

● Fast Forward

● Reverse

● Fast Reverse

● Stop

Use In AUTO mode, the commands can be given based on the Feature.Bit4 : 0 = pushbutton mode, 1 = switch mode.

The commands for starting and stopping the motor (FwdMan, FFwdMan, StopMan, RevMan, FRevMan) are reset at the end of the execution cycle of the block because the commands are pulse signals in manual operation.

At the ErrorNum parameter, error “Invalid signal status” is indicated if FwdAut = 1 and StopAut = 1, provided that Feature.Bit4 = 0.

Block icons and faceplates

The MMRevDhl motor block can be indicated via 2 block icons (Page 25).

The commands can be issued from the faceplate if the operator permission has been programmed at the OS_Perm parameter.

Page 117: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 117

Views The MMRevDhl motor block supports the following views:

● Batch (Page 43)

● Trend (Page 44)

● Alarm (Page 45)

● Memo (Page 46)

● Standard (Page 56)

● Maintenance (Page 58)

● Preview (Page 59)

5.6.1.2 Operating modes The following modes are available for the MMRevDhl block:

● Local (for motors and solenoid valves)

● Automatic

● Manual

● Out of service(Oos)

Page 118: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

118 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Conditions for changing the mode

Table 5- 44 Conditions for changing the mode

No. Conditions

① MANUAL (ON) → Out of service (Oos) • Via faceplate (OosOp = 1) if ModLiOp = 0 or • on an edge transition 0 → 1 from OosLi, if Feature.Bit1 = 1 (response for Out of

service mode)

② Out of service (Oos) → MANUAL (ON) Via faceplate (ManModOp = 1)

③ Local → MANUAL • Via faceplate (ManModOp = 1) if ModLiOp = 0 and LocalSetting = 3 or LocalSetting

= 4 or • via LocalLi = 0, if LocalSetting = 1, LocalSetting = 2

④ AUTOMATIC → MANUAL • Via faceplate (ManModOp = 1) if ModLiOp = 0 or • via ManModLi = 1 if ModLiOp = 1 and Feature.Bit4 = 0 (pushbutton mode) or • via AutModLi = 0 if ModLiOp = 1 and Feature.Bit4 = 1 (switch mode)

⑤ MANUAL → AUTOMATIC • Via faceplate (AutModOp = 1) if ModLiOp = 0 or • via AutModLi = 1 if ModLiOp = 1

⑥ Manual → Local • Via faceplate (LocalOp = 1) if ModLiOp = 0 and LocalSetting = 3 or LocalSetting =

4 or • via LocalLi = 1, if LocalSetting = 1, LocalSetting = 2

⑦ AUTOMATIC → Local • Via faceplate (LocalOp = 1) if ModLiOp = 0 and LocalSetting = 3 or LocalSetting =

4 or • via LocalLi = 1, if LocalSetting = 1, LocalSetting = 2

⑧ * Local → AUTOMATIC • Via faceplate (AutModOp = 1) if ModLiOp = 0 and LocalSetting = 3 or LocalSetting

= 4 or • via LocalLi = 0, if LocalSetting = 1, LocalSetting = 2

If ModLiOp = 1, the enabled operations for all mode changes will be deactivated.

If the block is in local mode, no other mode can be activated for it.

Page 119: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 119

Switching between the operating modes The switchover between "manual and automatic mode" takes place as shown in the following schematic:

Reference For more information, refer to the Function Manual "PCS7 Process Control System, PCS7 Advanced Process Library V8.0" on the Internet (http://support.automation.siemens.com/WW/view/en/57265842).

5.6.1.3 Mode changeover error This fault is output if you want to change the mode of the block from:

● manual to automatic mode or

● local to automatic mode

and the previous state does not match the target state (bumpless switchover).

It is only possible to change the mode if the block is in the same state afterward and beforehand. Bumpless switchover can be activated / deactivated using the connection Feature.Bit17 bumpless switchover to automatic mode.

Bumpless switchover from local to automatic mode is performed with the LocalSetting parameter.

In the standard view of the faceplate, the text "Error switchover" is output on unwanted non-bumpless switchover.

If switchover from local to automatic mode is initiated by the operator and this error occurs, the block will remain in local mode.

Page 120: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

120 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.6.1.4 Forcing operating modes The "Forcing operating modes" function enables you to put the function block into another operating state via interconnectable input parameters, independently of the current control.

Table 5- 45 Parameters for "Forced operating states"

Parameter Value Meaning StopForce 1 Stop motor (forced) FwdForce 1 Start motor forward (forced) FFwdForce 1 Start motor fast forward (forced) RevForce 1 Start motor in reverse (forced) FRevForce 1 Start motor in fast reverse (forced)

Inconsistent input parameters generate the ErrorNum parameter, the control remains unchanged.

Note • The function can be performed in MANUAL and AUTO mode.

If you have parameterized the prewarning time WarnTiMan and the waiting time IdleTime as greater than 0, the control will only become effective after the set times have elapsed.

• When operating states are forced, the Enable direct changeover between forward and reverse operation feature bit has no effect. Direct changeover between forward and reverse operation is always possible.

Display in the faceplate and block icon If an operating state is forced, this is displayed in the block icon and in the standard view of the faceplate. In the block symbol: Display with a red F and the crossed-out lock.

In the standard view of the faceplate: Display of a text for the forced operating state, e.g. "Forced stop" for motors. This is additionally displayed with the crossed-out lock.

Page 121: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 121

5.6.1.5 Control functions for directions In local, manual, and automatic mode, the commands for the change of direction are controlled via Feature.Bit5 and Feature.Bit7.

The switchover time cannot be applied to Force control commands.

Commands for change of direction

Off Fwd Rev FFwd FRev

OFF – – Feature.Bit5* Feature.Bit5* Fwd – – Feature.Bit7 Feature.Bit5* Feature.Bit5

Feature.Bit7 Rev – Feature.Bit7 – Feature.Bit5*

Feature.Bit7 Feature.Bit5*

FFwd Feature.Bit5* – Feature.Bit5 Feature.Bit7

– Feature.Bit5 Feature.Bit7

FRev Feature.Bit5* Feature.Bit5 Feature.Bit7

– Feature.Bit5 Feature.Bit7

* also possible without Feature bit

5.6.2 Output signal for ready to start The RdyToStart = 1 output parameter displays whether a start is possible in AUTO mode.

Readiness to start is output if the following conditions are fulfilled:

● No general fault is pending.

● No interlock is active

● No forcing of operating states and the setting value is active

● No rapid stop is active

● The block is in automatic mode

● The waiting time for the restart must have elapsed

Page 122: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

122 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.6.3 Resetting of the block Resetting the block is necessary if an interlock occurred via the input Protect, Trip, or an error ("runtime" or "control") has occurred. The RdyToReset output signals if resetting is possible via the RstLi input parameter or via the automatic commands.

The block can be reset in different ways:

● Resetting by interconnection (RstLi input).

● Resetting by the operator via pushbutton in the faceplate (RstOp input).

● Resetting by a 0-1 edge transition of the corresponding automatic or local signal (except for motor protection).

To reset via the faceplate, the operator must have the appropriate authorization (OS_Perm). After a reset, the P_Rst output is set for one cycle.

5.6.4 Restart lock after changing direction of rotation or switching off the motor Use the IdleTime input parameter to enter a restart lock for changing the direction of rotation and for restarting the motor.

Via the Enable direct changeover between forward and reverse operation feature bit, you define how switchover is to be performed. When the "Stop" command is given, the motor goes immediately into "Stop" mode and the IdleTime starts after the feedback has been received (FbkFwd and FbkRev = 0). The motor cannot be started again until the IdleTime has expired.

The IdleTime parameter can be set independently of the MonTiDynamic parameter.

5.6.5 Limit value monitoring with hysteresis The block supports the standard function limit value monitoring with hysteresis. The function is executed via the AV_Hyst input parameter.

You can additionally define the hysteresis for all limit monitoring functions, e.g. to suppress Signalflutter. Enter the hysteresis as as physical variable on the block and in the faceplate.

5.6.6 Rapid stop Rapid stop has the highest priority in manual and automatic mode, and in all other operating states (e.g. forcing of states). The function is activated via the faceplate. This depends on the parameterization in the Enable rapid stop via faceplate feature bit.

You enter the command for rapid stop via the RapidStp = 1 input parameter.

Page 123: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 123

The drive is stopped immediately by clicking the "Rapid stop" button in the faceplate. This is displayed in the faceplate:

For implementation of the rapid stop function for local operation, the R_StpAct = 1 output parameter is set. You must interconnect this parameter with the relevant channel block and in the I/Os to implement this rapid stop function in the hardware.

Release of the rapid stop for all modes is performed in the faceplate via the "Reset" button (RstOp = 1). In the CFC, release is performed via the RstLi = 1 input parameter. In automatic mode, release can also be performed via a 0-1 edge transition of the control if the Feature.Bit9 = 1.

Rapid stop can also be selected in the stop state of the motor. This also prevents the motor from starting.

5.6.7 Specify warning times for controls The MMRevDhl block supports the Specify warning times for controls function.

You can generate warning signals when motors are started. Warning signals can be generated in the following modes:

● Manual mode (WarnTiMan input parameter)

● Automatic mode (WarnTiAut input parameter)

You specify the warning times in seconds using the WarnTiMan and WarnTiAut input parameters. If a motor is started, this is displayed in the output parameter with WarnAct = 1. The motor then starts after the set warning times has elapsed and WarnAct is reset (WarnAct = 0). A warning to this effect will not be output if you set a value smaller than the SampleTime parameter for the warning times (WarnTiMan, WarnTiAut).

5.6.8 Issuing maintenance release The maintenance release is information about a measuring point at which maintenance, service, or calibration work is to be performed. You can use the signal for the maintenance release to convey information about release of a measuring point from the OS to the maintenance station.

You issue the maintenance release in the parameter view via operation of the MS_RelOp = 1 input parameter (operator control permission "high-value process operation" required). A maintenance release is then provided via the interconnectable output parameter MS_Release = 1 for further processing. An operator in the message is generated.

Page 124: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

124 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.6.9 Suppressing messages using the MsgLock parameter The MMOprtn block supports the standard function message suppression. The function is executed via the MsgLock parameter.

With the Feature.Bit25, you determine which messages are suppressed via the MsgLock = 1 parameter:

● All messages on the block

● All messages on the block except for process control messages, the message class that is released by the default setting (e.g. CSF, motor protection, feedback error) and external messages.

Pending messages are given the "output" status with MsgLock = 1.

5.6.10 Simulation Simulation is the manipulation of a signal, independently of the actual source of the signal or logic that generates this signal.

Simulation can only be activated / deactivated with the operator control permission level for system authorization via SimOn =1 if SimLiOp = 0 or from the CFC via SimOnLi=1 if SimLiOp = 1.

During simulation, the Quality Code(ST_Worst) is set to 16#60. The icons for the Quality Code are displayed in the block icon and in the overview window of the faceplates.

Simulation is triggered during runtime in the faceplate's parameter view by clicking on the "Simulation" button.

The simulation is characterized as follows:

● Simulation can only be activated / deactivated with the operator control permission level for system authorization.

● The technological functions are not influenced

● All process-relevant output signals, such as Fwd, Rev, FFwd, and FRev are given "Simulation" status.

● In the case of blocks with operator control or monitoring functions (for example, faceplates), these signals are identified in the faceplate with the status for the simulation as follows:

● The group status of the block is displayed in the status bar of the block icon and of the

operator block with the simulation status as follows:

● The interlocking functions of the block are activated in accordance with the input

parameter BypProt = 0 or deactivated BypProt = 1).

Page 125: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 125

● Auxiliary values (e.g. UserAna1) cannot be simulated.

● When the control function of the block can be manipulated, the read-back and feedback values (for example, FbkSpd1) are adjusted according to the manipulation of the control settings

5.6.11 Monitoring functions The monitoring function can be released or blocked via the operator in the faceplate.

The Monitor parameter indicates whether the feedback for the monitoring function is activated:

● Monitor = 1 (default): Monitoring function ON

● Monitor = 0: Monitoring function OFF

If the block is in Local mode, no check is made for monitoring errors.

If the "Forward" / "Stop" command is output and no correct feedback signal is received within the defined time (MonTiDynamic), the block will issue an error signal (MonDynErr) and the output signal will issue the "Stop" command.

The monitoring time is specified in seconds. If the monitoring time is less than the sampling time, the monitoring time will be calibrated to the sampling time. The time can be entered in the faceplate in the expanded command area in day-hour-minute-second format.

The function is not available in Out of Service mode.

Note

The monitoring functions are functions of the block.

SIMOCODE pro nevertheless has its own functions for monitoring the on/off operations and the switching state of the motor.

The monitoring functions of the block can come into conflict with monitoring functions configured in SIMOCODE pro under certain conditions.

Monitoring of the starting and stopping characteristics for motors The monitoring of the starting characteristics is implemented via the MonTiDynamic parameter. The monitoring time states the period in which the associated feedback value for a control signal, e.g. FbkStart must be present in the motor. If this is not the case, the text "Feedback error" is displayed in the standard view of the faceplate.

At the same time, an error message is output. The block then enters its neutral position. In motors, this is always the stop state. The block signals this on the relevant output parameter of the error message with 1, e.g. on the motor with MonDynErr = 1.

Page 126: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

126 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

The parameters are set in seconds.

Note

The monitoring functions are functions of the block.

SIMOCODE pro nevertheless has its own functions for monitoring the on/off operations. You can set these using the device parameters Motor control → Control function → Execution time.

The monitoring functions of the block can come into conflict with monitoring functions configured in SIMOCODE pro under certain conditions.

Monitoring of the running characteristics for motors The monitoring of the running characteristics is implemented via the MonTiStatic parameter. The monitoring time states the period in which the feedback value can change its value quickly without an error message being output.

Example: A running motor with the feedback via the FbkStart input parameter. This parameter should be static in accordance with the control, but may change its value within the monitoring time.

If change of the FbkStart parameter is longer than the monitoring time, the "Runtime error" text will be displayed in the standard view of the faceplate.

At the same time, an error message is output. The block then enters its neutral position. For motors, this is always the stop state. The block signals this on the relevant output parameter of the error message with 1, e.g. on the motor with MonStaErr = 1.

The parameters are set in seconds.

Note

The monitoring functions are functions of the block.

SIMOCODE pro nevertheless has its own functions for monitoring the switching state of the motor. You can set these using the device parameters Motor control → Control function → Feedback time.

The monitoring functions of the block can come into conflict with monitoring functions configured in SIMOCODE pro under certain conditions.

See also MMRevDhl - Maintenance (Page 58)

Page 127: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 127

5.6.12 Motor Protection The motor protection function is used to switch off the motor on a thermal overload (Trip = 0, interconnectable input parameters).

If the motor is switched off via the motor protection function, a message is generated (process control message). This is displayed in the faceplate with the text "Motor protection."

You can influence the reset via various Feature.Bits.

5.6.13 Interlocking

Interlocking with Permit, Intlock and Protect A maximum of three types of interlock can be used for the MMRevDhl block. Three separate inputs named Permit, Intlock, and Protect are available for these functions.

Table 5- 46 Interlock types

Input Value Meaning Permit 1 Activation enable ("Permission"):

The activation enable makes it possible to leave the neutral position of the block in response to operator input or a command from the program (CFC). The activation enable has no effect if the block is not in the neutral position.

Intlock 0 Interlock without reset ("Interlock"): An active interlock condition brings the block to the neutral position. After the interlock condition has gone, the currently active control function becomes active again in automatic or local mode. In manual mode the faceplate can be operated again after the interlock condition has gone.

Protect 0 Interlock with reset ("Protection"): An active interlock condition brings the block to the neutral position. After the interlock conditions are cleared, the operator or an activation sequence must perform a reset to once again enable activation of the control according to the input parameters.

Page 128: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

128 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Display of interlock The state of the interlock is visualized in the faceplates and in the block icons.

Table 5- 47 Icons for interlock

Icon Meaning

No interlock is active

One or more interlocks are pending

No lock Individual interlocks are not active (the input parameters are inactive; the button in the faceplate is invisible): • Perm_En = 0 or Permit.ST = 16#FF • Prot_En = 0 or Protect.ST = 16#FF • Intl_En = 0 or Intlock.ST = 16#FF

Note No safe position

Motors and values are not put into the safe position if one of the interlock inputs is active (e.g., Intlock = 0) and the corresponding signal status is 16#FF (Intlock.ST = 16#FF).

"Interlock active" output via the LockAct parameter The LockAct parameter is always set automatically if an interlock is set in the following parameters:

● Intlock

● Permit

● Protect

● Trip

The LockAct = 0 parameter if the interlock is canceled and the interlocks that require acknowledgments have been acknowledged.

You can bypass the interlock using BypProt = 1 in local mode and during simulation. This also makes LockAct = 0.

Page 129: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 129

How the signal status affects the interlocks There are three ways in which the signal status affects the interlocks:

No. Icon Signal status 1

Simulation (16#60): • If the interlock signal with the status 16#60 brings about a cancelation of the interlock,

this is processed as a bypass of the interlock in the block.

• If the interlock signal with status 16#60 does not bring about a cancelation of the

interlock, this is processed in the block as simulation.

2

"bad, device-related" (16#28) or " bad, process-related" (16#00) -> The signal status is used to activate the motor to stop.

3 – Signal status ≠ Simulation, "bad, device-related" and " bad, process-related" -> No change in the block

See also MMRevDhl - Standard (Page 56)

5.6.14 Disabling interlocks

Disabling individual interlocks You can disable the block interlocks that are implemented using the input parameters Permit, Intlock, and Protect. This is done by setting the following parameters:

● Perm_En = 0 or Permit.ST = 16#FF: The Permit input parameter has no effect

● Prot_En = 0 or Protect.ST = 16#FF: The Protect input parameter has no effect

● Intl_En = 0 or Intlock.ST = 16#FF: The Intlock input parameter has no effect

Deactivation of all interlocks You can use the input parameter BypProt = 1 to disable all the interlocks, irrespective of the parameter assignment of the individual interlock, in local mode as well as for the "simulation" function.

Page 130: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

130 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.6.15 Group fault

GrpErr The output parameter for group error GrpErr is set when one of the errors listed below is detected.

The STANDARD view displays these errors as a "group error" in plain text.

● Control System Fault (CSF)

● Trip (Trip)

● Feedback error due to control change (MonDynErr)

● Feedback error due to unexpected feedback change (MonStaErr)

5.6.16 User-defined auxiliary values and user-defined status For the MMRevDhl block, auxiliary values and status bits are available that are displayed in the Standard view and that the user can define.

User-defined auxiliary values Use the auxiliary values to display values such as motor velocity, temperature.

To do so, connect the value to be displayed with input parameters UserAna1 or UserAna2.

In the CFC chart, you can define the text for the displayed values in the object properties of the block (Connections > Identifiers).

User-defined status Use the UserStatus parameter to display information using user-defined status bits.

To do so, connect the signal (byte) to be displayed with the UserStatus input parameter.

5.6.17 Message characteristics The alarms are output using the ALARM_8P function.

Block messages can be enabled or disabled using the MsgLock input.

The alarms are also suppressed if the block is in Out of service mode. The alarms are suppressed on warm restart for the number of cycle set for power up in the RunUpCyc parameter.

Page 131: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 131

Message block MsgEvId1

Table 5- 48 Output messages

Message block Message No.

Block parameters Message text Message class *

MsgEvId1 1 Message-1 $$BlockComment$$Monitoring Error or Starter tripped

S

2 Message-2 $$BlockComment$$Motor protection triggered

S

3 CSF $$BlockComment$$Control System Fault S 4 ExtMsg1 ** $$BlockComment$$External message 1 A 5 ExtMsg2 ** $$BlockComment$$External message 2 A 6 ExtMsg3 ** $$BlockComment$$External message 3 A 7 – – – 8 – – –

* S = AS, OS process control fault; A = Alarm ** User-definable message

Table 5- 49 Structure of the auxiliary values ALARM_8P

Message No. Auxiliary value

Block parameters Meaning

1 1 BatchName Name of batch 2 2 StepNo Step number 3 3 BatchID ID of the batch 4 4 ExtVa104 External value 4, user-definable 5 5 ExtVa105 External value 5, user-definable 6 6 ExtVa106 External value 6, user-definable 7 7 ExtVa107 External value 7, user-definable 8 8 ExtVa108 External value 8, user-definable 9 9 ExtVa109 Reserved 10 10 ExtVa110 Reserved

The MsgStat1, MsgAckn1, and MsgErr1 parameters transfer the following information:

● Message status

● Message error

● Message acknowledgment status

Page 132: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

132 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Message block MsgEvId2

Table 5- 50 Output messages

Message block Message No.

Block parameters Message text Message class *

MsgEvId2 1 ExtMsg4 ** $$BlockComment$$ MMOprtn Group Warning : @1W%t#MMOprtn_WRN@

W

2 ExtMsg5 ** $$BlockComment$$ MMOprtn Group Fault : @2W%t#MMOprtn_TRP@

S

3 ExtMsg6 ** $$BlockComment$$ MMOprtn Control System Fault

S

4 ExtMsg ** $$BlockComment$$ MMOprtn Warning I> W 5 ExtMsg8 ** $$BlockComment$$ MMOprtn Warning I< W 6 ExtMsg9 ** $$BlockComment$$ MMOprtn Trip I> A 7 ExtMsg10 ** $$BlockComment$$ MMOprtn Trip I< A 8 ExtMsg11 ** $$BlockComment$$ MMOprtn Test Position W

* S = AS, OS process control fault; A = Alarm ** User-definable message

Table 5- 51 Structure of the auxiliary values ALARM_8P

Message No. Auxiliary value

Block parameters Meaning

1 1 ExtVa201 External value 1, user-definable 2 2 ExtVa202 External value 2, user-definable 3 3 ExtVa203 External value 3, user-definable 4 4 ExtVa204 External value 4, user-definable 5 5 ExtVa105 External value 5, user-definable 6 6 ExtVa106 External value 6, user-definable 7 7 ExtVa107 External value 7, user-definable 8 8 ExtVa108 External value 8, user-definable

The MsgStat2, MsgAckn2, and MsgErr2 parameters transfer the following information:

● Message status

● Message error

● Message acknowledgment status

Page 133: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 133

5.6.18 Fault handling The following errors can be displayed for this block:

● Error numbers (Page 79)

● Mode changeover error

● Invalid input signals

5.6.19 Invalid input signals The "Invalid input signals" error is output if there are inconsistencies between associated inputs and outputs. For example, you cannot issue start commands and stop commands to the motor simultaneously.

If the block algorithm detects an invalid combination of input signals, it will issue an error number at the ErrorNum output, depending on the block.

The STANDARD view displays this error in plain text.

5.6.20 Enable for measurement and statistics You can open the Standard view of the MMMeas and MMStat blocks using buttons in the Maintenance view of the MMRevDhl block.

To display buttons in the faceplate, connect the SelMeas and SelStat input parameters to an output parameter of the MMMeas and MMStat blocks in the CFC chart.

Note

Configure MMMeas and MMStat blocks in the same CFC as the MMRevDhl block.

See also Reading and writing data records (Page 140)

Page 134: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

134 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.6.21 Enabled operations The operator permissions for control commands are configured in the OS_Perm structured parameters. These are transferred to WinCC via the OS_PermOut and OS_PermLog parameters. The block parameters are controlled via the FBs in CFC/SFC.

The activated parameter allows the operator to enter the desired commands.

The operator permissions control operation only in the faceplate.

Table 5- 52 Operator permissions – MMRevDhl

OS_Perm bit

OS_PermOut bit

OS_PermLog bit

Description

0 0 0 1 = Operator is permitted to change to AUTO mode.

1 1 1 1 = Operator is permitted to change to MANUAL mode.

2 2 2 1 = Operator is permitted to change to Local mode.

3 3 3 1 = Operator is permitted to change to "Out of service" mode

4 4 4 1 = Operator is permitted to stop the motor 5 5 5 1 = Operator is permitted to start the motor

(forward) On> 6 6 6 1 = Operator is permitted to start the motor

(reverse) On> 7 7 7 1 = Operator is permitted to start the motor

(fast forward) On>> 8 8 8 1 = Operator is permitted to start the motor

(fast reverse) On<< 9 9 9 1 = Operator is permitted to reset the motor 10 10 10 1 = Operator is permitted to define the

monitoring time for startup 11 11 11 1 = Operator is permitted to define the

monitoring time for runtime 12 12 12 1 = Operator is permitted to activate the

monitoring time function (Bit10, Bit11) 13 13 13 1 = Operator is permitted to activate the

Simulation function 14 14 14 1 = Operator is permitted to activate the

maintenance release function 15...31 15...31 15...31 Reserved

Page 135: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 135

5.6.22 Status information The status information is passed to WinCC for display in the faceplates.

Status1

Table 5- 53 Status1 – MMRevDhl

Status1 bit

Description

0 Occupied 1 BatchEn 2 SimOn 3 OosAct.Value 4 OosLi.Value 5 0 = ManAct.Value

1 = AutoAct.Value 6 LocalAct.Value 7 0: Open padlock in the faceplate (no interlock active)

1: Closed padlock in the faceplate 8 Fwd.Value 9 Motor is stopped 10 Rev.Value 11 FFwd.Value 12 FRev.Value 13 MonStaErr.Value 14 MonDynErr.Value 15 BypProt 16 Invalid signal status 17 Error in mode change 18 1 = Intlock is active 19 1 = Permit is active 20 1 = Protect is active 21 Trip.Value 22 FwdForce 23 StopForce 24 RevForce 25 Fast FwdForce 26 Fast Reverse Force 27 "Interlock" button activated 28 Reset request in the automatic preview 29 WarnAct.Value or IdleTime is active 30 Bypass information from previous function block 31 "Permission" button is enabled

Page 136: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

136 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Status2

Table 5- 54 Status2 – MMRevDhl

Status2 bit

Description

0 MsgLock 1 Show automatic preview in the standard view 2 Automatic preview for forward mode 3 Automatic preview for stop mode 4 Automatic preview for reverse mode 5 Automatic preview for fast forward mode 6 Automatic preview for fast reverse mode 7 Motor is stopped 8 Motor is stopping in forward mode 9 Motor is stopping in reverse mode 10 Motor is stopping in fast forward mode 11 Motor is stopping in fast reverse mode 12 Motor is starting in forward mode 13 Motor running forward 14 Motor is starting in reverse mode 15 Motor is running in reverse mode 16 Motor is starting in fast forward mode 17 Motor is running in forward mode 18 Motor is starting in fast reverse mode 19 Motor is running in fast reverse mode 20 No influence on the local command inputs 21 Error on stopping the motor 22 Error in forward mode 23 Error in reverse mode 24 Error in fast forward mode 25 Error in fast reverse mode 26 Show padlocks in block icon 27 "Protect" button activated 28...30 Reserved 31 MS_RelOp

Page 137: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.6 MMRevDhl motor block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 137

Status3

Table 5- 55 Status3 – MMRevDhl

Status3 bit

Description

0 Effective signal 1 of the message block interconnected via EventTsIn 1 Effective signal 2 of the message block interconnected via EventTsIn 2 Effective signal 3 of the message block interconnected via EventTsIn 3 Effective signal 4 of the message block interconnected via EventTsIn 4 Effective signal 5 of the message block interconnected via EventTsIn 5 Effective signal 6 of the message block interconnected via EventTsIn 6 Effective signal 7 of the message block interconnected via EventTsIn 7 Effective signal 8 of the message block interconnected via EventTsIn 8 Indication of motor protection (Trip.Status ≠ 16#FF) 9 1 = Input parameter FbkFwd is connected 10 1 = Input parameter FbkRev is connected 11 1 = Input parameter FbkFFwd is connected 12 1 = Input parameter FbkFRev is connected 13 SimLiOp.Value 14 1 = Enable rapid stop 15 Rapid stop command 16 Start motor forward command 17 Start motor in reverse command 18 Start motor fast forward command 19 Start motor in fast reverse command 20 GrpErr.Value 21 RdyToStart.Value 22 Auxiliary value 1 visible 23 Auxiliary value 2 visible 24...31 Not used

Page 138: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

138 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.7 MMOprtn driver block

5.7.1 Description of MMOprtn

Purpose of the block The MMOprtn block supports the control functions in the Advanced Process Library (APL) that are specific to SIMOCODE pro.

● Via the block, commands such as emergency start, test, trip reset are started because these functions are not supported by the APL themselves.

● The block reads the data records.

● SIMOCODE data records are configured via the block.

Block icons and faceplates

The MMOprtn block can be displayed via the block icons (Page 25) that reproduce the control functions.

The status of the programmed control functions is displayed via the faceplates, e.g. motor status, diagnostic information of the device.

Views The MMOprtn block supports the following views:

● Trend (Page 44)

● Alarm (Page 45)

● Preview (Page 46)

● Standard (Page 61)

● Limits (Page 63)

● Diagnostics (Page 64)

● Process image (Page 66)

5.7.2 Operating modes The following operating modes are displayed by the block:

● Local

● Automatic

● Manual

● Out of service

Page 139: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 139

An APL block is connected to the MMOprtn driver block to control Local / Remote mode (automatic / MANUAL).

Depending on the value of the process image input in PZDIn01, the block is switched to Local mode. The device is switched to Local mode via the APL blocks and the FbSwtMMS channel block. The command for switching modes changes the process input image PZDIn01.

5.7.3 Motor current The motor current is transferred via the input parameter PZDIn23 as an unsigned 2-byte value. SIMOCODE pro always transfers the current here as a percentage of the set current in a range from 0 to 1020%.

The MotCurr parameter calculates this as a percentage.

The MotCurrE parameter calculates the motor current actually drawn in amps based on the set current for the motor configured in SIMOCODE.

Note

The motor current is only calculated if the current measuring module is connected to the SIMOCODE pro device and configured.

5.7.4 Device functions The DevFunc parameter provides information about the parameterization of SIMOCODE pro and the configuration of further modules by reading the DS130. The data are relevant for:

● Device class

● Control function

● Status thermistor

● Status analog module

● Status temperature

● Status ground fault module

● Status voltage module

● Current measuring module

Page 140: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

140 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

CtrlFunc parameter The CtrlFunc parameter contains the value of the configured control function of SIMOCODE, e.g. direct starter.

Table 5- 56 Assignment

Bit Control function 0 Overload relay 1 Direct starter 2 Reversing starter 3 Linked device (MCCB) 4 Star-delta starter 5 Star-delta reversing starter 6 Dahlander 7 Dahlander reversing starter 8 Pole-changing starter 9 Pole-changing reversing starter 10 Valve 11 Positioner 1 12 Positioner 2 13 Positioner 3 14 Positioner 4 15 Positioner 5 16 Soft starter 17 Soft reversing starter

5.7.5 Reading and writing data records

Read function The RDREC function is used to read the data records and the WRREC function is used to write commands and values to the SIMOCODE pro device.

The "Read Data" button in the faceplates is used to update the displayed values.

Reading can only be performed successfully if the function write (WRREC) to data records is not executed at the same time.

Table 5- 57 Parameter Read/write data record

Parameter Value Meaning RdDataOp 1 1 Read data record RdDataLi 1 0 -> 1 Read data record EnRdWr 1 Enable reading/writing data record RdErr 1 Error when reading

Page 141: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 141

WrErr 1 Error when writing RdWrAct 1 Reading/writing data record ended 1 not in Out of service mode and in case of rack failure

Write function It is only possible to write data records if the block is in REMOTE mode to configure current limits for the SIMOCODE pro module configured with a current measuring module.

See also Enable for measurement and statistics (Page 133)

5.7.6 Current limits

Current limits The current limits are read out from data record DS130. Reading of the data record is triggered either via the interconnectable input parameter RdDataLi, in the OS when selecting the limit value view, or by OS operation (RdDataOp). The RdWrAct output is reset during communication.

The read data are output at the in/out parameters Trip high (Curr_TH), Trip low (Curr_TL), Warning high (Curr_WH) and Warning low (Curr_WL).

If an error occurs, the values are set to zero and the output RdErr = TRUE is set.

The limit values can also be parameterized in the faceplate. If the values are changed, they are written to SIMOCODE pro.

The signaling response in the case of limit value violations is parameterized with SIMOCODE ES or SIMATIC PDM. Under Monitoring functions → Current limits, the response to trip level/warning level is set for this purpose as follows:

● Trip level: disabled or tripping.

● Warning level: disabled or warning

If an error occurs when writing, the values are reset to 0 and the output WrErr = TRUE is set.

Overshooting or undershooting of the limit values results in transmission of the relevant message provided the limit value message has not been completely switched off via the MsgLock parameter (default is: switched off). Limit value violation messages are generated in SIMOCODE pro and evaluated in the block.

Range limits The range limits for the limit bars are parameterized using the function inputs CurrOpScale and can be adjusted in the OS.

Page 142: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

142 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.7.7 Hysteresis

Limit value monitoring with hysteresis The MMOprtn block supports the standard function limit value monitoring with hysteresis. You use the hysteresis, for example, to suppress signal flutter on the device (parameter LmtHyst).

The hysteresis value is read by the device and is used for monitoring.

5.7.8 Emergency start

Purpose of emergency start Emergency start deletes the thermal memory from SIMOCODE pro each time it is activated. This allows the motor to be immediately restarted after an overload trip.

The emergency start function sets the process image output DP 0.4, in such a way that the motor can be started again immediately.

The following parameters are active in the various operating modes of the block:

Table 5- 58 Emergency start

Operating mode Parameter Value Meaning Assigned PIQ bits AUTO EmrgStAut 0 > 1

1 > 0 Enable emergency start Disable emergency start

DP 0.4 = 1

MANUAL EmrgStMan 1, 2 0 > 1 1 > 0

Enable emergency start Disable emergency start

DP 0.4 = 1

1 In the Standard view, if the operator permission exists (OS_Perm). 2 The self-test command of MANUAL mode tracks the respective command in AUTO mode to

enable a bumpless transfer of the command state during mode switchover.

Page 143: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 143

5.7.9 Self-test The SIMOCODE pro test functions are activated by setting the parameters CstAut / CstMan.

The self-test can be triggered by interconnecting the inputs CstAut / CstMan, or by using the "Test" button in the operator block. This requires the motor to be in the "Stop" state without a fault. If the motor is running, the interconnection is ignored and the button in the operator block is deactivated.

The following parameters are active in the various operating modes of the block:

Table 5- 59 Self-test

Operating mode Parameter Value Meaning Assigned PIQ bits AUTO CstAut 1

0 Enable self-test Disable self-test

DP 0.5 = 1

MANUAL CstMan 1, 2 1 0

Enable self-test Disable self-test

DP 0.5 = 1

1 If the operation has been enabled in the Standard view (OS_Perm = 1). 2 The self-test command of MANUAL mode tracks the respective command in AUTO mode to

enable a bumpless transfer of the command state during mode switchover.

Test phases

Phase 1: Hardware test / lamp test

● The hardware is tested.

● LEDs, indicators and lamp controls are activated.

● Contactor controls remain unchanged.

Phase 2: Hardware test result

● If there is a fault, HW fault basic unit is triggered.

● If there is no fault:

– The "GEN. FAULT" LED flashes when no main current is flowing.

– The "GEN. FAULT" LED flickers if main current is flowing (in all three phases)

● Contactor controls remain unchanged.

Page 144: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

144 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.7.10 Trip reset SIMOCODE can be reset with the trip reset command in the following situations:

● The cause of the fault has been eliminated.

● No ON control command is pending.

● RdytoReset is generated in the previous APL or at the MMRevDhl block

This resets the process image output PIQ DP 0.6.

Reset trip A trip can be reset as follows:

Table 5- 60 Trip reset

Operating mode Parameter Value Meaning Assigned PIQ bits AUTO / MANUAL

TrpRstLi 0 > 1 Trip reset active, trip is reset. DP 0.6 = 1

AUTO / MANUAL

TrpRstOp 1, 2 1 Trip reset active, trip is reset. DP 0.6 = 1

1 The command is reset at the end of the execution cycle of the block. 2 If the operation has been enabled in the Standard view (OS_Perm = 1).

5.7.11 Group fault The output parameter for group error GrpErr is set when one of the errors listed below is detected. The Standard view displays these errors as a group error in plain text.

● General Fault (GenFlt) of the SIMOCODE

● Module Fault

● Rack Fault

5.7.12 Fault handling The following errors can be displayed for this block:

● Error numbers (Page 79)

● Mode changeover error

● Invalid input signals

Page 145: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 145

5.7.13 Invalid input signals The "Invalid input signals" error is output if there are inconsistencies between associated inputs and outputs. For example, you cannot issue start commands and stop commands to the motor simultaneously.

If the block algorithm detects an invalid combination of input signals, it will issue an error number at the ErrorNum output, depending on the block.

The STANDARD view displays this error in plain text.

5.7.14 Message characteristics The alarms are output using the ALARM_8P function.

The messages can be enabled or disabled using the MsgLock input.

The alarms are also suppressed if the block is in Out of service mode. The alarms are suppressed for RunUpCyc number of times on warm restart.

Message block MsgEvId1

Table 5- 61 Output messages

Message block

Message No.

Block parameters Message text Message class *

MsgEvId1 1 External message 1 $$BlockComment$$ External Message 1 A 2 External message 2 $$BlockComment$$ External Message 2 A 3 External message 3 $$BlockComment$$ External Message 3 A 4 External message 4 $$BlockComment$$ External Message 4 A 5 External message 5 $$BlockComment$$ External Message 5 A 6 External message 6 $$BlockComment$$ External Message 6 A 7 External message 7 $$BlockComment$$ External Message 7 A 8 External message 8 $$BlockComment$$ External Message 8 A

* S = AS, OS process control fault; A = Alarm

Auxiliary value The block supports 10 programmable auxiliary values.

Table 5- 62 Structure of the auxiliary values ALARM_8P

Message No. Auxiliary value

Block parameters Meaning

1 1 ExtVa101 External value 1, user-definable 2 2 ExtVa102 External value 2, user-definable 3 3 ExtVa103 External value 3, user-definable

Page 146: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

146 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Message No. Auxiliary value

Block parameters Meaning

4 4 ExtVa104 External value 4, user-definable 5 5 ExtVa105 External value 5, user-definable 6 6 ExtVa106 External value 6, user-definable 7 7 ExtVa107 External value 7, user-definable 8 8 ExtVa108 External value 8, user-definable 9 9 ExtVa109 External value 9, user-definable 10 10 ExtVa110 External value 10, user-definable

The MsgStat1, MsgAckn1, and MsgErr1 parameters transfer the following information:

● Message status

● Message error

● Message acknowledgment status

5.7.15 Messages via EventTs message block Whenever an alarm is generated in the SIMOCODE pro device, this is passed on to the input parameter EventTsIn of the APL block via the output parameter EventTsOut of the EventTs block. These alarms are displayed in the Alarm view.

The MMOprtn block generates eight signals that are processed as messages at the corresponding APL blocks with the use of the EventTs block. The following output parameters of the MMOprtn block are interconnected with inputs In1 to In8 of the EventTs block for this purpose:

● General warning

● Group error

● Control System Fault (CSF)

● Current warning high

● Current warning low

● Current trip high

● Current trip low

● Test Position Feedback (TPF)

Page 147: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 147

MsgEvId message block

Table 5- 63 Output messages

Message block

Message No.

Block parameters Message text Message class *

MsgEvId 1 GenWarn $$BlockComment$$ MMOprtn general warning: @1W%t#MMOprtn_WRN@

W

2 GenFlt $$BlockComment$$ MMOprtn general fault: @2W%t#MMOprtn_TRP@

S

3 CSFlt $$BlockComment$$ MMOprtn control system fault: S 4 CurWrnH $$BlockComment$$ MMOprtn warning I> A 5 CurWrnL $$BlockComment$$ MMOprtn warning I< A 6 CurTrpH $$BlockComment$$ MMOprtn trip I> A 7 CurTrpL $$BlockComment$$ MMOprtn trip I< A 8 TPF $$BlockComment$$ MMOprtn test position A

* W = Warning; S = AS, OS process control fault; A = Alarm

5.7.16 System text libraries for warning and trip System text libraries are created if MMOprtn blocks are inserted into the CFC chart. They are assigned the numbers of the warnings and trips.

Numbers for warnings

Table 5- 64 Numbers for warnings

WrngNo Text 1 Warning – Overload operation 2 Warning – Unbalance 3 Warning – Overload 4 Warning – Overload + phase failure 5 Warning – Internal earth fault 6 Warning – External earth fault 7 Warning – Thermistor overload 8 Warning – Thermistor short-circuit 9 Warning – Thermistor open circuit 10 Warning – TM1 Warning T> 11 Signal – TM1 Sensor fault 12 Warning – TM1 Out of Range 13 Warning – Warning level I> 14 Warning – Warning level I< 15 Warning – Warning level P>

Page 148: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

148 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

WrngNo Text 16 Warning – Warning level P< 17 Warning – Warning level cos phi< 18 Warning – Warning levelU< 19 Warning – Warning level 0/4–20 mA> 20 Warning – Warning level 0/4–20 mA< 21 Warning – Stalled rotor 22 Warning – No start possible 23 Warning – Number of starts > 24 Warning – Just one start possible 25 Warning – Motor operating hours 26 Warning – Motor stop time > 27 Warning – External fault 1 28 Warning – External fault 2 29 Warning – External fault 3 30 Warning – External fault 4 31 Warning – External fault 5 32 Warning – External fault 6 33 Warning – Analog module open circuit 34 Warning – DM-F safety-related tripping 35 Warning – DM-F Test requirement 36 Warning – DM-F feedback circuit 37 Warning – DM-FL simultaneity Expanded diagnostics for PROFINET devices: 38 Warning – TM2 Warning T> 39 Warning – TM2 sensor fault 40 Warning – TM2 Out of Range 41 Warning – AM2 Warning 0/4–20 mA> 42 Warning – AM2Warning 0/4–20 mA< 43 Warning – AM2 open circuit 44 Warning – EM open circuit 45 Warning – EM short-circuit

Page 149: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 149

Numbers for trip

Table 5- 65 Numbers for trip

TripNo Text 1 Trip – Hardware fault basic unit 2 Trip – Module fault 3 Trip – Temporary components 4 Trip – Configuration fault 5 Trip – Parameterization 6 Trip – Bus 7 Trip – PLC/PCS 8 Trip – Runtime ON 9 Trip – Execution Stop command 10 Trip – FB ON 11 Trip – FB OFF 12 Trip – Stalled positioner 13 Trip – Double 0 14 Trip – Double 1 15 Trip – End position 16 Trip – Antivalence 17 Trip – Cold starting (TPF) error 18 Trip – UVO error 19 Trip – OPO error (operational protection OFF) 20 Trip – Unbalance 21 Trip – Overload 22 Trip – Overload + Phase failure 23 Trip – Internal earth fault 24 Trip – External earth fault 25 Trip – Thermistor overloadt 26 Trip – Thermistor short-circuit 27 Trip – Thermistor Open circuit 28 Trip – TM1 trip T> 29 Trip – TM1 sensor fault 30 Trip – TM1 Out of Range 31 Trip – Trip I> 32 Trip – Trip I< 33 Trip – Trip level P> 34 Trip – Trip level P< 35 Trip – Trip level cos phi< 36 Trip – Trip level U< 37 Trip – Trip level 0/4–20 mA> 38 Trip – Trip level 0/4–20 mA< 39 Trip – Stalled rotor

Page 150: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

150 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

TripNo Text 40 Trip – Number of starts > 41 Trip – External fault 1 42 Trip – External fault 2 43 Trip – External fault 3 44 Trip – External fault 4 45 Trip – External fault 5 46 Trip – External fault 6 47 Trip – Analog module open circuit 48 Trip – Test trip 49 Trip – DM-F safety-related tripping 50 Trip – DM-F wiring 51 Trip – DM-FL cross circuit Expanded diagnostics for PROFINET devices: 52 Trip – TM2 trip T> 53 Trip – TM2 sensor fault 54 Trip – TM2 Out of Range 55 Trip – AM2 Warning 0/4–20 mA> 56 Trip – AM2Warning 0/4–20 mA< 57 Trip – AM2 open circuit 58 Trip – EM open circuit 59 Trip – EM short-circuit

5.7.17 Assigning addresses in HW Config The four bytes of the process image inputs (PII) are transferred from the SIMOCODE device based on the logical address of the device. This is a manual configuration that a user has to configure for both the inputs and outputs.

Page 151: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 151

Symbolic name in HW Config The PZDIn01 input parameter of the block is interconnected with the corresponding input of the logical address of the device (LAddr).

The logical word address can be assigned to a symbolic name (*).

Figure 5-3 Symbolic name in HW Config

Page 152: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

152 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.7.18 Process images for the MMOprtn block

Overload relay control function

Table 5- 66 Overload relay – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 – – – Bit 0.1 – – – Bit 0.2 – – – Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 – – Emergency start – Input Bit 0.5 – – – Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 – – – Bit 1.1 – – – Bit 1.2 – – – Bit 1.3 – – – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 153: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 153

Direct starter control function

Table 5- 67 Direct starter – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 – – – Bit 0.1 FbkOut2 Status – OFF PLC/PCS [DP] -> OFF Bit 0.2 FbkOut3 Status – ON > PLC/PCS [DP] -> ON Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 – – Emergency start – Input Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 – – – Bit 1.1 – Event – Feedback test

position –

Bit 1.2 – – – Bit 1.3 – – – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 154: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

154 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Reversing starter control function

Table 5- 68 Reversing starter – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 FbkOut1 Status – ON < PLC/PCS [DP] -> ON < Bit 0.1 FbkOut2 Status – OFF PLC/PCS [DP] -> OFF Bit 0.2 FbkOut3 Status – ON > PLC/PCS [DP] -> ON Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 IntlAct Status – Interlock time active Emergency start – Input Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 – – – Bit 1.1 – Event – Feedback test

position –

Bit 1.2 – – – Bit 1.3 – – – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 155: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 155

Molded-case circuit breaker (MCCB) control function

Table 5- 69 Molded-case circuit breaker (MCCB) – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 – – – Bit 0.1 FbkOut2 Status – OFF PLC/PCS [DP] -> OFF Bit 0.2 FbkOut3 Status – ON > PLC/PCS [DP] -> ON Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 – – Emergency start – Input Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 – – – Bit 1.1 – Event – Feedback test

position –

Bit 1.2 – – – Bit 1.3 – – – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 156: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

156 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Star-delta starter control function

Table 5- 70 Star-delta starter – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 – – – Bit 0.1 FbkOut2 Status – OFF PLC/PCS [DP] -> OFF Bit 0.2 FbkOut3 Status – ON PLC/PCS [DP] -> ON Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 ChgOvrAct Status – Change-over pause active

Emergency start – Input

Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 – – – Bit 1.1 – Event – Feedback test

position –

Bit 1.2 – – – Bit 1.3 – – – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 157: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 157

Star-delta reversing starter control function

Table 5- 71 Star-delta reversing starter – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 FbkOut1 Status – ON < PLC/PCS [DP] -> ON < Bit 0.1 FbkOut2 Status – OFF PLC/PCS [DP] -> OFF Bit 0.2 FbkOut3 Status – ON > PLC/PCS [DP] -> ON Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 ChgOvrAct Status – Change-over pause active

Emergency start – Input

Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 – – – Bit 1.1 – Event – Feedback test

position –

Bit 1.2 – – – Bit 1.3 IntlAct Status – Interlock time active – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 158: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

158 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Dahlander control function

Table 5- 72 Dahlander – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 FbkOut1 Status – ON >> PLC/PCS [DP] -> ON >> Bit 0.1 FbkOut2 Status – OFF PLC/PCS [DP] -> OFF Bit 0.2 FbkOut3 Status – ON > PLC/PCS [DP] -> ON Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 ChgOvrAct Status – Change-over pause active

Emergency start – Input

Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 – – – Bit 1.1 – Event – Feedback test

position –

Bit 1.2 – – – Bit 1.3 – – – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 159: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 159

Dahlander reversing starter control function

Table 5- 73 Dahlander reversing starter – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 FbkOut1 Status – ON >> PLC/PCS [DP] -> ON >> Bit 0.1 FbkOut2 Status – OFF PLC/PCS [DP] -> OFF Bit 0.2 FbkOut3 Status – ON > PLC/PCS [DP] -> ON Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 ChgOvrAct Status – Change-over pause active

Emergency start – Input

Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 FbkOut4 Status – ON << PLC/PCS [DP] -> ON << Bit 1.1 – Event – Feedback test

position –

Bit 1.2 FbkOut5 Status – ON < PLC/PCS [DP] -> ON < Bit 1.3 IntlAct Status – Interlock time active – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 160: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

160 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Pole-changing starter control function

Table 5- 74 Pole-changing starter – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 FbkOut1 Status – ON >> PLC/PCS [DP] -> ON >> Bit 0.1 FbkOut2 Status – OFF PLC/PCS [DP] -> OFF Bit 0.2 FbkOut3 Status – ON > PLC/PCS [DP] -> ON Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 ChgOvrAct Status – Change-over pause active

Emergency start – Input

Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 – – – Bit 1.1 – Event – Feedback test

position –

Bit 1.2 – – – Bit 1.3 – – – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 161: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 161

Pole-changing reversing starter control function

Table 5- 75 Pole-changing reversing starter – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 FbkOut1 Status – ON >> PLC/PCS [DP] -> ON >> Bit 0.1 FbkOut2 Status – OFF PLC/PCS [DP] -> OFF Bit 0.2 FbkOut3 Status – ON > PLC/PCS [DP] -> ON Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 ChgOvrAct Status – Change-over pause active

Emergency start – Input

Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 FbkOut4 Status – ON << PLC/PCS [DP] -> ON << Bit 1.1 – Event – Feedback test

position –

Bit 1.2 FbkOut5 Status – On < PLC/PCS [DP] -> ON < Bit 1.3 IntlAct Status – Interlock time active – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 162: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

162 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Valve control function

Table 5- 76 Valve – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 – – – Bit 0.1 FbkOut2 Status – OFF (CLOSE) PLC/PCS [DP] -> CLOSED Bit 0.2 FbkOut3 Status – ON > (OPEN) PLC/PCS [DP] -> OPEN Bit 0.3 – – Test 1 – Input Bit 0.4 – – – Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 – – – Bit 1.1 – – – Bit 1.2 – – – Bit 1.3 – – – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 – – – Byte 3 – – – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 163: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 163

Soft starter control function

Table 5- 77 Soft starter – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 – – – Bit 0.1 FbkOut2 Status - OFF (STOP) PLC/PCS [DP] -> OFF Bit 0.2 FbkOut3 Status – ON > (OPEN) PLC/PCS [DP] -> ON Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 – – Emergency start – Input Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 – – – Bit 1.1 – – – Bit 1.2 – – – Bit 1.3 – – – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 164: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

164 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Soft starter with reversing contactor control function

Table 5- 78 Soft starter with reversing contactor – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 FbkOut1 Status – ON < PLC/PCS [DP] -> ON < Bit 0.1 FbkOut2 Status – OFF PLC/PCS [DP] -> OFF Bit 0.2 FbkOut3 Status – ON > PLC/PCS [DP] -> ON Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 IntlAct Status – Interlock time active Emergency start – Input Bit 0.5 LocalAct Status – Remote mode Mode selector S2 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 – – – Bit 1.1 – – – Bit 1.2 – – – Bit 1.3 – – – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

Page 165: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 165

Positioner control function

Table 5- 79 Positioner – Process image inputs and outputs

Bit MMOprtn – output parameters

PII – Meaning PIQ – Meaning

Bit 0.0 FbkOut1 Status - ON < (CLOSED) PLC/PCS [DP] -> CLOSED Bit 0.1 FbkOut2 Status – OFF (STOP) PLC/PCS [DP] -> STOP Bit 0.2 FbkOut3 Status – ON > (OPEN) PLC/PCS [DP] -> OPEN Bit 0.3 PreWrnOvl Event - Prewarning overload

(I>115 %) Test 1 – Input

Bit 0.4 IntlAct Status – Interlock time active Emergency start – Input Bit 0.5 LocalAct Status – Remote mode Mode selector S1 Bit 0.6 GenFlt Status – General fault Reset 1 – Input Bit 0.7 GenWarn Status - General warning – Bit 1.0 FbkOut4 Status – Positioner runs in

OPEN direction –

Bit 1.1 – Event – Feedback test position

Bit 1.2 FbkOut5 Status - Positioner runs in CLOSED direction

Bit 1.3 – – – Bit 1.4 – – – Bit 1.5 – – – Bit 1.6 – – – Bit 1.7 – – – Byte 2 PZDIn23 Maximum current I_max – Byte 3 PZDIn23 Maximum current I_max – Byte 4 – – – Byte 5 – – – Byte 6 – – – Byte 7 – – – Byte 8 – – – Byte 9 – – –

See also MMOprtn - Process image (Page 66)

Page 166: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

166 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.7.19 Enabled operations

MMOprtn operator permissions The operator permissions for control commands are configured in the OS_Perm structured parameters. These are transferred to WinCC via the OS_PermOut and OS_PermLog parameters. The block parameters are controlled via the FBs in CFC.

The activated parameter allows the user to enter the desired commands.

The operator permissions control operation only in the faceplate.

Table 5- 80 MMOprtn operator permissions

OS_Perm bit

OS_PermOut bit

OS_PermLog bit

Description

0 0 0 1 = Operator is permitted to change to AUTO mode.

1 1 1 1 = Operator is permitted to change to MANUAL mode.

3 3 3 1 = Operator is permitted to change to "Out of service" (Oos) mode.

14 14 14 1 = Operator is permitted to activate Trip reset. 15 15 15 1 = Operator is permitted to activate

emergency start. 16 16 16 1 = Operator is permitted to activate test 17 17 17 1 = Operator is permitted to change the upper

limit (AV) for "Alarm" 18 18 18 1 = Operator is permitted to change the upper

limit (AV) for "Warning" 19 19 19 1 = Operator is permitted to change the lower

limit (AV) for "Alarm" 20 20 20 1 = Operator is permitted to change the lower

limit (AV) for "Warning" 21 21 21 1 = Operator is permitted to update data

Page 167: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 167

5.7.20 Status information

Status information MMOprtn

Table 5- 81 Status1 – MMOprtn

Status1 Bit

German

3 OosAct.Value 4 OosLi aktiv 5 1 = AutoAct.Value

0 = ManAct.Value 6 LocalAct.Value 7 1 = Command fast forward / closed / reverse 10 1 = Command fast reverse 11 1 = Command reverse 12 1 = Mode selector S1 on 13 1 = Reset on 14 1 = Test function active,

0 = Test function inactive (PIQ) 15 1 = Emergency start active,

0 = Emergency start inactive (PIQ) 16 1 = Trip Reset active,

0 = Trip Reset inactive (PIQ) 17 1 = Feedback fast forward / reverse on / close positioner 18 1 = Status – Motor OFF 19 1= Feedback forward ON / motor ON / positioner open 20 1 = Event – overload 21 1 = Status – switchover pause active 22 1 = Status – mode (1 = Remote, 0 = Local) 23 1 = Status – General fault 24 1 = Status – General warning 25 1 = Feedback fast reverse / open positioner 26 1 = Feedback reverse on / close positioner 27 1 = Status – Interlock time active 28 1 = General fault 29 MsgLock 30 1 = Rack failure 31 Invalid signal status

Page 168: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

168 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

5.7.21 Diagnostics information The diagnostics information is communicated to WinCC for display in the faceplates.

The following diagnostics information is available for SIMOCODE pro devices and for SIMOCODE pro PROFINET devices:

● Status diagnostics, output via the DiagSts parameter output

● Event diagnostics, output via the parameter output Diag_Evt

● Warning diagnostics, output via the parameter output Diag_Wrn

● Trip diagnostics, output via the parameter output Diag_Trp

DiagSts – Status diagnostics

Table 5- 82 DiagSts – Status diagnostics for SIMOCODE pro devices

Bit Meaning 0 Status – Group fault 1 Status – General warning 2 Status – Device 3 Status – Bus 4 Status – PLC/PCS 5 Status – Motor current flowing 6 Status – ON << 7 Status – ON < 8 Status – OFF 9 Status – ON > 10 Status – ON >> 11 Status – Start active 12 Status – Interlocking time active 13 Status – Change-over pause active 14 Status – Runs in open direction 15 Status – Runs in close direction 16 Status – Feedback closed 17 Status – Feedback open 18 Status – Torque close 19 Status – Torque open 20 Status – Cold starting (TPF) test position feedback 21 Status – Operational protection OFF (OPO) 22 Status – Remote mode 23 Status – Emergency start executed 24 Status – Cooling-down period active 25 Status – Pause time active 26 Status – Device check active 27 Status – Phase sequence 1-2-3

Page 169: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 169

Bit Meaning 28 Status – Phase sequence 3-2-1 29 Status – DM-F enabling circuit

DiagEvt1, DiagEvt2, DiagEvt3 – event diagnostics

Table 5- 83 DiagEvt1 – event diagnostics for SIMOCODE pro devices

Bit Meaning 0 Event – Overload operation 1 Event – Unbalance 2 Event– Overload 3 Event – Overload + phase failure 4 Event – Internal ground fault 5 Event – External ground fault 6 Event – Warning External ground fault 7 Event– thermistor overload 8 Event – thermistor short-circuit 9 Event – thermistor open circuit 10 Event – TM1 warning T> 11 Event – TM1 trip T> 12 Event – TM1 sensor fault 13 Event – TM1 Out of Range 14 Event – Warning level 15 Event – warningI< 16 Event – warning P> 17 Event – warning P< 18 Event – warning cos phi< 19 Event – warning U< 20 Trip – warning 0/4–20 mA> 21 Trip – warning 0/4–20 mA< 22 Event – trip level I> 23 Event – trip level I< 24 Event – trip level P> 25 Event – trip level P< 26 Event – trip level cos phi< 27 Event – trip level U< 28 Event – trip level 0/4–20 mA> 29 Event – trip level 0/4–20 mA< 30 Event – Stalled rotor: 31 Event – No start permitted

Page 170: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

170 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Table 5- 84 DiagEvt2 – event diagnostics for SIMOCODE pro devices

Bit Meaning 0 Event – Number of starts > 1 Event – Just one start possible 2 Event – Motor operating hours >: 3 Event – Motor stop time > 4 Event – Limit 1 5 Event – Limit 2 6 Event – Limit 3 7 Event – Limit 4 8 Event – external fault 1 9 Event – external fault 2 10 Event – external fault 3 11 Event – external fault 4 12 Event – external fault 5 13 Event – external fault 6 14 Event – Analog module open circuit 15 Event – DM-F safety-related tripping 16 Event – DM-F test requirement 17 Event – Time stamping active + OK 18 Event – DM-FL safety OK 19 Event – DM-F PROFIsafe active 20 Event – Configured operator panel missing 21 Event – Module not supported 22 Event – No module voltage (BU 2) 23 Event – Memory module read in 24 Event – Memory module programmed 25 Event – Memory module erased 26 Event – Addressing plug read in 27 Event – Start-Up parameterization block active 28 Event – Parameter changes not allowed in the current operating state 29 Event – Device does not support the required functions 30 Event – Wrong parameter: 31 Event – Wrong password:

Page 171: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 171

Table 5- 85 DiagEvt3 – event diagnostics for SIMOCODE pro devices

Bit Meaning 0 Event – Password protection active 1 Event – Factory default settings 2 Event – Parameterization active Event – PRM error number (bytes) 3 Event – DM-FL configuration mode 4 Event – DM-FL configuration deviation 5 Event – DM-FL waiting for startup test 6 Event – DM FP PRM error 28 Event – EM open circuit 29 Event – EM short-circuit

Table 5- 86 DiagEvt3 – event diagnostics for PROFINET devices

Bit Meaning 7 Event – NTP clock set 8 Event – NTP clock synchronized 9 Event – Initialization module read in 10 Event – Initialization module programmed 11 Event – Initialization module erased 12 Event – Addressing plug read in 13 Event – Initialization module write-protected, parameter changes not permissible 14 Event – Memory module write-protected 15 Event – Initialization module write-protected 16 Event – Initialization module identification data write-protected 17 Event – TM2 warning T> 18 Event – TM2 trip T> 19 Event – TM2 sensor fault 20 Event – TM2 out of range 21 Event – AM2 warning 0/4–20 mA> 22 Event – AM2 warning 0/4–20 mA< 23 Event – AM2 trip level 0/4–20 mA> 24 Event – AM2 trip level 0/4–20 mA< 25 Event – Limit 5 26 Event – Limit 6 27 Event – AM2 open circuit

Page 172: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

172 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

DiagWrn1, DiagWrn2 – Warning diagnostics

Table 5- 87 DiagWrn1 – Warning diagnostics for SIMOCODE pro devices

Bit Meaning 0 Warning – Overload operation 1 Warning – Unbalance 2 Warning – Overload 3 Warning – Internal ground fault + phase failure 4 Warning – Internal ground fault 5 Warning – External ground fault 6 Warning – thermistor overload 7 Warning – thermistor short-circuit 8 Warning – thermistor open circuit 9 Warning – TM1 warning T> 10 Warning – TM1 sensor fault 11 Warning – TM1 Out of Range 12 Warning – warning level I> 13 Warning – warning level I< 14 Warning – warning level P> 15 Warning – warning level P< 16 Warning – warning level cos phi< 17 Warning – warning level U< 18 Warning – warning level 0/4–20 mA> 19 Warning – warning level 0/4–20 mA< 20 Warning – Stalled rotor 21 Warning – No start permitted 22 Warning – Number of starts > 23 Warning – Just one start possible 24 Warning – Motor operating hours 25 Warning – Motor stop time > 26 Warning – external fault 1 27 Warning – external fault 2 28 Warning – external fault 3 29 Warning – external fault 4 30 Warning – external fault 5 31 Warning – external fault 6

Page 173: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 173

Table 5- 88 DiagWrn2 – Warning diagnostics for SIMOCODE pro devices

Bit Meaning 0 Warning – Analog module open circuit 1 Warning – DM-F safety-related tripping 2 Warning – DM-F test requirement 3 Warning – DM-F feedback circuit 4 Warning – DM-FL simultaneity 11 Warning – EM open circuit 12 Warning – EM short-circuit

Table 5- 89 DiagWrn2 – Warning diagnostics for PROFINET pro devices

Bit Meaning 5 Warning – TM2 warning T> 6 Warning – TM2 sensor fault 7 Warning – TM2 Out of Range 8 Warning – AM2 warning 0/4–20 mA> 9 Warning – AM2warning 0/4–20 mA< 10 Warning – AM2 open circuit

DiagTrp1, DiagTrp2 – Trip diagnostics

Table 5- 90 DiagTrp1 – Trip diagnostics for SIMOCODE pro devices

Bit Meaning 0 Trip – Hardware fault basic unit 1 Trip – Module fault 2 Trip – Temporary components 3 Trip – Configuration fault 4 Trip – Parameterization 5 Trip – Bus 6 Trip – PLC/PCS 7 Trip – Runtime ON 8 Trip – Execution Stop command 9 Trip – FB ON 10 Trip – FB OFF 11 Trip – Stalled positioner 12 Trip – Double 0 13 Trip – Double 1 14 Trip – End position 15 Trip – Antivalence 16 Trip – Cold starting (TPF) error

Page 174: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

174 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Bit Meaning 17 Trip – UVO error 18 Trip – OPO error (operational protection OFF) 19 Trip – Unbalance 20 Trip – Overload 21 Trip – Overload + Phase failure 22 Trip – Internal ground fault 23 Trip – External ground fault 24 Trip – thermistor overload 25 Trip – thermistor short-circuit 26 Trip – thermistor open circuit 27 Trip – TM1 trip T> 28 Trip – TM1 sensor fault 29 Trip – TM1 Out of Range 30 Trip – trip I> 31 Trip – trip I<

Table 5- 91 DiagTrp2 – trip diagnostics for SIMOCODE pro devices

Bit Meaning 0 Trip – trip level P> 1 Trip – trip level P< 2 Trip – trip level cos phi< 3 Trip – trip level U< 4 Trip – trip level 0/4–20 mA> 5 Trip – trip level 0/4–20 mA< 6 Trip – Stalled rotor 7 Trip – Number of motor starts> 8 Trip – external fault 1 9 Trip – external fault 2 10 Trip – external fault 3 11 Trip – external fault 4 12 Trip – external fault 5 13 Trip – external fault 6 14 Trip – Analog module open circuit 15 Trip – Test trip 16 Trip – DM-F safety-related tripping 17 Trip – DM-F wiring 18 Trip – DM-FL cross circuit

Page 175: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 175

Table 5- 92 DiagTrp2 – trip diagnostics for PROFINET pro devices

Bit Meaning 19 Trip – TM2 trip T> 20 Trip – TM2 sensor fault 21 Trip – TM2 Out of Range 22 Trip – AM2 warning 0/4–20 mA> 23 Trip – AM2 warning 0/4–20 mA< 24 Trip – AM2 open circuit 25 Trip – EM open circuit 26 Trip – EM short-circuit

See also MMOprtn - Diagnostics (Page 64)

5.7.22 Assignment of the diagnostics information Based on the parameters, there are diagnostics views for the status, events, warnings, and trips. The motor starter diagnostics is transferred to the faceplates via the Diag_Sts, Diag_Evt, Diag_Wrn, and Diag_Trp output parameters.

Bit assignment Diag_Sts

Table 5- 93 Bit assignment Diag_Sts

Auxiliary variables Diag_Sts bit

Event

Diag_Sts 0 Group fault Diag_Sts 1 General warning Diag_Sts 2 Device Diag_Sts 3 Bus Diag_Sts 4 PLC/PCS Diag_Sts 5 Motor current flowing Diag_Sts 6 ON << Diag_Sts 7 ON < Diag_Sts 8 OFF Diag_Sts 9 ON > Diag_Sts 10 ON >> Diag_Sts 11 Start active Diag_Sts 12 Interlocking time active Diag_Sts 13 Change-over pause active Diag_Sts 14 Runs in open direction

Page 176: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

176 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Auxiliary variables Diag_Sts bit

Event

Diag_Sts 15 Runs in close direction Diag_Sts 16 Feedback close Diag_Sts 17 Feedback open Diag_Sts 18 Torque close Diag_Sts 19 Torque open Diag_Sts 20 Cold starting (TPF) test position feedback Diag_Sts 21 Operational Protection Off (OPO) Diag_Sts 22 Remote mode Diag_Sts 23 Emergency start executed Diag_Sts 24 Cooling down period active Diag_Sts 25 Pause time active Diag_Sts 26 Device check active Diag_Sts 27 Phase sequence 1-2-3 Diag_Sts 28 Phase sequence 3-2-1 Diag_Sts 29 DM-F enabling circuit

Bit assignment Diag_Evt

Table 5- 94 Bit assignment Diag_Evt for SIMOCODE pro PROFIBUS devices

Auxiliary variables Diag_Evt bit

Event

Diag_Evt 0 Overload operation Diag_Evt 1 Unbalance Diag_Evt 2 Overload Diag_Evt 3 Overload + phase failure Diag_Evt 4 Internal ground fault Diag_Evt 5 External ground fault Diag_Evt 6 Warning external ground fault Diag_Evt 7 Thermistor overload Diag_Evt 8 Thermistor short circuit Diag_Evt 9 Thermistor open circuit Diag_Evt 10 TM warning T> Diag_Evt 11 TM trip T> Diag_Evt 12 TM sensor fault Diag_Evt 13 TMOut of Range Diag_Evt 14 Warning I> Diag_Evt 15 Warning I< Diag_Evt 16 Warning P> Diag_Evt 17 Warning P< Diag_Evt 18 Warning cos phi<

Page 177: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 177

Auxiliary variables Diag_Evt bit

Event

Diag_Evt 19 Warning U< Diag_Evt 20 Warning 0/4–20 mA> Diag_Evt 21 Warning 0/4–20 mA< Diag_Evt 22 Trip level I> Diag_Evt 23 Trip level I< Diag_Evt 24 Trip level P> Diag_Evt 25 Trip level P< Diag_Evt 26 Trip level Cos-Phi< Diag_Evt 27 Trip level U< Diag_Evt 28 Trip level 0/4–20 mA> Diag_Evt 29 Trip level 0/4–20 mA< Diag_Evt 30 Stalled rotor Diag_Evt 31 No start permitted Diag_Evt 32 No. of starts > Diag_Evt 33 Just one start possible Diag_Evt 34 Motor operating hours > Diag_Evt 35 Stop time > Diag_Evt 36 Limit 1 Diag_Evt 37 Limit 2 Diag_Evt 38 Limit 3 Diag_Evt 39 Limit 4 Diag_Evt 40 External fault 1 Diag_Evt 41 External fault 2 Diag_Evt 42 External fault 3 Diag_Evt 43 External fault 4 Diag_Evt 44 External fault 5 Diag_Evt 45 External fault 6 Diag_Evt 46 Analog module open circuit Diag_Evt 47 DM-F safety-related tripping Diag_Evt 48 DM-F – test requirement Diag_Evt 49 Timestamping active + Ok Diag_Evt 50 DM-FL safety Ok Diag_Evt 51 DM-F PROFIsafe active Diag_Evt 52 Configured operator panel missing Diag_Evt 53 Module not supported Diag_Evt 54 No module voltage (BU 2) Diag_Evt 55 Memory module read in Diag_Evt 56 Memory module programmed Diag_Evt 57 Memory module erased Diag_Evt 58 Addressing plug read in Diag_Evt 59 Start-up parameterization block active

Page 178: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

178 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Auxiliary variables Diag_Evt bit

Event

Diag_Evt 60 Parameter changes not allowed in the current operating states

Diag_Evt 61 Device does not support the required functions Diag_Evt 62 Wrong parameter Diag_Evt 63 Wrong password Diag_Evt 64 Password protection active Diag_Evt 65 Factory settings Diag_Evt 66 Parameter assignment active Diag_Evt 67 DM-FL configuration mode Diag_Evt 68 DM-FL configuration deviation Diag_Evt 69 DM-FL waiting for startup test Diag_Evt 70 DM FP PRM error Diag_Evt 92 EM open circuit Diag_Evt 93 EM short circuit

Table 5- 95 Bit assignment Diag_Evt for SIMOCODE pro PROFINET devices

Diag_Evt 71 Event – NTP clock set Diag_Evt 72 NTP clock synchronized Diag_Evt 73 Initialization module read in Diag_Evt 74 Initialization module programmed Diag_Evt 75 Initialization module deleted Diag_Evt 76 Addressing plug read in Diag_Evt 77 Initialization module write-protected, parameter changes

not permissible Diag_Evt 78 Memory module write-protected Diag_Evt 79 Initialization module write-protected Diag_Evt 80 Initialization data of the initialization module write-

protected Diag_Evt 81 TM2 warning T> Diag_Evt 82 TM2 trip T> Diag_Evt 83 TM2 sensor fault Diag_Evt 84 TM2 Out of Range Diag_Evt 85 AM2 Warning 0/4–20 mA> Diag_Evt 86 AM2 Warning 0/4–20 mA< Diag_Evt 87 AM2 trip level 0/4–20 mA> Diag_Evt 88 AM2 trip level 0/4–20 mA< Diag_Evt 89 Limit 5 Diag_Evt 90 Limit 6 Diag_Evt 91 AM2 open circuit

Page 179: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 179

Bit assignment Diag_Wrn

Table 5- 96 Bit assignment Diag_Wrn for SIMOCODE pro PROFIBUS devices

Auxiliary variables Diag_Wrn bit

Event

Diag_Wrn 0 Overload operation Diag_Wrn 1 Unbalance Diag_Wrn 2 Overload Diag_Wrn 3 Internal ground fault + phase failure Diag_Wrn 4 Internal ground fault Diag_Wrn 5 External ground fault Diag_Wrn 6 Thermistor internal ground fault Diag_Wrn 7 Thermistor short circuit Diag_Wrn 8 Thermistor open circuit Diag_Wrn 9 TM warning T> Diag_Wrn 10 TM sensor fault Diag_Wrn 11 TM out of range Diag_Wrn 12 Warning level I> Diag_Wrn 13 Warning level I< Diag_Wrn 14 Warning level P> Diag_Wrn 15 Warning level P< Diag_Wrn 16 Warning level cos phi< Diag_Wrn 17 Warning level U< Diag_Wrn 18 Warning level 0/4–20 mA> Diag_Wrn 19 Warning level 0/4–20 mA< Diag_Wrn 20 Stalled rotor Diag_Wrn 21 No start permitted Diag_Wrn 22 Number of starts > Diag_Wrn 23 Just one start possible Diag_Wrn 24 Motor operating hours > Diag_Wrn 25 Stop time > Diag_Wrn 26 External fault 1 Diag_Wrn 27 External fault 2 Diag_Wrn 28 External fault 3 Diag_Wrn 29 External fault 4 Diag_Wrn 30 External fault 5 Diag_Wrn 31 External fault 6 Diag_Wrn 32 AM open circuit Diag_Wrn 33 DM-F safety-related tripping Diag_Wrn 34 DM-F test requirement Diag_Wrn 35 DM-F feedback circuit Diag_Wrn 36 DM-FL simultaneity

Page 180: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

180 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Auxiliary variables Diag_Wrn bit

Event

Diag_Wrn 43 EM open circuit Diag_Wrn 44 EM short circuit

Table 5- 97 Bit assignment Diag_Wrn for SIMOCODE pro PROFINET devices

Diag_Wrn 37 TM2 warning T> Diag_Wrn 38 TM2 sensor fault Diag_Wrn 39 TM2 Out of Range Diag_Wrn 40 AM2 Warning 0/4–20 mA> Diag_Wrn 41 AM2 Warning 0/4–20 mA< Diag_Wrn 42 AM2 open circuit

Bit assignment Diag_Trp

Table 5- 98 Bit assignment Diag_Trp for SIMOCODE pro PROFIBUS devices

Auxiliary variables Diag_Trp bit

Event

Diag_Trp 0 Hardware fault basic unit Diag_Trp 1 Module fault Diag_Trp 2 Temporary components Diag_Trp 3 Configuration fault Diag_Trp 4 Parameterization Diag_Trp 5 Bus Diag_Trp 6 PLC/PCS Diag_Trp 7 Runtime On Diag_Trp 8 Execution Stop command Diag_Trp 9 FB ON Diag_Trp 10 FB OFF Diag_Trp 11 Stalled positioner Diag_Trp 12 Double 0 Diag_Trp 13 Double 1 Diag_Trp 14 End position Diag_Trp 15 Antivalence Diag_Trp 16 Cold starting (TPF) error Diag_Trp 17 UVO fault Diag_Trp 18 OPO error (operational protection OFF) Diag_Trp 19 Unbalance Diag_Trp 20 Overload Diag_Trp 21 Overload + phase failure Diag_Trp 22 Internal ground fault

Page 181: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 181

Auxiliary variables Diag_Trp bit

Event

Diag_Trp 23 External ground fault Diag_Trp 24 Thermistor overload Diag_Trp 25 Thermistor short circuit Diag_Trp 26 Thermistor open circuit Diag_Trp 27 TM trip T> Diag_Trp 28 TM sensor fault Diag_Trp 29 TMOut of Range Diag_Trp 30 Trip I> Diag_Trp 31 Trip I< Diag_Trp 32 Trip level P> Diag_Trp 33 Trip level P< Diag_Trp 34 Trip level Cos-Phi< Diag_Trp 35 Trip level U< Diag_Trp 36 Trip level 0/4–20 mA> Diag_Trp 37 Trip level 0/4–20 mA< Diag_Trp 38 Stalled rotor Diag_Trp 39 Number of motor starts> Diag_Trp 40 External fault 1 Diag_Trp 41 External fault 2 Diag_Trp 42 External fault 3 Diag_Trp 43 External fault 4 Diag_Trp 44 External fault 5 Diag_Trp 45 External fault 6 Diag_Trp 46 Analog module open circuit Diag_Trp 47 Test trip Diag_Trp 48 DM-F safety-related tripping Diag_Trp 49 DM-F wiring Diag_Trp 50 DM-FL cross circuit Diag_Trp 57 EM open circuit Diag_Trp 58 EM short circuit

Table 5- 99 Bit assignment Diag_Trp for SIMOCODE pro PROFINET devices

Diag_Trp 51 TM2 trip T> Diag_Trp 52 TM2 sensor fault Diag_Trp 53 TM2 Out of Range Diag_Trp 54 AM2 Warning 0/4–20 mA> Diag_Trp 55 AM2 Warning 0/4–20 mA< Diag_Trp 56 AM2 open circuit

Page 182: Manual Simocode Pro Pcs7 Library v80 en-US

Description of the blocks 5.7 MMOprtn driver block

SIMOCODE pro PCS 7 Library V8.0

182 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Page 183: Manual Simocode Pro Pcs7 Library v80 en-US

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 183

Driver generator 6 6.1 Driver blocks

Generating the driver blocks Following successful generation of the signal blocks, specific driver blocks are generated depending on the configuration.

The action includes the following steps:

● Determining the diagnostics of the SIMOCODE pro device.

● Assigning the primary subnet address and module rack number for the SIMOCODE pro device.

● Instantiating the OB_DIAG1 driver block for the SIMOCODE pro device.

● Instantiating the MMDiag driver block for reading the diagnostics information of the SIMOCODE pro device.

● Setting the address of the device at the OB_DIAG1, MMDiag and MOD_SWT blocks.

● Creating interconnections between the OB_DIAG1, MMDiag and MOD_SWT blocks.

● Assigning the diagnostic address in the DAddr parameter.

● Making interconnections between the MMOprtn, MMMeas, MMStat and MMTime blocks and the MMDiag and MOD_SWT blocks.

Interconnecting the driver blocks ● The white blocks must be inserted into the CFC chart by the user.

● The driver generator inserts the yellow blocks and the blue interconnections.

● The system generates the green interconnections.

● The user has to create the orange interconnections: Connect the PZDIn01 input parameter to the logical address of the SIMOCODE pro basic unit.

Page 184: Manual Simocode Pro Pcs7 Library v80 en-US

Driver generator 6.1 Driver blocks

SIMOCODE pro PCS 7 Library V8.0

184 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Figure 6-1 Interconnecting the driver blocks

Page 185: Manual Simocode Pro Pcs7 Library v80 en-US

Driver generator 6.2 Requirements for generating the module drivers

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 185

6.2 Requirements for generating the module drivers The following SIMOCODE pro modules are permitted for PCS 7 library V8.0:

Order number SIMOCODE pro Compatible modules 3UF7000-1A*00-0 SIMOCODE pro C (PROFIBUS DP) yes 3UF7010-1A*00-0 SIMOCODE pro V

Basic units 1 and 2 (PROFIBUS DP) yes

3UF7011-1A*00-0 SIMOCODE pro V PN Basic units 1, 2, and 3 (PROFINET)

yes

The desired motor management block is inserted into the CFC chart from the SIMOCODE pro library. The PZDIn01 input parameter of the block is interconnected with the corresponding input of the logical address of the module (LAddr).

The CFC chart is compiled using the "Generate module driver" function.

6.3 Object lists and action lists Hardware modules, among other things, are configured in HW Config.

Description The object lists and the action lists are used to generate the module drivers for these hardware modules.

The object list contains a unique object identification number for each of these hardware modules. Each object list is assigned to a particular hardware configuration.

The action list contains a list of actions. These actions must be executed for the object identification numbers that appear in the object list Examples of such actions include:

● Assigning the device address

● Interconnecting the input and output parameters of the driver block

The "Generate Module Driver" function generates the module drivers when the CFC is compiled.

Page 186: Manual Simocode Pro Pcs7 Library v80 en-US

Driver generator 6.3 Object lists and action lists

SIMOCODE pro PCS 7 Library V8.0

186 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Page 187: Manual Simocode Pro Pcs7 Library v80 en-US

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 187

Parameter A A.1 MMDiag block parameter

Input parameters

Table A- 1 Input parameter MMDiag

Parameter Data format Default setting Meaning En_Diag BOOL TRUE 1 = Enable reading of diagnostic data Mode DWORD 16#00 OMODE Information from the block MOD_SWT DAddr INT 0 Diagnostics address of SIMOCODE DPA_Link BOOL FALSE Device connection:

0= DP-MASTER, 1 = DP-LINK SubN_Typ BOOL FALSE 1 = External DP interface Sl_Typ BOOL FALSE 0 = PROFIBUS, 1 = PROFINET SubN1_Id BYTE 16#FF ID of the primary master system SubN2_Id BYTE 16#FF ID of the redundant master system Rack_No INT 0 Rack number Slot_No INT 0 Slot address of the module SubSlot_No INT 0 Channel address of signal module SubAddr INT 0 Subaddress LAddr WORD 16#0000 Logical address of the starter RackF BOOL FALSE 1 = Information on rack failure from OB_DIAG1 block Subn1Err BOOL FALSE 1 = Failure slave 1 Subn2Err BOOL FALSE 1 = Failure slave 2 Cst STRUCT 1 = Test (CST) RunUpCyc INT 3 Number of cycles in which all messages are suppressed. MsgEvId1 DWORD 16#FF Message event ID AccId BOOL TRUE 1 = Accept new operating mode settings ExtMsg1 STRUCT External message 1 ExtMsg2 STRUCT External message 2 ExtMsg3 STRUCT External message 3 ExtVa105 ANY External value 5 ExtVa106 ANY External value 6 ExtVa107 ANY External value 7 ExtVa108 ANY External value 8 ExtVa109 ANY External value 9 ExtVa110 ANY External value 10

Page 188: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.1 MMDiag block parameter

SIMOCODE pro PCS 7 Library V8.0

188 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Output parameters

Table A- 2 Output parameter MMDiag

Parameter Data format Default setting Meaning GrpErr STRUCT 1 = General fault RackF_Act STRUCT 1 = Rack failure ModF_Act STRUCT 1 = Module fault Rack1Err STRUCT FALSE 1 = Error in the primary DP slave system Rack2Err STRUCT FALSE 1 = Error in the redundant DP slave system BusFlt BOOL FALSE 1 = PROFIBUS Connection to DP slave lost RdEn BOOL FALSE 1 = Enable reading of data set RdErr STRUCT FALSE 1 = Error reading data set PA_Diag DWORD 16#00 Diagnostic information for maintenance Slv_Typ BOOL FALSE 0 = PROFIBUS, 1 = PROFINET Diag_Inf DWORD 16#00 SIMOCODE Configuration information Diag_Sts SMCSTATUS

(Page 189) Diagnostic information status

Diag_Evt SMCEVNT (Page 190)

Diagnostic information event

Diag_Wrn SMCWRNG (Page 192)

Diagnostic information warning

Diag_Trp SMCTRP (Page 194)

Diagnostic information trip

ST_Worst BYTE 16#80 Worst Signal Status OMode DWORD 16#00 Status MODE ErrorNum INT –1 Output of current error number MsgErr1 BOOL FALSE Output error 1 (output ERROR of first ALARM_8P) MsgStat1 WORD 16#00 Output status 1 (output ERROR of first ALARM_8P) MsgAckn1 WORD 16#00 Message acknowledgment status 1 (output STATUS of first

ALARM_8P)

OMODE structure

Table A- 3 OMODE – MMDiag structure

Byte Value Meaning Byte 3 16#80:

16#40: 16#20:

Valid data Invalid data Redundancy error

Irrelevant

Byte 2 16#01: Warm restart (OB100) – Byte 1; 0 16#0000 – Irrelevant

Page 189: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.1 MMDiag block parameter

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 189

UDTs for diagnostics information The following diagnostics information is available for SIMOCODE pro PROFIBUS and PROFINET devices:

● SMCSTATUS – Status, output via the DiagSts parameter output

● SMCEVNT – event, output via the Diag_Evt parameter output

● SMCWRNG – warning, output via the Diag_Wrn parameter output

● SMCTRP – trip, output via the Diag_Trp parameter output

SMCSTATUS, SMCEVNT, SMCWRNG, and SMCTRP are structured parameters for diagnostic information. They are composed of a number of elements.

SMCSTATUS – status

Table A- 4 Status diagnostics information for SIMOCODE pro devices

Element Data format Meaning GRPERR BOOL Status – group fault GRPWRNG BOOL Status - general warning DEVSTS BOOL Status – device BUSSTS BOOL Status – bus PLCSTS BOOL Status – PLC/PCS IMSTS BOOL Status – motor current flowing FREVON BOOL Status – ON << SREVON BOOL Status – ON < CONTACTOFF BOOL Status – OFF SFWDON BOOL Status – ON > FFWDON BOOL Status – ON >> STARTACT BOOL Status – start active INTLTMACT BOOL Status – interlocking time active CHGOVRIDLACT BOOL Status – change-over pause active OPNDIR BOOL Status – positioner runs in Open direction CLSDIR BOOL Status – positioner runs in Close direction FBKCLS BOOL Status – feedback closed FBKOPN BOOL Status – feedback open TRQCLS BOOL Status – torque closes TRQOPN BOOL Status – torque open COLDSTRT BOOL Status – cold starting (TPF) test position feedback OPRPROTOFF BOOL Status – operational protection off (OPO) REMOTE BOOL Status – remote mode EMSTRTACT BOOL Status – emergency start executed CLDNTMACT BOOL Status – cooling time active IDLTMACT BOOL Status – pause time active DEVCHKACT BOOL Status – device test active

Page 190: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.1 MMDiag block parameter

SIMOCODE pro PCS 7 Library V8.0

190 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Element Data format Meaning UMPHS123 BOOL Status – phase sequence 1-2-3 UMPHS321 BOOL Status – phase sequence 3-2-1 DMFCKT BOOL Status – DM-F enabling circuit

SMCEVNT – event

Table A- 5 Event diagnostics information for SIMOCODE pro devices

Element Data format Meaning IMUMOVLOPRN BOOL Event – overload operation IMUMUNBAL BOOL Event – unbalance IMUMOVL BOOL Event – overload OVLPHSFAIL BOOL Event – overload + phase failure INTGNDFLT BOOL Event – internal ground fault EXTGNDFLT BOOL Event – external ground fault WRNGNDFLT BOOL Event – external ground fault warning THRMOVL BOOL Event– thermistor overload THRMSHRT BOOL Event – thermistor short-circuit THRMOPN BOOL Event – thermistor open circuit TMPWRNHI BOOL Event – TM warning T> TMPTRPHI BOOL Event – TM trip T> TMSNRERR BOOL Event – TM sensor fault TMOUTRNG BOOL Event – TM Out of Range CURWRNHI BOOL Event – warning I> CURWRNLO BOOL Event – warning I< PWRWRNHI BOOL Event – warning P> PWRWRNLO BOOL Event – warning P< COSPHIWRNLO BOOL Event – warning cos phi< VOLWRNLO BOOL Event – warning U< WRN4TO20HI BOOL Event – AM1 warning 0/4–20 mA> WRN4TO20LO BOOL Event – AM1 warning 0/4–20 mA< CURTRPHI BOOL Event – trip level I> CURTRPLO BOOL Event – trip level I< PWRTRPHI BOOL Event – trip level P> PWRTRPLO BOOL Event – trip level P< COSPHITRPLO BOOL Event – trip level cos phi< VOLTRPLO BOOL Event – trip level U< TRP4TO20HI BOOL Event – AM1 trip level 0/4–20 mA> TRP4TO20LO BOOL Event – AM1 trip level 0/4–20 mA< STALROT BOOL Event – stalled rotor NOSTRTPOS BOOL Event – no start permitted NOSTRTHI BOOL Event – number of starts >

Page 191: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.1 MMDiag block parameter

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 191

Element Data format Meaning ONESTRT BOOL Event – just one start possible MOTOPHHI BOOL Event – motor operating hours > MOTSTPTMHI BOOL Event – motor stop time > Limit1 BOOL Event – limit 1 Limit 2 BOOL Event – limit 2 Limit 3 BOOL Event – limit 3 Limit 4 BOOL Event – limit 4 EXTERR1 BOOL Event – external fault 1 EXTERR2 BOOL Event – external fault 2 EXTERR3 BOOL Event – external fault 3 EXTERR4 BOOL Event – external fault 4 EXTERR5 BOOL Event – external fault 5 EXTERR6 BOOL Event – external fault 6 AMOPNCKT BOOL Event – AM1 open circuit DMFSAFETRP BOOL Event – DM-F safety-related tripping DMFTSTREQ BOOL Event – DM-F – test requirement TMSTMPOK BOOL Event – time stamping active + OK DMFSAFEOK BOOL Event – DM-FL safety OK DMFPROFSFACT BOOL Event – DM-F PROFIsafe active CFGOPMIS BOOL Event – configured operator panel missing MODNTSUP BOOL Event – module not supported BUNOMODVOL BOOL Event – no module voltage (BU 2) MEMMODRDIN BOOL Event – memory module read in MEMMODPRG BOOL Event – memory module programmed MEMMODERS BOOL Event – memory module cleared ADDRPLGRDIN BOOL Event – addressing plug read in STRTUPBLKACT BOOL Event – start-up parameterization block active PARCHGNTPOS BOOL Event – parameter changes not allowed in the

current operating state DEVFNCNTSUP BOOL Event – device does not support the required

functions PARAERR BOOL Event – wrong parameter: PWDERR BOOL Event – wrong password PWDPROTACT BOOL Event – password protection active FACTSET BOOL Event – factory default settings PARAACT BOOL Event – parameterization active PRMERRNUM BYTE Event – PRM error number (bytes) DMFLCNFMOD BOOL Event – DM-FL configuration mode DMFLCNFGDEV BOOL Event – DM-FL configuration deviation DMFLWAIT BOOL Event – DM-FL waiting for startup test DMFPRMERR BOOL Event – DM FP PRM error

Page 192: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.1 MMDiag block parameter

SIMOCODE pro PCS 7 Library V8.0

192 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Element Data format Meaning EMOPNCKT BOOL Event – EM open circuit EMSHRTCKT BOOL Event – EM short-circuit

Table A- 6 Event diagnostics information for SIMOCODE pro PROFINET devices

Element Data format Meaning NTPCLKSET BOOL Event – NTP clock set NTPCLKSYNC BOOL Event – NTP clock synchronized INIMODRD BOOL Event – initialization module read in INIMODPROG BOOL Event – initialization module programmed INIMODDEL BOOL Event – initialization module erased INIMODPROT BOOL Event – initialization module write-protected,

parameter changes not permissible MEMMODPROT BOOL Event – memory module write-protected INIMODWRPROT BOOL Event – initialization module write-protected INIMODIDPROT BOOL Event – initialization module identification data write-

protected TM2WRNHI BOOL Event – TM2 warning T> TM2TRPHI BOOL Event – TM2 trip T> TM2SNRERR BOOL Event – TM2 sensor fault TM2OUTRNG BOOL Event – TM2 out of range AM2WRNGHI BOOL Event – AM2 warning 0/4–20 mA> AM2WRNGLO BOOL Event – AM2 warning 0/4–20 mA< AM2TRPHI BOOL Event – AM2 trip level 0/4–20 mA> AM2TRPLO BOOL Event – AM2 trip level 0/4–20 mA< LIMIT5 BOOL Event – limit 5 LIMIT6 BOOL Event – limit 6 AM2OPNCKT BOOL Event – AM2 open circuit

SMCWRNG – warning

Table A- 7 Warning diagnostics information for SIMOCODE pro devices

Element Data format Meaning IMUMOVLOPRN BOOL Warning – overload operation IMUMUNBAL BOOL Warning – unbalance IMUMOVL BOOL Warning – overload OVLPHSFAIL BOOL Warning – overload + phase failure INTGNDFLT BOOL Warning – internal ground fault EXTGNDFLT BOOL Warning – external ground fault THRMOVL BOOL Warning – thermistor overload THRMSHRT BOOL Warning – thermistor short-circuit

Page 193: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.1 MMDiag block parameter

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 193

Element Data format Meaning THRMOPN BOOL Warning – thermistor open circuit TMPWRNHI BOOL Warning – TM1 warning T > TMSNRERR BOOL Warning – TM1 sensor fault TMOUTRNG BOOL Warning – TM1 Out of Range CURWRNHI BOOL Warning – warning level I> CURWRNLO BOOL Warning – warning level I< PWRWRNHI BOOL Warning – warning level P> PWRWRNLO BOOL Warning – warning level P< COSPHIWRNLO BOOL Warning – warning level cos phi< VOLWRNLO BOOL Warning – warning level U< WRN4TO20HI BOOL Warning – AM1 warning level 0/4–20 mA> WRN4TO20LO BOOL Warning – AM1 warning level 0/4–20 mA< STALROT BOOL Warning – stalled rotor NOSTRTPOS BOOL Warning – no start permitted NOSTRTHI BOOL Warning – number of starts > ONESTRT BOOL Warning – just one start permissible MOTOPHHI BOOL Warning – motor operating hours > MOTSTPTMHI BOOL Warning – motor stop time > EXTFAULT1 BOOL Warning – external fault 1 EXTFAULT2 BOOL Warning – external fault 2 EXTFAULT3 BOOL Warning – external fault 3 EXTFAULT4 BOOL Warning – external fault 4 EXTFAULT5 BOOL Warning – external fault 5 EXTFAULT6 BOOL Warning – external fault 6 AMOPNCKT BOOL Warning – analog module 1 open circuit DMFSAFETRP BOOL Warning – DM-F safety-related tripping DMFTSTREQ BOOL Warning – DM-F test requirement DMFLFBKCKT BOOL Warning – DM-F feedback circuit DMFLSIM BOOL Warning – DM-FL simultaneity EMOPNCKT BOOL Warning – EM open circuit EMSHRTCKT BOOL Warning – EM short-circuit

Table A- 8 Warning diagnostics information for SIMOCODE pro PROFINET devices

Element Data format Meaning TM2WRNHI BOOL Warning – TM2 warning T> TM2SNRERR BOOL Warning – TM2 sensor fault TM2OUTRNG BOOL Warning – TM2 out of range AM24TO20HI BOOL Warning – AM2 warning 0/4–20 mA> AM24TO20LO BOOL Warning – AM2 warning 0/4–20 mA< AM2OPNCKT BOOL Warning – AM2 open circuit

Page 194: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.1 MMDiag block parameter

SIMOCODE pro PCS 7 Library V8.0

194 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

SMCTRP – trip

Table A- 9 SMCTRP – trip diagnostics information for SIMOCODE pro devices

Element Data format Meaning HWBUFLT BOOL Trip – hardware fault basic unit MODFLT BOOL Trip – module fault TMPCOMP BOOL Trip – temporary components CNFGFLT BOOL Trip – configuration fault BUPARAM BOOL Trip – parameterization BUBUS BOOL Trip – bus BUPLC BOOL Trip – PLC/PCS CFRTON BOOL Trip – runtime ON CFSTPCMD BOOL Trip – execution STOP command CFFBON BOOL Trip – FB ON CFFBOFF BOOL Trip – FB OFF CFSTAL BOOL Trip – stalled positioner CFDBL0 BOOL Trip – double 0 CFDBL1 BOOL Trip – double 1 CFENDPOS BOOL Trip – end position CFANTIVAL BOOL Trip – antivalence BUTPFFLT BOOL Trip – cold starting (TPF) error UVOERR BOOL Trip – UVO error OPOERR BOOL Trip – OPO error (operational protection OFF) IMUMUNBAL BOOL Trip – unbalance IMUMOVL BOOL Trip – overload OVLPHSFAIL BOOL Trip – overload + phase failure INTGNDFLT BOOL Trip – internal ground fault EXTGNDFLT BOOL Trip – external ground fault THRMOVL BOOL Trip – thermistor overload THRMSHRT BOOL Trip – thermistor short-circuit THRMOPN BOOL Trip – thermistor open circuit TMPTRPHI BOOL Trip – TM trip T> TMSNSERR BOOL Trip – TM sensor fault TMABVRAN BOOL Trip – TM Out of Range CURTRPHI BOOL Trip – trip I> CURTRPLO BOOL Trip – trip I< PWRTRPHI BOOL Trip – trip P> PWRTRPLO BOOL Trip – trip P< COSPHITRPLO BOOL Trip – trip cos phi< VOLTRPLO BOOL Trip – trip U< TRP4TO20HI BOOL Trip – trip 0/4–20 mA> TRP4TO20LO BOOL Trip – trip 0/4–20 mA< STLRTR BOOL Trip – stalled rotor

Page 195: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.1 MMDiag block parameter

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 195

Element Data format Meaning NOSTRTHI BOOL Trip – number of motor starts> EXTERR1 BOOL Trip – external fault 1 EXTERR2 BOOL Trip – external fault 2 EXTERR3 BOOL Trip – external fault 3 EXTERR4 BOOL Trip – external fault 4 EXTERR5 BOOL Trip – external fault 5 EXTERR6 BOOL Trip – external fault 6 AMOPNCKT BOOL Trip – AM open circuit TSTTRP BOOL Trip – test trip DMFSAFETRP BOOL Trip – DM-F safety-related tripping DMFWIR BOOL Trip – DM-F wiring DMFLCRSCKT BOOL Trip – DM-FL cross circuit EMOPNCKT BOOL Trip – EM open circuit EMSHRTCKT BOOL Trip – EM short-circuit

Table A- 10 SMCTRP – trip diagnostics information for SIMOCODE pro PROFINET devices

Element Data format Meaning TM2TRPHI BOOL Trip – TM2 warning T> TM2SNSERR BOOL Trip – TM2 sensor fault TM2ABVRAN BOOL Trip – TM2 Out of Range AM24TO20HI BOOL Trip – AM2 warning 0/4–20 mA> AM24TO20LO BOOL Trip – AM2 warning 0/4–20 mA< AM2OPNCKT BOOL Trip – AM2 open circuit

Page 196: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.2 MMMeas block parameter

SIMOCODE pro PCS 7 Library V8.0

196 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

A.2 MMMeas block parameter

Input parameters

Table A- 11 MMMeas input parameters

Parameter Data format Default setting Meaning Mode DWORD 16#8000FFFF OMODE information from the MOD_SWT block DAddr INT 0 Diagnostics address of SIMOCODE LAddr INT 0 Logical address of SIMOCODE RackF STRUCT FALSE 1 = Rack failure ModF STRUCT FALSE 1 = Module failure Slv_Typ BOOL FALSE 0 = PROFIBUS, 1 = PROFINET BUTyp INT 1 Basic unit type 1, 2 or 3 RdEn BOOL TRUE Enable read data record RdDataLi STRUCT – Read data record via interconnection RdDataOp BOOL FALSE Read data from data record PZDIn01 WORD 16#00 Value of process image input DP 0.0–1.7 PZDIn45 WORD 16#00 Value of process image input DP 4.0–5.7 basic unit 1 PZDIn67 WORD 16#00 Value of process image input DP 6.0–7.7 basic unit 1 PZDIn89 WORD 16#00 Value of process image input DP 8.0–9.7 basic unit 1 PZDIn10 WORD 16#00 Value of process image input DP 10.0-11.7 basic unit 3 PZDIn12 WORD 16#00 Value of process image input DP 12.0-13.7 basic unit 3 PZDIn14 WORD 16#00 Value of process image input DP 14.0-15.7 basic unit 3 PZDIn16 WORD 16#00 Value of process image input DP 16.0-17.7 basic unit 3 PZDIn18 WORD 16#00 Value of process image input DP 18.0-19.7 basic unit 3 ModeIn45 INT 0 Mode of analog input PZDIn45 ModeIn67 INT 0 Mode of analog input PZDIn67 ModeIn89 INT 0 Mode of analog input PZDIn89 ModeIn10 INT 0 Mode of analog input PZDIn10 ModeIn12 INT 0 Mode of analog input PZDIn12 ModeIn14 INT 0 Mode of analog input PZDIn14 ModeIn16 INT 0 Mode of analog input PZDIn16 ModeIn18 INT 0 Mode of analog input PZDIn18 AM1OutRg STRUCT – Analog module 1 output – range for calculation AM1InRg STRUCT – Analog module 1 input – range for calculation AM2OutRg STRUCT – Analog module 2 output – range for calculation AM2InRg STRUCT – Analog module 2 input – range for calculation AMOutIn STRUCT – Input operator for analog module 1 – output AMOutLi STRUCT – Input interconnection for analog module 1 – output AM2OutIn STRUCT – Input operator for analog module 2 – output AM2OutLi STRUCT – Input interconnection for analog module 2 – output LiOp STRUCT – 1 = interconnection; 0 = operator

Page 197: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.2 MMMeas block parameter

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 197

Parameter Data format Default setting Meaning OnOp BOOL FALSE 1 = ON mode:

ON mode by operator OosOp BOOL FALSE 1 = Out of Service mode:

Out of Service mode by operator OosLi STRUCT – 1 = Out of Service mode:

Out of Service mode via field signal Curr_OpScale STRUCT – Current – bar of limit value display Vol_OpScale STRUCT – Voltage – bar of limit value display Ana_OpScale STRUCT – Analog output / analog input – bar of limit value display Pow_OpScale STRUCT – Active power – bar of limit value display SampleTime REAL 0.1 Sampling time in seconds [s] RunUpCyc INT 3 Number of cycles in which all messages are suppressed. MsgEvId1 DWORD 16#FF Message number 1 MsgLock STRUCT – Suppress process messages ExtMsg1 STRUCT – External message 1 ExtMsg2 STRUCT – External message 2 ExtMsg3 STRUCT – External message 3 ExtMsg4 STRUCT – External message 4 ExtMsg5 STRUCT – External message 5 ExtMsg6 STRUCT – External message 6 ExtMsg7 STRUCT – External message 7 ExtMsg8 STRUCT – External message 8 ExtVa101 ANY – External value 1 ExtVa102 ANY – External value 2 ExtVa103 ANY – External value 3 ExtVa104 ANY – External value 4 ExtVa105 ANY – External value 5 ExtVa106 ANY – External value 6 ExtVa107 ANY – External value 7 ExtVa108 ANY – External value 8 ExtVa109 ANY – External value 9 ExtVa110 ANY – External value 10 OS_Perm STRUCT – I/O for operator authorizations OpSt_In DWORD – Input parameters for local operator authorization to be

interconnected with the output parameter Out of the OpStations block connected upstream

Feature STRUCT – I/O for additional functions

Page 198: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.2 MMMeas block parameter

SIMOCODE pro PCS 7 Library V8.0

198 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Output parameters

Table A- 12 MMMeas output parameters

Parameter Data format Default setting Meaning RackF_Act STRUCT FALSE 1 = Rack failure ModF_Act STRUCT FALSE 1 = Module failure GrpErr STRUCT – 1 = Group error RdErr BOOL FALSE 1 = Error reading data record RdAct BOOL FALSE 1 = Enable reading of data record LocalAct STRUCT – 1 = Local mode enable OnAct STRUCT – ON mode is active

1 = ON mode enable OosAct STRUCT – Out of Service mode is active.

1 = Block is out of service PZDOut23 STRUCT – Process value for basic unit 1 PZDOut45 STRUCT – Process value for basic unit 3 (PROFINET) ThmMotMod STRUCT – Thermal motor model PhaUnbal STRUCT – Phase unbalance in % MotCosPhi STRUCT – Motor power factor in % ImMax STRUCT – Max. motor current in %le CurrL1 STRUCT – Phase current in IL1 in %le CurrL2 STRUCT – Phase current IL2 in % CurrL3 STRUCT – Phase current IL3 in % TripCurr STRUCT – Last trip current in %le TripTime STRUCT – Time until tripping in [s] MotcolTm STRUCT – Remaining motor cooling time in [s] MotVol1 STRUCT – Motor voltage UL1 in volts MotVol2 STRUCT – Motor voltage UL2 in volts MotVol3 STRUCT – Motor voltage UL3 in volts AMOut STRUCT – Analog module output AMOutE STRUCT – Analog module output rms in mA AMIn1 STRUCT – Analog module input 1 AMIn1E STRUCT – Analog module input 1 rms in mA AMIn2 STRUCT – Analog module input 2 AMIn2E STRUCT – Analog module input 2 rms in mA AMIn3 STRUCT – Analog module input 3 AMIn3E STRUCT – Analog module input 3 rms in mA MaxTemp STRUCT – Max. temperature in Celsius TMTemp1 STRUCT – Temperature 1 in Celsius TMTemp2 STRUCT – Temperature 2 in Celsius TMTemp3 STRUCT – Temperature 3 in Celsius EFltCurr STRUCT – Ground fault current in mA ETrpCurr STRUCT – Last ground fault trip current in mA

Page 199: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.2 MMMeas block parameter

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 199

Parameter Data format Default setting Meaning ActPower STRUCT – Active power in watts AppPower STRUCT – Apparent power in VA OS_PermOut DWORD 16#FFFFFFFF Display of OS_Perm OS_PermLog DWORD 16#FFFFFFFF Display of OS_Perm with settings changed by block

algorithm Opst_Out DWORD 16#00 Value of the OpSt_In input parameter for further connection

to other blocks. Bit 31 of this parameter is assigned to feature bit 24.

ST_Worst BYTE 16#80 Worst signal status Status1 DWORD 16#00000000 Status word 1 ErrorNum INT -1 Output of current error number MsgErr1 BOOL FALSE Message error (ERROR output of first ALARM_8P) MsgStat1 WORD 16#00 Message status (ERROR output of first ALARM_8P) MsgAckn1 WORD 16#00 Message acknowledgement status (STATUS output of first

ALARM_8P)

Additional output parameters for SIMOCODE pro PROFINET devices

Table A- 13 MMMeas output parameters for PROFINET devices

Parameter Data format Default setting Meaning AM2Out STRUCT – AM2 output AM2OutE STRUCT – AM2 output rms in mA AM2In1 STRUCT – AM2 input 1 AM2In1E STRUCT – AM2 input 1 rms in mA AM2In2 STRUCT – AM2 input 2 AM2In2E STRUCT – AM2 input 2 rms in mA AM2In3 STRUCT – AM2 input 3 AM2In3E STRUCT – AM2 input 3 rms in mA MaxTemp2 STRUCT – TM2 max. temperature in Celsius TM2Temp1 STRUCT – AM2 temperature 1 in Celsius TM2Temp2 STRUCT – AM2 temperature 2 in Celsius TM2Temp3 STRUCT – AM2 temperature 3 in Celsius

Page 200: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.3 Block parameter MMStat

SIMOCODE pro PCS 7 Library V8.0

200 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

A.3 Block parameter MMStat

Input parameters

Table A- 14 Input parameter MMStat

Block parameters Data format Default setting Meaning Mode DWORD 16#8000FFFF OMODE information from the MOD_SWT block DAddr INT 0 Diagnostics address of SIMOCODE LAddr INT 0 Logical address of SIMOCODE RackF STRUCT FALSE 1 = Information on rack failure from MMDiag block ModF STRUCT FALSE 1 = Information on module fault from MMDiag block Slv_Typ BOOL FALSE 0 = PROFIBUS, 1 = PROFINET RdWrEn BOOL TRUE Read data record via interconnection RdDataLi STRUCT – Input 0→1 (edge change):

Read data record via interconnection or SFC RdDataOp BOOL FALSE 1 = Read data from data record PZDIn01 WORD 16#00 Value of process image input DP 0.0–1.7 RstEnrgy BOOL FALSE Reset energy consumption OnOp BOOL FALSE 1 = ON mode:

ON mode by operator OosOp BOOL FALSE 1 = Oos mode:

Oos mode by operator OosLi STRUCT – 1 = Oos mode:

Oos mode via field signal SampleTime REAL 0.1 Sampling time in seconds [s] RunUpCyc INT 3 Number of cycles in which all messages are

suppressed. MsgEvId1 DWORD 16#FF Message event ID 1 MsgLock STRUCT – Suppress messages ExtMsg1 STRUCT – External message 1 ExtMsg2 STRUCT – External message 2 ExtMsg3 STRUCT – External message 3 ExtMsg4 STRUCT – External message 4 ExtMsg5 STRUCT – External message 5 ExtMsg6 STRUCT – External message 6 ExtMsg7 STRUCT – External message 7 ExtMsg8 STRUCT – External message 8 ExtVa101 ANY – Auxiliary value 1 ExtVa102 ANY – Auxiliary value 2 ExtVa103 ANY – Auxiliary value 3 ExtVa104 ANY – Auxiliary value 4 ExtVa105 ANY – Auxiliary value 5 ExtVa106 ANY – Auxiliary value 6

Page 201: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.3 Block parameter MMStat

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 201

Block parameters Data format Default setting Meaning ExtVa107 ANY – Auxiliary value 7 ExtVa108 ANY – Auxiliary value 8 ExtVa109 ANY – Auxiliary value 9 ExtVa110 ANY – Auxiliary value 10 OS_Perm STRUCT – Operator enables OpSt_In DWORD – ReleaseOperator Station (OS) Feature STRUCT – I/O for additional functions

Output parameters

Table A- 15 Output parameter MMStat

Parameter Data format Default setting Meaning RackF_Act STRUCT FALSE 1 = Rack failure ModF_Act STRUCT FALSE 1 = Module fault GrpErr STRUCT – 1 = General fault is active RdErr BOOL FALSE 1 = Error reading data set WrErr BOOL FALSE 1 = Error writing data record RdWrAct BOOL FALSE 1 = Enable read/write of data set LocalAct STRUCT – 1 = "Local" mode enable OnAct STRUCT – 1 = "ON" mode enable OosAct STRUCT – 1 = Block is "Out of service" P_StrtAct STRUCT – Permissible starts – actual value TmTstReq STRUCT – Time until test required N_Param STRUCT – Number of parameterization N_OvlTrp STRUCT – Number of overload trips N_IntOvlTrp STRUCT – Number of internal Overload trips M_StpTm STRUCT – Motor stop time Tmr1Act STRUCT – Timer 1 – actual value Tmr2Act STRUCT – Timer 2 – actual value Tmr3Act STRUCT – Timer 3 – actual value Tmr4Act STRUCT – Timer 4 – actual value Cnt1Act STRUCT – Counter 1 – actual value Cnt2Act STRUCT – Counter 2 – actual value Cnt3Act STRUCT – Counter 3 – actual value Cnt4Act STRUCT – Counter 4 – actual value CalMod1Out STRUCT – Calculation module 1 – output CalMod2Out STRUCT – Calculation module 2 – output M_OpH STRUCT – Motor operating hours M_IntOpH STRUCT – Internal motor operating hours D_OpH STRUCT – Device operating hours N_Strt STRUCT – Number of starts

Page 202: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.3 Block parameter MMStat

SIMOCODE pro PCS 7 Library V8.0

202 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Parameter Data format Default setting Meaning N_IntCwStrt STRUCT – Internal number of "clockwise" (CW) motor starts N_IntCCwStrt STRUCT – Internal number of "counterclockwise" (CCW) motor

starts EngyCon STRUCT – Energy consumption in kWh OS_PermOut DWORD 16#FFFFFFFF Display of OS_Perm OS_PermLog DWORD 16#FFFFFFFF Display of OS_Perm with settings changed by block

algorithm Opst_Out DWORD 16#00 Value of the OpSt_In input parameter for further

connection to other blocks. Bit 31 of the parameter is assigned to feature bit 24.

ST_Worst BYTE 16#80 Worst Signal Status Status1 DWORD 16#00000000 Status word 1 ErrorNum INT -1 Output of current error number MsgErr1 BOOL FALSE Output error 1 (output ERROR of first ALARM_8P) MsgStat1 WORD 16#00 Output status 1 (output ERROR of first ALARM_8P) MsgAckn1 WORD 16#00 Message acknowledgement status 1 (STATUS output

of first ALARM_8P)

Additional output parameters for SIMOCODE pro PROFINET devices

Table A- 16 Output parameter MMStat – PROFINET devices

Parameter Data format Default setting Meaning Tmr5Act STRUCT – Timer 5 Actual value Tmr6Act STRUCT – Timer 6 Actual value Cnt5Act STRUCT – Counter 5 - Actual value Cnt6Act STRUCT – Counter 6 - Actual value AnaMod3Out STRUCT – Calculation module 3 – Output AnaMod4Out STRUCT – Calculation module 4 – Output AnaMulOut STRUCT – Analog Multiplexer – Output

Page 203: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.4 Block parameter MMTime

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 203

A.4 Block parameter MMTime

Input parameters

Table A- 17 Input parameter MMTime

Parameter Data format Default setting Meaning Mode DWORD 16#00 OMODE Information from the block MOD_SWT DAddr INT 0 Diagnostic address RackF BOOL FALSE 1 = Rack failure, information from MMDiag block PZDIn01 WORD 16#00 Process value DP 0.0-1.7 RunUpCyc INT 3 Number of cycles in which all messages are suppressed. MsgEvId1 WORD 16#00 Message number 1 MsgEvId2 WORD 16#00 Message number 2 RdEn BOOL TRUE 1 = Enable reading of data set BatchEn BOOL FALSE Remote mode enable via Batch Recipe BatchID DWORD 16#00 Batch number BatchName STRING Batch name StepNo DWORD 16#00 Batch step number Occupied BOOL FALSE Occupied Batch MsgLock STRUCT 1 = Suppress process messages SigMsg1 STRUCT Signal message 1 SigMsg2 STRUCT Signal message 2 SigMsg3 STRUCT Signal message 3 SigMsg4 STRUCT Signal message 4 SigMsg5 STRUCT Signal message 5 SigMsg6 STRUCT Signal message 6 SigMsg7 STRUCT Signal message 7 SigMsg8 STRUCT Signal message 8 ExtVa105 ANY External value 5 ExtVa106 ANY External value 6 ExtVa107 ANY External value 7 ExtVa108 ANY External value 8 ExtVa109 ANY External value 9 ExtVa110 ANY External value 10 ExtVa205 ANY External value 5 ExtVa206 ANY External value 6 ExtVa207 ANY External value 7 ExtVa208 ANY External value 8 ExtVa209 ANY External value 9 ExtVa210 ANY External value 10 MSupS0 BOOL FALSE 1 = Message suppression signal 0 MSupS1 BOOL FALSE 1 = Message suppression signal 1

Page 204: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.4 Block parameter MMTime

SIMOCODE pro PCS 7 Library V8.0

204 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Parameter Data format Default setting Meaning MSupS2 BOOL FALSE 1 = Message suppression signal 2 MSupS3 BOOL FALSE 1 = Message suppression signal 3 MSupS4 BOOL FALSE 1 = Message suppression signal 4 MSupS5 BOOL FALSE 1 = Message suppression signal 5 MSupS6 BOOL FALSE 1 = Message suppression signal 6 MSupS7 BOOL FALSE 1 = Message suppression signal 7 MSupS8 BOOL FALSE 1 = Message suppression signal 8 Feature STRUCT - I/O for additional functions

Output parameters

Table A- 18 Output parameter MMTime

Parameter Data format Default setting Meaning RdErr BOOL FALSE 1 = Error reading data set StaTmst BYTE 0 Status of time stamping functionality TmstmpAc BOOL FALSE 1 = Timestamping active Sync_Ok BOOL FALSE 1 = Synchronization ok OflwBuf BOOL FALSE 1 = Buffer overflow EnRdWr BOOL TRUE 1 = Enable read/write of data set RdStat BOOL FALSE Read block status MsgSup STRUCT - Message suppression active ST_Worst BYTE 16#80 Worst Signal Status Status1 DWORD 16#00000000 Status word 1 LogId1 ... LogId21

INT 0 Message ID number 1 to 21

LogTm1 ... LogTm21

DWORD 16#00000000 Time stamp 1 to 21

EnCktCls INT 0 Enabling circuit closed – ID Number ClsTmStmp DWORD 16#00000000 Enabling circuit closed – NTP time stamp EnCktOpn INT 0 Enabling circuit open – ID Number OpnTmStmp DWORD 16#00000000 Enabling circuit open – NTP time stamp MsgErr1 BOOL FALSE Output error 1 (output ERROR of first ALARM_8P) MsgErr2 BOOL FALSE Output error 2 (output ERROR of second ALARM_8P) MsgStat1 WORD 16#00 Output status 1 (output ERROR of first ALARM_8P) MsgStat2 WORD 16#00 Output status 2 (output ERROR of second ALARM_8P) MsgAckn1 WORD 16#00 Message acknowledgment status 1 (output STATUS of first

ALARM_8P) MsgAckn2 WORD 16#00 Message acknowledgement status 2 (output STATUS of

secondALARM_8P)

Page 205: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.5 MMRevDhl block parameter

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 205

OMODE structure

Table A- 19 OMODE – MMTime structure

Bytes Value Meaning Byte 3 16#80:

16#40: 16#20:

Valid data Invalid data Redundancy error

Irrelevant

Byte 2 16#01: Warm restart (OB100) – Byte 1; 0 16#0000 – Irrelevant

A.5 MMRevDhl block parameter

Input parameters

Table A- 20 Input parameter MMRevDhl

Parameter Data format Default setting Meaning FFwdAut STRUCT – 1 = Switch on the motor (fast forward) in AUTO mode FwdAut STRUCT – 1 = Switch on the motor (forward) in AUTO mode StopAut STRUCT – 1 = Stop motor in AUTO mode RevAut STRUCT – 1 = Switch on the motor (reverse) in AUTO mode FRevAut STRUCT – 1 = Switch on the motor (fast reverse) in AUTO mode FFwdMan BOOL FALSE 1 = Switch on the motor (fast forward) in MANUAL mode FwdMan BOOL FALSE 1 = Switch on the motor (forward) in MANUAL mode StopMan BOOL FALSE 1 = Stop motor in MANUAL mode RevMan BOOL FALSE 1 = Switch on the motor (reverse) in MANUAL mode FRevMan BOOL FALSE 1 = Switch on the motor (fast reverse) in MANUAL mode ModLiOp STRUCT – Changing modes between:

0 = Operator 1 = Interconnection

AutModOp BOOL FALSE 1 = AUTO mode via operator ManModOp BOOL TRUE 1 = MANUAL mode via operator AutModLi STRUCT – 1 = AUTO mode via interconnection or SFC ManModLi STRUCT – 1 = MANUAL mode via interconnection or SFC LocalLi STRUCT – 1 = Activate local mode via plant signal LocalOp BOOL FALSE 1 = Local mode via operator MS_RelOp BOOL FALSE 1 = Release for maintenance by OS operator OosOp BOOL FALSE 1 = Out of service, via OS operator OosLi STRUCT – 1 = Out of service, via interconnection or SFC (0–1 edge) FFwdLocal STRUCT – 1 = Switch on the motor (fast forward) in local mode FwdLocal STRUCT – 1 = Switch on the motor (forward) in local mode StopLocal STRUCT – 1 = Stop motor in local mode

Page 206: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.5 MMRevDhl block parameter

SIMOCODE pro PCS 7 Library V8.0

206 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Parameter Data format Default setting Meaning RevLocal STRUCT – 1 = Switch on the motor (reverse) in local mode FRevLocal STRUCT – 1 = Switch on the motor (fast reverse) in local mode LocalSetting INT 0 Properties for local mode FbkFFwd STRUCT – 1 = Feedback for fast forward running received FbkFwd STRUCT – 1 = Feedback for forward running received FbkRev STRUCT – 1 = Feedback for reverse running received FbkFRev STRUCT – 1 = Feedback for fast reverse running received Monitor BOOL TRUE 1 = Feedback for monitoring MonTiStatic REAL 3.0 Monitoring time for feedback error without operation in [s] MonTiDynamic REAL 3.0 Monitoring time for feedback error after operation in [s] SwOverTi REAL 0.0 Switch over time in [s] IdleTime REAL 5.0 Delay time for change of direction or warm restart in [s] PulseWidth REAL 3.0 Pulse width of control signal [s] WarnTiMan REAL 0.0 Prewarning of motor start in MANUAL mode in [s] WarnTiAut REAL 0.0 Prewarning of motor start in AUTO mode in [s] RapidStp BOOL 0 Rapid stop for the motor:

0 = Motor on 1 = Motor off

RstOp BOOL 0 1 = Reset via operator RstLi STRUCT – 1 = Reset via interconnection BypProt BOOL FALSE 1 = Bypassing interlock in local mode and for simulation Trip STRUCT 1 1 = Motor is in "good" state Permit STRUCT TRUE 1 = Enable for opening / closing from neutral position

0 = No OS activation enable for starting the motor Perm_En BOOL TRUE 1 = Activation enable (enable, parameter Permit) is active Intlock STRUCT TRUE 1 = Interlocking without reset is active; you can operate

the block without reset once the interlocking condition has disappeared 0 = Interlock not activated

Intl_En BOOL TRUE 1 = Interlock without reset is active (interlock, parameter Intlock)

Protect STRUCT TRUE 0 = Protective interlocking is active; once the interlocking condition has disappeared, you will have to reset the block 1 = Protective interlocking not activated

Prot_En BOOL TRUE 1 = Protective interlocking is active (protection, Protect parameter)

FFwdForce STRUCT FALSE 1 = Force operating state: Start motor fast forward

FwdForce STRUCT FALSE 1 = Force operating state: Start motor forward

StopForce STRUCT FALSE 1 = Stop: Force stopping the motor RevForce STRUCT FALSE 1 = Force operating state:

Start motor reverse

Page 207: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.5 MMRevDhl block parameter

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 207

Parameter Data format Default setting Meaning FRevForce STRUCT FALSE 1 = Force operating state:

Start motor fast reverse UserAna1 STRUCT FALSE Analog auxiliary value 1 UA1unit INT 0 Unit of measure for analog auxiliary value 1 UserAna2 STRUCT FALSE Analog auxiliary value 2 UA2unit INT 0 Unit of measure for analog auxiliary value 2 MsgLock STRUCT FALSE Suppress process message SampleTime REAL 0.1 Sampling time [s] SimLiOp STRUCT FALSE Activation/deactivation of the simulation by:

0 = Operator 1 = Logic operation

SimOnLi STRUCT FALSE 1 = Simulation via logic operation (controlled via SimLiOp = 1)

SimOn BOOL FALSE 1 = Simulation on RunUpCyc INT 3 Number of cycles in which all messages are suppressed. MsgEvId1 DWORD 16#FF Message number (assigned automatically) BatchEn BOOL FALSE 1 = Reserve enable Occupied BOOL FALSE 1 = Occupied by batch control BatchID DWORD 16#00 Batch number BatchName STRING[32] ‘‘ Batch name StepNo DWORD 16#00 Batch step number CSF STRUCT – 1 = External fault (control system fault) ExtMsg1 STRUCT – Binary input for freely selectable message 1 ExtMsg2 STRUCT – Binary input for freely selectable message 2 ExtMsg3 STRUCT – Binary input for freely selectable message 3 ExtMsg4 STRUCT – Binary input for freely selectable message 4 ExtMsg5 STRUCT – Binary input for freely selectable message 5 ExtMsg6 STRUCT – Binary input for freely selectable message 6 ExtMsg7 STRUCT – Binary input for freely selectable message 7 ExtMsg8 STRUCT – Binary input for freely selectable message 8 ExtMsg9 STRUCT – Binary input for freely selectable message 9 ExtMsg10 STRUCT – Binary input for freely selectable message 10 ExtMsg11 STRUCT – Binary input for freely selectable message 11 ExtVa104 ANY – Auxiliary value 4 for messages (MsgEvID1) ExtVa105 ANY – Auxiliary value 5 for messages (MsgEvID1) ExtVa106 ANY – Auxiliary value 6 for messages (MsgEvID1) ExtVa107 ANY – Auxiliary value 7 for messages (MsgEvID1) ExtVa108 ANY – Auxiliary value 8 for messages (MsgEvID1) ExtVa201 ANY – Auxiliary value 1 for messages (MsgEvID2) ExtVa202 ANY – Auxiliary value 2 for messages (MsgEvID2) ExtVa203 ANY – Auxiliary value 3 for messages (MsgEvID2) ExtVa204 ANY – Auxiliary value 4 for messages (MsgEvID2) ExtVa205 ANY – Auxiliary value 5 for messages (MsgEvID2)

Page 208: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.5 MMRevDhl block parameter

SIMOCODE pro PCS 7 Library V8.0

208 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Parameter Data format Default setting Meaning ExtVa206 ANY – Auxiliary value 6 for messages (MsgEvID2) ExtVa207 ANY – Auxiliary value 7 for messages (MsgEvID2) ExtVa208 ANY – Auxiliary value 8 for messages (MsgEvID2) UserStatus BYTE 16#00 Freely assignable bits for use in PCS 7 OS SelFp1 ANY – Call a block saved in this parameter as an additional

faceplate in standard view SelFp2 ANY – Call a block saved in this parameter as an additional

faceplate in standard view SelMeas ANY – Call the measurement block available as an additional

faceplate in the maintenance view SelStat ANY – Call the statistics block available as an additional

faceplate in the maintenance view OS_Perm STRUCT – I/O for operator authorizations OpSt_In DWORD 16#00000000

Input parameters for local operator authorization to be interconnected with the output parameter Out of the OpStations block connected upstream

Feature STRUCT – I/O for additional functions Feature2 STRUCT – I/O for additional functions

Output parameters

Table A- 21 Output parameter MMRevDhl

Parameter Data format Default setting Meaning MS_Release STRUCT – Maintenance release:

1 = Release for OS operator MonDynErr STRUCT FALSE 1 = Feedback error due to control change MonStaErr STRUCT FALSE 1 = Feedback error due to unexpected feedback change R_StpAct STRUCT FALSE 1 = Rapid stop of the motor is active LockAct STRUCT FALSE 1 = Interlocking is active (Permit, Interlock or Protect) GrpErr STRUCT FALSE 1 = General fault RdyToStart STRUCT FALSE 1 = Ready to switch on RdyToReset STRUCT FALSE 1 = Ready to reset via the RstLi input or the commands

in "automatic mode" WarnAct STRUCT FALSE 1 = Prewarning for motor start active

(WarnTiAut and WarnTiMan parameters) FFwd STRUCT FALSE 1 = Control of motor fast forward Fwd STRUCT FALSE 1 = Control of motor forward Rev STRUCT FALSE 1 = Control of motor reverse FRev STRUCT FALSE 1 = Control of motor fast reverse P_FFwd STRUCT TRUE 1 = Pulse signal for starting the motor fast forward P_Fwd STRUCT TRUE 1 = Pulse signal for starting the motor forward P_Stop STRUCT TRUE 0 = Pulse signal for stopping the motor P_Rev STRUCT TRUE 1 = Pulse signal for starting the motor reverse

Page 209: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.5 MMRevDhl block parameter

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 209

Parameter Data format Default setting Meaning P_FRev STRUCT TRUE 1 = Pulse signal for starting the motor fast reverse P_Rst STRUCT FALSE 1 = Pulse output for reset LocalAct STRUCT FALSE 1 = Local mode enable AutAct STRUCT FALSE 1 = Enable AUTO mode ManAct STRUCT TRUE 1 = Enable MANUAL mode OosAct STRUCT FALSE 1 = Block is "Out of service" FbkFFwdOut STRUCT FALSE Feedback:

1 = Fast forward mode active FbkFwdOut STRUCT FALSE Feedback:

1 = Forward mode active FbkRevOut STRUCT FALSE Feedback:

1 = Reverse mode active FbkFRevOut STRUCT FALSE Feedback:

1 = Fast reverse mode active RunFFwd STRUCT FALSE 1 = Motor running fast forward RunFwd STRUCT FALSE 1 = Motor is running forward Stop STRUCT FALSE 1 = Motor is stopped RunRev STRUCT FALSE 1 = Motor is running in reverse RunFRev STRUCT FALSE 1 = Motor is running in fast reverse Starting STRUCT FALSE 1 = Motor is starting Stoping STRUCT FALSE 1 = Motor is stopping OS_PermOut DWORD 16#FFFFFFFF Display of OS_Perm OS_PermLog DWORD 16#FFFFFFFF Display of OS_Perm with settings changed by block

algorithm OpSt_Out DWORD 16#00000000 Value of the OpSt_In input parameter for further

connection to other blocks. Bit 31 of this parameter is assigned to feature bit 24.

Status1 DWORD 16#00000000 Status word 1 Status2 DWORD 16#00000000 Status word 2 Status3 DWORD 16#00000000 Status word 3 ST_Worst BYTE 16#80 Worst signal status ErrorNum INT –1 Output of current error number MsgErr1 BOOL FALSE Output error 1 (output ERROR of first ALARM_8P) MsgStat1 WORD 16#00 Output status 1 (output ERROR of first ALARM_8P) MsgAckn1 WORD 16#00 Message acknowledgment status 1 (output STATUS of

first ALARM_8P) MsgErr2 BOOL FALSE Output error 2 (output ERROR of first ALARM_8P) MsgStat2 WORD 16#00 Output status 2 (output ERROR of first ALARM_8P) MsgAckn2 WORD 16#00 Message acknowledgment status 2 (output STATUS of

first ALARM_8P)

Page 210: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.6 Block parameter MMOprtn

SIMOCODE pro PCS 7 Library V8.0

210 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

A.6 Block parameter MMOprtn

Input parameters

Table A- 22 Input parameter MMOprtn

Parameter Data format Default setting Meaning Mode DWORD 16#8000FFFF OMODE information of MOD_SWT RackF STRUCT FALSE 1 = Rack failure, information from MMDiag block ModF STRUCT FALSE 1 = Module failure, information from MMDiag block Slv_Typ BOOL FALSE 0 = PROFIBUS, 1 = PROFINET DAddr INT 0 Diagnostics address of SIMOCODE LAddr INT 0 Logical address of SIMOCODE RdWrEn BOOL TRUE 1 = Enable read/write of data set RdDataLi STRUCT – 1 = Read data record via interconnection RdDataOp BOOL FALSE 1 = Read data from data record ModLiOp STRUCT – Changing modes between:

0 = Operator 1 = Interconnection

AutModOp BOOL FALSE 1 = AUTO mode via operator ManModOp BOOL TRUE 1 = MANUAL mode via OS operator AutModLi STRUCT – 1 = AUTO mode via interconnection ManModLi STRUCT – 1 = MANUAL mode via interconnection Diag_Sts STRUCT – SIMOCODE status – diagnostics information from

MMDiag Diag_Evt STRUCT – SIMOCODE event – diagnostics information from

MMDiag Diag_Wrn STRUCT – SIMOCODE warning – diagnostics information from

MMDiag Diag_Trp STRUCT – SIMOCODE trip – diagnostics information from

MMDiag PZDIn01 WORD 16#00 Value of process image input DP 0.0–1.7 PZDIn23 WORD 16#00 Value of process image input DP 2.0–3.7 PZDOut01 WORD 16#00 Process image output of FbSwtMMS EmrgStMan BOOL FALSE 1 = Activate emergency start in MANUAL mode CstMan BOOL FALSE 1 = Activate self-test in MANUAL mode CstAut STRUCT – 1 = Activate self-test in AUTO mode EmrgStAut STRUCT – 1 = Activate emergency start in AUTO mode TrpRstLi STRUCT – 1 = Activate trip reset in AUTO mode TrpRstOp BOOL FALSE 1 = Activate trip reset in HAND mode RdyToRst STRUCT – Ready to reset active OosOp BOOL FALSE 1 = Out of service, via OS operator OosLi STRUCT – 1 = Out of service, via interconnection or SFC (0-1

edge)

Page 211: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.6 Block parameter MMOprtn

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 211

Parameter Data format Default setting Meaning MsgLock STRUCT FALSE Suppress process message RunUpCyc INT 3 Number of cycles in which all messages are

suppressed. Curr_OpScale STRUCT – Current – bar of limit value display MsgEvId1 DWORD 16#FF Message number 1 (assigned automatically) MsgEvId2 DWORD 16#FF Message number 2 (assigned automatically) CSF STRUCT – 1 = External error (control system error) Curr_TH INT 0 Trip level high 0…1020% Curr_WH INT 0 Warning level high 0…1020% Curr_TL INT 0 Trip level low 0…1020% Curr_WL INT 0 Warning level low 0…1020% ExtMsg1 STRUCT – External message 1 ExtMsg2 STRUCT – External message 2 ExtMsg3 STRUCT – External message 3 ExtMsg4 STRUCT – External message 4 ExtMsg5 STRUCT – External message 5 ExtMsg6 STRUCT – External message 6 ExtMsg7 STRUCT – External message 7 ExtMsg8 STRUCT – External message 8 ExtVa101 ANY – External value 1 ExtVa102 ANY – External value 2 ExtVa103 ANY – External value 3 ExtVa104 ANY – External value 4 ExtVa105 ANY – External value 5 ExtVa106 ANY – External value 6 ExtVa107 ANY – External value 7 ExtVa108 ANY – External value 8 ExtVa109 ANY – External value 9 ExtVa110 ANY – External value 10 ExtVa203 ANY – External value 3 (MsgEvID2) ExtVa204 ANY – External value 4 (MsgEvID2) ExtVa205 ANY – External value 5 (MsgEvID2) ExtVa206 ANY – External value 6 (MsgEvID2) ExtVa207 ANY – External value 7 (MsgEvID2) ExtVa208 ANY – External value 8 (MsgEvID2) ExtVa209 ANY – External value 9 (MsgEvID2) ExtVa210 ANY – External value 10 (MsgEvID2) SelFp1 ANY – Call a block saved in this parameter as an

additional faceplate in standard view SelFp2 ANY – Call a block saved in this parameter as an

additional faceplate in standard view OS_Perm STRUCT – I/O for operator authorizations

Page 212: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.6 Block parameter MMOprtn

SIMOCODE pro PCS 7 Library V8.0

212 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Parameter Data format Default setting Meaning Feature STRUCT – I/O for additional functions OpSt_In DWORD 16#00 Input parameters for local operator authorization to

be interconnected with the output parameter Out of the OpStations block connected upstream

Output parameters

Table A- 23 Output parameter MMOprtn

Parameter Data format Default setting Meaning RackF_Act STRUCT – 1 = Rack failure ModF_Act STRUCT – 1 = Module fault RdErr STRUCT – 1 = Error reading data set WrErr STRUCT – 1 = Error writing data record RdWrAct STRUCT – 1 = Operator permission Read/write data record AM1OutRng STRUCT – Analog module 1 – Measuring range output AM1InRng STRUCT – Analog module 1 – Measuring range input AM2OutRng STRUCT – Analog module 2 – Measuring range output AM2InRng STRUCT – Analog module 2 – Measuring range input GrpErr STRUCT – 1 = General fault is active OutIn01 WORD 16#00 Process input PZDIn01 OutIn23 WORD 16#00 Process input image PZDIn23 DevFunc DWORD 16#FF SIMOCODE device functions DiagStn DWORD 16#00 SIMOCODE pro PROFIBUS station diagnostics DiagSts DWORD 16#00 SIMOCODE status – diagnostics information from

MMDiag DiagEvt1 DWORD 16#00 SIMOCODE event 1 – diagnostics information from

MMDiag DiagEvt2 DWORD 16#00 SIMOCODE event 2 – diagnostics information from

MMDiag DiagEvt3 DWORD 16#00 SIMOCODE event 3 – diagnostics information from

MMDiag DiagWrn1 DWORD 16#00 SIMOCODE warning 1 – diagnostics information

from MMDiag DiagWrn2 DWORD 16#00 SIMOCODE warning 1 – diagnostics information

from MMDiag DiagTrp1 DWORD 16#00 SIMOCODE trip 1 – diagnostics information from

MMDiag DiagTrp2 DWORD 16#00 SIMOCODE trip 2 – diagnostics information from

MMDiag TrpNo INT 0 Trip diagnostics number WrngNo INT 0 Warning diagnostics number CtrlFunc DWORD 16#00 SIMOCODE pro control function ParErrNum BYTE 16#00 Parameter error number

Page 213: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.6 Block parameter MMOprtn

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 213

Parameter Data format Default setting Meaning LmtHyst INT 5 Limit value monitoring – Hysteresis for current limit

monitoring 0…15 CstOn STRUCT FALSE 1 = Test (CST) EmrgStOn STRUCT FALSE 1 = Emergency start TrpRstO STRUCT FALSE 1 = Trip reset LocalAct STRUCT FALSE 1 = Local mode enable AutAct STRUCT FALSE 1 = Enable AUTO mode ManAct STRUCT TRUE 1 = Enable MANUAL mode IntlAct STRUCT FALSE 1 = Interlocking time active ChgOvrAct STRUCT FALSE 1 = Switchover pause active GenFlt STRUCT FALSE 1 = General fault GenWarn STRUCT FALSE 1 = General warning CSFlt STRUCT FALSE 1 = Control system fault (CSF) CurWrnH STRUCT FALSE 1 = Current warning high active CurWrnL STRUCT FALSE 1 = Current warning low active CurTrpH STRUCT FALSE 1 = Current trip high active CurTrpL STRUCT FALSE 1 = Current trip low active TPF STRUCT FALSE 1= Test position feedback on (TPF) PreWrnOvl STRUCT FALSE 1 = Prewarning overload FbkOut1 STRUCT FALSE 1 = Feedback fast forward / reverse on / close

positioner FbkOut2 STRUCT FALSE 1 = Feedback motor off FbkOut3 STRUCT FALSE 1 = Feedback forward on / motor on / open

positioner FbkOut4 STRUCT FALSE 1 = Feedback fast reverse / open positioner FbkOut5 STRUCT FALSE 1 = Feedback reverse on / close positioner OosAct STRUCT FALSE 1 = Block is out of service MotCurr STRUCT – Current motor current (%) MotCurrE STRUCT – Current motor current (amps) CtrlFunc BYTE 16#00 Control function OS_PermOut DWORD 16#FFFFFFFF Display of OS_Perm OS_PermLog DWORD 16#FFFFFFFF Display of OS_Perm with settings changed by block

algorithm OpSt_Out DWORD 16#00000000 Value of the OpSt_In input parameter for further

connection to other blocks. Bit 31 of the parameter is assigned to feature bit 24.

ST_Worst BYTE 16#80 Worst Signal Status Status1 DWORD 16#00000000 Status word 1 ErrorNum INT -1 Output of current error number MsgErr1 BOOL FALSE Output error 1 (output ERROR of first ALARM_8P) MsgStat1 WORD 16#00 Output status 1 (output ERROR of first ALARM_8P) MsgAckn1 WORD 16#00 Message acknowledgement status 1 (STATUS

output of first ALARM_8P) MsgErr2 BOOL FALSE Output error 2 (output ERROR of first ALARM_8P)

Page 214: Manual Simocode Pro Pcs7 Library v80 en-US

Parameter A.6 Block parameter MMOprtn

SIMOCODE pro PCS 7 Library V8.0

214 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Parameter Data format Default setting Meaning MsgStat2 WORD 16#00 Output status 2 (output ERROR of first ALARM_8P) MsgAckn2 WORD 16#00 Message acknowledgement status 2 (STATUS

output of first ALARM_8P)

Page 215: Manual Simocode Pro Pcs7 Library v80 en-US

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 215

Technical Data B

Table B- 1 Memory requirement and called blocks for each block type for SIMOCODE pro PCS 7 library V8.0

Block 1 No. 2 Length of block in the load memory, in bytes 3

Length of block in the work memory, in bytes 3

Length of instance data in the load memory, in bytes 4

Length of instance data in the work memory, in bytes4

Temporary memory, in bytes5

Blocks called 6

MMDiag FB1300 8098 6834 1487 440 240 FC369, SFC13, SFC51, SFC6, SFC64

MMOprtn FB1301 13922 11672 2720 962 322 FC369, SFC13, SFC6, SFC64

MMMeas FB1302 8388 6912 1740 688 90 FC369, SFC6, SFC64

MMStat FB1303 4874 3844 1470 598 72 FC369, SFC6

MMTime FB1304 7008 5914 1942 1050 192 FC369, SFC6, SFC20

MMRevDhl FB1305 42634 39534 2484 790 130 FC369, SFC6, SFC20

1 The symbolic designator in the symbol table of the library for the respective function block (FB). It must be unique within the project.

2 Consists of the type of block (FB) and the number. 3 Memory requirement of program code, once per block type 4 Memory requirement for an instance data block. 5 The memory required for the local data when the block is called in an execution level. This is limited according to the

specific CPU. If this amount is exceeded, you must check the setting in the CPU configuration and redistribute it among the organization blocks based on the actual requirement.

6 The relevant driver block uses these blocks. They are now located in the user program. They are stored in the same library.

Page 216: Manual Simocode Pro Pcs7 Library v80 en-US

Technical Data B.1 Header information

SIMOCODE pro PCS 7 Library V8.0

216 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

B.1 Header information

Header information of the blocks The blocks of the SIMOCODE pro PCS 7 library V8.0 contain the following header information:

Table B- 2 Header information

FUNCTION_ BLOCK

FB no. Name Family Author Version Title

MMDiag FB1300 MMDiag SMCPRO AdvLibMM 1.0 Simocode Diagnostics MMOprtn FB1301 MMOprtn SMCPRO AdvLibMM 1.0 Simocode Pro common Operation

functions MMMeas FB1302 MMMeas SMCPRO AdvLibMM 1.0 Simocode Pro Measurement MMStat FB1303 MMStat SMCPRO AdvLibMM 1.0 Simocode Pro Statistics MMTime FB1304 MMTime SMCPRO AdvLibMM 1.0 Simocode Pro Time stamping MMRevDhl FB1305 MMRevDhl SMCPRO AdvLibMM 1.0 Dahlander reversing starter

Attributes of the blocks The blocks of the SIMOCODE pro PCS 7 library V8.0 contain the following attributes:

Table B- 3 Attributes of the blocks

Block S7_tasklist S7_alarm_ui S7_m_c S7_driver S7-hardware MMDiag 'OB1, OB40,

OB82, OB83, OB85, OB86, OB100’

'1' 'true' - 'im'

MMOprtn 'OB83,OB100' '1' 'true' 'chn' MMMeas 'OB100' '1' 'true' 'chn' MMStat 'OB100' '1' 'true' 'chn' MMTime 'OB100' '1' 'true' 'chn' MMRevDhl 'OB100' '1' 'true' -

Page 217: Manual Simocode Pro Pcs7 Library v80 en-US

SIMOCODE pro PCS 7 Library V8.0

Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001 217

Abbreviations C

Table C- 1 Meaning of abbreviations

Abbreviation Meaning AM Analog module AS Automation station APL Advanced Process Library B&B Operator control and monitoring CFC Continuous Function Chart CCW Counter-clockwise CW Clockwise CRC Cyclic Redundancy Check DC Direct Current (direct voltage) DP Distributed Peripherals DM Digital module DM-F Fail-safe digital module EM Ground fault detection module ES Engineering Station FB Function block GSD Generic Station Description HMI Human Machine Interface HW Config "Hardware configuration" module in SIMATIC Manager ID Identification number MCCB Molded-case circuit breaker MM Motor Management OB Organization block OM Object Manager OoS Out of Service OS Operator Station PCS 7 Process Control System 7 PIQ Process image output PII Process image input PDM Process Device Manager PG Programming device PS Parameter set SFB System function block SFC Sequential Function Chart TIA Totally Integrated Automation

Page 218: Manual Simocode Pro Pcs7 Library v80 en-US

Abbreviations

SIMOCODE pro PCS 7 Library V8.0

218 Programming and Operating Manual, 10/2013, A5E31625078002A/RS-AA/001

Abbreviation Meaning TM Temperature module UM Current / voltage measuring module

Page 219: Manual Simocode Pro Pcs7 Library v80 en-US
Page 220: Manual Simocode Pro Pcs7 Library v80 en-US

Siemens AGIndustry SectorPostfach 23 5590713 FUERTHGERMANY

Subject to change without prior notice 3ZX1012-0CS16-2BC0

© Siemens AG 2013

Service & SupportDownload catalogs and information material:www.siemens.com/sirius/infomaterial

Newsletter - always up to date:www.siemens.com/sirius/newsletter

E-Business in the Industry Mall:www.siemens.com/sirius/mall

Online-Support:www.siemens.com/sirius/support

Contact for all technical information:Technical AssistanceTel.: +49 (911) 895-5900e-mail: [email protected]/sirius/technical-assistance

Industrial ControlsSIRIUS

www.siemens.com/automation