• No results found

44825068-TIA-Portal-Step-7-Basic-V10-5-SP2

N/A
N/A
Protected

Academic year: 2021

Share "44825068-TIA-Portal-Step-7-Basic-V10-5-SP2"

Copied!
1573
0
0

Loading.... (view fulltext now)

Full text

(1)

02/2010

STEP 7 V10.5 SP2

Readme

1

Installation

2

First steps

3

Introduction to the TIA Portal

4

Editing projects

5

Configuring devices and

networks

6

Programming a PLC

7

Visualize processes

8

Using online and diagnostics

functions

9

(2)

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

with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken. Caution

without a safety alert symbol, indicates that property damage can result if proper precautions are not taken. Notice

indicates that an unintended result or situation can occur if the corresponding information is not taken into account.

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 device/system may only be set up and used in conjunction with this documentation. Commissioning and operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes in this documentation qualified persons are defined as persons who are authorized to commission, ground and label devices, systems and circuits in accordance with established safety practices and standards.

Prescribed Usage

Note the following: Warning

This device may only be used for the applications described in the catalog or the technical description and only in connection with devices or components from other manufacturers which have been approved or recommended by Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and assembly as well as careful operation and maintenance.

Trademarks

All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.

Siemens AG Automation and Drives Postfach 48 48 90437 NÜRNBERG GERMANY

Order No.: 00002013

Edition 02/2010 Copyright © Siemens AG .Technical data subject to change

(3)

Created by Karl-Heinz Busch on 11.02.2010.

The "My Documentation Manager" system can be found at http://www.automation.siemens.com/MDM

Please read the following legal notice:

This document has been compiled by the user with the help of the free "My Documentation Manager" system and is a free excerpt from the documentation and/or the documentation created and provided by Siemens for this product. SIEMENS AG assumes no liability for the contents of the linked Web sites.

A list of the documentation used for this purpose can be found in the attachment. This documentation can be found on the Siemens website at: http://support.automation.siemens.com.

The user bears sole responsibility for ensuring that the contents are up to date by regularly checking the relevant documentation which can be found at http://support.automation.siemens.com.

The user shall bear all responsibility and risk for compiling this document. In this respect, Siemens disclaims all liability for the document compiled by the user.

The document shall only be used for the user's own internal purposes and, unless explicitly permitted by the Supplementary Terms of Use for "My Documentation Manager", shall not be passed on to third parties. The use of this document is subject to the Additional Terms of Use for "My Documentation Manager" available at: https://www.automation.siemens.com/mdm/ExtendedAGB.

(4)
(5)

Table of contents

1 Readme . . . 13

1.1 General notes . . . 13

1.1.1 General notes . . . 13

1.1.2 Notes on the installation . . . 15

1.1.3 Using the sample project . . . 17

1.1.4 Displaying communications interfaces . . . 17

1.2 Readme STEP 7 . . . 18

1.2.1 Notes on use . . . 18

1.2.2 Configuring devices and networks . . . 19

1.2.3 Programming a PLC . . . 21 1.3 Readme WinCC . . . 52 1.3.1 Installation . . . 52 1.3.2 Notes on use . . . 53 1.3.3 Migration . . . 54 1.3.4 Engineering System . . . 55 1.3.5 Runtime . . . 60 1.3.6 HMI devices . . . 61 2 Installation . . . 63

2.1 System requirements for installation . . . 63

2.1.1 Notes on the system requirements . . . 63

2.1.2 System requirements STEP 7 . . . 63

2.2 Licenses . . . 64

2.3 Starting installation . . . 64

2.4 Starting to uninstall . . . 66

3 First steps . . . 69

3.1 Basic functions of the Totally Integrated Automation Portal . . . 69

3.1.1 Overview . . . 69

3.1.2 Creating a project . . . 78

3.1.3 Configuring hardware and networks . . . 79

3.1.4 Programming the PLC . . . 88

3.1.5 Configuring technology functions . . . 95

3.1.6 Configuring visualization . . . 98

3.1.7 Loading project data to the devices . . . 103

(6)

4 Introduction to the TIA Portal . . . 111

4.1 User interface and operation . . . 111

4.1.1 Special features specific to the operating system . . . 111

4.1.2 Starting, setting and exiting the TIA Portal . . . 113

4.1.3 Layout of the user interface . . . 116

4.1.4 Adapting the user interface . . . 129

4.1.5 Keyboard shortcuts . . . 132

4.2 Help on the information system . . . 136

4.2.1 General remarks on the information system . . . 136

4.2.2 Using the Help . . . 139

4.2.3 Disabling the display of tooltip cascades . . . 141

4.2.4 Safety Guidelines . . . 142

5 Editing projects . . . 145

5.1 The basics of projects . . . 145

5.2 Creating a new project . . . 145

5.3 Opening projects . . . 146

5.4 Saving projects . . . 146

5.5 Closing projects . . . 147

5.6 Deleting projects . . . 147

5.7 Comparing project data . . . 148

5.7.1 Overview of the comparison editor . . . 148

5.7.2 Comparing online-offline . . . 150

5.7.3 Using the filter for comparison results . . . 151

5.7.4 Running a detailed comparison . . . 151

5.7.5 Updating comparison results . . . 152

5.7.6 Specifying actions . . . 152

5.7.7 Synchronizing comparison actions . . . 153

5.8 Compiling project data . . . 153

5.8.1 General information on compiling project data . . . 153

5.8.2 Compiling project data . . . 154

5.9 Loading project data on the device . . . 155

5.9.1 General information on loading . . . 155

5.9.2 Downloading project data from the project tree to the device . . . 155

5.9.3 Loading project data to an accessible device . . . 157

5.10 Printing project contents . . . 158

5.10.1 Documentation settings . . . 158

5.10.2 Creating a print preview . . . 158

5.10.3 Printing project data . . . 159

5.11 Migrating projects . . . 160

5.11.1 Migrating projects . . . 160

5.11.2 Displaying the project history . . . 160

(7)

5.12 Finding and replacing in projects . . . 161

5.12.1 Information on the search function . . . 161

5.12.2 Search and replace . . . 162

5.13 Working with memory cards . . . 163

5.13.1 Basics about memory cards . . . 163

5.13.2 Adding a user-defined card reader . . . 164

5.13.3 Accessing memory cards . . . 165

5.13.4 Selecting the card type of a memory card . . . 165

5.13.5 Displaying properties of memory cards . . . 166

5.14 Working with text lists . . . 167

5.14.1 Text lists . . . 167

5.14.2 Creating user-defined text lists . . . 168

5.14.3 Editing user-defined text lists . . . 169

5.14.4 Editing system-defined text lists . . . 169

5.15 Working with multi-language projects . . . 170

5.15.1 Project text basics . . . 170

5.15.2 Select project languages . . . 172

5.15.3 Setting the editing language . . . 172

5.15.4 Translating texts directly . . . 173

5.15.5 Translating texts using reference texts . . . 173

5.16 Working with libraries . . . 174

5.16.1 Library basics . . . 174

5.16.2 "Libraries" task card . . . 175

5.16.3 Using the elements and parts view . . . 177

5.16.4 Working with the project library . . . 178

5.16.5 Working with global libraries . . . 182

5.17 Protecting project data . . . 189

5.17.1 Protection concept for project data . . . 189

5.18 Using cross-references . . . 190

5.18.1 Using cross-references . . . 190

6 Configuring devices and networks . . . 191

6.1 Hardware and network editor . . . 191

6.1.1 Overview of hardware and network editor . . . 191

6.1.2 Network view . . . 192

6.1.3 Device view . . . 194

6.1.4 Printing hardware and network configurations . . . 196

6.1.5 Changing the print options . . . 197

6.1.6 Inspector window . . . 197

6.1.7 Hardware catalog . . . 198

6.1.8 Information on hardware components . . . 200

6.1.9 Enabling product support . . . 201

6.1.10 Keyboard action in the hardware and network editor . . . 201

6.2 Configuring devices . . . 202

(8)

6.2.2 Configuring individual devices . . . 210

6.3 Networking devices . . . 220

6.3.1 Communication and networks . . . 220

6.3.2 Networking devices in the network view . . . 221

6.3.3 Tabular network overview . . . 223

6.3.4 Networking devices in the device view . . . 224

6.3.5 Checking or changing network parameters and interface parameters . . . 225

6.3.6 Changing networkings . . . 226

6.3.7 Copying, cutting or deleting subnets . . . 226

6.3.8 Configuring Industrial Ethernet . . . 227

6.3.9 Open User Communication . . . 230

6.3.10 HMI connections . . . 239

6.4 Configuring operation . . . 247

6.4.1 Selecting a CPU . . . 247

6.4.2 Changing properties of the modules . . . 248

6.4.3 CPU properties . . . 250

6.4.4 Addressing modules . . . 256

6.4.5 Time-of-day functions . . . 260

6.4.6 High-speed counters . . . 261

6.4.7 Point-to-point communication . . . 266

6.4.8 Using clock memory . . . 274

6.4.9 Setting options for the level of protection . . . 275

6.4.10 Loading a configuration . . . 276

6.5 Diagnosing hardware . . . 278

6.5.1 Overview of hardware diagnostics . . . 278

6.5.2 Showing non-editable and current values of configurable module properties . . . 284

6.5.3 Showing the current values of dynamic modules properties . . . 286

6.5.4 Checking a module for defects . . . 289

6.5.5 Changing the properties of a module or the programming device / PC . . . 293

6.5.6 Diagnostics in STOP mode . . . 296

6.6 References . . . 298

6.6.1 Creating an unspecified CPU . . . 298

6.6.2 Open User Communication . . . 299

7 Programming a PLC . . . 311

7.1 Functional description of S7-1200 CPUs . . . 311

7.1.1 Operating modes . . . 311

7.1.2 Memory areas . . . 317

7.1.3 I/O data area . . . 322

7.1.4 Basics of program execution . . . 323

7.2 Creating a user program . . . 334

7.2.1 Programming basics . . . 334

7.2.2 Declaring PLC tags . . . 394

7.2.3 Creating and managing blocks . . . 406

7.2.4 Programming blocks . . . 421

(9)

7.2.6 Compiling blocks . . . 525

7.2.7 Downloading blocks . . . 528

7.2.8 Protecting blocks . . . 536

7.3 Displaying program information . . . 538

7.3.1 Overview of available program information . . . 538

7.3.2 Displaying an assignment list . . . 539

7.3.3 Displaying the call structure . . . 546

7.3.4 Displaying the dependency structure . . . 552

7.3.5 Displaying CPU resources . . . 557

7.4 Displaying cross-references . . . 561

7.4.1 General information about cross references . . . 561

7.4.2 Structure of the cross-reference list . . . 561

7.4.3 Displaying the cross-reference list . . . 563

7.4.4 Displaying cross-references in the Inspector window . . . 564

7.5 Testing the user program . . . 565

7.5.1 Basics of testing the user program . . . 565

7.5.2 Testing with program status . . . 565

7.5.3 Testing with the watch table . . . 570

7.6 Programming examples . . . 602

7.6.1 LAD programming examples . . . 602

7.6.2 FBD programming examples . . . 612

7.7 Using technology objects . . . 623

7.7.1 Using Motion Control . . . 623

7.7.2 Using PID Compact . . . 649

7.8 References . . . 667 7.8.1 Instructions . . . 667 7.8.2 Extended instructions . . . 935 8 Visualize processes . . . 1017 8.1 Migration . . . 1017 8.1.1 Migration . . . 1017 8.1.2 Migration basics . . . 1017

8.1.3 Object support during migration . . . 1018

8.1.4 Migrating projects from WinCC flexible 2008 . . . 1021

8.1.5 Migration of data types . . . 1023

8.2 Working with screens . . . 1025

8.2.1 Basics . . . 1025

8.2.2 Working with objects . . . 1042

8.2.3 Working with text lists and graphics lists . . . 1081

8.2.4 Dynamizing screens . . . 1097

8.2.5 Working with function keys . . . 1106

8.2.6 Working with layers . . . 1117

8.2.7 Working with libraries . . . 1124

8.2.8 Display and operating objects . . . 1136

(10)

8.3 Working with tags . . . 1163

8.3.1 Basics . . . 1163

8.3.2 Working with tags . . . 1167

8.3.3 Working with arrays . . . 1184

8.3.4 Working with cycles . . . 1188

8.3.5 Displaying tags . . . 1189

8.4 Working with alarms . . . 1191

8.4.1 Basics . . . 1191

8.4.2 Working with alarms . . . 1201

8.4.3 Operating alarms in Runtime . . . 1225

8.4.4 Reference . . . 1231

8.5 Working with recipes . . . 1267

8.5.1 Basics . . . 1267

8.5.2 Elements and basic settings . . . 1273

8.5.3 Displaying and editing recipes in Runtime . . . 1276

8.5.4 Configuring recipes . . . 1279

8.5.5 Using recipes in Runtime . . . 1289

8.6 Working with the user administration . . . 1295

8.6.1 Field of application of the user administration . . . 1295

8.6.2 Form of the user administration . . . 1296

8.6.3 Elements and basic settings . . . 1298

8.6.4 Setting up the user administration . . . 1302

8.6.5 Reference . . . 1320

8.6.6 Examples . . . 1321

8.7 Working with system functions . . . 1330

8.7.1 Basics . . . 1330

8.7.2 Working with function lists . . . 1332

8.7.3 Example . . . 1338

8.7.4 Reference . . . 1341

8.8 Working with the Scheduler . . . 1396

8.8.1 Field of application of the Scheduler . . . 1396

8.8.2 Working with tasks and triggers . . . 1396

8.8.3 Elements and basic settings . . . 1397

8.8.4 Examples . . . 1401

8.9 Working with connections . . . 1402

8.9.1 Basics . . . 1402

8.9.2 Working with connections . . . 1404

8.9.3 User data area . . . 1411

8.9.4 Commissioning components . . . 1432

8.10 Importing and exporting project data . . . 1433

8.10.1 Importing and exporting project data . . . 1433

8.10.2 Importing and exporting recipes . . . 1434

8.11 Compiling and loading . . . 1438

8.11.1 Compiling and loading projects . . . 1438

(11)

8.11.3 Servicing the HMI device . . . 1452 8.11.4 Reference . . . 1455 8.12 Operation in Runtime . . . 1457 8.12.1 Basics . . . 1457 8.12.2 Commissioning projects . . . 1460 8.12.3 Languages in runtime . . . 1465 8.12.4 Operating projects . . . 1469 8.13 Performance features . . . 1523 8.13.1 Engineering system . . . 1523 8.13.2 Basic Panel . . . 1523 8.14 Displaying cross-references . . . 1526

8.14.1 General information about cross references . . . 1526

8.14.2 Displaying the cross-reference list . . . 1526

8.14.3 Structure of the cross-reference list . . . 1527

8.14.4 Displaying cross-references in the Inspector window . . . 1528

9 Using online and diagnostics functions . . . 1531

9.1 General information about online mode . . . 1531

9.2 Online access . . . 1532

9.3 Displaying accessible devices . . . 1533

9.4 Opening the properties of an interface . . . 1534

9.5 Setting parameters for the Ethernet interface . . . 1534

9.5.1 Setting parameters for the Industrial Ethernet interface . . . 1534

9.5.2 Displaying operating system parameters . . . 1535

9.5.3 Connecting the PG/PC interface to a subnet . . . 1536

9.5.4 Setting parameters for the Ethernet interface . . . 1536

9.5.5 Assigning a temporary IP address . . . 1537

9.5.6 Managing temporary IP addresses . . . 1538

9.6 Establishing and canceling an online connection . . . 1538

10 Source documents . . . 1541

Index . . . 1543

Tabellen Table 7-1 Sorted by symbolic name . . . 329

Table 7-2 Sorted by numerical name . . . 331

Table 7-3 Bit operands . . . 578

Table 7-4 Byte operands . . . 579

Table 7-5 Word operands . . . 579

Table 7-6 Double word operands . . . 579

Table 7-7 Bit operands . . . 580

Table 7-8 Byte operands . . . 580

(12)

Table 7-10 Double word operands . . . 581

Table 8-1 The following table shows which symbols display the assignment of the function keys: . . . . 1107

Table 8-2 10000 - Printer alarms . . . 1234

Table 8-3 20000 - Global script alarms . . . 1234

Table 8-4 30000 - Alarms for IFwSetValue: SetValue() . . . 1235

Table 8-5 40000 - Linear scaling alarms . . . 1235

Table 8-6 50000 - Data server alarms . . . 1235

Table 8-7 60000 - Win32 function alarms . . . 1235

Table 8-8 70000 - Win32 function alarms . . . 1236

Table 8-9 80000 - Archive alarms . . . 1239

Table 8-10 90000 - FDA alarms . . . 1242

Table 8-11 110000 - Offline function alarms . . . 1243

Table 8-12 120000 - Trend alarms . . . 1243

Table 8-13 130000 - System information alarms . . . 1243

Table 8-14 140000 - Connection alarms: chns7: Connection + device . . . 1244

Table 8-15 150000 - Connection alarms: chnAS511: Connection . . . 1246

Table 8-16 160000 - Connection alarms: IVar (WinLC) / OPC: Connection . . . 1247

Table 8-17 170000 - S7 dialog alarms . . . 1247

Table 8-18 180000 - Misc/common alarms . . . 1248

Table 8-19 190000 - Tag alarms . . . 1248

Table 8-20 190100 - Area pointer alarms . . . 1250

Table 8-21 200000 - PLC coordination alarms . . . 1250

Table 8-22 200100 - PLC user version alarms . . . 1251

Table 8-23 210000 - PLC job alarms . . . 1251

Table 8-24 220000 - WinCC channel adapter alarms . . . 1252

Table 8-25 230000 - View alarms . . . 1252

Table 8-26 240000 - Authorization alarms . . . 1255

Table 8-27 250000 - S7 Force alarms . . . 1255

Table 8-28 260000 - Password alarms . . . 1255

Table 8-29 270000 - System events . . . 1258

Table 8-30 280000 - DPHMI alarms Connection . . . 1258

Table 8-31 290000 - Recipe system events . . . 1259

Table 8-32 300000 - Alarm_S alarms . . . 1264

Table 8-33 310000 - Report system events . . . 1264

Table 8-34 320000 - Alarms . . . 1264

Table 8-35 330000 - GUI alarms . . . 1266

(13)

Readme

1

1.1

General notes

1.1.1 General notes

The information in this readme file supersede statements made in other documents.

Read the following notes carefully because they include important information for installation and use. Read these notes prior to installation.

Security settings

To allow the software packages to run in the TIA Portal, modifications will be made to the security settings of your system during installation:

Port 4410 for TCP will be entered as an exception in the Windows firewall.

The following subfolder will be shared for all users in the installation folder: Portal V10.5\Data

Installing new .Net versions or .Net service packs

Close the TIA portal before installing a new .Net version or a new .Net service pack on your programming device/PC.

Restart the TIA portal only after successful installation of the new .Net version or the new .Net service pack.

Error when repairing an existing installation of STEP 7 Basic V10.5

If WinCC flexible 2008 SP1 and STEP 7 Basic V10.5 are installed and you start a STEP 7 repair installation using the setup program on the DVD, an error occurs.

To repair the installation, copy the content of the STEP 7 Basic V10.5 DVD to your hard disk and restart the repair from here using the setup program.

Notes on handling

If a project in the list of projects last used is located on a network drive that is not connected, you may experience delays when opening the "Project" menu.

(14)

When you insert a CPU, you may need to wait for some time if the project editor is open at the same time. This generally takes longer when you insert the first CPU in a newly created project. To be able to continue working more quickly, you should close the project editor before inserting a CPU.

The message "Application is not responding" may appear in VISTA with functions that take a long time to run (loading the CPU for example). If this occurs, wait until the function has correctly finished.

If you have installed a Microsoft mouse with IntelliPoint, you may find that it superimposes components over the buttons of the title bar. If this is the case, uninstall the IntelliPoint software from Microsoft.

Enabling the "Virtual Desktop" options with NVIDIA graphics cards can cause problems. In this case, disable the "nView virtual desktop manager" of your NVIDIA graphics driver.

Using the TIA Portal via a remote desktop

In principle, it is possible to use the TIA Portal via a remote desktop connection. During configuration, you should, however, avoid disconnecting the connection to the desktop client. In rare cases, this can lead to the software user interface being blocked.

If you experience this blockage, follow these steps on the desktop client.

1. Open the Windows Task-Manager and close the "rdpclip.exe" process. 2. Type in "rdpclip.exe" in the command prompt to restart the process.

Note that the current content of the clipboard will be lost. You can, however, then continue configuration as usual. To be on the safe side, you should restart the TIA Portal at the next opportunity.

Opening the TIA portal multiple times

If you are running several applications of the TIA portal and they continually become active in turn, you can briefly switch to another application or use the key combination <ALT+Tab> to solve the problem.

Note on SD cards

The SD cards have been formatted and initialized by Siemens for use with S7-1200 modules. This format must not be overwritten otherwise the card will no longer be accepted by the S7-1200 modules. Formatting with Windows tools is therefore not permitted.

Behavior in case of open force jobs

Note that active force jobs will be retained even after you have loaded a new project to the SD card. This means you should first delete all active force jobs before you remove an SD card from the CPU and before you overwrite the card in the PC with a new project.

Issues when shutting down Windows XP or when activating a screen saver

Windows XP uses the ACPI (Advanced Configuration and Power Interface) to shut down the computer or to go to standby mode. It can happen that while the system is processing a newly installed tool that the screen saver is not activated by the ACPI or that after exiting the tool that Windows XP cannot be shut down properly.

If the TIA Portal is running, the Standby function of the computer is deactivated. To put the computer into Standby, you have to first exit the TIA Portal.

(15)

The following description shows several optional settings in the "Power Options Properties" you can use to set the Standby mode of the computer with the function "Hibernate":

1. In Windows XP, open the "Power Options Properties" by pointing at "Start > Settings > Control Panel > Power Options" and select the tab "Hibernate". Select the "Enable hibernation" check box. 2. Switch to the "Advanced" tab. In the dialog field "Power buttons" click the drop-down list box under

"When I close the lid of my portable computer:" and select the option "Hibernate".

3. Then click the drop-down list box under"When I press the power button on my computer:" and select the option "Shut down".

4. Click "Apply" and confirm the settings with "OK". 5. Afterwards, restart the PC.

If you experience problems shutting down the computer, make sure that the TIA Portal has closed completely.

1. In the shortcut menu, select the Task Manager from the shortcut menu on the Taskbar. 2. If you see the process "Siemens.Automation.ObjectFrame.FileStorage.Server.exe" in the

"Processes" tab, wait until this process has closed. 3. Then you can shut down the computer.

FAQs on the TIA Portal

FAQs on the TIA Portal are available at http://support.automation.siemens.com.

1.1.2 Notes on the installation

Contents

Information that could not be included in the online help.

Requirements for installation of STEP 7 Basic V10.5 SP2

The following conditions have to be met in addition to the requirements listed in the installation instructions:

The Internet download version of SP2 for STEP 7 Basic V10.5 requires STEP 7 Basic V10.5 for installation.

The trial version of SP2 is not compatible with STEP 7 Basic V10.5. You cannot install it on a computer that already has a version of STEP 7 Basic V10.5 installed.

Installation with "start.exe /unattendedmode"

If you want to make an identical installation on several computers, you can use the setup program to save all the settings in an INI file.

1. Open the Windows command prompt with "Start > Run".

2. If you want to create an INI file, start Setup with "start.exe/recordmode". Select the settings you want to use for the installation in the dialogs. Setup closes after the licensing dialog. No installation is

1.1.2 Notes on the installation

(16)

performed when Setup closes. All of the settings are stored in the "SIA_Auto.ini" file that is saved in the "My Documents" folder.

3. If you want to perform an installation based on an INI file, start Setup with "start.exe/unattendedmode". The program will look for the "SIA_Auto.ini" file in "My Documents" or "InstData\Resources" folders. When an INI file is found, the installation is performed with the settings it contains.

A message appears if no INI file is found.

Integrating installation with "start.exe /unattendedmode" in a batch

To start installation with "start.exe/unattendedmode" in a batch, you can change the parameters of the "SIA_Auto.ini" file as needed.

SuppressReboot

Rebooting is suppressed at the end of the installation process, regardless whether or not it is necessary.

SuppressLicenseDialog

The dialog for the license request is suppressed.

SuppressErrorDialog

Error messages are suppressed.

SuppressDoneDialog

The finish dialog at the end of Setup is suppressed.

Installation of STEP 7 Basic V10.5 under Windows XP with Turkish Regional and Language Options

Installation of STEP 7 Basic V10.5 under Windows XP may be cancelled, if the regional and language options have been set to Turkish. In this case change the regional and language options from Turkish to English or German.

1. Open the Control Panel under Windows with one of the following commands:

― "Start > Control Panel" (Start menu under Windows XP)

― "Start > Settings > Control Panel" (classic start menu) 2. Open the "Regional and Language Options".

3. Select the "Regional Options" tab.

4. Under "Standards and formats" select "German" or "English" in the drop-down list. 5. Click "Apply" and confirm with OK.

6. Restart your PC for the setting to become active. Now you can continue with the installation of STEP 7 Basic V10.5.

7. After installation, you can revert the regional and language settings (as described in steps 1 to 4) to Turkish.

Removing

In rare cases removal of the program can cause the computer to freeze, even when a full version of SQL Server 2005 is installed. In this occurs, disconnect the computer from the network to continue the removal process.

(17)

1.1.3 Using the sample project

Contents

Information that could not be included in the online help.

Introduction

On the installation data medium, there is a sample project that soon gets you working with projects in the TIA Portal. You can edit the sample project to suit your purposes.

Procedure

To use the sample project, follow these steps:

1. Insert the installation medium in the relevant drive.

2. Navigate to the folder "<Drive>\Documents\Examples\DEMO Project S7-1200". 3. Copy the "DEMO Project S7-1200" folder to a local drive.

4. Open the TIA Portal.

5. Select the "Open" command in the "Project" menu.

The "Open project" dialog opens and includes the list of most recently used projects.

6. Click the "Browse" button and navigate to the "DEMO Project S7-1200" folder on the local drive. 7. Select the "DEMO Project S7-1200.ap10" file.

8. Confirm your selection with "Open".

The sample project opens and you can edit it.

You can copy the sample project from the installation data medium again whenever you want to.

1.1.4 Displaying communications interfaces

Contents

Information that could not be included in the online help.

Introduction

Communications interfaces are displayed in the TIA Portal only if they already existed on your computer when you installed the TIA Portal. If you have installed the TIA Portal on your computer and then install a new CP (communications processor), this CP is detected by the operating system and displayed in the Windows Device Manager but it is not displayed in the project tree of the TIA Portal under "Online access".

1.1.3 Using the sample project 1.1.4 Displaying communications interfaces

(18)

Procedure

To display communications processors installed later in the TIA Portal, follow these steps:

1. Install/update the relevant drivers if the Windows "Hardware Update Wizard" opens after you insert the device.

2. Close the TIA Portal.

3. Select "Start > Settings> Control Panel> Set PG/PC Interface" and close the application with OK. 4. Restart the TIA Portal.

Result

The hardware now exists and can be used and the communications interface is displayed under "Online access".

1.2

Readme STEP 7

1.2.1 Notes on use

Contents

Information that could not be included in the online help.

Online operation

Simultaneous online operation of STEP 7 and STEP 7 Basic has not been approved.

Number of the time error interrupt OB

Time error interrupt OB280 is mentioned in a few topics of the online help. The correct number of the time error interrupt OB is 80.

Configuring and assigning module parameters

You will find an overview of the modules you can configure and assign with STEP 7 Basic V10.5 at http://support.automation.siemens.com.

1.2 Readme STEP 71.2.1 Notes on use

(19)

1.2.2 Configuring devices and networks

1.2.2.1 Setting flow control for CM 1241

Contents

Information that could not be included in the online help.

Values for XON and XOFF

If flow control is enabled for the CM 1241 (RS-232) communications module and set to "XON/ XOFF", you can enter identical values for the XON and XOFF characters. From a technical point of view, however, this configuration is impractical. You should therefore use different values for XON and XOFF.

1.2.2.2 Notes on Open User Communication

Unique connection ID for Open User Communication

You will have to enter a unique value for the connection ID in the connection settings of the Open User Communication in case you know the connection partner. The uniqueness of the connection ID will not be checked by the connection settings and there will be no default setting made for the connection ID when you create a new connection.

1.2.2.3 Notes on online and diagnostics

Contents

Information that could not be included in the online help.

Setting the language of the diagnostic texts

The language for the diagnostics texts is the same as the user interface language that was set when the project was created. If you want diagnostic texts to displayed in another language, go to "Language & Resources > Project languages" in the project tree of your project. Select the check box for the additional language. Then compile the devices that are relevant for diagnostics. The diagnostic texts will now be displayed in the language set for the user interface.

Displaying event texts during online access after changing the editing language

If you click "Online > Accessible devices > Update" and then set a different editing language in the project tree in "Language & Resources > Project languages" or change the user interface language in "Options > Settings", no event texts will be displayed for CPUs in "Online > Online & Diagnostics > Diagnostics buffer". Click "Online > Accessible devices > Update" again. The texts are then displayed again.

1.2.2 Configuring devices and networks 1.2.2.1 Setting flow control for CM 1241 1.2.2.2 Notes on Open User Communication 1.2.2.3 Notes on online and diagnostics

(20)

Diagnostics data from high-speed counters and pulse generators

For high-speed counters and pulse generators that have not been activated, the table with the device overview shows the diagnostics icon which means: "No diagnostics data available because the current online configuration data differs from the offline configuration data".

Opening the online and diagnostics view for inputs/outputs

You can call up the "Online & Diagnostics" function context-sensitive with a selected device in the hardware and network editor using the key combination <Ctrl+D>. You can select either an entire CPU or individual input/output modules in the device overview table and open the corresponding online and diagnostics view with the key combination <Ctrl+D>. You can also open the online and diagnostics view for the integrated inputs/outputs, if you have selected the corresponding line for an integrated input/output in the tabular device view of the CPU.

Language in the Online and Diagnostics view

If you start the online and diagnostics view from a device in the list of available nodes, there will be some rare cases when the events in the online and diagnostics view are not displayed in the language of the user interface. To display the events in the correct language, you will have to match the editing language to the language of the user interface in the respective project. Restart the TIA Portal.

Hardware detection followed by online connection

When the "Online > Hardware detection" command is performed for an unspecified CPU, the online configuration is not loaded from the CPU. If you do not load the configuration resulting from the hardware detection to the CPU, the device and network views will always show a difference between the offline and online configurations. It will appear there are different configurations in the online and diagnostic views, although the MLFBs are identical in the actual CPU and the offline CPU.

Assigning an IP address

If an IP address is assigned directly to a PLC with "Functions > Assigning an IP address" via the diagnostics and online function, this IP address will be set permanently and retained even after a restart or power failure.

1.2.2.4 Notes on cycle time

Violation of cycle monitoring time

When the cycle time exceeds the cycle monitoring time for the first time, there is an attempt to start the time error interrupt OB (OB 80). If there is no time error interrupt OB in the CPU, the CPU will switch to "RUN" mode. The CPU will switch to "STOP" mode if the cycle time exceeds the cycle monitoring time for a second time in the same cycle.

1.2.2.4 Notes on cycle time

(21)

1.2.2.5 Compiling the hardware of a pulse generator

Contents

Information that could not be included in the online help.

Compiling with a disabled pulse generator

If a pulse generator is deactivated and the following error message nevertheless appears during compilation of the hardware "Pulse generator as: PTO cannot be selected. Associated high speed counter not correctly configured.", follow these steps:

1. Deactivate the high-speed counter.

2. Activate the pulse generator and set the operating mode to "PTO". 3. Deactivate the pulse generator.

4. Recompile the hardware.

1.2.3 Programming a PLC

1.2.3.1 General notes on PLC programming

Contents

Information that could not be included in the online help.

Loss of retentive data after deleting online blocks or after downloading to the device

If you delete online blocks or download an element of your project to the CPU (for example a program block, a data block or the hardware configuration), the next time the CPU changes to RUN mode, it runs cold restart. Apart from deleting the inputs, initializing the outputs and deleting the non-retentive memory, the retentive memory areas are also deleted.

All subsequent changes from STOP to RUN are warm restarts (during which the retentive memory is not deleted).

Updating the block folder in the list of available nodes

Note that the content of the block folder in the list of available nodes is only updated when you close and open the block folder. To ensure that the latest content is displayed after changing the online program, close the block folder and open it again.

Calling blocks as multi-instance

You can only call up function blocks as multiple instances if they are included in the libraries supplied with STEP 7 V10.5. You cannot call up any function blocks you have created yourself as multiple instances.

1.2.2.5 Compiling the hardware of a pulse generator 1.2.3 Programming a PLC 1.2.3.1 General notes on PLC programming

(22)

IEC check

The "IEC check" option is disabled as default.

You cannot link operands of the REAL data type and operands of the DWORD data type in one instruction regardless of the "IEC check" setting. You will have to perform an explicit conversion with the "CONVERT" instruction.

Global libraries

You will find information on global libraries on the product DVD in the directory "<drive> \Documents\AdditionalDocuments".

MODBUS library

The instruction "MB_SLAVE" was updated in STEP 7 V10.5 SP2.

If you have already used "MB_SLAVE" V1.0 in a project, you will have to manually replace this version with the latest version "MB_SLAVE" V1.1" after installation of SP2.

To do this, follow these steps:

1. Delete "MB_SLAVE" V1.0 from all blocks in the project. 2. Delete "MB_SLAVE" V1.0 from the project library. 3. Insert "MB_SLAVE" V1.1 in all required locations of use. 4. Compile the project.

Program status of LAD and FBD boxes

If LAD/FBD boxes do not have the ENO connected, in certain situations, the status of the box cannot be displayed, for example with

SCALE

NORMALIZE

MOVE

Process image of PTO/PWM outputs

Do not use PTO/PWM outputs in the process image (for example, for accesses in the user program, for online functions or in the HMI). The update rate of the process image is much slower than the rate of the signal changes. The display in the process image does not reflect the signal flow.

Loss of symbolic constants after moving a signal board

After moving a signal board to another device, no symbolic constants are created. This affects the programming of the blocks because the required constants are not available. During compilation an alarm is generated related to the missing constants. The hardware interrupts have to be deactivated on the signal board and then reactivated so that the symbolic constants can be recreated.

(23)

Changing the mnemonic settings

To avoid error messages when compiling blocks after changing the mnemonic settings, save your project, close the project and then reopen it.

1.2.3.2 LREAL data type

1.2.3.2 Using LREAL data type

Contents

Information that could not be included in the online help.

Introduction

In some instructions you can use the LREAL (64 bit) data type in addition to the REAL (32 bit) data type to represent floating-point numbers. The LREAL data type is only available in blocks for which you have set purely symbolic addressing.

Use in instructions

The following table shows the instructions available for the LREAL data type:

1.2.3.2 LREAL data type 1.2.3.2 Using LREAL data type

(24)

Operation Mnemonics Description

Comparator CMP == Query if the first comparison value is equal to the second comparison value. CMP <> Query if the first comparison value is

unequal to the second comparison value.

CMP >= Query if the first comparison value is greater than or equal to the second comparison value.

CMP <= Query if the first comparison value is less than or equal to the second comparison value.

CMP > Query if the first comparison value is greater than the second comparison value.

CMP < Query if the first comparison value is less than the second comparison value. -|OK|- Query if the value of a tag is a valid

floating-point number.

-|NOT_OK|- Query if the value of a tag is an invalid floating-point number.

Moving MOVE Copies the content of input IN to the

output OUT when the signal state is "1" at the EN enable input.

MOVE_BLK Copies the contents of the memory area (source area) at the input IN to the memory area (destination area) at the output OUT. Use the COUNT parameter to specify the number of elements you want to copy to the destination area. UMOVE_BLK Copies the contents of the memory area

(source area) at the input IN to the memory area (destination area) at the output OUT without interruption. Use the COUNT parameter to specify the number of elements you want to copy to the destination area.

FILL_BLK Fills a memory area (destination area) at the output OUT with the value of input IN. The destination area is filled beginning with the address specified at the OUT output. The number of repeated copy operations is specified with the COUNT parameter.

(25)

Operation Mnemonics Description

UFILL_BLK Fills a memory area (destination area) at the output OUT with the value of input IN without interruption. The destination area is filled beginning with the address specified at the OUT output. The number of repeated copy operations is specified with the COUNT parameter.

(26)

Operation Mnemonics Description

Mathematic functions ADD Adds the value at the IN1 input to the value at the IN2 input and outputs the sum at the OUT output (OUT = IN1+IN2). SUB Subtracts the value at the IN2 input from the value at the IN1 input and outputs the difference at the OUT output (OUT = IN1-IN2).

MUL Multiplies the value at the IN1 input by the value at the IN2 input and outputs the product at the OUT output (OUT = IN1*IN2).

DIV Divides the value at the IN1 input by the value at the IN2 input and outputs the quotient at the OUT output (OUT = IN1/ IN2).

NEG Changes the sign of the value at the IN input and outputs the result at the OUT output.

ABS Forms the absolute value of a number. SQR Forms the square of a floating-point

number.

SQRT Forms the square root of a floating-point number.

LN Forms the natural logarithm of a floating-point number.

EXP Forms the exponential value of a floating-point number to base e. SIN Forms the sine value of a floating-point

number. The floating-point number here represents an angle in a radian. COS Forms the cosine value of a

floating-point number. The floating-floating-point number here represents an angle in a radian. TAN Forms the tangent value of a

floating-point number. The floating-floating-point number here represents an angle in a radian. ASIN Forms the arcsine value of a floating-point number whose range of definition is -1 <= input value <= 1. In this case, the result represents an angle in a radian measure.

ACOS Forms the arc cosine value of a floating-point number with a range of definition -1 <= input value <= 1. In this case, the result represents an angle in a radian measure.

ATAN Forms the arc tangent value of a floating-point number. In this case, the result represents an angle in a radian measure.

1.2 Readme STEP 7

(27)

Operation Mnemonics Description

Converter CONVERT Reads the content of the IN parameter

and converts it according to the specified data types.

ROUND Rounds the value at the IN input to the next integer and outputs the result at the OUT output.

CEIL Rounds the value at the IN input to the next greater integer and outputs the result at the OUT output.

FLOOR Rounds the value at the IN input to the next smaller integer and outputs the result at the OUT output.

TRUNC Selects the integer part of the floating-point number at the IN input and outputs this without decimal places to the OUT output.

1.2.3.2 LREAL

Contents

Information that could not be included in the online help.

Description

Tags of the LREAL data type have a length of 64 bits and are used to display floating-point numbers. A tag of the LREAL data type consists of the following three components:

Sign: The sign is determined by the signal state of bit 63. The bit 63 assumes the value "0" (positive) or "1" (negative).

11-bit exponents to base 2: The exponent is increased by a constant (base, +1023), so that it has a range of 2047.

52-bit mantissa: Only the fraction part of the mantissa is shown. The integer part of the mantissa is not stored, as it is always equal to "1" within the valid value range.

The following table lists the properties of an LREAL tag:

Length (bits) Format Range of values Examples of value input 64 Floating-point numbers to

IEEE 754 standard -1.7976931348623158e+308 to -2.2250738585072014e-308 ±0 +2.2250738585072014e-308 to +1.7976931348623158e+308 1.0e-5 Floating-point numbers 1.0 1.2.3.2 LREAL 1.2 Readme STEP 7

(28)

The following illustration shows the structure of an LREAL tag:

See also

Using LREAL data type (Page 23)

1.2.3.3 Reset IEC timer

1.2.3.3

---Contents

Information that could not be included in the online help.

Introduction

In addition to the instructions described above, you have an instruction in LAD to reset IEC timers.

Symbol

<Operand> ( RT )

---Parameter Data type Memory area Description

<Operand> DB D DB of the IEC timer reset

at RLO = "1".

Description

Use the operation "Reset IEC timer" to reset IEC time to "0".

The operation is only executed if the result of logic operation (RLO) at the input of the coil is "1". If current flows to the coil (RLO is "1"), then the parameters of the IEC timer DB are set to "0". If the result of the logic operation at the input of the coil is "0" (no signal flow at the coil), then the parameters will remain unchanged.

The operation does not influence the RLO. The RLO at the input of the coil is sent immediately to the output of the coil.

1.2.3.3 Reset IEC timer 1.2.3.3

(29)

Placement

The operation "Reset IEC timer" can be placed at any location in the network.

Example

The IEC timer "TON_Motor1" will be reset, if one of the following conditions is met:

The inputs I 0.0 AND I 0.1 are "1".

The signal state at input I 0.2 is "0".

1.2.3.3

---Contents

Information that could not be included in the online help.

Introduction

In addition to the instructions described above, you have an instruction in FBD to reset IEC timers.

Symbol

Parameter Data type Memory area Description

<Operand> DB D DB of the IEC timer reset

at RLO = "1".

Description

Use the operation "Reset IEC timer" to reset IEC time to "0".

The operation is only executed if the result of logic operation (RLO) is "1" at the box input. If the box input supplies the signal status "1", then the parameters of the IEC timer DB are set to "0". If the result of logic operation is "0" at the box input, the parameters remain unchanged.

1.2.3.3

(30)

The operation does not influence the RLO. The RLO at the box input is transferred directly to the box output.

Placement

The operation "Reset IEC timer" can be placed at any location in the logic string.

Example

The IEC timer "TON_Motor1" will be reset, if one of the following conditions is met:

The inputs I 0.0 AND I 0.1 have signal state "1".

The signal state at input I 0.2 is "0".

1.2.3.4 Read field

1.2.3.4 Read field

Introduction

In addition to the instructions described above, you have an instruction in LAD to read individual components of a field.

Note

Insert instruction "Read field"

You insert the instruction "Read field" by dragging an empty box from the "Favorites" pane and selecting the instruction from the drop-down list of the empty box.

1.2.3.4 Read field1.2.3.4 Read field

(31)

Symbol

Figure1-1

Parameter Data type Memory area Description

EN BOOL I, Q, M, D, L Enable input

ENO BOOL I, Q, M, D, L Enable output

INDEX DINT I, Q, M, D, L or constant Index of field components that are read out

MEMBER All elementary data types as components of an ARRAY tag

I, Q, M, D, L First component of the field from which will be read

VALUE All elementary data

types I, Q, M, D, L Tag to which the fieldcomponent is written

You can select the data type for the instruction from the "DT" drop-down list.

Description

Use the instruction "Read field" to read out a specific component from the field displayed at the MEMBER parameter and transfer its contents to the tag at the VALUE parameter. You specify the index of the field components to be read at the INDEX parameter. Enter the first component of the field which is read at the MEMBER parameter.

The data type of the field component at the MEMBER parameter and the tags at the VALUE parameter have to match the data type of the instruction "Read field".

The processing of the "Read field" instruction can only be started when the signal state at the EN enable input is "1". If no error occurs during execution, the ENO output also has signal state "1".

The enable output ENO returns signal state "0" if one of the following conditions applies:

The EN input has signal state "0".

The field component indicated at the INDEX parameter is not defined in the field entered at MEMBER parameter.

Errors such as an overflow occur during processing.

(32)

Example

Figure1-1

Parameter Tag Value

INDEX a_index 4

MEMBER "DB_1".Main_Field[-10] The first component of the field "Main_Field [-10..10] of REAL" in data block "DB_1" VALUE a_real The component with index 4 of the field

"Main_Field[-10..10] of REAL"

The field component with index 4 is read out from the field "Main_Field[-10...10] of REAL" and written to the tag "a_real". The field component to be read is specified by the value at the INDEX parameter.

1.2.3.4 Read field

Introduction

In addition to the instructions described above, you have an instruction in LAD to read individual components of a field.

Note

Insert instruction "Read field"

You insert the instruction "Read field" by dragging an empty box from the "Favorites" pane and selecting the instruction from the drop-down list of the empty box.

1.2.3.4 Read field

(33)

Symbol

Figure1-1

Parameter Data type Memory area Description

EN BOOL I, Q, M, D, L Enable input

ENO BOOL I, Q, M, D, L Enable output

INDEX DINT I, Q, M, D, L or constant Index of field components that are read out

MEMBER All elementary data types as components of an ARRAY tag

I, Q, M, D, L First component of the field from which will be read

VALUE All elementary data

types I, Q, M, D, L Tag to which the fieldcomponent is written

You can select the data type for the instruction from the "DT" drop-down list.

Description

Use the instruction "Read field" to read out a specific component from the field displayed at the MEMBER parameter and transfer its contents to the tag at the VALUE parameter. You specify the index of the field component to be read at the INDEX parameter. Enter the first component of the field which is read at the MEMBER parameter.

The data type of the field component at the MEMBER parameter and the tags at the VALUE parameter have to match the data type of the instruction "Read field".

The processing of the "Read field" instruction can only be started when the signal state at the EN enable input is "1". If no error occurs during execution, the ENO output also has signal state "1".

The enable output ENO returns signal state "0" if one of the following conditions applies:

The EN input has signal state "0".

The field component indicated at the INDEX parameter is not defined in the field entered at MEMBER parameter.

Errors such as an overflow occur during processing.

(34)

Example

Figure1-1

Parameter Tag Value

INDEX a_index 4

MEMBER "DB_1".Main_Field[-10] The first component of the field "Main_Field [-10..10] of REAL" in data block "DB_1" VALUE a_real The component with index 4 of the field

"Main_Field[-10..10] of REAL"

The field component with index 4 is read out from the field "Main_Field[-10...10] of REAL" and written to the tag "a_real". The field component to be read is specified by the value at the INDEX parameter.

1.2.3.5 Write field

1.2.3.5 Write field

Introduction

In addition to the instructions described above, you have an instruction in LAD to write individual field components of a field.

Note

Insert instruction "Write field"

You insert the instruction "Write field" by dragging an empty box from the "Favorites" pane and selecting the instruction from the drop-down list of the empty box.

1.2.3.5 Write field1.2.3.5 Write field

(35)

Symbol

Figure1-1

Parameter Data type Memory area Description

EN BOOL I, Q, M, D, L Enable input

ENO BOOL I, Q, M, D, L Enable output

INDEX DINT I, Q, M, D, L or constant Index of field component that is written

VALUE All elementary data

types I, Q, M, D, L or constant Tag whose content iscopied MEMBER All elementary data

types as components of an ARRAY tag

I, Q, M, D, L First component of the field to which you write

You can select the data type for the operation from the "DT" drop-down list.

Description

Use the instruction "Write field" to transfer the content of the tag at the VALUE parameter to a specific component of the field at the MEMBER parameter. You specify the index of the field component that is described by the value at the INDEX parameter. Enter the first component of the field to which is written at the MEMBER parameter.

The data types of the field component specified at the MEMBER parameter and the tag at the VALUE parameter have to match the data type of the instruction "Write field".

The processing of the "Write field" instruction can only be started when the signal state at the EN enable input is "1". If no error occurs during execution, the ENO output also has signal state "1".

The enable output ENO returns signal state "0" if one of the following conditions applies:

The EN input has signal state "0".

The field component indicated at the INDEX parameter is not defined in the field entered at MEMBER parameter.

Errors such as an overflow occur during processing.

(36)

Example

Figure1-1

Parameter Tag Value

INDEX a_index 4

VALUE a_real 10.54

MEMBER "DB_1".Main_Field[-10] The first component of the field

"Main_Field[-10..10] of REAL" in data block "DB_1"

The value "10.54" of the tag "a_real" is written to the field component with index 4 of the field "Main_Field[-10...10] of REAL". The index of the field component to which the content of the "a_real" tag is transferred" is specified by the value at the INDEX parameter.

1.2.3.5 Write field

Introduction

In addition to the instructions described above, you have an instruction in LAD to write individual field components of a field.

Note

Insert instruction "Write field"

You insert the instruction "Write field" by dragging an empty box from the "Favorites" pane and selecting the instruction from the drop-down list of the empty box.

1.2.3.5 Write field

(37)

Symbol

Figure1-1

Parameter Data type Memory area Description

EN BOOL I, Q, M, D, L Enable input

ENO BOOL I, Q, M, D, L Enable output

INDEX DINT I, Q, M, D, L or constant Index of field component that is written

VALUE All elementary data

types I, Q, M, D, L or constant Tag whose content iscopied MEMBER All elementary data

types as components of an ARRAY tag

I, Q, M, D, L First component of the field to which you write

You can select the data type for the operation from the "DT" drop-down list.

Description

Use the instruction "Write field" to transfer the content of the tag at the VALUE parameter to a specific component of the field at the MEMBER parameter. You specify the index of the field component that is described by the value at the INDEX parameter. Enter the first component of the field to which is written at the MEMBER parameter.

The data types of the field component specified at the MEMBER parameter and the tag at the VALUE parameter have to match the data type of the instruction "Write field".

The processing of the "Write field" instruction can only be started when the signal state at the EN enable input is "1". If no error occurs during execution, the ENO output also has signal state "1".

The enable output ENO returns signal state "0" if one of the following conditions applies:

The EN input has signal state "0".

The field component indicated at the INDEX parameter is not defined in the field entered at MEMBER parameter.

Errors such as an overflow occur during processing.

(38)

Example

Figure1-1

Parameter Tag Value

INDEX a_index 4

VALUE a_real 10.54

MEMBER "DB_1".Main_Field[-10] The first component of the field "Main_Field [-10..10] of REAL" in data block "DB_1"

The value "10.54" of the tag "a_real" is written to the field component with index 4 of the field "Main_Field[-10...10] of REAL". The index of the field component to which the content of the "a_real" tag is transferred" is specified by the value at the INDEX parameter.

1.2.3.6 Comparing blocks

1.2.3.6 Know-how protected blocks

Contents

Information that could not be included in the online help.

Special considerations when comparing know-how protected blocks

If you download a know-how-protected block to a device, no restore information is loaded along with it. This means you can no longer open or read the user program of a know-how protected block that was loaded to a device. You cannot alter this behavior by using the correct password. Because the user program can no longer be read, detailed comparison is not possible with know-how protected blocks.

1.2.3.6 Comparing blocks 1.2.3.6 Know-how protected blocks

(39)

Notice

You can neither read nor edit know-how protected blocks that you load from a device to your project. We recommend that you create backup copies of the offline version of the relevant block before you load a know-how protected block from a device to your project.

1.2.3.7 Testing the user program

1.2.3.7 Testing with the watch table

Contents

Information that could not be included in the online help.

Multiple access to the same CPU

Access to a CPU from a PG/PC is permitted only when a TIA portal is open. Multiple access to the same CPU is not permitted and can lead to errors.

Modify with trigger

When modifying with a trigger, for example when permanently modifying a tag, an existing control job is aborted if the CPU memory is currently being reset (MRES). The control job is also terminated even if you answer "no" to the prompt asking whether to stop modifying with trigger in the watch table dialog.

Rounding floating-point numbers

In the watch table, floating-point numbers are stored as binary numbers in IEEE format. Since some floating-point numbers (real, long real) that can be displayed in the user interface cannot be mapped exactly to the IEEE format, it is possible that floating-point numbers will be rounded. If a floating-point number has been rounded for this reason and it is then copied to another input cell in the watch table, the rounding may result in a slight deviation.

Loading data blocks during an active control job

Notice

Loading changed data blocks during an active control job can result in unforeseen operating states. The control job continues to control the specified address, although the address allocation may have changed in the data block. Complete active control jobs before loading data blocks.

1.2.3.7 Testing the user program 1.2.3.7 Testing with the watch table

(40)

1.2.3.8 Using technological objects

1.2.3.8 Using PID Compact

Contents

Information that could not be included in the online help.

Restarting the "PID_Compact" technological object after restarting the CPU

After turning on the power and restarting the CPU, the "PID_Compact" technological object changes to automatic mode if this was the last mode of the technological object.

The automatic change to automatic mode can be disabled. To do this, set the "sb_RunModeByStartup" variable in the instance DB to the value FALSE.

Using an analog manipulated variable output of the "PID_Compact" technological object

If you use the manipulated variable outputs "Output" or "Output_PER", any times of the "PWM limits" that may have changed must be corrected to the value 0.0. You set the "PWM limits" in the "Advanced settings > PWM limits" configuration window.

Incomplete parameters for the "PID_Compact" instruction

If the parameters for the "PID_Compact" instruction are incomplete (three red question marks), this is not indicated as an error during compilation.

Prior to compilation and before downloading to the device, make sure that the parameters for the "PID_Compact" instruction are complete and have correct values.

1.2.3.8 Using Motion Control

1.2.3.8 General notes on motion control

Contents

Information that could not be included in the online help.

Reaction times of the control panel

The reaction time of the control panel depends on the communication load of the CPU. Close all other online windows of the Portal in order to keep the reaction time low.

Starting motion commands following error acknowledgment via "MC_Reset"

If an axis error occurs which has to be acknowledged with the motion control instruction "MC_Reset", please proceed as follows:

1.2.3.8 Using technological objects 1.2.3.8 Using PID Compact 1.2.3.8 Using Motion Control 1.2.3.8 General notes on motion control

(41)

1. Remove the cause of the problem.

2. Acknowledge the error using the motion control instruction "MC_Reset". 3. Check the following signal statuses before starting a new motion command:

― Output parameter "Done" = TRUE

― Tag for the technology object "Axis".StatusBits.Error" = FALSE

Active homing with auto reverse after reaching hardware limit switch

The auto reverse after reaching hardware limit switch functions if the following configuration condition is met: "Approach velocity" > "Reduced velocity".

1.2.3.8 Limits of the pulse generators

Contents

Information that could not be included in the online help.

Limits of the pulse generators (PTO)

The following limits apply when you use the pulse generators of the CPU 1211C, CPU 1212C and CPU 1214C in connection with an "Axis" technological object:

Minimum frequency 2 Hz

Maximum frequency 100 kHz (when using 20 kHz signal board)

Minimum frequency change (acceleration/deceleration) 0.28 Hz/s

Maximum frequency change (acceleration/deceleration) 9500 MHz/s

1.2.3.8 Hardware limit switch and reference point switch

Contents

Information that could not be included in the online help.

Delay time hardware limit switch and reference point switch

The digital inputs are set to a 6.4 ms filter time by default.

Unwanted delays may occur if you use them as hardware limit switches.

Unwanted delays and inaccuracies may occur if you use them as reference point limit switches. Depending on the approach velocity and the level of the reference point switch, the reference point may not be detected.

If this occurs, reduce the filter time for the corresponding digital inputs in the device configuration of the digital inputs.

1.2.3.8 Limits of the pulse generators 1.2.3.8 Hardware limit switch and reference point switch

(42)

1.2.3.8 Axis configuration in runtime

Contents

Information that could not be included in the online help.

Changing the axis configuration during the runtime of the user program

The selection of the axis configuration data can be changed by the user program during runtime. The following can be accessed in the configuration data of the axis in the user program through the tags of the technological object:

Configuration of the hardware/software limit switch

― "Axis".Config.PositionLimits_HW.Active

Enabling of the hardware limit switch (TRUE = enabled)

― "Axis".Config.PositionLimits_SW.Active

Enabling of the software limit switch (TRUE = enabled)

― "Axis".Config.PositionLimits_SW.MinPosition Position of the low software limit switch

― "Axis".Config.PositionLimits_SW.MaxPosition Position of the high software limit switch

Change takes effect after the axis is stopped and a new movement job is started.

Configuration of dynamic values

― "Axis".Config.DynamicDefaults.Acceleration Acceleration of the axis

― "Axis".Config.DynamicDefaults.Deceleration Delay of the axis

"Axis".Config.DynamicDefaults.EmergencyDeceleration Emergency stop delay of the axis

Change takes effect when a new movement job is started.

1.2.3.8 Calling motion control instructions

Contents

Information that could not be included in the online help.

Calling motion control instructions

A motion control instruction may not be interrupted by the same motion control instruction in a higher priority class if they are using the same instance block.

Avoid such interruption by taking the following measures:

1.2.3.8 Axis configuration in runtime 1.2.3.8 Calling motion control instructions

(43)

Prevent simultaneous execution of motion control instructions with the same instance block in the user program (by using conditional block call, for example).

Use different instance data blocks in different priority classes.

1.2.3.8 List of ErrorIDs and ErrorInfos

Contents

Information that could not be included in the online help.

List of ErrorIDs/ErrorInfos

The following tables list the ErrorIDs and ErrorInfos that can be displayed in the motion control statements. This list replaces the section "List of ErrorIDs and ErrorInfos".

Operational fault with stop of the axis

ErrorID ErrorInfo Description Remedy

16#8000 Drive error, "Drive ready" failure

16#0001 - Acknowledge the error with the "MC_Reset" statement; Providing the drive signal 16#8001 Lower software limit switch was triggered

16#000E The axis has reached the limit switch Acknowledge the error with the "MC_Reset" statement; set a motion command to move the axis in positive direction out of the range of the SW limit switch

16#000F The axis has reached the limit switch (emergency stop)

16#0010 The axis has overshot the limit switch (emergency stop)

16#8002 Upper software limit switch was triggered

16#000E The axis has reached the limit switch Acknowledge the error with the "MC_Reset" statement; set a motion command to move the axis in negative direction out of the range of the SW limit switch

16#000F The axis has reached the limit switch (emergency stop)

16#0010 The axis has overshot the limit switch (emergency stop)

16#8003 Lower hardware limit switch was triggered

16#000E The axis has reached the limit switch Acknowledge the error with the "MC_Reset" statement; set a motion command to move the axis in positive direction out of the range of the HW limit switch

16#8004 Upper hardware limit switch was triggered

1.2.3.8 List of ErrorIDs and ErrorInfos

References

Related documents

4.1 The Select Committee is asked to consider the proposed development of the Customer Service Function, the recommended service delivery option and the investment required8. It

more than four additional runs were required, they were needed for the 2 7-3 design, which is intuitive as this design has one more factor than the 2 6-2 design

• Follow up with your employer each reporting period to ensure your hours are reported on a regular basis?. • Discuss your progress with

Proprietary Schools are referred to as those classified nonpublic, which sell or offer for sale mostly post- secondary instruction which leads to an occupation..

Fadugba will seek intervention of IATA in issues including: the harmful impact of the EU blacklist on the global reputation of the African airline industry; unilateral

The corona radiata consists of one or more layers of follicular cells that surround the zona pellucida, the polar body, and the secondary oocyte.. The corona radiata is dispersed

○ If BP elevated, think primary aldosteronism, Cushing’s, renal artery stenosis, ○ If BP normal, think hypomagnesemia, severe hypoK, Bartter’s, NaHCO3,

• The development of a model named the image based feature space (IBFS) model for linking image regions or segments with text labels, as well as for automatic image