Académique Documents
Professionnel Documents
Culture Documents
SoMachine
Programming Guide
10/2010
EIO0000000067.04
www.schneider-electric.com
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
The information provided in this documentation contains general descriptions and/or technical characteristics of the performance of the products contained herein. This documentation is not intended as a substitute for and is not to be used for determining suitability or reliability of these products for specific user applications. It is the duty of any such user or integrator to perform the appropriate and complete risk analysis, evaluation and testing of the products with respect to the relevant specific application or use thereof. Neither Schneider Electric nor any of its affiliates or subsidiaries shall be responsible or liable for misuse of the information contained herein. If you have any suggestions for improvements or amendments or have found errors in this publication, please notify us. No part of this document may be reproduced in any form or by any means, electronic or mechanical, including photocopying, without express written permission of Schneider Electric. All pertinent state, regional, and local safety regulations must be observed when installing and using this product. For reasons of safety and to help ensure compliance with documented system data, only the manufacturer should perform repairs to components. When devices are used for applications with technical safety requirements, the relevant instructions must be followed. Failure to use Schneider Electric software or approved software with our hardware products may result in injury, harm, or improper operating results. Failure to observe this information can result in injury or equipment damage. 2010 Schneider Electric. All rights reserved.
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Table of Contents
7 9
Part I Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 1 Introduction about Programming . . . . . . . . . . . . . . . . . .
Programming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
15
15
17
17
19
21
22 23 25 27 27 31 32 33 34 36 38 39 41 42 43 45 48 50 50
Chapter 4 Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General Overview of the Properties Tab . . . . . . . . . . . . . . . . . . . . . . . . . . Description of the General Task . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Description of the Description Task. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Description of the Custom Information Task . . . . . . . . . . . . . . . . . . . . . . .
EIO0000000067 10/2010
53
54 56 57 59
3
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Chapter 5 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Description of the Configuration Tab . . . . . . . . . . . . . . . . . . . . . 5.2 Graphical Configuration Editor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding and Deleting Devices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring Devices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detecting Configuration Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Accessing Programming and Application Functions with the Graphical Configuration Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Creating Network Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
61
62 62 65 66 68 70 80 82 84
87
88 89 90 91 93 95 96 97 101 105 113 117 124 124 126 126
Chapter 7 Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.1 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Description of the Program Tab . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 Managing the Application Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding and Declaring POUs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding and Declaring Remanent Variables . . . . . . . . . . . . . . . . . . . . . . . Adding a Symbol Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding Other Objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Introduction to Data Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3 Adding Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding Expansion Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding Communication Managers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding Devices to a Communication Manager . . . . . . . . . . . . . . . . . . . . Adding Devices from Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4
129
130 130 133 134 135 137 140 143 144 145 147 148 149 152 154 157
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
7.4 Managing the Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Generalities About Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Library Management in SoMachine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Schneider Electric Libraries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Other Libraries Used in SoMachine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Creating Your Own Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.5 Managing the Communication Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring the Ethernet Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring the CANopen Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring the Serial Line Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring the AS-Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.6 SoMachine Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SoMachine Commands Providing Single Access to Your Machine . . . . . Description of the Build All Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . Description of the Create Boot Application Command . . . . . . . . . . . . . . . Description of the USB Mass Storage Command . . . . . . . . . . . . . . . . . . . Description of the Import / Export Vijeo-Designer Project Commands . . . 7.7 SoMachine Controller-HMI Data Exchange . . . . . . . . . . . . . . . . . . . . . . . SoMachine Single Variable Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . Publishing Variables in the Controller Part . . . . . . . . . . . . . . . . . . . . . . . . Selecting Variables in the HMI Part. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Publishing Variables in the HMI Part. . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parametrization of the Physical Media . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.8 SoMachine Templates. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Information about SoMachine Templates . . . . . . . . . . . . . . . . . . Supported Fieldbusses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Selecting SoMachine Templates for Your Project. . . . . . . . . . . . . . . . . . . Administration of SoMachine Templates. . . . . . . . . . . . . . . . . . . . . . . . . . 7.9 Managing Device Templates. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Facts of Device Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding Devices from Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Creating a Device Template on the Basis of I/O Devices . . . . . . . . . . . . . Visualizations Suitable for Creating Device Templates. . . . . . . . . . . . . . . Steps to Create a Device Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.10 Managing Function Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Facts of Function Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding Functions From Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Application Functions as Basis for Function Templates . . . . . . . . . . . . . . Steps to Create a Function Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.11 Transferring and Running Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . Transferring Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Running Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
158 159 162 165 172 175 176 177 180 186 190 195 196 197 198 199 201 202 203 207 208 209 211 212 213 215 217 219 224 225 226 228 229 230 234 235 236 239 241 243 244 248
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Chapter 8 Commissioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General Description of the Commissioning Tab . . . . . . . . . . . . . . . . . . . Description of the Login/Logout Task . . . . . . . . . . . . . . . . . . . . . . . . . . . Description of the Multiple Download Task . . . . . . . . . . . . . . . . . . . . . . . Description of the Source Download Task. . . . . . . . . . . . . . . . . . . . . . . .
249
250 253 255 257
Chapter 9 Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
259
259
265
267
267 268 270
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
273 303
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Safety Information
Important Information
NOTICE Read these instructions carefully, and look at the equipment to become familiar with the device before trying to install, operate, or maintain it. The following special messages may appear throughout this documentation or on the equipment to warn of potential hazards or to call attention to information that clarifies or simplifies a procedure.
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
PLEASE NOTE Electrical equipment should be installed, operated, serviced, and maintained only by qualified personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material. A qualified person is one who has skills and knowledge related to the construction and operation of electrical equipment and the installation, and has received safety training to recognize and avoid the hazards involved.
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
At a Glance
Document Scope This document describes the graphical user interface of the SoMachine software and the functions it provides. For further information, refer to the separate documents provided in the SoMachine online help. Validity Note This document has been updated with the release of SoMachine V2.0. Related Documents
Title of Documentation Modicon M238 Logic Controller Programming Guide Reference Number EIO0000000384 (ENG); EIO0000000385 (FRE); EIO0000000386 (GER); EIO0000000388 (SPA); EIO0000000387 (ITA); EIO0000000389 (CHS) EIO0000000632 (ENG); EIO0000000633 (FRE); EIO0000000634 (GER); EIO0000000635 (SPA); EIO0000000636 (ITA); EIO0000000637 (CHS)
Magelis XBTGT, XBTGK HMI Controller Programming Guide EIO0000000638 (ENG); EIO0000000639 (FRE); EIO0000000640 (GER); EIO0000000641 (SPA); EIO0000000642 (ITA); EIO0000000643 (CHS)
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
EIO0000000390 (ENG); EIO0000000391 (FRE); EIO0000000392 (GER); EIO0000000393 (SPA); EIO0000000394 (ITA); EIO0000000395 (CHS) EIO0000000402 (ENG); EIO0000000403 (FRE); EIO0000000404 (GER); EIO0000000405 (SPA); EIO0000000406 (ITA); EIO0000000407 (CHS) EIO0000000408 (ENG); EIO0000000409 (FRE); EIO0000000410 (GER); EIO0000000411 (SPA); EIO0000000412 (ITA); EIO0000000413 (CHS)
You can download these technical publications and other technical information from our website at www.schneider-electric.com.
10
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
WARNING
LOSS OF CONTROL
z
z z
z z
The designer of any control scheme must consider the potential failure modes of control paths and, for certain critical control functions, provide a means to achieve a safe state during and after a path failure. Examples of critical control functions are emergency stop and overtravel stop, power outage and restart. Separate or redundant control paths must be provided for critical control functions. System control paths may include communication links. Consideration must be given to the implications of unanticipated transmission delays or failures of the link. Observe all accident prevention regulations and local safety guidelines.1 Each implementation of this equipment must be individually and thoroughly tested for proper operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or equipment damage. For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety Guidelines for the Application, Installation, and Maintenance of Solid State Control" and to NEMA ICS 7.1 (latest edition), "Safety Standards for Construction and Guide for Selection, Installation and Operation of Adjustable-Speed Drive Systems" or their equivalent governing your particular location.
1
WARNING
UNINTENDED EQUIPMENT OPERATION
z z
Only use software approved by Schneider Electric for use with this equipment. Update your application program every time you change the physical hardware configuration.
Failure to follow these instructions can result in death, serious injury, or equipment damage. User Comments We welcome your comments about this document. You can reach us by e-mail at techcomm@schneider-electric.com.
EIO0000000067 10/2010
11
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
12
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Introduction
I
What's in this Part? This part contains the following chapters:
Chapter 1 2 Chapter Name Introduction about Programming Managing Projects with SoMachine 2.0 Page 15 17
EIO0000000067 10/2010
13
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Introduction
14
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
1
Programming
Overview SoMachine allows you to configure, program and commission entire machines in a single software environment. It consists of 2 parts dedicated to specific programming tasks: z SoMachine part for controller programming z Vijeo-Designer part for HMI programming User Documentation This programming manual describes the SoMachine user interface and functions. It is part of the SoMachine online help. To start the SoMachine online help, click the ? button in the SoMachine screen or select the Help command from the General Functions Menu (see page 25). To start the online help from the Program screen of SoMachine, use the Help menu or press the F1 key. To start the Vijeo-Designer online help, select a suitable command from the Help menu or press the F1 key when you are in the Vijeo-Designer application. For general information on SoMachine, like for example system requirements, installation and supported devices, refer to section Introduction of the SoMachine online help. For detailed information on the controllers and integrated HMIs supported by SoMachine, refer to section Hardware User Guides of the SoMachine online help. For detailed information on SoMachine libraries, refer to section Functions & Libraries User Manuals of the SoMachine online help.
EIO0000000067 10/2010
15
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
16
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Main Tasks
Overview SoMachine 2.0 provides a completely new graphical user interface that is based on the 3 main tasks it has been designed for: z configuring projects z programming projects z commissioning machines Configuring Projects SoMachine 2.0 provides tools that are intended to assist you in creating new projects fast and easily. It provides for project start-up a variety of tested validated documented architectures (a dedicated TVDA Finder tool assists you in selecting the architecture that most appropriately suits your individual project), z a variety of application projects for conveying, hoisting, and packaging that provide basic configurations for these applications, z some examples that provide basic projects for making yourself familiar with SoMachine.
z
Once the project is created, SoMachine provides extensive possibilities to add textual and graphical information to each project file. This additional information enables you to distinguish projects avoiding the need to open them when you have to select the suitable project out of those that are available on your computer. For easy configuration of your project, SoMachine provides a graphical configuration editor that allows to add and configure devices in a comfortable way.
EIO0000000067 10/2010
17
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Programming Projects For programming projects, the conventional CoDeSys graphical user interface is integrated in the SoMachine graphical user interface. It provides the general programming and controller configuration functions. For configuring HMI controllers, Vijeo-Designer is used. Commissioning Machines SoMachine provides components that are especially dedicated to machine commissioning. These components provide only those functions that are required for this task, like login into the devices, configuring last parameters and up- or downloading software and/or sourcecode.
18
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
II
What's in this Part? This part contains the following chapters:
Chapter 3 4 5 6 7 8 9 Home Properties Configuration Device Configuration with Device Type Manager (DTM) Program Commissioning Report Chapter Name Page 21 53 61 87 129 249 259
EIO0000000067 10/2010
19
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
20
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
3
What's in this Chapter? This chapter contains the following sections:
Section 3.1 3.2 3.3 3.4 3.5 General Information Show Existing Machine Create New Machine Machine Workflow Learning Center Topic Page 22 27 31 41 50
EIO0000000067 10/2010
21
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
3.1
General Information
22
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
1 2
This SoMachine icon provides access to the general functions menu. The task selection pane on the left-hand side shows the tasks that are provided by the Home screen, you can hide this pane by clicking the handle (position 7 in the figure).
EIO0000000067 10/2010
23
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home 3 4 The work area in the middle is intended to always be visible. It provides access to the most recently opened projects. The Type of files list provides the possibility to display All files or to display only Project files or Library files or CoDeSys project files (before V3.0) or CoDeSys library files (before V3.0) in this work area. The View list provides the possibility to change from the thumbnails view of the projects to a more detailed List view. The information pane on the right-hand side shows further information on the project that is currently selected in the work area, you can hide this pane by clicking the handle. Handles to hide or display the task selection pane on the right-hand side, the information pane on the left-hand side and the message pane at the bottom of the window that is not visible by default in the startup screen. The Language list allows you to change the language of the SoMachine user interface, after you have changed the language you must restart SoMachine for the changes to become valid The ? icon provides quick access to the SoMachine online help.
5 6 7
Tasks of the Home Tab The task selection pane on the left-hand side of the main selection screen groups the SoMachine functions in folders according to the tasks you can perform with them.
Tasks of the Home Screen Show existing machine Create new machine Machine workflow Sub-Tasks This folder provides sub-tasks for opening an already existing SoMachine project, and for opening a project archive file (refer to the Show Existing Machine (see page 27) chapter for details). This folder provides sub-tasks for creating a new SoMachine project file or library file either from scratch or by using a template. Refer to the Create New Machine (see page 31) chapter for details. This folder provides sub-tasks that are especially dedicated to commissioning a machine. Further commands that are beyond commissioning tasks are not available from this folder. Refer to the Machine Workflow (see page 41) chapter for details. This folder provides further information on SoMachine. Refer to the Learning Center (see page 50) chapter for details.
Learning Center
Closing SoMachine Projects The Home tab also serves for closing your SoMachine project. Just click the Home tab when you are inside a project, and the project will be closed, returning you to the main selection screen as indicated in the above figure.
24
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
Save Save As
EIO0000000067 10/2010
25
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
Command
Description
Save/Send archive Execute this command to create an archive file of the SoMachine project that is currently open and: z to save the archive file to a connected drive by using the Save button of the Project Archive dialog box or z to create a temporary archive file that is attached to an empty email by using the Send button of the Project Archive dialog box. This e-mail is automatically created by SoMachine if the Messaging Application Programming Interface (MAPI) is correctly installed. Preferences Execute this command to configure:
z the Preferred Path where to open and save SoMachine projects. z the Online Polling Interval (ms) that is the time span that has to
configuration editor (see page 65). Select a value between 15 (wide grid) and 50 (small grid), bearing in mind that a smaller grid (a higher value) leads to longer times for refreshing the graphical representation of your configuration. z the Timeout for routing that defines the time the graphical configuration editor (see page 65) is allowed to (re)route the graphical representation of your configuration in order to create right-angled connecting lines. If this timeout elapses before the routing process is finished, the remaining lines will be displayed without right-angles. z the Stop Gateway on Exit check box defines the behavior of the gateway after closing the last instance of SoMachine: z check box checked (default) The gateway is automatically stopped when you exit the last SoMachine instance. If other instances of SoMachine are still running, using the gateway, it will not be stopped. z check box unchecked The gateway will not be stopped automatically when you exit the last SoMachine instance.
z general settings by clicking the Options button.
Help About
Execute this command to open the SoMachine online help. Execute this command to open the About dialog box that provides information about the currently installed SoMachine version as well as license and technical information. Execute this command to close SoMachine.
Exit
26
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
3.2
EIO0000000067 10/2010
27
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
1 2
3 4
The most recently opened projects will be displayed in the SoMachine work area. The Type of files list provides the possibility to display All files or to display only Project files or Library files or CoDeSys project files (before V3.0) or CoDeSys library files (before V3.0) in this work area. The View list provides the possibility to change from the thumbnails view of the projects to a more detailed List view. The information pane displays Project Information related to the project that is selected in the work area.
Double-click its icon in the work area or select the project in the work area and click the Open button in the information pane to open the project in SoMachine. SoMachine will select the Properties tab (see page 54) for assigning further information.
28
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
Browsing for Existing Project The sub-task Browse for existing project provides the possibility to browse for existing projects on the local drives or on connected network drives.
1 2 3
4 5
The task selection pane shows the connected drives similar to a Windows Explorer. The work area displays the SoMachine projects that are available in the folder you have selected in the selection pane. The Type of files list provides the possibility to display All files or to display only Project files or Library files or CoDeSys project files (before V3.0) or CoDeSys library files (before V3.0) in this work area. The View list provides the possibility to change from the thumbnails view of the projects to a more detailed List view. The information pane displays Project Information related to the project that is selected in the work area.
EIO0000000067 10/2010
29
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
In the task selection pane browse to the folder that contains the SoMachine project you want to open. Double-click its icon in the work area or select the project in the work area and click the Open button in the information pane to open the project in SoMachine. SoMachine will select the Properties tab (see page 54) for assigning further information. To access network drives that are not mapped on your PC, proceed as follows:
Step 1 2 3 Action Click the Remote drive task in the task selection pane. Enter the server name and the subfolder name(s) according to the following syntax in the text box: \\servername\foldername Click the Open button. Result: The content of the server / subfolder will be displayed in the task selection pane similar to a Windows Explorer.
Opening a Project Archive The sub-task Extract Archive provides the possibility to open existing SoMachine project archive files. To open an existing SoMachine project archive file proceed as follows:
Step 1 2 3 4 Action Select the Extract Archive sub-task from the task selection pane. Result: The Extract Archive dialog box will be displayed. Browse to the folder that contains the project archive file you want to open. Select the project archive file and click the Open button. Result: The Project Archive dialog box opens. In the Project Archive dialog box select the Referenced devices and Referenced libraries you want to extract from the archive file and click the Extract button. Result: SoMachine extracts the selected items from the archive file and automatically opens the project.
30
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
3.3
EIO0000000067 10/2010
31
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
32
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
EIO0000000067 10/2010
33
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
1 2
The TVD Architecture Finder in the selection pane assists you in finding the suitable tested validated documented architecture by answering the questions. The work area provides a list of the tested validated documented architectures available and highlights the project that best suits your requirements after you have answered the questions in the TVD Architecture Finder. The information pane provides further information related to the tested validated documented architecture that is selected in the work area.
34
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
Creating a New Project on the Basis of a TVD Architecture To create a new project on the basis of a TVD Architecture, proceed as follows:
Step 1 2 Action In the Home tab, select Create new machine Start with TVD architecture. Answer the questions in the selection pane and click the Recommended Project button. Result: The TVD architecture that best suits your requirements will be highlighted in green in the work area. Double-click the TVD architecture you want to use as template for your new project in the work area or select it in the work area and click the Create From button in the information pane. Result: A Save Project As dialog box will be displayed where you can browse to the destination folder and assign a name to the new project. Click Save to save your project to the selected folder. SoMachine opens the project and selects the Properties tab (see page 54) for assigning further information.
EIO0000000067 10/2010
35
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
1 2 3
The selection pane lists those Applications SoMachine provides application projects for. The work area shows those application projects that are available for the application selected in the selection pane. The information pane provides further information related to the application project that is selected in the work area.
36
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
Creating a new Project on the Basis of an Application Project To create a new project on the basis of an application project, proceed as follows:
Step 1 2 Action In the Home tab select Create new machine Start with application. From the Applications list select the suitable application type for your machine. Result: The application projects available for the selected application will be displayed in the work area. Double-click the application project you want to use as template for your new project in the work area or select it in the work area and click the Create From button in the information pane. Result: A Save Project As dialog box will be displayed that allows you to browse to the destination folder and assign a name to the new project. Click Save to save your project to the selected folder. SoMachine opens the project and selects the Properties tab (see page 54) for assigning further information.
EIO0000000067 10/2010
37
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
38
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
1 2 3
The selection pane provides a category list of Examples available in SoMachine. The work area shows the examples that are available for the category selected in the selection pane. The information pane provides further information related to the example that is selected in the work area.
EIO0000000067 10/2010
39
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
Creating a new Project on the Basis of an Example To create a new project on the basis of an example, proceed as follows:
Step 1 2 3 Action In the Home tab select Create new machine Start with example. Select a category in the Examples list to display the examples available for this category in the work area. To use an example as template for your new project, double-click its icon in the work area or select it in the work area and click the Create From button in the information pane. Result: A Save Project As dialog box will be displayed that allows you to browse to the destination folder and assign a name to the new project. Click Save to save your project to the selected folder. SoMachine opens the project and selects the Properties tab (see page 54) for assigning further information.
40
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
3.4
Machine Workflow
EIO0000000067 10/2010
41
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
42
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
1 2 3
4 5
The task selection pane shows the connected drives similar to a Windows Explorer. The work area displays the SoMachine projects that are available in the folder you have selected in the selection pane. The Type of files list provides the possibility to display All files or to display only Project files or Library files or CoDeSys project files (before V3.0) or CoDeSys library files (before V3.0) in this work area. The View list provides the possibility to change from the thumbnails view of the projects to a more detailed List view. The information pane displays Project Information related to the project that is selected in the work area.
EIO0000000067 10/2010
43
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
Opening a Project for Machine Commissioning To open a project for commissioning a machine proceed as follows:
Step 1 Action In the Home tab select Machine workflow Commission machine - start with project. Result: The connected drives are shown in its task selection pane, similar to a Windows Explorer, allowing to browse for the project file. Browse to the folder that contains the project file for the new machine. Open the project by double-clicking its icon in the work area or by selecting it in the work area and clicking the Open button in the information pane. Result: SoMachine opens the project showing only the Commissioning Machine tab (see page 250) with commands restricted to perform commissioning tasks.
2 3
44
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
EIO0000000067 10/2010
45
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
Uploading a Project for Machine Commissioning To upload a project from a connected device for machine commissioning, proceed as follows:
Step 1 Action In the Home tab select Machine workflow Commission machine - upload project from device. Result: A Select Device dialog box opens. In the Select Device dialog box select the device you want to upload the project from. If the device is not displayed, click the Scan network button to search for all available devices. Click the OK button. Result: The Project Archive dialog box opens:
46
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
Step 4 5
Action In the Project Archive dialog box click the ... button to browse to the folder on your SoMachine PC where the uploaded project will be saved. In the Archive contents section select those contents of the project archive that will be uploaded to the selected folder. To achieve this, select the check boxes for each item you want to upload. Click Extract to upload the selected contents of the project archive to the selected folder. During the upload process you will be prompted to confirm any overwriting of files already available in the specified folder. Confirm the message prompting you to open the uploaded project. Result: The Commissioning tab opens, displaying the project configuration in the work area.
6 7 8
For more information on the sub-tasks available in the Commissioning tab refer to the Commissioning chapter (see page 249).
EIO0000000067 10/2010
47
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
Update Firmware
Function of the Sub-Task The sub-task Update firmware is only available for Modicon M238 Logic Controllers. It allows the machine commissioner to update the firmware of this controller. Performing a firmware update will delete the current application program in the device, including the Boot Application in Flash memory.
CAUTION
LOSS OF APPLICATION DATA
z z
Perform a backup of the application program to the hard disk of the PC before attempting a firmware update. Restore the application program to the device after a successful firmware update.
48
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
To update the firmware of the Modicon M238 Logic Controller, click either the firmware download icon for USB or for serial line connections. Result: The M238 Windows Exec Loader wizard will be started. Follow the instructions on screen that guide you through the update process. The information pane provides a link to a download area where the latest firmware updates are available.
EIO0000000067 10/2010
49
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
3.5
Learning Center
Sub-Tasks
Learning Center
The Learning Center task provides additional information for quickly making yourself familiar with SoMachine. It includes the following sub-tasks: Quick overview z Examples z e-Learning
z
50
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
Quick Overview The Quick overview sub-task provides a short film that introduces the SoMachine user interface as well as its main functions in about 2 minutes time. To run this film, no additional software is required on your PC. Examples The Examples sub-task provides sample projects together with PDF files documenting these SoMachine projects. NOTE: Please note that the Adobe ReaderTM is required to open these documents. This reader is not part of the SoMachine installation but can be downloaded from http://www.adobe.com/go/EN_US-H-GET-READER. e-Learning The e-Learning sub-task provides an interactive training that shows you how to use SoMachine. To run this training, no additional software is required on your PC.
EIO0000000067 10/2010
51
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Home
52
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Properties
4
What's in this Chapter? This chapter contains the following topics:
Topic General Overview of the Properties Tab Description of the General Task Description of the Description Task Description of the Custom Information Task Page 54 56 57 59
EIO0000000067 10/2010
53
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Properties
54
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Properties
1 2 3
The task selection pane shows the tasks of the Properties tab. The work area provides entry fields for file information and author information. The information pane displays information entered in the work area.
To save your entries, click the SoMachine icon and select Save from the general functions menu (see page 25).
EIO0000000067 10/2010
55
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Properties
To save the information entered in the Properties tab, click the SoMachine icon and select Save from the general functions menu (see page 25).
56
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Properties
The work area provides the button Add to add a preferred Customer Image to your SoMachine project and shows the Configuration View corresponding to your settings in the Configuration tab.
EIO0000000067 10/2010
57
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Properties
Customer Image The section Customer Image allows you to add an image to your SoMachine project. Adding a Customer Image To add a new image to your project, proceed as follows:
Step 1 2 Action Click the Add button. Result: The dialog box Add customer image to project opens. Browse to your destination folder, select a preferred image, and click Open. Result: The customer image is displayed in the work area and in the information pane.
Changing or Removing a Customer Image To replace the customer image for the project with a new one, click the Change button and browse to the location of the new image. Click the Remove button to remove your image. Configuration View The Configuration View section shows an overview of your project configuration corresponding to your settings in the Configuration tab (see page 62).
58
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Properties
EIO0000000067 10/2010
59
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Properties
Custom Information Fields The Custom Information Fields are text boxes for any optional information you might want to give to personalize your project. The fields and their values you define here can be displayed in the information pane on the right-hand side if you activate the respective Info check box. In the Custom Field text boxes enter a name for a new field you want to create. Enter the content that should appear in this field in the Value text boxes. For every line of information you want to be displayed as Project Information in the information pane on the right-hand side, select the check box in the Info column. Attached Documents Click the Add Attachment button to attach 1 or more documents to your project file. A dialog box will be displayed, where you can browse to the destination folder. After you have attached a file to your project, the section Add Attachment displays a check box for Important Information as well as the icons for: z View attachment, which opens the attached file. z Save attachment as file, which opens a Save as dialog box. z Remove attachment from project, which deletes the link between the project and the attached file.
Important Information The section Attached Documents provides the check box Important Information for each of the attached documents. For each document you consider as important to read, select the check box. The task menu will then show a small SoMachine icon next to the task Custom Information to indicate that it includes important information.
60
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
5
What's in this Chapter? This chapter contains the following sections:
Section 5.1 5.2 General Information Graphical Configuration Editor Topic Page 62 65
EIO0000000067 10/2010
61
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
5.1
General Information
62
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Elements of the Configuration Tab The following graphic displays the Configuration tab with a sample configuration:
2 3
The task selection pane shows the list of controllers, HMIs, and miscellaneous devices you can drag into the graphical configuration editor as well as a Search function to search for the required device. The work area includes the graphical configuration editor with its display manager at the bottom. The information pane provides further information on the element selected in the task selection pane or in the work area (devices, connections, communication managers).
EIO0000000067 10/2010
63
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Task Selection Pane The task selection pane of the Configuration tab lists the devices you can add to the configuration in the graphical configuration editor grouped by type into Controller, HMI, and Misc (miscellaneous) devices. To add a device, select it in this list and drag it to the work area. To ease finding the suitable device icon, SoMachine additionally provides a Search function. To search for a device, enter its name in the text box surrounded by asterisks and click the Search button. SoMachine will return a list of devices meeting the search phrase you entered or will display a message indicating that no devices were found.
64
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
5.2
EIO0000000067 10/2010
65
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
General Description
Overview The graphical configuration editor provides necessary functions to perform the entire hardware and network configuration of your machine in a graphical way. The configuration settings performed here will also be available in the Program tab as well as in Vijeo-Designer.
1 2
The graphical configuration editor in the work area displays your machine configuration in a graphical way. The display manager simplifies the use of the graphical configuration editor.
66
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
When you start creating a new project from scratch, the graphical configuration editor will be empty. It will then prompt you to drag a device from the list on the lefthand side into this empty area. Display Manager To simplify its use, the graphical configuration editor contains a display manager at the bottom of the pane. The display manager contains the following functions:
Display Manager Item Zoom Description The Zoom slider controls the magnification of the graphical configuration editor. Click the 100% button to display the elements in the graphical configuration editor without magnification in their original size. Click the Show All button to display the elements available in the graphical configuration editor. Click the Reroute button to redraw the connecting lines between the items. Activate this function to redraw the connecting lines between the items with every new device you drag into the graphical configuration editor. Activate this function to allow the graphical configuration editor to draw 1 line if several connecting lines are in parrallel instead of drawing each line separately. This setting speeds up the drawing time. Click the Collapse All button to collapse the subdevices, that are expansion modules. Click the Expand Last button to expand the subdevices (expansion modules) of the last device you selected. Click the Expand All button to expand the subdevices, that are expansion modules.
100%
Show All
Collapse All
Expand Last
Expand All
EIO0000000067 10/2010
67
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
WARNING
UNINTENDED EQUIPMENT OPERATION Inspect and modify as necessary any immediate addresses used in the program after modifying the configuration. Failure to follow these instructions can result in death, serious injury, or equipment damage. NOTE: Schneider Electric highly recommends the use of symbolic addressing instead of immediate addressing. This may help to avoid extensive program modifications and to limit the possibility of incorrect programming instructions once a program configuration is modified by adding or deleting I/O or other devices. Adding Devices To add a device, proceed as follows:
Step 1 Action Select the device you want to add to your machine configuration from the catalog list on the left-hand side of the Configuration tab. Further information concerning the selected device will be displayed in the information pane on the right-hand side. Drag the device icon to the graphical configuration editor in the middle of the Configuration tab. Result: The device is added to the machine configuration and can be moved freely with the left mouse button. You can now configure the device.
NOTE: If you add an HMI device to your graphical configuration editor, VijeoDesigner will automatically be started in the background.
68
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Assigning a Name to the Device To assign a name to your device in the graphical configuration editor, right-click the device and select Rename from the context menu, or select the device and click the default name below the device a second time to edit the text field. Result: You can now edit the default name below the device icon (for example MyController), and enter a name of your choice. Deleting Devices To delete a device from the graphical configuration editor, right-click it and select Delete from the context menu, or select the device in the editor and press the delete key on your keyboard. If you confirm this action, the device as well as the network lines to which the device is connected will be deleted from the graphical configuration editor.
EIO0000000067 10/2010
69
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Configuring Devices
Overview The graphical configuration editor provides access to configuration dialog boxes of the devices. Configuring Device Parameters To configure the device you added to the graphical configuration editor, you can either double-click the device or right-click the device and select Edit parameters from the context menu. SoMachine will then open the Parameters configuration dialog box for your device. The tasks displayed on the left-hand side in the task selection pane vary depending on the selected device.
70
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
The following graphic shows a sample Configuration Parameters screen for an M238 logic controller.
Configure your device as described in the Configuration section of the respective user manual. To close the configuration dialog box and to return to the graphical configuration editor, click the Back button or double-click the Configuration Overview graphic in the task selection pane on the left-hand side.
EIO0000000067 10/2010
71
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Configuring Embedded Functions To configure embedded functions of your device, like mapping inputs and outputs as well as configuring high speed counters, pulse train output or pulse width modulation, select in the device configuration screen the entry Embedded Functions. Select the suitable sub entry from this list and configure the parameters as described in the Input / Output Configuration (HSC, PTO, PWM) sections of the respective hardware Programming Guide. NOTE: Schneider Electric highly recommends the use of symbolic addressing instead of immediate addressing while programming. This may help to avoid extensive program modifications and to limit the possibility of incorrect programming instructions once a programs configuration is being modified by adding or deleting I/O or other devices.
WARNING
UNINTENDED EQUIPMENT OPERATION Inspect and modify as necessary any immediate addresses used in the program after modifying the configuration. Failure to follow these instructions can result in death, serious injury, or equipment damage. Configuring Communication Settings To configure the communication ports of your device, select in the device configuration the entry Communication. Select the suitable sub entry (Serial Line, Ethernet, CANopen etc.) from this list and configure the Physical Settings as well as Protocol Settings of the port as described in the respective hardware user guide. In the Protocol Settings screen SoMachine provides a Remove/Change Protocol button that opens the following dialog box to change or remove the configured protocol. You can also open this dialog box by clicking the port of an already available device in the graphical configuration editor. But please note that this leads to a new configuration of the port and removes the already available configured communication settings.
72
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Select the suitable protocol manager from the list and click the Add and close button. Result: The configuration dialog box for the selected protocol will be displayed on the right-hand side of the SoMachine screen.
EIO0000000067 10/2010
73
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Configuring Empty Interfaces To configure empty interfaces of your device, proceed as follows:
Step 1 Action Click the empty rectangle, representing an empty port, of your device graphic.
Result: The Add Object dialog box will be displayed. Its contents, that is the available fieldbusses and / or communication managers, depends on the selected device and the specific port.
74
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Step 2
Action From the Add Object dialog box select the item you want to define for the selected port (in the example below a CANopen Manager Optimized).
Click the Add and close button. Result: The selected fieldbus or communication manager is now added to the port and the configuration dialog box for the selected protocol will be displayed on the right-hand side of the SoMachine screen.
EIO0000000067 10/2010
75
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Adding Slave Devices to a Fieldbus Manager To add a slave device to a fieldbus manager, proceed as described in the following (using a CANopen device as an example):
Step 1 Action Click on a free port of the fieldbus manager in your graphical configuration editor.
76
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Step 2
Action Select a suitable device from the list and click the Add and close button. Result: The icon of the selected device will be displayed in the graphical configuration editor, connected to the CANopen_Optimized manager.
To delete a slave device, select it in the graphical configuration editor and hit the DELETE key or right-click the slave device and select Remove from the context menu.
EIO0000000067 10/2010
77
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Adding Expansion Modules To add expansion modules to your device, proceed as follows:
Step 1 Action Click in the graphical configuration editor on the area Add Expa... of the device.
Result: The Add object dialog box opens, displaying only those expansion modules that can be connected to the selected device like in the graphic below for an M238 logic controller.
78
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Step 2
Action Select the expansion module you want to add to the device from the list on the left-hand side and click the Add and close button. Result: The expansion module will be displayed in the graphical configuration editor on the right-hand side of the device.
The expansion modules added to a device are displayed on the right side of the device icon. You can hide or display them by clicking the small arrow above the Add Expa... button. To configure them, double-click their icons. NOTE: When you add a TWDNOI10M3 object, that is an AS-Interface Master Module, the corresponding Virtual AS interface bus fieldbus manager will automatically be inserted. To add AS-Interface slave modules, proceed as described in the Adding Slave Devices to a Fieldbus Manager (see page 76) paragraph above. Closing the Configuration Dialog Boxes To close the configuration dialog boxes and to return to the graphical configuration editor, click the Back button or double-click the Configuration Overview graphic in the task selection pane on the left-hand side.
EIO0000000067 10/2010
79
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
80
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Correcting Detected Configuration Errors SoMachine assists you in correcting detected configuration errors. You can solve a detected configuration error concerning the multiple use of node IDs (shown in the above example) as follows:
Step 1 Action Click the red icon (in the above example the CANopen Manager) to display further information on the specific detected configuration error in the information pane on the right-hand side. To solve this issue, click the Modify address configuration button. Result: An Address settings dialog box will be displayed.
In the Address settings dialog box you can check the addresses and correct them manually by changing the Node Id of 1 device or you can click the Fix address conflicts button to have the address conflict automatically corrected by SoMachine.
EIO0000000067 10/2010
81
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Accessing Programming and Application Functions with the Graphical Configuration Editor
Overview The graphical configuration editor provides direct access to the CoDeSys programming environment. Programming Logic To program logic for a device in the graphical configuration editor, right-click the device and select Program Application from the context menu. Result: The SoMachine Program tab opens, providing access to the CoDeSys programming interface. Selecting the Active Application In case there are several applications in your machine configuration, the graphical configuration editor provides the possibility to define which one should be the active application. To define 1 application as active application, right-click a device in the graphical configuration editor and select from the list Set active application the application you want to be the active application. Result: A green circle is displayed in the graphical configuration editor to indicate the active application. Adding an Application If your device does not yet have an application, you can create a new application as follows: Right-click the device in the graphical configuration editor and select the command Add application from the context menu. In the Add application dialog box enter a name for your new application and click Open.
82
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Updating Firmware To update the firmware of your M238 controller, right-click the device in the graphical configuration editor and select the command Update firmware from the context menu. The M238 OS Loader Wizard will be started, guiding you through the update process. Performing a firmware update will delete the current application program in the device, including the Boot Application in Flash memory.
CAUTION
LOSS OF APPLICATION DATA
z z
Perform a backup of the application program to the hard disk of the PC before attempting a firmware update. Restore the application program to the device after a successful firmware update.
Failure to follow these instructions can result in injury or equipment damage. Updating the Version of the Device To update your device to the latest software version that is available, right-click the device in the graphical configuration editor and select the command Update Device Version from the context menu. This command always initiates an upgrade to the latest version that is available. It is not possible to upgrade a device to an intermediate version. Red circles in the upper right corner of the device icons indicate that the device is not running the latest software version that is available. After you have executed the Update Device Version command, the red circle will disappear.
EIO0000000067 10/2010
83
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
84
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Step 5
Action A context menu will be displayed providing the following possibilities to configure the communication parameters of the 2 devices: z Copy parameters from start to end device z Copy parameters of end device to start device z Setup communication parameters of both devices If you select the command Setup communication parameters of both devices, the configuration dialog box for this communication type will be displayed where you can enter the suitable settings manually. This dialog box will also be displayed by double-clicking a network connection line or right-clicking it and selecting Edit parameters from the context menu.
To save your settings, select the Save command from the General Functions Menu (see page 25). To return to the graphical configuration editor, click the Back button on the left-hand side of the screen or double-click the Configuration Overview graphic. To leave the settings on both sides unchanged, click anywhere else in the graphical configuration editor. The context menu will be closed.
EIO0000000067 10/2010
85
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Configuration
Color Definitions The type of network connection is indicated by the color of the connection lines:
Network Connection Line Color black blue purple gray Network Connection Type Modbus Ethernet CANopen connection to a generic port (no compatibility check performed by SoMachine)
Deleting Network Connections To delete a network connection from the graphical configuration editor, right-click it and select Delete from the context menu, or select the network connection line in the editor and press the DELETE key on your keyboard. If you confirm this action, the network connection will be deleted from the graphical configuration editor, but the configuration parameters of the connected devices will not be changed. Consistency Checks SoMachine automatically checks the consistency when creating new network connections. It issues error detection messages as tooltips if it detects any incompatibility. You can disable this function for individual connections. To achieve this, right-click the network connection line and select the command Disable consistency checks from the context menu. The network connection line will be displayed with a redstriped background to indicate that the consistency check is disabled. To re-enable the consistency check for a connection line, right-click it and select once again the command Disable consistency checks from the context menu.
86
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
6
Page 88 96 124 126
EIO0000000067 10/2010
87
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
6.1
General Information
88
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
What is FDT?
Overview FDT (Field Device Tool) technology standardizes the communication interface between field devices and engineering or asset management tools. FDT Concept Since 1998, FDT technology has offered both process and factory manufacturing industries a truly open solution for accessing device intelligence that is supplier, system, and protocol independent. See the official WEB site: www.fdtgroup.org You can find below some information coming from FDTGROUP: FDT enables easy device access and configuration through any host system that provides the interface. FDT is not a new fieldbus protocol. It can be used with any communication protocol. FDT is vendor independent and established as an open publicly available specification. Field information from processes is required during the entire life cycle of a plant or application. FDT supports all phases of a plant life cycle: z engineering z installation z commissioning z production z maintenance FDT specifies these standardized software interfaces. They were defined in a general way, so that it is possible to design engineering environments that could manage any device from any manufacturer using an arbitrary protocol as required by end users. The device vendor provides the interfaces for the DTM (Device Type Manager), including communication capabilities to the device itself but also to other DTMs. The Device Type Manager of a device from one vendor is thus able to interact with the Device Type Manager of a device from another vendor. This allows connecting products of different vendors, to have greater flexibility. It is possible to select the device best fitting the demands of the application, independent from vendor or communication protocol.
EIO0000000067 10/2010
89
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
90
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Typical Topologies
Overview There are two ways to configure DTM devices under SoMachine: z Communication to the DTM device through controller and fieldbus: fieldbus topology z Direct point to point connection to one Device: hardwire topology Fieldbus Topology Characteristics: Device is connected to the controller fieldbus (CANopen) z Communication path to the device through the controller z Connection of the PC to the controller via USB or Ethernet cable z Device parameters can be transferred in both directions regardless of the SoMachine - Controller connection status (Login/Logout)
z
Benefits: z Commissioning of devices remotely z Only one connection to all devices through one cable z Device commissioning parameters are saved in the SoMachine project file
EIO0000000067 10/2010
91
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Hardwire Topology Typical use cases: Device is not connected to the controller by a fieldbus, but by a direct IO connections (hardwire device). z Device is connected to the controller through another fieldbus than CANopen. z Device is connected through CANopen but DTM works over Modbus only.
z
For configuration data transfer, a Modbus Serial Line connection can be established between the PC and one device using an USB - RS485 cable converter. To connect the PC to the device, you must use the TSXCUSB485 cable plus a Modbus RJ45 cable (VW3A8306R):
92
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
configuration of Lexium 32A and Lexium 32M Yes configuration of ATV71 configuration of ATV312 configuration of ATV31 configuration of ATV12 configuration of Lexium 32C Yes Yes No No No
NOTE: At any time, new versions of existing DTMs or new DTMs can be installed into the SoMachine environment. Communication DTMs Communication DTMs provide communication paths to a device for a certain fieldbus protocol (e.g.: Modbus). The following table lists the Communication DTMs in SoMachine V2.0:
DTM Name Modbus Serial Communication DTM Modbus TCP Communication DTM Supported Function establish a Modbus Serial communication establish a Modbus TCP communication Supported Fieldbus Modbus SL Modbus TCP
EIO0000000067 10/2010
93
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Limitations The limitations for the different DTMs are the following:
DTM ATV31 ATV71 Limitation The DTM can be used only to configure the device in Hardwire topology on Modbus Serial. If you want to use online functions of a DTM which is associated to an ATV71 with an ATV IMC controller plugged in, either through Fieldbus topology (see page 91) or Hardwire topology, (see page 92) then a valid application must have been previously downloaded to the ATV IMC controller. The DTM is not usable on CANmotion. In this case, drive commissioning has to be done using Hardwire topology on Modbus Serial. The DTM should only be used when a dedicated DTM is not available. When you configure a device using the Generic CANopen DTM with a standard device EDS, the parameter values might not be fully consistent with the installed device. For example, the parameter values for min./max. values, versions, etc. of Altivar or Lexium drives listed in the standard EDS file might not be fully compatible with the drives in the currently used ranges. As a consequence, Parameter Upload and Parameter Download commands might generate some exception messages. When you configure a Motion & Drive device (Altivar, Integrated Lexium or Lexium) using the Generic CANopen DTM instead of using the standard device EDS or a dedicated DTM, the function blocks of the device related library (Altivar library, Integrated Lexium library or Lexium library) are not operational to control and monitor this device (Axis_Ref_ATV, Axis_Ref_ILX and Axis_Ref_LXM are not supported by the Generic CANopen DTM). In that case use the CAA CiA 405 library (see SoMachine, CANopen Management Functions, CAA CiA 405 Library Guide) to control and monitor this device. In Fieldbus Topology, the number of CANopen device DTMs and standard CANopen devices declared in a CANopen configuration of a controller is limited to the maximum number of CANopen devices supported by the concerned controller CANopen interface. Please refer to the related Controller Programming Guide in SoMachine Online Help to get this limitation. The number of open DTMs at the same time in the PC running SoMachine is limited to 4 by default. Refer to the Restrict DTM instance count to limit memory usage option for further details about the customization of this limitation.
All
All
94
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
FDT Services
Overview FDT services via CANopen offer more advantages than standard CANopen configuration with EDS file which is limited to offline configuration. FDT offers upload and online configuration. Services The following table describes the services available for standard configuration with EDS file and device DTM:
Services Fieldbus Topology Standard CANopen Download device parameters Upload device parameters Online commissioning (monitoring and setting) of device parameters Consistent with MULTIPLE DOWNLOAD SoMachine service Permanent storage of parameters in the SoMachine project file Can be used with all standard CANopen devices Yes (1) No No Yes Yes (3) Yes Dedicated DTM Yes Yes Yes Yes Yes No
(2)
Hardwire Topology Generic CANopen DTM Yes Yes Yes Yes Yes Yes Dedicated DTM with communication DTM Yes Yes Yes (2) Yes Yes No
1 Downloaded with the controller application download and sent to the device at CANopen start. 2 If supported by the DTM 3 Not in all cases: values can be changed by other software (Advantys, SoMove, etc.) The dedicated DTM available in SoMachine V2.0 and the communication DTM (needed for a direct connection without controller) are listed in Devices with Device Type Manager (see page 93).
EIO0000000067 10/2010
95
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
6.2
96
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
2 3
In the menu bar, select Tools Device Repository. Result: The Device Repository window is displayed. Click Install DTM button. Result: The Install DTM window is displayed listing all DTMs which had been detected as installed and registered on the PC during the last scan. The PC is scanned again to detect DTMs which have been recently installed and registered on the PC. Wait for the end of the scan. Result: All DTMs which are currently installed and registered on the PC are displayed:
EIO0000000067 10/2010
97
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Step 5 6
Action Select the DTMs to be used with SoMachine. Click OK button. Result: The selected DTMs are now available in the Device Repository window, node Fieldbusses FDT:
NOTE: For more information on the Device Repository, refer to the SoMachine Online Help, CoDeSys part.
98
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Add a CANopen Device DTM to the Device Tree Before you can add a CANopen device DTM to the Device tree, you have to make sure that a CANopen manager has been inserted in the Device tree. For more details, refer to the SoMachine Online Help. The following table describes how to add a DTM device in the Device tree:
Step 1 Action Select the Program tab:
Right click on the CANopen manager, select Add Device. Result: The Add Device window is displayed.
EIO0000000067 10/2010
99
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Step 3
NOTE: In the Information area, check in the Name text that the selected device is a proper DTM device. 4 Click on Add Device button.
NOTE: To add hardwire device, refer the section Hardwire Topology (see page 117).
100
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
In the Device tree, right click on the device and select (depending on DTM): Device Configuration Standard Functions Configuration. or Device Configuration Standard Functions Observe. Result: The device hardware configuration window is displayed Configure the hardware of the device. Click OK button. Result: The device hardware is configured.
3 4
NOTE: Most DTMs have a specific Hardware Configuration window. For DTMs which have no Hardware Configuration window, this step is skipped. There now follow some examples of Hardware Configuration windows:
EIO0000000067 10/2010
101
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
102
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Device Parameter Configuration After configuring the hardware of the device, you can configure the device parameters:
Step 1 2 Action Select the Program tab. In the Device tree, right click on the device and select (depending on DTM): Device Configuration Standard Functions Configuration. or Device Configuration Standard Functions Observe. Result: The device parameters configuration window is displayed Configure the device parameters.
All parameter values of the device can be saved and stored in the SoMachine project file. When the SoMachine project will be reopened, all parameter values will be restored.
EIO0000000067 10/2010
103
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
For more information about DTM configuration, see the specific DTM documentation of the selected device:
Step 1 2 Action Select the Program tab. In the Device tree, right click on the device and select Device Configuration Documentation. Result: The DTM documentation is displayed.
NOTE: The configuration in SoMachine must be consistent with the physical device connected. If some discrepancy in configuration exists (for example, the reference number of the connected device is not the same as the pre-defined device declared in the configuration), the services Parameter upload, Parameter download and Switch to Synchronize mode will be rejected by the device. If this happens, you have to delete the device in SoMachine and add a new one that is fully consistent with the configuration of the physical remote device.
104
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
WARNING
LOSS OF COMMUNICATION Do not download parameters to a device when: z the node address configured in the device is not consistent with the node address parameter configured in device DTM. z the baud rate configured in the device is not consistent with the baud rate parameter configured in device DTM. Failure to follow these instructions can result in death, serious injury, or equipment damage. If you want to upload/download parameters to the device, you do not need to log into the controller but a user application with CANopen configuration must have been previously downloaded in the controller. NOTE: It is a good diagnostic practice to log into the controller in order to check the status of the device in the Device tree (green icon: device connected and accessible).
WARNING
UNINTENDED EQUIPMENT OPERATION Thoroughly read and understand the device manual for the characteristics and properties of the device before attempting to modify them. Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000000067 10/2010
105
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Limitation of the Operation in Online Mode During normal operation of SoMachine, it is possible that a user application runs in the controller (RUNNING state) and modifies device parameters, while at the same time, the DTM also modifies online the devices parameters. In this case, 2 active communication channels in parallel have access to the device to modify the behavior. The exchange of device parameters by the DTM (using Parameter Download, Parameter Upload commands or Synchronized mode) while the controller application is running in parallel could lead to unintended consequences.
WARNING
UNINTENDED EQUIPMENT OPERATION Do not change device parameters by DTM in parallel to device parameter modifications made by the RUNNING application. Failure to follow these instructions can result in death, serious injury, or equipment damage. Technical note: CANopen device DTM exchanges data with the remote device using SDO services. In many Schneider CANopen devices, only one SDO channel is supported. This limitation leads to an increase of the SDO exchange time between the controller and the device (see the following note). NOTE: A device DTM can be switched to Online when the controller is in RUNNING or in STOPPED state. In the case that the controller can be in RUNNING state (e.g. to write calculated data to the device) and at the same time the DTM is in Online (e.g. to synchronize data), the bandwidth of the SDO channel is divided into 2 different sub-channels: z Sub-channel 1: SDO service sent by the controller program application in real time for specific adjustment. z Sub-channel 2: SDO service sent by the DTM in Online mode. Because there is no priority management between these 2 sub-channels, all SDO messages are interlaced. If both sub-channels are communicating at the same time with the remote device, the CANopen bandwidth limitation can introduce some delays in the SDO sent by the program application.
106
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
The following table describes how to prevent the device DTMs to exchange parameters with the devices (through SDO) while the controller application is running:
Step 1 2 Action Select the Program tab. In the Device tree, double click on the CANbus. Result: The CANbus configuration window is displayed:
Select the checkbox in the Online Bus Access area. Result: When this option is selected, the DTM is not allowed to read / write parameters (valid for all DTM) or to enter the Synchronized Mode (valid for some DTM) while an application is RUNNING.
Parameter Download It is recommended to execute the Parameter Download only when the controller is in STOPPED state, see also the description Limitation of the Operation in Online Mode (see page 106).
WARNING
UNINTENDED EQUIPMENT OPERATION Do not change device parameters by DTM in parallel to device parameter modifications made by the RUNNING application. Failure to follow these instructions can result in death, serious injury, or equipment damage. The following table describes how to download parameters:
Step 1 2 Action Select the Program tab. In the Device tree, in the CANopen manager, right click on the device DTM then select Device Configuration Parameter Download. Result: The transfer begins.
EIO0000000067 10/2010
107
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Step 3 4
Action At the end of the transfer, a message is displayed. All parameters are downloaded to the device.
Parameters Download to all Attached DTMs It is recommended to execute the Parameter Download to all Attached DTMs only when the controller is in STOPPED state, see also the description Limitation of the Operation in Online Mode (see page 106).
WARNING
UNINTENDED EQUIPMENT OPERATION Do not change device parameters by DTM in parallel to device parameter modifications made by the RUNNING application. Failure to follow these instructions can result in death, serious injury, or equipment damage. The aim of this function is to download all device DTM parameters to all the attached devices. By this, you have not to repeat parameter download command for all the devices. It provides consistency of the data in the SoMachine project and the data in the devices. The following table describes how to download device parameter DTM to all attached devices:
Step 1 2 Action Select the Program tab. In the Device tree, in the CANopen manager, right click on the DTM then select Device Configuration Parameter download to all attached DTMs. Result: The transfer begins. At the end of the transfer, a message is displayed. The parameters of all DTM are downloaded to all the attached devices.
3 4
108
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Parameter Upload It is recommended to execute the Parameter Upload only when the controller is in STOPPED state, see also the description Limitation of the Operation in Online Mode (see page 106).
WARNING
UNINTENDED EQUIPMENT OPERATION Do not change device parameters by DTM in parallel to device parameter modifications made by the RUNNING application. Failure to follow these instructions can result in death, serious injury, or equipment damage. The following table describes how to upload parameters:
Step 1 Action Select the Program tab:
In the Device tree, in the CANopen manager, right click on the DTM device then select Device Configuration Parameter Upload. Result: The transfer begins. At the end of the transfer, a message is displayed.
All device parameters are uploaded to the device DTM and displayed in SoMachine.
NOTE: In the configuration window, if a value is modified, the icon beside the current value:
appears
EIO0000000067 10/2010
109
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
This icon can look differently according to the DTM. Go Online/Offline In online/offline mode, you can modify directly the device parameters either after pressing the Apply button in the user interface or immediately after entering the new value. This depends on the type of DTM. The following table describes how to switch to DTM online mode:
Step 1 2 Action Select the Program tab. In the Device tree, in the CANopen manager, right click on the DTM, then select Device Configuration Go online. Result: The DTM is online (main colors are blue):
NOTE: After an upload/download of parameters, the DTM switches automatically in online mode. Synchronized Mode This mode is a specific mode for ALTIVAR and LEXIUM devices. It is not available for generic or other DTMs. Entering the Synchronized Mode, it is possible to monitor in real time parameters of the device in a convenient way.
110
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Change a parameter value and press Enter to validate. Result: The parameter is directly modified in the device.
NOTE: Click on the button to refresh the parameters. This button is disabled as long as the DTM device is not in synchronized mode. For more information, please refer to the user manual of the corresponding DTM.
EIO0000000067 10/2010
111
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Overview of Synchronized Mode The DTM goes to Online mode when you select Go Online, Parameter upload or Parameter download from the device configuration menu:
DTM Mode DTM Online Synchronized Mode Data are synchronized Mode switching Click on the button unsynchronized mode. Monitoring parameters to switch to Unsynchronized Mode Data are not synchronized
to switch to
Only monitored parameters are refreshed cyclically (refer to the device DTM documentation to get the list of monitored parameters).
z Parameter value changed in the DTM
Parameters update
to refresh the parameters once (upload from the device) Change parameters values locally in the PC.
The DTM leaves the Online mode and goes to Offline mode when you select Go Offline from the device configuration menu:
DTM Mode DTM Offline Data are not synchronized Monitoring parameters Parameters update Location of value change No monitored parameters are refreshed cyclically.
z Parameters download command z Parameters upload command
112
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
EIO0000000067 10/2010
113
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Create a New Generic CANopen Device DTM The following table describes how to create and add a new device DTM from a standard CANopen EDS to the device repository:
Step 1 2 3 Action Open the folder at the location Start Windows menu Program Schneider Electric Generic CANopen Device DTM EDS. Copy in this folder the EDS file for which the device DTM has to be created. Install the Generic CANopen Device DTM as explained in DTM Installation (see page 97). Result: The EDS file is converted into DDXML format and stored under ... Schneider Electric Generic CANopen Device DTM DDXML with the same name.
NOTE: If the DDXML file is not created, then there is a problem with the EDS file. Check the detected error message to find out the problem with the EDS file. Refer to the chapter Handling of invalid EDS files in the user manual of the Generic CANopen device DTM. If several EDS files are copied into the EDS directory, several new device DTMs will be created. After the DDXML is created successfully, a device type is added in the device repository for the given EDS file. The device type created by the Generic CANopen Device DTM in the repository is represented with the Product Name taken from the EDS file. The corresponding DDXML file is also displayed in brackets in the repository next to the device type name. NOTE: Every time a new EDS file is copied to the mentioned folder, an Install DTM action has to be repeated with selecting the Generic DTM in the list of available DTMs.
114
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Example If the Osicoder EDS file has been placed at the location ... Schneider Electric Generic CANopen Device DTM EDS and after Install DTM action under Device Repository, it now is possible to use a DTM to operate the Osicoder device. The Generic CANopen Device DTM now plays the role of an Osicoder DTM. In the following figure, you can see two alternative options to configure any Osicoder device: z The first line with string Osicoder represents a configuration window in legacy style z the second line with string Osicoder represents a DTM, whose functionality is defined in the EDS file with name <EDS file name> + .xml
NOTE: In the Information area, check in the Name text that the selected device is represented by a DTM.
EIO0000000067 10/2010
115
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
After inserting the device DTM based on the Generic DTM into the Device tree, it is now possible to use a DTM to manage an Osicoder device:
NOTE: For further details, the online help of the Generic DTM can be used by pressing the Help button in the Configuration window.
116
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Hardwire Topology
Overview You can also configure devices that are not connected to a controller fieldbus with a DTM via a point-to-point connection over Modbus Serial Line using a specific cable (TSXCUSB485) to connect the device to the PC. The configuration data of the device will be part of the SoMachine project file. Topology The corresponding topology is described in Hardwire Topology (see page 92). TSXCUSB485 Cable Installation To connect the PC with the device, you need: z the TSXCUSB485 cable USB - RS485 converter z a Modbus RJ45 cable (according to the table below) Modbus RJ45 cables:
Length (m/ft) 0.3 / 0.98 1 / 3.28 3 / 9.84 Connectors 2 RJ45 connectors 2 RJ45 connectors 2 RJ45 connectors Part number VW3A8306R03 VW3A8306R10 VW3A8306R30
Install a Communication DTM in SoMachine Before installing a DTM to commission devices, you must install a communication DTM in the SoMachine project. The following table describes how to install the Modbus Serial Communication DTM in SoMachine:
Step 1 Action Select the Program tab:
2 3
Select Tools Device Repository. Result: The Device Repository window is displayed. Click on Install DTM button. Result: A scan of the PC is done to detect all DTMs installed and registered on the PC.
EIO0000000067 10/2010
117
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Step 4 5
Action Select the Modbus Serial Communication DTM. In the Device Repository window, the selected DTM is now available. Result: The Modbus serial communication DTM is now available for insertion in the Device tree.
118
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Add DTM Device The following table describes how to append a (hardwire) device DTM to the communication DTM:
Step 1 Action In the Device tree, right click on the communication DTM, then select Add Device.
Result: The list of available device DTMs is displayed. 2 Select the desired DTM. Result: In the Device tree, the device DTM is now installed:
EIO0000000067 10/2010
119
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Modbus COM Port Configuration When the TSXCUSB485 cable is connected to the PC, then the Schneider Modbus Driver assigns a COM port of your PC to the Modbus connection. The COM port number must be declared in the configuration of the Modbus Serial Communication DTM. The following table describes how to configure the Modbus Serial Communication DTM:
Step 1 In the Windows Taskbar, right-click on the Schneider Modbus Driver icon then select Configure: , Action
120
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Step 2
Action Check the COM Port value (COM9 in the example shown below):
Check that the TSXCUSB485 is recognized in ready state. 3 In the Device tree of the SoMachine project, right click on the communication DTM, then select Device Configuration Standard Functions Configuration. Result: A dedicated window is displayed to configure the Modbus Serial communication DTM.
EIO0000000067 10/2010
121
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Step 4
5 6 7
Select the COM port assigned in the Schneider Modbus Driver. Configure the communication (baud rate, parity, Stop bit, etc.). Select the Address Table tab.
8 9
Configure the Modbus address of the device. Click Apply to confirm the changed parameters.
122
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
After configuration of the Modbus Serial Communication DTM, all online services of the attached device DTM are available to start the configuration/commissioning of the device. You can now right click on the device in the Device tree and change/upload/download device parameters.
WARNING
LOSS OF COMMUNICATION Be sure that the device parameters you intend to download are consistent with those configured for your device, Modbus network, and application. Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000000067 10/2010
123
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
6.3
FDT Options
Overview
FDT Options
Some configuration options are available in SoMachine to manage the behavior of operating modes of the DTM. Setting of FDT Options The following table describes how to modify the FDT options:
Step 1 Action Select the Program tab
2 3
In the menu bar, select Tools Options. The SoMachine Options window is displayed: Select FDT Options in the list. Result: The FDT Options window is displayed:
124
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Advanced Settings The following table describes the advanced settings of FDT Options:
Option Description
User management according to MUST be kept unchecked. This function is not supported. FDT specification Check for change DTM parameters before application login Set DTMs offline after application logout Restrict DTM instance count to limit memory usage If selected, an automatic parameter download to those devices is performed before Login if parameters have been changed since the last download. This is useful to keep consistency, but it can result in longer execution time for Login (depends on DTM). If selected, all DTMs are switched to offline mode after logout from controller. If selected (by default), limits the number of DTM instances open at a time on the PC to the Maximum number of DTM instances parameter value (default value is 4, range from 1...10). If not selected, the number of open DTM instances is not limited. NOTE: The option setting will only be active after closing the current project. NOTE: This option is used to reduce the consumption of PC memory and to avoid the decrease of PC performance. Refer to the Check DTM instances command for further information on currently open DTM instances checking and disposal. Create temporary device description files when updating the catalog When the Install DTM... button in the Device Repository window is executed, a device description file is created for every device supported by a DTM. The file is available in a temporary folder and is deleted during SoMachine closing. These device description files are dedicated to developers who want to use the device description files as template for creating their own device description. Can be used by DTM developers for trouble shooting. If selected, Pop-up messages are generated for detected error messages of DTMs. If not selected, these messages are only shown in the message window of SoMachine. Pop-ups always need to be confirmed by the user. This can slow down operation (eg: for communication errors, if a device is not responding, a number of pop-up messages can occur).
EIO0000000067 10/2010
125
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
6.4
Device Configuration
Device Configuration
Overview The CANopen manager is an obligatory node below the CAN bus node in a CAN bus configuration. Below the CANopen manager you can add one or more CAN bus devices to the device tree. The CANopen manager and some CAN bus devices provide dialogs or functions for configuration and maintenance of the devices. Those dialogs or functions are available in the Device Configuration submenu which is displayed by right-clicking the device node or the CANopen manager node. The availability of dialogs or functions depends on the kind of device and the state of the device. If a dialog or function is currently not available, then the menu item appears dimmed. NOTE: The CANopen manager supports only the menu items Import DTM and Parameter download to all attached DTMs.... Both menu items are not supported by any other CAN bus device
126
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
EIO0000000067 10/2010
127
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Device Configuration Description The following table describes the Device Configuration submenu:
Menu Command Standard functions Description Opens another submenu which contains standard functions, for example the configuration user interface which enables you to configure the selected device. NOTE: This interface is specific to the device and is provided by the DTM manufacturer. Opens another submenu which contains additional menu items representing operations on the selected device. NOTE: These additional operations are specific to the device and are provided by the DTM manufacturer. If no additional operations are available, this menu item appears dimmed. Opens a submenu which contains a list of additional information provided by the selected device. NOTE: If no additional information is provided, this menu item appears dimmed. You can export the selected device with all stored parameters to a file. You can import a device including all parameters from a file which was created by Export DTM. NOTE: This menu item is supported only by the CANopen manager. Opens the DTM instances locked by user interaction view for currently open DTM instances checking the following: z Instance name of open DTMs. z Is the device DTM editor open? z Is the device DTM online?... The Dispose check box allows you to dispose the corresponding open DTM instance in order to release some PC memory and opens another DTM instance when the maximum number of DTM instances is reached. Refer to the Restrict DTM instance count to limit memory usage option for further information on the configuration of the number of open DTM instances limitation. NOTE: The DTM instance must be offline to be disposed. Go online Go offline Parameter download to all attached DTMs... Parameter download You can connect to the selected device if the device is offline. You can disconnect from the selected device if the device is online. Transfers stored parameters from the PC to all devices represented by DTMs. NOTE: This menu item is supported only by the CANopen manager. Transfers stored parameters from the PC to the selected device.
Additional functions
Documentation
Parameter upload Transfers current parameters from the selected device to the PC.
128
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7
What's in this Chapter? This chapter contains the following sections:
Section 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 7.10 7.11 General Information Managing the Application Objects Adding Devices Managing the Libraries Managing the Communication Ports SoMachine Commands SoMachine Controller-HMI Data Exchange SoMachine Templates Managing Device Templates Managing Function Templates Transferring and Running Applications Topic Page 130 133 147 158 176 195 202 212 224 234 243
EIO0000000067 10/2010
129
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7.1
General Information
130
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Elements of the Program Tab The following graphic shows the Program tab with a sample configuration:
1 2
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program 3 4 5 6 7 editor multi-tabbed view Messages pane information and status line status bar Devices pane
This user interface provides several dockable panes you can open via the View menu. You can arrange the different panes within the SoMachine window according to your individual preferences.
132
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7.2
EIO0000000067 10/2010
133
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Adding Tasks
Introduction The Devices window allows you to add tasks to your application. Procedure
Step Action
1 Right-click on the Task Configuration node and select Add Object.... 2 On the left of the Add Object window, select Task. 3 Rename your task by typing a name in the field Name. Note: The name must not contain any space nor exceed 32 characters long. If you do not rename the device, a name is given by default. Tip: Renaming the task may ease the organization of your project. 4 Click Open.
134
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
NOTE: Refer to CoDeSys online help: z For more information on POUs. z If you want to add POUs for implicit Check to your application. Adding POUs To add a POU to the application of the controller, proceed as follows:
Step Action
1 In the Devices view right-click the Application node of the controller and choose Add Object... 2 In the Add Object dialog box select POU in the list. 3 Rename your POU by typing a name in the field Name. Note: The name must neither contain any space nor exceed a length of 32 characters. If you do not rename the POU, a name is given by default. Tip: Renaming the POU may ease the organization of your project.
EIO0000000067 10/2010
135
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step
Action
4 Select the type of POU you want: z Program z Function Block: a. Select Extends and click on the browser to select the block function you want in the Input Assistant. b. Click the OK button. c. Select Implements and click on the browser to select the interface you want in the Input Assistant. d. Click the OK button. e. In the list box Method implementation language, select the programming language you want for editing the function block.
z Function:
a. Click on the browser to select the return type you want in the Input Assistant. b. Click the OK button. 5 In the list box Implementation Language, select the programming language you want for editing your program. 6 Click the Open button.
Declaring POUs At least 1 POU has to be declared in the task. To declare a POU in a task, proceed as follows:
Step Action
1 Under the node Task Configuration of the controller, double-click on the task you want to declare your POU. 2 In the POUs section of the configuration tab, click Add POU. 3 In the section Categories of the Input Assistant dialog box, select Programs (Project). 4 Click to clear the check box Structured view. 5 In the Items panel, select the POU you want. 6 Click the OK button.
NOTE: Only the PTO/HSC variables declared in the POU are available in VijeoDesigner.
136
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Adding Libraries
Introduction The Devices window allows you to add libraries to your application by using the Library Manager node. For adding standard SoMachine libraries, use the placeholder concept. For adding libraries you created yourself, the placeholder concept is not applicable. Placeholder Concept for Standard SoMachine Libraries If you add standard libraries that are in the SoMachine scope of delivery, use the placeholder concept as described in the following to be compatible with different SoMachine versions. The placeholder concept provides the possibility to add a library without explicitly defining its version. The version that will actually be used depends on the device that uses this library. It stores this information in its device description file. Whenever you update your SoMachine software, verify the SoMachine libraries you are using in your project. Those SoMachine libraries that are added using the placeholder concept will not be updated with a SoMachine software update but only when updating the respective device.
WARNING
UNINTENDED EQUIPMENT OPERATION
z z
Verify that the SoMachine Libraries contained in your program are the correct version after updating SoMachine software. Verify that the library versions updated are consistent with your application specifications.
Failure to follow these instructions can result in death, serious injury, or equipment damage. Refer to Placeholder (see page 163).
EIO0000000067 10/2010
137
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Procedure of Adding Standard SoMachine Libraries To add a standard library that is included in the SoMachine scope of delivery, use the placeholder concept as described in the following:
Step 1 Action Double-click the Library Manager node in the Devices window. Result: The Library Manager editor opens, showing the libraries that are by default inserted with the selected device. In the editor click the Add library... link. Result: The Add Library dialog box opens. In the Add Library dialog box select the Placeholder tab.
2 3
138
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 4
Action In the Placeholder tab configure the following: z Select the Placeholder name from the list. The placeholder names are identical to the library names, except of Schneider Electric libraries that are extended by the prefix SE_). z Define the Default library by selecting the suitable library from the list. This setting only defines the library type that will be inserted. The library version that will actually be used is defined by the device. Click OK. Result: The library will be added to the Library Manager, like for example SE_Standard = Standard, 33.3.1.10 (System).
NOTE: Please note that only those libraries defined in the Devices window require the placeholder concept. The placeholder concept is not applicable for libraries you define in the POU window.
EIO0000000067 10/2010
139
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Retain: They are identified by the keyword RETAIN. These variables maintain their value even after an unanticipated shutdown of the controller as well as after an intentional power cycle of the controller. In addition, these variables retain their value after online program changes, stopping of the controller, and a reset warm command. When the program is run again, the stored values are processed. However, these variables are re-initialized after a complete program download, a reset cold command, or a reset origin command. Persistent and retain-persistent: They are identified by the keyword PERSISTENT or RETAIN-PERSISTENT. In contrast to retain variables, these variables maintain their values after a download or a reset cold command.
NOTE: For more information on remanent variables, refer to the CoDeSys online help. The following table describes the behavior of remanent variables in each case:
Action VAR VAR RETAIN VAR PERSISTENT and RETAINPERSISTENT X X X
Online change to application program Stop Power cycle X The value is maintained The value is reinitialized
X X -
X X X
140
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Action
VAR
VAR RETAIN
Reset warm Reset cold Reset origin Download of application program X The value is maintained The value is reinitialized
X -
Memory Mapping The following table gives more information on memory for:
Device Modicon M238 Logic Controller Modicon M258 Logic Controller Modicon LMC058 Motion Controller Modicon ATV IMC Drive Controller XBTGC HMI Controller Refer to Memory mapping (see Modicon M238 Logic Controller, Programming Guide) Memory mapping (see Modicon M258 Logic Controller, Programming Guide) Memory mapping (see Modicon LMC058 Motion Controller, Programming Guide) Memory mapping (see ATV IMC Drive Controller, Programming Guide) Memory mapping (see Magelis XBT GC HMI Controller, Programming Guide)
EIO0000000067 10/2010
141
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Adding a Persistent Variables List Persistent variables are declared in a global variables list called Persistent Variables. To add this list in an application, do the following:
Step Action
1 Right-click the Application node of the controller, or the Application node of the HMI, and choose Add Object... 2 In the Add Object window select Persistent Variables in the list and type a name for this list. 3 Click Open. Example:
Result: A persistent variable node is created in the Devices view. Note: The variables list is edited in the editing area whereby VAR_GLOBAL PERSISTENT RETAIN already is preset in the first line. Example:
Declaring Persistent and Retain Variables Refer to the CoDeSys part of the online help.
142
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
2 3
NOTE: Only 1 symbol configuration node can be created per device. For details on the variables interchange between the controller and HMI part refer to the chapter SoMachine Controller-HMI Data Exchange (see page 202).
EIO0000000067 10/2010
143
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
For more information concerning these objects, refer to the CoDeSys part of the online help. Adding Generic Objects To add generic objects to the application of the controller, or to the application of the HMI, do the following.
Step 1 2 3 Action Click on the Application node of the controller, and choose Add Object... In the Add Object window, select the object you want to add. Click Open.
144
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Controllers application
LogFile New Data log
File upload from SoMachine, Controllers Web Server or FTP client request
FB LogRecord
LogFile.log
Data log 1 Data log 2 Data log 3 Data log 4 Data log 5 Data log 6
Automatic dumping
FB Dump
The figure shows an application that includes the 2 function blocks, LogRecord and Dump. The LogRecord function block writes data to the buffer, which empties into the data log file (.log) located into the controllers memory. The buffer dumping is automatic when 80% full or it can be forced by the Dump function. As a standard FTP client, a PC can access this data log file when the controller acts as an FTP server. It is also possible to upload the file from SoMachine or the controllers web server. NOTE: Only controllers with file management functionality can support data logging. Refer to your controllers programming manual to see if it has such functionality. The software itself does not evaluate your controller for compatibility with data logging activities.
EIO0000000067 10/2010
145
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Sample Data Log File (.log) Entries in File: 8; Last Entry: 8; 18/06/2009;14:12:33;cycle: 1182; 18/06/2009;14:12:35;cycle: 1292; 18/06/2009;14:12:38;cycle: 1450; 18/06/2009;14:12:40;cycle: 1514; 18/06/2009;14:12:41;cycle: 1585; 18/06/2009;14:12:43;cycle: 1656; 18/06/2009;14:14:20;cycle: 6346; 18/06/2009;14:14:26;cycle: 6636; Implementation Procedure You must first declare and configure the data log files in your application before starting to write your program.
146
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7.3
Adding Devices
EIO0000000067 10/2010
147
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Adding Controller
Introduction When you add a controller to your project, several nodes are automatically added to the Devices view. These subnodes are controller-specific, depending on the functions the controller provides. The following paragraph describes the general procedure of adding a controller. For details on a specific controller, refer to the programming manual of this controller. Procedure To add a device to your SoMachine project in the Program tab, proceed as follows:
Step Action
1 Right-click on the project node and select the Add Device... command from the context menu. 2 In the Add Device dialog box select Schneider Electric in the list box Vendor. 3 Choose the controller you want to insert into the project. 4 Rename your device by typing a name in the text box Name. Note: The name must neither contain any space, nor exceed a length of 32 characters. If you do not rename the device, a name is given by default. Tip: Renaming the device may ease the organization of your project. 5 Click the Add Device button. Result: The device selected is added to the project and appears as a new node in the Devices view. The Add Device window remains open. You can then: z add another controller by going back to step 3, or z click the Close button to return to the Program tab.
148
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
WARNING
UNINTENDED EQUIPMENT OPERATION
z z
Only use software approved by Schneider Electric for use with this equipment. Update your application program every time you change the physical hardware configuration.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000000067 10/2010
149
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Procedure of Adding Expansion Modules To add expansion modules to your device, proceed as follows:
Step 1 Action Click in the graphical configuration editor on the area Add Expa... of the device.
Result: The Add object dialog box opens, displaying only those expansion modules that can be connected to the selected device like in the graphic below for an M238 logic controller.
150
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 2
Action Select the expansion module you want to add to the device from the list on the left-hand side and click the Add and close button. Result: The expansion module will be displayed in the graphical configuration editor on the right-hand side of the device.
The expansion modules added to a device are displayed on the right side of the device icon. You can hide or display them by clicking the small arrow above the Add Expa... button. To configure them, double-click their icons. NOTE: When you add a TWDNOI10M3 object, that is an AS-Interface Master Module, the corresponding Virtual AS interface bus fieldbus manager will automatically be inserted. To add AS-Interface slave modules, proceed as described in the Adding Slave Devices to a Fieldbus Manager (see page 76) paragraph above. For more information about adding expansion modules refer to the following Programming Guides of the controllers: z XBTGC HMI Controller - Programming Guide z M238 Logic Controller - Programming Guide z M258 Logic Controller - Programming Guide for TM5 and PCI Expansion Modules z LMC058 Logic Controller - Programming Guide for TM5 and PCI Expansion Modules Expansion Module Configuration For more information about modules configuration refer to the following Programming Guides of the expansion modules: z TM2 Expansion Modules Configuration - Programming Guide z TM5 Expansion Modules Configuration - Programming Guide z TM5 PCI Modules Configuration - Programming Guide Monitoring the Expansion Bus Status Use the following function regularly to monitor the expansion bus status:
Type of Expansion Modules TM5 Function GVL TM5_Module_R
EIO0000000067 10/2010
151
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
SoMachine-Network Manager Must be used if you want to connect an XBTGT, XBTGK or XBTGH HMI through SoMachine protocol offering transparent exchange of data and multiple download capability (download of controller and HMI applications through 1 unique connection PC-controller or PC-HMI). Modbus IOScanner Modbus RTU or ASCII protocol manager used to define implicit exchanges (I/O scanning) with Modbus slave devices. Used for Modbus RTU or ASCII protocol in master or slave mode. CANopen manager for optimized controllers (M238, XBTGC, XBTGT, XBTGK, ATV IMC) CANopen manager for performance controllers (M258 and LMC058) CANmotion manager for LMC058 Motion Controller CAN1 port only. Modbus TCP manager for controllers with Ethernet port. EtherNet/IP manager for controllers with Ethernet port.
Serial line
152
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Adding the Communication Manager Proceed as follows to configure the communication manager:
Step 1 Action In the Devices window right-click the bus interface (Serial Line or CANbus) and select Add Device... from the context menu. Result: The Add Device dialog box will be displayed. In the Add Device dialog box select <All vendors> from the list box Vendor. Note: You can sort the devices by brand by clicking on the list box Vendor. Select the Communication manager from the list below. Rename your device by typing a name in the Name textbox. Note: The name must not contain any space. If you do not rename the device, a name is given by default. Click the Add Device button. Configure the Communication manager.
2 3 4
5 6
NOTE: You can only add 1 manager per interface (Serial line or CANbus).
EIO0000000067 10/2010
153
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
2 3 4
Access to Diagnostic Information To get diagnostic information of devices on CANopen use the CiA 405 library (see SoMachine, CANopen Management Functions, CAA CiA 405 Library Guide). Access to Configuration Diagnostic To optimize the CAN master performance, CAN diagnostics are external from the CAN master in the controller. The CAN diagnostic structure is defined in the CanConfig Extern (version 3.3.1.40) library available in the Library Manager. The structure g_aNetDiagnosis contains the most recent diagnostic information from the slaves. The structure is updated every time a slave is configured, for whatever reasons.
154
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
This structure can be used within the program to do the following: z Monitoring the response of the slave(s) configured via SDO messages. z Monitoring the master for any abort messages from the slaves before allowing a machine / application start-up. This structure must be in place and active within the user application during testing, debugging and commissioning of the application. When the machine and its controlling application has been commissioned and is stable, then it would be possible to disable this code from execution. However, if during the lifecycle of an application and the machine or process that controls, slaves are added or replaced in the operational system, then the diagnostic structure should continue to remain active in the application.
WARNING
UNINTENDED EQUIPMENT OPERATION
z z
Use the g_aNetDiagnosis data structure within the application to monitor CAN slave responses to configuration commands. Verify that the application does not start-up or put the machine or process in an operational state, in the event of receiving SDO abort message(s) from any of the CAN slaves.
Failure to follow these instructions can result in death, serious injury, or equipment damage. After adding the CanConfig Extern library to your application, use the Net Diagnostic definition within your application to test for SDO abort messages from the CAN slaves. To help you better understand the use of the CAN diagnostic data structure, the following code example is provided: IF g_aNetDiagnosis[CAN_Net_Number].ctSDOErrorCounter = 0 THEN (* No error is detected in the configuration*) ELSE (* An error has been detected during configuration. Get the latest error information.*) // node ID of the slave which sent the abort code ReadLastErrorNodeID := g_aNetDiagnosis[CAN_Net_Number].usiNodeID; // index used in the aborted SDO ReadLastErrorIndex := g_aNetDiagnosis[CAN_Net_Number].wIndex;
EIO0000000067 10/2010
155
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
// subIndex used in the aborted SDO ReadLastErrorSubIndex := g_aNetDiagnosis[CAN_Net_Number].bySubIndex; //SDO abort code ReadLastErrorSdoAbortCode := g_aNetDiagnosis [CAN_Net_Number].udiAbortCode; (* Do not allow the start-up or other operation of the machine or process *) END_IF NOTE: In this example, the CAN_Net_Number would be 0 for the CAN0 port, and if the controller is so equipped, 1 for the CAN1port.
156
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
EIO0000000067 10/2010
157
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7.4
158
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
EIO0000000067 10/2010
159
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Within the SoMachine project the libraries are available z either for the specified controller (Library Manager in the Devices window for each controller, where it is a subnode of the Application node) z or globally (Library Manager in the POUs window for the whole project) The figure below shows the Library Manager in the POUs window and the Library Manager in the Devices window on the left-hand side of the SoMachine PROGRAM tab:
160
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
For more information about library management, refer to CoDeSys online help: Basic Concepts of CoDeSys / Library Management. For more information about Library Repository, refer to CoDeSys online help: Menu Commands / Installation / Library Repository. For more information about Library Manager, refer to CoDeSys online help: Editors / Library Manager Editor. In SoMachine, features embedded in libraries might be used for the automation as well as for the system (internal). In both cases, libraries are managed with the Library Manager of SoMachine.
EIO0000000067 10/2010
161
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
The libraries are grouped in the following categories to provide a better overview: z Application: libraries used in the automation applications z Communication: libraries used for specific communication features z Controller: libraries dedicated to SoMachine controllers z Devices: libraries dedicated to distributed devices management (TeSys, Altivar, Lexium) z Intern: system libraries for SoMachine internal usage and controllers runtimes z Miscellaneous: libraries not categorized z Solution: libraries dedicated to applications solutions (Packaging, Hoisting, Conveying) z System: system libraries for SoMachine internal usage and controllers runtimes z Target: platform-specific libraries z Util: libraries providing additional utility functions
162
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Namespace A library namespace is a symbol that allows the unique access to the attached library components (functions, function blocks, variables). The use of namespaces is optional, but necessary if 2 components of 2 different libraries used in the same project have the same name. The full name <namespace>.<component> will then allow a unique access to the correct component.
Case 1 Description There is a function block GEN in the library Util. The namespace of the library Util is Util. An instance of the function block GEN can be declared with or without the library namespace if the name GEN is unique within the project: MyGenerator: Util.GEN; or MyGenerator: GEN; A function block GEN has been created within the project. The use of the library Util namespace will allow the system to access the function block GEN of the library Util. Without namespace, the project function block GEN will be accessed: MyGenerator_Util: Util.GEN; MyGenerator_Project: GEN; Another library, also containing a function block called GEN, is declared in the project with namespace NewLib. The use of the namespace becomes mandatory to identify the correct function block GEN to be accessed: MyGenerator_Util: Util.GEN; MyGenerato_NewLib: NewLib.GEN;
A default namespace is defined for each library. Schneider Electric libraries default namespaces start with the prefix SE. Default namespace of a library declared in a project can be customized in the library Properties editor called from the Library Manager (In the Library Manager of a project, right click on the library then select the Properties field). Placeholder Placeholder is a mechanism used to manage the compatibility between versions of devices and versions of libraries. When SoMachine or existing devices are upgraded or when new devices are integrated, attached Device Description Files are installed. The Device Description File contains the placeholders that define versions of libraries compatible with the device version.
EIO0000000067 10/2010
163
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
When manually adding a library to a device, use the placeholder to have compatibility between the device version and the library version. NOTE: The placeholders are defined in the Device Description Files. When the user creates a new library, there is no placeholder defined in the Device Description Files for this new library. The placeholder mechanism can then not be used when adding this custom library to the device library manager. In a project created with a previous version of SoMachine software, the versions of the libraries declared in the project will be either: z kept unchanged for libraries declared with a specified version, z automatically updated with latest versions for libraries declared using the latest version concept (version identified with * in the Library Manager), z automatically updated with the versions defined in the controller Device Description File after a controller device update command for libraries declared using the placeholder concept.
WARNING
UNINTENDED EQUIPMENT OPERATION
z z
Verify the SoMachine libraries contained in your program are the correct version after updating SoMachine software. Verify that the library versions updated are consistent with your application specifications.
Failure to follow these instructions can result in death, serious injury, or equipment damage. Different ways to Declare a Library in a Project There are different ways to declare a library in a project. The libraries are automatically declared when adding: z a controller: z IEC 61131 basic libraries: Standard and Util libraries z Controller PLCSystem library z Other libraries to manage embedded controller features (for example: M238 High Speed Counting)
z z z
specific controller features (for example: DataLogManager, Visualization) a fieldbus manager (for example: CANopen or CANmotion manager) a fieldbus device (for example: TeSys, Altivar, Lexium)
Some libraries must be added manually (for example: Toolbox and Solution libraries). NOTE: You should use only functions and function blocks documented in the online help or function or function blocks that you have thorougly tested with your application.
164
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Category: Communication The following table describes the libraries available in the Communication category:
Name IoDrvASI refer to AS-Interface (see Modicon M238 Logic Controller, Programming Guide) IoDrvModbusSerial Namespace SEN_ASI Description AS-Interface bus management functions USER YES
SEN_MODBUS Modbus devices I/O scanning NO management for Modbus_IOScanner manager (for further information about Modbus Manager configuration, please refer to online help CoDeSys / Editors / Device Editors / Modbus Device Editor)
EIO0000000067 10/2010
165
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Name M2xx Communication refer to Functions to Get/Set Serial Line Configuration (see Modicon M238 Logic Controller, Programming Guide) Modem refer to Modem Library (see SoMachine, Modem Functions, Modem Library Guide) PLCCommunication refer to PLCCommunication Library (see SoMachine, Modbus and ASCII Read/Write Functions, PLCCommunication Library Guide)
Namespace SEN_COM
Description Serial Line port configuration getting and setting on M238, M258 and LMC058 controllers
USER YES
SEN_MOD
YES
SEN
Management of explicite data exchanges between controller and devices through Modbus or ASCII protocols
YES
Category: Controller The following table describes the libraries available in the Controller category:
Name DataLogging refer to DataLogging Library (see SoMachine, Data Logging Functions, DataLogging Library Guide) Namespace SEDL Description Data logging management of controllers that support file management operations USER YES
166
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
The following table describes the libraries available in the Controller ATV IMC category:
Name ATV IMC HSC refer to High Speed Counting (see ATV IMC Drive Controller, High Speed Counting, ATV IMC HSC Library Guide) Namespace SEC_HSC Description ATV IMC High Speed Counting management USER YES
ATV IMC PLCSystem SEC refer to PLCSystem Library (see ATV IMC Drive Controller, System Functions and Variables, ATV-IMC PLCSystem Library Guide) ATV IMC SysLib V2.3 refer to ATV-IMC UserLib & SysLib Library Guide ATV IMC UserLib refer to ATV-IMC UserLib & SysLib Library Guide SEC_SL23
YES
Functions and Function YES Blocks for compatibility with Controller Inside applications (CoDeSys v2.3) ATV IMC - ATV71 host interface management YES
SEC_USER
The following table describes the libraries available in the Controller LMC058 category:
Name Namespace Description LMC058 Expert I/O management USER YES
LMC058 Expert IO SEC_EXP z refer to High Speed Counting (see Modicon LMC058 Motion Controller, High Speed Counting, LMC058 Expert I/O Library Guide) z refer to Pulse Width Modulation (see Modicon LMC058 Motion Controller, Pulse Width Modulation, LMC058 Expert I/O Library Guide) LMC058 Motion SEC_MC
YES
EIO0000000067 10/2010
167
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Name LMC058 PLCSystem refer to PLCSystem Library (see Modicon LMC058 Motion Controller, System Functions and Variables, LMC058 PLCSystem Library Guide) LMC058 Relocation Table
Namespace SEC
USER YES
SEC_RELOC
System library for Relocation Table (see Modicon LMC058 Motion Controller, Programming Guide) management.
NO
The following table describes the libraries available in the Controller M238 category:
Name M238 ASi Interface M238 HSC refer to High Speed Counting (see Modicon M238 Logic Controller, High Speed Counting, M238 HSC Library Guide) Namespace SEC_ASIITF SEC_HSC Description USER
System library for ASNO Inteface bus management M238 High Speed Counting management YES
M238 PLCSystem SEC refer to PLCSystem Library (see Modicon M238 Logic Controller, System Functions and Variables, M238 PLCSystem Library Guide) M238 PTOPWM refer to Pulse Train Output / Pulse Width Modulation (see Modicon M238 Logic Controller, Pulse Train Output, Pulse Width Modulation, M238 PTOPWM Library Guide) M238 Relocation Table
YES
YES
SEC_RELOC
System library for NO Relocation Table (see Modicon M238 Logic Controller, Programming Guide) management.
168
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
The following table describes the libraries available in the Controller M258 category:
Name Namespace Description M258 Expert I/O management USER YES
M258 Expert IO SEC_EXP z refer to High Speed Counting (see Modicon M258 Logic Controller, High Speed Counting, M258 Expert I/O Library Guide) z refer to Pulse Width Modulation (see Modicon M258 Logic Controller, Pulse Width Modulation, M258 Expert I/O Library Guide) M258 PLCSystem refer to PLCSystem Library (see Modicon M258 Logic Controller, System Functions and Variables, Modicon M258 PLCSystem Library Guide) M258 Relocation Table SEC
YES
SEC_RELOC
System library for Relocation NO Table (see Modicon M258 Logic Controller, Programming Guide) management.
EIO0000000067 10/2010
169
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
The following table describes the libraries available in the Controller XBTGC category:
Name Namespace Description XBTGC High Speed Counting management USER YES
XBTGC HSC SEC_HSC refer to High Speed Counting (see Magelis XBT GC HMI Controller, High Speed Counting, XBT GC HSC Library Guide) XBTGC PLCSystem refer to PLCSystem Library (see Magelis XBTGC, XBTGT, XBTGK HMI Controller, System Functions and Variables, XBTGx PLCSystem Library Guide) XBTGC PTOPWM refer to Pulse Train Output / Pulse Width Modulation (see Magelis XBT GC HMI Controller , Pulse Train Ouput, Pulse Width Modulation, XBT GC Library Guide) SEC
YES
Category: Devices The following table describes the libraries available in the Devices category:
Name Altivar Library refer to Altivar Library Guide Namespace SE_ATV Description IEC 61131-3 standard compliant function blocks for the control of ATV variable speed drives IEC 61131-3 standard compliant function blocks for the control of Lexium Integrated Drives IEC 61131-3 standard compliant function blocks for the control of Lexium 32, Lexium 05 and Lexium SD3 drives on CANopen fieldbus USER YES
Integrated Lexium Library refer to Integrated Lexium Library Guide Lexium Library refer to Lexium Library Guide
SE_ILX
YES
SE_LXM
YES
170
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Namespace SE_TESYS
Description Control of TeSys U motor starter-controller and TeSys T motor management system. The library also offers function blocks for generic control of 1 or 2 directions / 1 or 2 speed motors. Functions SM_Servo_Startup and SM_Stepper_Startup and associated Vizualisation components to ease motion drives and steppers commissioning.
USER YES
SEM_LXM_SM
YES
Category: Solution The following table describes the libraries available in the Solution category:
Name Conveying refer to Conveying Hoisting refer to Hoisting Packaging refer to Packaging Namespace SE_CONV SE_HOIST SE_PACK Description Conveying applications function blocks Hoisting applications function blocks Packaging applications function blocks USER YES YES YES
Category: Util The following table describes the libraries available in the Util category:
Name Toolbox refer to Toolbox (see SoMachine, Miscellaneous Functions, Toolbox Library Guide) Namespace SE_TBX Description USER
Set of utility Functions and Function YES Blocks complementary to the automatically declared Standard and Util libraries
EIO0000000067 10/2010
171
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
3S - Smart Software Solution GmbH Libraries Libraries available in (Miscellaneous) category (not categorized): some libraries for Modbus TCP system management, not for USER. Libraries available in Intern, Intern CAA, Intern CANbus, Intern IODrivers categories: libraries for FDT, CAA, CANbus, I/O...system management, not for USER. The following table describes the libraries available in the Intern SoftMotion category:
Name SM3_Basic Namespace SM3_Basic Description USER
Functions for SoftMotion basic YES management (for further information about basic management, please refer to CoDeSys / Libraries / SoftMotion Libraries / SM3_Basic Library) Functions for SoftMotion CNC YES management (for further information about CNC management, please refer to CoDeSys / Libraries / SoftMotion Libraries / SM3_CNC Library) SoftMotion system management libraries NO
SM3_CNC
SM3_CNC
SM3_Drive_
System Libraries The following table describes the library available in the (Miscellaneous) category:
Name CmpEventMgr Namespace Description Event system management library USER NO
172
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
The following table describes the libraries available in the Application Common category:
Name Standard64 Standard Namespace Standard64 Standard Description Functions for wide characters strings management and long timers USER YES
IEC programming standard functions and YES function blocks (for further information about standard functions, please refer to CoDeSys / Libraries / Standard Library). Programming additional functions and YES function blocks (for further information about additional functions, please refer to CoDeSys / Libraries / Util Library)
Util
Util
Libraries available in (Intern) category: some of these libraries are for internal system use only. The following table describes the libraries available in the System SysLibs category:
Name Cmp Sys SysTime refer to Real Time Clock management (see SoMachine, Getting & Setting Real Time Clock, SysTime Library Guide) Namespace SysTime Description System management libraries Controller Real Time Clock management USER NO YES
The following table describes the library available in the System SysLibs23 category:
Name Sys23 Namespace Description USER
EIO0000000067 10/2010
173
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
CAA Technical Workgroup Libraries The following table describes the libraries available in the Application CAA category:
Name CAA Namespace Description Libraries from CoDeSys Automation Alliance workgroup Functions blocks for CANopen fieldbus management from application USER NO
CAA CiA 405 refer to CAA CiA 405 Library (see SoMachine, CANopen Management Functions, CAA CiA 405 Library Guide)
CIA405
YES
The following table describes the library available in the Intern CAA category:
Name CAA Namespace Description Libraries from CoDeSys Automation Alliance workgroup USER NO
174
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
2 3
In your library project create your: functions and function blocks datatype definitions global variables visualization objects libraries NOTE: Only the objects managed in the POUs window will be considered for a library project. NOTE: If you add standard SoMachine libraries to your own library, always use placeholders to reference them. For details on referencing libraries by placeholders refer to the Adding Libraries chapter (see page 137).
Execute the command File Save project and install library into library repository. Result: Your library is now installed on your PC and can be added to any project on your PC using the Library manager.
NOTE: For more detailed information refer to the CoDeSys part of the online help. To check the syntax and find your potential errors, use the command Check all Pool objects in the menu build, before using Save the project as a compiled library or Save project and install library into library repository. It is best to first code your logic in a regular project application and use the tools available to debug your logic, such as breakpoints and inspection of data values. Once a library is compiled, the logic can not be viewed or modified.
EIO0000000067 10/2010
175
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7.5
176
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
EIO0000000067 10/2010
177
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 2
Action In the Add Device dialog box select EthernetIP node to create an Ethernet IP slave device. Or select the ModbusTCP Slave Device to create a Modbus TCP slave device. Enter a Name and click the Add Device button.
178
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 3
Action Add another device or click the Close button to close the dialog box. Result: The Ethernet node in the Devices window now contains a sub node for Ethernet IP and / or Modbus TCP with the name you entered. Double-click the sub node and configure your Ethernet device in the editor on the right-hand side. The figure below shows the configuration of a ModbusTCP slave device as an example:
For further information on the individual settings refer to the CoDeSys online help.
EIO0000000067 10/2010
179
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
180
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Configuring the Transmission Rate To configure the transmission rate for CANopen communications, proceed as follows:
Step 1 Action In the Devices window double-click the entry CAN that is provided as a subitem of your M238 Logic Controller if it is equipped with a CANopen interface.
Result: The tabbed configuration dialog box for CANopen communications will be displayed on the righthand side. 2 In the CANbus tab configure the transmission rate:
From the Baudrate list select the transmission rate of your CANopen connection, by default 250,000 bit/s. To inhibit access to the NMT commands and Service data object (SDO) parameters, that are provided in the Status tab of each device when you are logged in, while the controller is in RUN mode, select the Online Bus Access check box.
EIO0000000067 10/2010
181
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Creating and Configuring the CANopen Manager To create and configure the CANopen Manager, that serves as CANopen master and that is required for CANopen communications, proceed as follows:
Step 1 Action In the Devices window right-click the node CAN that is provided as a sub node of your M238 Logic Controller and select the command Add Device... from the context menu:
182
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 2
Action In the Add Device dialog box select the CANopen_Manager. Adapt the default Name, if required, and click the Add Device button:
EIO0000000067 10/2010
183
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 3
Action The Add Device dialog box remains open. Click the Close button to close the dialog box. Result: The CAN node in the Devices window now contains a CANopen Manager sub node.
To configure your CANopen device, double-click its entry in the Devices window. Result: The configuration dialog box for CANopen devices, the so-called CANopen_Manager, will be displayed on the right-hand side. When configuring the CANopen_Manager and the CANopen devices, consider the hints on nodeguarding and heartbeat settings in the following paragraphs.
For adding a CANopen device, refer to the Adding Devices chapter (see page 147). Nodeguarding Settings The node Life time (Life time = Guard time x Life time factor) must be greater than twice the task cycle time: z Guard time > task cycle time z Life time factor >= 2 Schneider Electric recommends the following settings:
Parameter Guard time Life time factor Value 200 ms 2 (1 is not allowed)
184
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Heartbeat Settings The CANopen_Manager heartbeat producer time must be equal to or greater than the task cycle. To avoid jitter, choose a producer time that is a multiple of the task cycle: z CANopen_Manager Producer time >= Task cycle time The Node heartbeat consumer time must be greater than twice the CANopen_Manager heartbeat producer time: z Node Consumer time >= 2.5 x CANopen_Manager Producer time The Node heartbeat producer time must be equal to or greater than the task cycle: z Node Producer time >= Task cycle time Schneider Electric recommends the following settings:
Parameter CANopen_Manager Producer time Node Consumer time Node Producer time Value 200 ms 500 ms 200 ms
NOTE: Nodeguarding can be activated (configuration in slaves) only if heartbeat producer AND consumer are de-activated.
EIO0000000067 10/2010
185
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Note: The communication settings must be identical for each device connected.
186
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Protocol Managers For each serial line interface, one of the following Protocol Managers is required:
Protocol Manager ASCII Manager Modbus Manager Modbus IOScanner Description Used to transmit and / or receive data with a simple device. Used for Modbus RTU or ASCII protocol in master or slave mode. Modbus RTU or ASCII protocol manager used to define implicite exchanges (I/O scanning) with Modbus slave devices. Must be used if you want to connect an XBTGT, XBTGK or XBTGH HMI through SoMachine protocol offering transparent exchange of data and multiple download capability (download of controller and HMI applications through 1 unique connection PC-controller or PC-HMI).
There is one Protocol Manager preconfigured for each serial line interface, but it can be removed and configured according to your individual requirements.
EIO0000000067 10/2010
187
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Adding a Protocol Manager To add a Protocol Manager to a serial line interface, proceed as follows:
Step 1 Action In the Devices window right-click the Serial Line nubnode and select the command Add Device from the context menu. Result: The Add Device dialog box will be displayed.
From the Add Device dialog box select the Protocol Manager that suits your requirements, adapt the Name and click the Add Device button. Result: The selected manager will now be displayed in the Devices window as a subnode of the Serial Line / Serial Line 1 / Serial Line 2 node.
188
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 3
Action To configure the Protocol Manager, double-click its entry in the Devices window. Result: The tabbed configuration dialog box for the selected Protocol Manager will be displayed on the right-hand side. For further information on configuring the individual Protocol Managers, refer to the Programming Guide of your controller or to the CoDeSys part of the online help.
You can now add your devices as described in the Adding Devices to a Communication Manager chapter (see page 154).
EIO0000000067 10/2010
189
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
190
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 2
Action In the Add Device dialog box expand the Communication Expansion Modules item and select the entry TWDNOI10M3.
Adapt the default Name, if required, and click the Add Device button. Result: The node of your controller now contains the AS-Interface Master Module as sub node TWDNOI10M3 (TWDNOI10M3) ASi_Master (ASi Master) in the Devices window.
EIO0000000067 10/2010
191
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 3
Action To configure your AS-Interface Master Module, double-click its entry in the Devices window. Configure your AS-Interface Master Module in the editor on the right-hand side.
For further information on configuring AS-Interface Master Modules, refer to the CoDeSys online help.
192
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Creating and Configuring an AS-Interface Slave Module To create an AS-Interface slave module, proceed as follows:
Step 1 Action Right-click the TWDNOI10M3 (TWDNOI10M3) ASi_Master (ASi Master) node in the Devices window and select the Add Device command from the context menu. Result: The Add Device dialog box will be displayed. Select an AS-Interface slave device from the list, adapt the default Name, if required, and click the Add Device button.
EIO0000000067 10/2010
193
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 3
Action The Add Device dialog box remains open. Add another AS-Interface slave device, or click the Close button to close the dialog box. Result: The node of your controller now contains the AS-Interface slave device as a new sub node of TWDNOI10M3 (TWDNOI10M3) ASi_Master (ASi Master) in the Devices window. To configure your AS-Interface slave device, double-click its entry in the Devices window. Configure your AS-Interface slave device in the editor on the right-hand side.
For further information on configuring AS-Interface slave modules, refer to the CoDeSys part of the online help.
194
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7.6
SoMachine Commands
EIO0000000067 10/2010
195
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Online
Online
NOTE: See the Programming Guide for your controller for important safety-related information concerning SoMachine commands.
196
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
2 3
EIO0000000067 10/2010
197
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
198
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
3 4 5 6 7
In the USB Mass Storage dialog box click the plus sign to create a new row for a new command. Select the commands for the script that will be executed on the controller from the Command list box or select already available macros from the Macros list. Select the source for the commands from the Source list box or click the ... button to navigate to the folder that contains the source. To change the Destination subfolder on the USB mass storage device, open the Destination list and select the suitable folder. To create the script, click the Generate button at the bottom or the gearwheel icon from the toolbar at the top of the dialog box. Result: A Browse For Folder dialog box opens. Browse to the root directory of your USB mass storage device (do not open a subfolder) and click Open. Result: The SoMachine project and the file management script are saved to the USB mass storage device.
EIO0000000067 10/2010
199
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Installing the SoMachine Project on a Controller To install the SoMachine project on a controller, merely plug the USB mass storage device into a USB port of the controller. The script on the USB device will be executed automatically which is indicated by the LEDs of the controller as follows:
Action Performed LED Indication Comment The red LED is on until the communication to the USB mass storage has been established. You can remove the USB mass storage device. See the log file on the USB mass storage device for reasons why the script file could not be executed successfully.
USB mass storage device red LED is on is plugged into the controller. Script file is executed. Script file execution has been completed successfully. green LED is blinking green LED is on
Log File A log file is automatically saved in the folder of the script file. It records every execution of the script file with header information (date, time, and machine information) and the result (successful, or not successful like: source file not available, incorrect destination, incorrect command, destination full). Any new information is added to the file, information will not be overwritten.
200
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Exporting a Vijeo-Designer Project from SoMachine To export the Vijeo-Designer project from an existing SoMachine project in order to create a single VDZ file, proceed as follows:
Step 1 Action In SoMachine open the File menu and select the Export Vijeo-Designer project... command. Result: A browse dialog box will be displayed. Browse to the folder where you want to save the exported VDZ file and click Save. Result: The extracted Vijeo-Designer project is saved as VDZ file and can be opened with Vijeo-Designer.
EIO0000000067 10/2010
201
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7.7
202
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
EIO0000000067 10/2010
203
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 3
Action On the right-hand side, enable the check box Disable automatic symbol export.
NOTE: Activating the Disable automatic symbol export function inhibits the automatic export of SoMachine variables defined as Symbols to Vijeo-Designer. In order to perform this transfer manually, right-click the Symbol configuration node in the Devices window and execute the Export Symbols to Vijeo-Designer command. If you do not perform this manual transfer, Vijeo-Designer may not show the correct symbols which, in turn, may lead to errors in the project.
WARNING
UNINTENDED EQUIPMENT OPERATION Before you start working in Vijeo-Designer and if you have activated the Disable automatic symbol export, execute the Export Symbols to Vijeo-Designer command. Failure to follow these instructions can result in death, serious injury, or equipment damage.
204
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Variable Types for SoMachine - HMI Data Exchange The following table lists the variable types for SoMachine - HMI data exchange:
Variable Type Variable Type in Comment in SoMachine Vijeo-Designer BOOL BYTE WORD DWORD SINT INT DINT USINT UINT UDINT REAL STRING WSTRING BOOL Integer UINT UDINT Integer INT DINT Integer UINT UDINT REAL STRING STRING ------------WSTRING is supported in Vijeo-Designer as a general STRING type. This means that you can either exchange only STRINGS or only WSTRINGS with the HMI. A mixture of these 2 variable types is not allowed. If you use WSTRINGs, all your strings must be WSTRINGs. Indicate to the Vijeo-Designer driver that all strings should be managed as UNICODE WSTRINGs as follows: Select the node SoMachineNetwork or SoMachineCombo in the Navigator tree of Vijeo-Designer and set the parameter String Encoding to the value Unicode. In Vijeo-Designer you can only reference the elements of an array, not the whole array. Example: Your array consists of SINTs called myValues. In Vijeo-Designer you can reference myValues[0] or myValues[5] and put this into a variable on the HMI controller. Arrays must not contain more than 2,048 elements. If you try to use arrays with more than 2,048 elements in Vijeo-Designer, an error message will be issued. In Vijeo-Designer you can only reference the elements of a DUT, not the whole DUT. This behavior is similar to the behavior of arrays.
Array
DUT
EIO0000000067 10/2010
205
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Unsupported Variable Types The following variable types are not supported for SoMachine - HMI data exchange: all 64-bit integer formats z LREAL z all time and date formats z non-zero based arrays: You cannot import an array that is defined like myArray[1..100].
z
For further information on variable types for SoMachine - HMI data exchange see the Vijeo-Designer online help. Identifier Length In Vijeo-Designer the maximum length of the variable name is limited to 32 characters.
206
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
The left part of the editor window shows the variables that are currently available in the application. To see all variables, open the subitems by clicking the plus signs. To provide variables to HMI terminals, select individual variables or even complete nodes in the list on the left-hand side and click the arrow button in the middle to copy them to the right side, that is to provide them to HMI terminals. You can also assign read/write access rights to each variable individually in the Access Rights column. Note: Only variables on elementary data types are available for interchange with HMI terminals. 3 For your settings to become valid click the Download link in the Symbol configuration editor.
NOTE: The publishing mechanism consumes an overhead of about 50 kbyte in the controller. Each published variable is consuming 11 bytes within the controller application.
EIO0000000067 10/2010
207
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
208
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
EIO0000000067 10/2010
209
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 3 4
Action In the Move to SoMachine dialog box open the subfolders of the devices defined in SoMachine to see the levels where variables are defined (POU or GVL). Select the POU or GVL to which you want to add the selected Vijeo-Designer variable(s) and click OK.
Result: The selected variable(s) has / have been moved to the selected SoMachine POU or GVL and is / are available throughout the SoMachine project.
210
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
M238 controller SoMachine manager configuration - no default settings HMI panel IO-Manager configuration using a driver: SoMachine - network with at least 1 Scan-Group
Parameter Physical Medium Baud rate Parity Data bits Stop bits Equipment Name Value RS485 115200 none 8 1 controller device name (available in the communication settings dialog)
Configuration of XBTGC:
Device XBTGC controller HMI panel Driver Configuration no configuration required IO-Manager SoMachine - Combo with at least 1 ScanGroup
EIO0000000067 10/2010
211
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7.8
SoMachine Templates
212
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
General Notes When using SoMachine templates, note the following: z Templates are not controller-specific and can therefore be made available for any controller. Make sure that the controller, to which you add the template, is capable of executing the functionality contained in the template. z After the template has been installed, you can freely adapt the created objects to your individual requirements. z The templates function does not support Vijeo-Designer applications. This means that HMI applications are not included in the SoMachine templates.
EIO0000000067 10/2010
213
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
z
z z
It is possible to install one template several times on the same controller device. In order to avoid naming conflicts when creating the same objects several times, they are renamed automatically during installation. For further information refer to the Naming of Objects section of the Adding Devices from Template chapter (see page 227). User-defined data types (DUT) or function blocks must be defined in a function block library if they should be used in templates. Templates do not support the use of direct representations of variables (for example %IX2.0) in templates. But you can, on the other hand, use direct representations with an incomplete address specification (for example %I*) in a template. For further information refer to the Variables configuration - VAR_CONFIG section of the CoDeSys online help.
214
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Supported Fieldbusses
List of Supported Fieldbusses SoMachine templates can include definitions of I/O devices. Those devices that are linked to the following fieldbusses can be included in SoMachine templates:
Fieldbus CANopen Fieldbus Configuration Information CANopen slave: z definition of send PDOs and receive PDOs z COB-IDs assigned to the PDOs z sequence of SDOs for slave initialization z further DTM-specific data, if applicable Modbus serial slave: z definition of slave channels for defining data being cyclically exchanged between controller and slave device z sequence of Modbus write services for initialization (configuration) of the Modbus slave device EtherNet/IP slave: z definition of connections that define data being cyclically exchanged between controller and slave device z sequence of user parameters for initialization (configuration) of the EtherNet/IP slave free SoftMotion devices: z SoftMotion basics like information on axis type and limits z the conversion between the position values received from the device and the units being used in the IEC program (scaling) z parameters related to the position control loop
EtherNet/IP
EIO0000000067 10/2010
215
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
CANmotion slave: z definition of send PDOs and receive PDOs z COB-IDs assigned to the PDOs z sequence of SDOs for slave initialization z SoftMotion basics like information on axis type and limits z the conversion between the position values received from the device and the units being used in the IEC program (scaling) z parameters related to the position control loop
216
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
EIO0000000067 10/2010
217
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Step 3
Action The Template Libraries view provides the following options: z You can either activate all available template libraries for your project by activating the checkbox Use All Installed Template Libraries. This is the default setting for any new projects. z Or you can select specific template libraries, that is the device or function templates they include, from the Selected Template Libraries list. NOTE: With the latter option it is neither possible to save new device or function templates into those template libraries that are not selected nor to use device templates or function templates from not selected template libraries for creating new field devices. Click OK to activate the selected template libraries for your project.
218
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
EIO0000000067 10/2010
219
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Template Administration For administration of the available device and function templates in SoMachine, select Tools Template Repository. The Template Repository dialog box opens:
The path to the directory where the template libraries are stored is displayed below the Location field. The Installed Templates box lists the installed templates in 2 groups: Device Templates and Function Templates. Each template library can either contain device templates or function templates.
220
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Installing Additional Template Libraries To add additional template libraries to this list, proceed as follows:
Step 1 2 3 Action Click the Install button in the Template Repository dialog box. Result: A File open dialog box opens. Browse to the folder where the template library file you want to install is saved. Select the library file you want to install and click OK. Result: The selected template library will be installed and will be indicated in the Template Repository dialog box, including the device or function templates it contains.
Removing Template Libraries (Device or Function Templates) To remove a template library (device or a function template), proceed as follows:
Step 1 2 Action In the Installed Templates list of the Template Repository dialog box, select the template library (device or function template) you want to remove. To remove the selected template library (device or function template), click the Uninstall button. Result: The selected template library (device or function template) will be removed from the installation.
Renaming Template Libraries (Device or Function Templates) To rename a template library (device or function template), proceed as follows:
Step 1 2 3 Action In the Installed Templates list of the Template Repository dialog box, select the template library (device or function template) you want to rename. Click on the name you want to change. Result: A text box opens. Enter the new name in the text box and press Enter or leave the text box. Result: The template library (device or function template) is now assigned the new name.
EIO0000000067 10/2010
221
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Creating a new Template Library To create a new template library, proceed as follows:
Step 1 Action To create a new template library for device templates, select the Device Templates node in the Installed Templates list and click the Create Library button of the Template Repository dialog box. Result: A new template library with a default name is added at the bottom of the Device Templates section of the Installed Templates list. To create a new template library for function templates, select the Function Templates node in the Installed Templates list and click the Create Library button of the Template Repository dialog box. Result: A new template library with a default name is added at the bottom of the Function Templates section of the Installed Templates list. Rename the new template library as stated above and fill it with device or function templates by using for example the copy and paste operations described below.
Saving Template Libraries as File The template libraries that contain device or function templates are SoMachinespecific XML files. To provide them for use on other PCs, proceed as follows:
Step 1 2 3 4 Action Select the template library you want to export in the Installed Templates list. Click the Save As File... button. In the Save File dialog box navigate to the folder where you want to save the template library file. Transfer the template library file to the other PC and install it by using the Template Repository.
Copy and Paste Operations for Template Libraries The Template Repository dialog box also supports the copy and paste operation for template libraries. To copy a template library with the device or function template it contains, select the respective item in the Installed Templates list and click the Copy button. Now click the Paste button to insert a copy of this template library with a default name in the Installed Templates list.
222
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
This new template library will automatically be inserted below the correct node. This means that template libraries that include device templates will automatically be inserted below the Device Templates node while template libraries including function templates will automatically be inserted below the Function Templates node. Replace the default name by a name of your choice. Copy and Paste Operations for Templates The Template Repository dialog box supports the copy and paste operation for device or function templates. To copy a device or function template, select the respective item from below a template librarys node in the Installed Templates list and click the Copy button. You can now paste a device template underneath a template library below the Device Templates node. A library can only be pasted into a library of the same kind. Replace the default name by a name of your choice.
EIO0000000067 10/2010
223
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7.9
224
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
EIO0000000067 10/2010
225
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
NOTE: The undo / redo function is not available for the process of creating I/O devices.
226
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Naming of Objects In order to avoid naming conflicts if the same device template is used as a basis for creating different I/O devices, the following naming conventions are applied to the I/O devices and the associated objects (FB, visualization and variables):
If the name of the original object... Case 1: contains the name of the original I/O device Example: the device template for the I/O device ATV1 contains a variable Var_ATV1_Input for a new device Axis1 being created with this device template, the new variable is correspondingly named Var_Axis1_Input. the name of the new device plus an underscore are inserted in the original name to form a unique new name. for a new device Axis1 being created with this device template, the new variable is correspondingly named Axis1_Var_Input1. this part of the object is replaced by the name of the new I/O device that is created. Then ...
Case 2: does not contain the name of the original device Example: the device template for the I/O device ATV1 contains a variable Var_Input1
EIO0000000067 10/2010
227
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Prerequisites for Devices The I/O devices including logic and visualization must meet the following criteria in order to be saved as device templates: z I/O devices including logic and visualization must be linked to the fieldbusses listed in the Supported Fieldbusses chapter (see page 215). z The device type must be installed in the Device Repository. Prerequisites for the Application You can only create templates from correct applications, which means that no errors are detected during the build process. Prerequisites for Including a Function Block into a Template In order to insert a function block into a template, it is required that the program including this function block is in fact executed (added to a task or called by another program). Otherwise it will not be considered when executing the Build command. Device Information Saved in Device Templates The following information of I/O devices is saved in device templates: z fieldbus configuration z I/O mapping of the I/O device z function blocks that are suitable for the I/O device z visualizations that are suitable for the I/O device
228
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
EIO0000000067 10/2010
229
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
3 4
230
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Information Displayed in the Save As Template Dialog Box The Save as Template dialog box provides the following information:
1 2 3
the type of the I/O device on which the device template is based the fieldbus type of the I/O device the name of the device template that will be created (initially the name of the original I/O device)
Defining a Name for the New Device Template Use the text box Template Name to define a name for your device template. By default, this text box includes the name of the selected I/O device. You can either type the name of your choice directly into this text box, or you can click the ... button to select an existing device template from the lists if you want to overwrite this device template.
EIO0000000067 10/2010
231
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Selecting the Template Library To select one of the previously installed or created template libraries in which the device template should be stored, proceed as follows:
Step 1 Action In the Save as Template dialog box click the ... button right to the Template Library text box. Result: The Select Template Library dialog box will be displayed. The Select Template Library dialog box displays all template libraries that have been installed for the current project or have been created. Write-protected template libraries are not displayed. To add the new device template to 1 of these template libraries, select the suitable entry and click OK.
Selecting the Function Blocks To select the function block instances that are handling the I/O device, proceed as follows:
Step 1 Action In the Save as Template dialog box click the ... button right to the Function Blocks text box. Result: The Select Function Block dialog box will be displayed. The Select Function Block dialog box displays those function block instances of the I/O device that meet the following requirements for template creation: z The function block must be linked to the I/O device. z The function block must be located in a program that is in fact executed (added to a task or called by another program). NOTE: It is recommended that the function block is only called once. Otherwise problems may occur detecting the correct call to be included in the template. Furthermore the function block type must be defined in a library.
The function block is linked to the I/O device if a function block parameter is connected with a variable that is used in the I/O mapping of the I/O device. z is connected with a predefined global variable (for example Axis_Ref) of the I/O device.
z
The following parameters will be saved in the template: z constants z all variables that are linked to the I/O device z those variables that are not linked to the I/O device but are defined in a POU NOTE: Variables that are defined in the GVL are not saved in the template. NOTE: Expressions are not saved in the template.
232
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Selecting the Visualizations To select the visualizations that are handling the I/O device, proceed as follows:
Step 1 Action In the Save as Template dialog box click the ... button right to the Visualizations text box. Result: The Select Visualizations dialog box will be displayed. The Select Visualizations dialog box displays those visualizations that are linked with the I/O device or with one of the selected function blocks. The visualization is linked to the I/O device if 1 property of the visualization uses a variable that is used in the I/O mapping of the I/O device.
A visualization is linked to a function block if a property of the visualization uses z a variable that is connected to a parameter of the function block. z the function block variable itself.
EIO0000000067 10/2010
233
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7.10
234
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
EIO0000000067 10/2010
235
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
2 3 4
Objects Created The function template creates the following objects in your project:
Object root folder I/O devices Description A new folder is created under the Application node in the Devices view that is named as defined in the Function Name text box. The I/O devices that are included in the function template are created using names that apply to the naming rules and are connected to the fieldbus master. The I/O mapping is automatically adjusted, if necessary.
236
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Object visualizations
Description The visualizations that are included in the function template are created below the root folder using names that apply to the naming rules. The properties of the visualization are automatically adjusted. The programs that are included in the function template are created below the root folder using names that apply to the naming rules. The names of those objects in the program that are part of the function template will be adjusted automatically. The traces that are included in the function template are created below the root folder using names that apply to the naming rules and can be used to trace variables belonging to the application function. The CAM tables that are included in the function template are created below the root folder using names that apply to the naming rules. They are only required if the application function includes SoftMotion devices. The task configuration is adjusted as required by the function template.
programs
traces
CAM tables
task configuration
global variable lists The global variable lists that are included in the function template are created below the root folder using names that apply to the naming rules. external variables Global variables whose global variable lists do not belong to the function template are restored in their original global variable list as follows: z If a global variable list with the original name does not already exist below the application it will be created automatically. z If a global variable with the original name does not already exist in this global variable list, it will be created automatically. If the type of global variable is not correct, SoMachine will issue an error detection message. persistent variables Persistent variables are restored in the respective variable list of the application as follows: z If a persistent variable list does not already exist below the application it will be created automatically with its original name. z If a variable with the original name does not already exist in the persistent variable list, it will be created automatically. If the type of persistent variable is not correct, SoMachine will issue an error detection message.
Any objects that are created with the instantiation of the function template are listed in the Messages pane.
EIO0000000067 10/2010
237
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Naming of Objects In order to avoid naming conflicts if you instantiate the same function template several times on the same controller device, the following naming conventions are applied to the application functions and the associated objects:
If the name of the original object... Case 1: contains the name of the application function this part of the object is replaced by the name of the new application function that is created. Example: the template original application function Axis contains a program Axis_Init Case 2: does not contain the name of the application function Example: the original application function Axis contains a program InitProg for a new application function Axis1 being created with this function template, the new program is correspondingly named Axis1_InitProg. the name of the new application function plus an underscore are inserted in the original name to form a unique new name. for a new application function Axis1 being created with this template, the new program is correspondingly named Axis1_Init. Then ...
NOTE: Use rather short names for your application functions so that they are completely displayed.
238
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Otherwise they will not be considered when executing the Build command. Objects Saved in Function Templates The following objects are saved in function templates: z all programs that are located directly in the application function folder as well as their sub-objects z all global variable lists that are located directly in the application function folder z all visualizations that are located directly in the application function folder z all CAM tables that are located directly in the application function folder z all traces that are located directly in the application function folder z all I/O devices that are used by any program or visualization that is included in the function template
EIO0000000067 10/2010
239
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
z
all global variables whose variable lists are not part of the function template but which are used by any program or visualization that is part of the function template all persistent variables that are used by any program or visualization that is part of the function template
NOTE: Any other object types are not saved in the function template (even if they are saved in the application function folder). Only use function blocks and data types that are stored in a library.
240
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Assigning a Template Name In the Template Name text box of the Save as Function Template dialog box you define the name under which the function template is stored in the template library. By default, this text box contains the name of the folder that contains your application function in the Devices view but you can adapt the name to your individual requirements. Selecting a Template Library So select one of the previously installed or created template libraries in which your new function template should be stored, proceed as follows:
Step 1 Action In the Save as Function Template dialog box click on the ... button next to the Template Library text box. Result: The Select Template Library dialog box will be displayed. The Select Template Library dialog box displays all template libraries that have been installed for the current project or have been created. Write-protected libraries are not displayed. To add your new function template to one of these template libraries, select the suitable entry and click OK. 241
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Overwriting an Existing Function Template To overwrite an existing function template with the selected application function, proceed as follows:
Step 1 2 3 Action In the Save as Function Template dialog box click the ... button right to the Template Name text box. Browse to the already available function template you want to replace. Select the function template you want to replace. Result: The name of this function template will be inserted in the Template Name text box and the name of the template library where it is stored in is inserted in the Template Library text box. Click OK to close the Save as Function Template dialog box and to replace the selected Function Template with the new application function.
242
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
7.11
EIO0000000067 10/2010
243
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Transferring Applications
Introduction To run an application, you must first connect the PC to the controller, then transfer the application to the controller. Transferring a project allows you to copy the current project from SoMachine to the controller memory. NOTE: Due to memory size limitation, some controllers are not able to store the application source but only a built application that is executed. This means that you are not able to upload the application source from the controller to a PC.
WARNING
UNINTENDED EQUIPMENT OPERATION Whenever you login to your controller, ensure the following: z The software application being downloaded must be installed on the intended device. Confirm you have entered the correct device designation or device address. z Guards must be in place so that unintended equipment operation will not cause injury to personnel or damage to equipment. z You must have read and understood the user documentation of the software and devices involved and must know how to operate the equipment. Failure to follow these instructions can result in death, serious injury, or equipment damage. Preconditions Your application must fulfill the following conditions before transferring it to the controller: z the active path must be set for the controller, z the application you want to transfer must be active, z the application must be free from compilation errors. Boot Application The Boot Application is the application that will be launched on controller start. This application is stored in the controller memory. To configure the download of the boot application, right-click the Application node in the Devices view and select the Properties command. A t the end of a successful transfer of a new application, a message is displayed asking you if you want to create the boot application.
244
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
You can manually create a boot application in the following ways: z In offline mode: Click Online Create boot application to save the boot application to a file. z In online mode, with the application being in STOP mode: Click Online Create boot application to download the boot application to the controller. Operating Modes The transfer method differs depending on the relationship between the loaded application and the application you want to transfer. The 3 cases are: z Case 1: The application in the controller is the same as the one you want to load. In this case, no transfer occurs, you just connect SoMachine to the controller z Case 2: You made modifications of the application that is loaded in the controller. In this case you can specify if you want to transfer all or parts of the modified application or keep the application in the controller as it is. z Case 3: The controller application is different to the one you want to load. In this case, you must specify if you want to connect the loaded application or if you want to load the new one. Transferring your Application to the Controller: Case 1
Step 1 2 Action To connect to the controller, select Online Login to Application[YourApplicationName; Plc Logic]. You are connected to the controller.
EIO0000000067 10/2010
245
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Login with online change only the modified parts of an already running project will be re-loaded to the controller. Login with download the whole modified application will be re-loaded to the controller. Login without any change the modifications are not loaded. Select what you want to do, click OK.
NOTE: See the Programming Guide for your controller for important safety-related information concerning the downloading of applications.
246
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
To download the new application to the controller, click OK otherwise, click Cancel.
NOTE: See the Programming Guide for your controller for important safety-related information concerning the downloading of applications.
EIO0000000067 10/2010
247
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Program
Running Applications
Introduction This part shows how to start/stop an application. RUN/STOP with SoMachine The controller can be started and stopped using SoMachine run on a PC connected to the controller. Click Online Start Application [ApplicationName: Plc logic] or CTRL+F5 or the Start Application [ApplicationName: Plc logic] button in the menu bar to start the application. Click Online Stop Application [ApplicationName: Plc logic] or CTRL+SHIFT+F5 or the Stop Application [ApplicationName: Plc logic] button in the menu bar to stop the application. RUN/STOP Input for Controllers Some controllers allow you to configure a Run/Stop input (for example %IX0.0...%IX1.5) to control application start/stop.
Status 0 Rising Edge 1 Description Stop the application. RUN command in SoMachine is not possible. Start the application. The application runs. RUN/STOP command in SoMachine is possible.
Refer to the manual of your controller to find out whether it supports this function.
248
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Commissioning
8
What's in this Chapter? This chapter contains the following topics:
Topic General Description of the Commissioning Tab Description of the Login/Logout Task Description of the Multiple Download Task Description of the Source Download Task Page 250 253 255 257
EIO0000000067 10/2010
249
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Commissioning
250
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Commissioning
Elements of the Commissioning Tab The following figure shows the Commissioning tab with a sample configuration:
1 2 3
The task selection pane lists the available tasks. The work area includes the graphical configuration editor with functions restricted to commissioning tasks. The information pane provides further information on the element selected in the work area as well as the online status of this device.
EIO0000000067 10/2010
251
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Commissioning
Online Status Information The online status is indicated in the graphical configuration editor for each device individually in different colors:
Online Status Not logged in Running Stopped Color yellow green red
The online status information is displayed in the information pane for the device selected in the graphical configuration editor. Editing Device and Communication Parameters To edit device parameters for commissioning the machine double-click the device icon in the graphical configuration editor or z right-click the device icon and select Edit parameters from the context menu.
z
Result: The Parameters configuration screen will be displayed for the selected device (see page 70). To edit communication parameters for commissioning the machine z double-click the network connection line in the graphical configuration editor or z right-click the network connection line and select Edit parameters from the context menu. Result: The network configuration screen will be displayed for the selected network connection (see page 84). NOTE: See the Programming Guide for your controller for important safety-related information concerning the editing of device and communication parameters.
252
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Commissioning
WARNING
UNINTENDED EQUIPMENT OPERATION Whenever you login to your controller, ensure the following: z Confirm you have entered the correct device designation or device address. z Guards must be in place so that unintended equipment operation will not cause injury to personnel or damage to equipment. z You must have read and understood the user documentation of the software and devices involved and must know how to operate the equipment. Failure to follow these instructions can result in death, serious injury, or equipment damage. The login procedure differs depending on whether your project consists of only 1 or of several applications. Login Procedure with Project Consisting of 1 Controller with 1 Application For login to a connected device, proceed as follows:
Step 1 Action In the Commissioning tab click the Login/Logout button from the task selection pane. Result: After successful login, the information line at the bottom of each device icon will indicate the status of the device using different colors (for example, Stop is indicated in red).
To log out, click the Login/Logout button in the task selection pane once again. Result: After successful logout, the information line at the bottom of each device icon will get the status not logged in or N/A with color yellow.
EIO0000000067 10/2010
253
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Commissioning
Login Procedure with Project Consisting of Several Controllers, Each with 1 Application For login to a connected device, proceed as follows:
Step 1 Action In the Commissioning tab click the Login/Logout button from the task selection pane. Result: The Login/Logout Applications dialog box will be displayed.
In the Login/Logout Applications dialog box select the application you want to login and click the OK button. Result: After successful login, the information line at the bottom of each device icon will indicate the status of the device using different colors (for example, Stop is indicated in red).
To log out, click the Login/Logout button in the task selection pane once again, deselect the selected applications, and click the Close button. Result: After successful logout, the information line at the bottom of each device icon will get the status not logged in or N/A with color yellow.
254
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Commissioning
In the Please select the applications for download section check each application you want to download the new source project to. 255
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Commissioning
Step 3 4 5
Action Select the Online change options that suit your application. For further details refer to the CoDeSys part of the online help. Select the Additional operations options that suit your application. For further details refer to the CoDeSys part of the online help. Click the OK button to start the download process. Result: A Multiple Download - Result message box will be displayed indicating for each application if the download process has been successfully completed.
NOTE: See the Programming Guide for your controller for important safety-related information concerning the Multiple Download feature.
256
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Commissioning
EIO0000000067 10/2010
257
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Commissioning
258
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Report
9
Report
The Report Tab The Report tab is only available after you have opened a SoMachine project. It provides tasks to create and customize a report of your project. The Task Selection Pane on the left shows the report creation steps: z Print Preview z Print Elements of the Report Tab This tab also provides the Customization task to adapt your report to your individual preferences.
EIO0000000067 10/2010
259
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Report
1 2 3
tasks for the report creation tree structure of your project for selection task for report customization
Buttons of the Report Tab The buttons in the work area allow you to view a tree structure of your project and to arrange the items within this structure. Each item of your project provides a check box. Select the check boxes of the items you want to be part of your report.
Buttons for Report Settings Move Up Move Down Meaning Click Move Up to move an item of your project upwards in the tree structure of your project. Click Move Down to move an item downwards in the tree structure of your project. Click Select All to select the check boxes of all your project items Click Select None to unmark the check boxes of all your project items
Select All
Select None
260
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Report
Meaning Click Expand All to unfold the details of the tree structure of all your project items Click Collapse All to close the view of the tree structure.
Expand All
Collapse All
EIO0000000067 10/2010
261
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Report
The Customization Task The Customization task allows you to customize your report according to your personal preferences. If you click the Customization button, the following screen opens:
1 2
The upper part of the work area provides options to customize your report. The lower part of the work area shows a preview of the page configuration. The boxes around the preview allow you to place information in the report.
262
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Report
EIO0000000067 10/2010
263
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Report
264
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
III
EIO0000000067 10/2010
265
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
266
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
10
10.1
EIO0000000067 10/2010
267
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Setting the Shortcuts and Menus to CoDeSys Standard To import the CoDeSys shortcuts and menus to your SoMachine graphical user interface, proceed as follows:
Step 1 2 Action Execute the Customize command from the Tools menu. Result: The Customize dialog box will be displayed. In the Customize dialog box click the Load button. Result: The Load Menu dialog box will be displayed.
268
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Step 3
Action In the Load Menu dialog box navigate to the folder ...\Program Files\Schneider Electric\SoMachine\CoDeSys\Settings, select the file CoDeSysStandard.opt.menu and click Open. Result: The Customize dialog box now shows the CoDeSys settings. To load these CoDeSys settings to the SoMachine graphical user interface, click OK.
NOTE: The menus and shortcuts of the SoMachine software differ, depending on the window or editor that is currently open.
EIO0000000067 10/2010
269
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
270
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Step 3
Action Open the Service Data Object tab and click New. Result: The Select item from object directory dialog box is displayed.
From the list of objects, select object 6423, enter 1 as Value and click OK. Result: Analog input transmission on the CANopen bus is activated. You can now configure parameters of the analog values as described in the hardware manual of your device.
EIO0000000067 10/2010
271
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
272
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
0-9
%I According to the IEC standard, %I represents an input bit (for example a language object of type digital IN).
%IW According to the IEC standard, %IW represents an input word register (for example a language object of type analog IN).
%MW According to the IEC standard, %MW represents a memory word register (for example a language object of type memory word).
%Q According to the IEC standard, %Q represents an output bit (for example a language object of type digital OUT).
%QW According to the IEC standard, %QW represents an output word register (for example a language object of type analog OUT).
1-phase counter A 1-phase counter uses 1 hardware input as counter input. It usually counts up or counts down when there is pulse signal in the input.
EIO0000000067 10/2010
273
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
2-phase counter A 2-phase counter uses the phase difference between 2 input counter signals to count up or count down.
A
AFB application function block
analog input An analog input module contains circuits that convert an analog DC input signal to a digital value that can be manipulated by the processor. By implication, the analog input is usually direct. That means a data table value directly reflects the analog signal value.
analog output An analog output module contains circuits that transmit an analog DC signal proportional to a digital value input to the module from the processor. By implication, these analog outputs are usually direct. That means a data table value directly controls the analog signal value.
application source The application source file can be uploaded to the PC to reopen a SoMachine project. This source file can support a full SoMachine project (for example, one that includes HMI application).
ARP The address resolution protocol is the IP network layer protocol for Ethernet that maps an IP address to a MAC (hardware) address.
ARRAY An ARRAY is a table containing elements of a single type. The syntax is as follows: ARRAY [<limits>] OF <Type> Example 1: ARRAY [1..2] OF BOOL is a 1-dimensional table with 2 elements of type BOOL. Example 2: ARRAY [1..10, 1..20] OF INT is a 2-dimensional table with 10x20 elements of type INT.
274
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
ASCII The american standard code for information interchange is a communication protocol for representing alphanumeric characters (letters, numbers, and certain graphic and control characters).
assigned variable A variable is "assigned" if its location in controller memory can be known. For example, the Water_pressure variable is said to be assigned through its association with memory location %MW102.Water_pressure. ATC analog tension control
ATV ATV is the model prefix for Altivar drives. (For example, ATV312 refers to the Altivar 312 variable speed drive.)
AWG The american wire gauge standard specifies wire gauges in North America.
B
BCD The binary coded decimal format represents decimal numbers between 0 and 9 with a set of 4 bits (a nybble/nibble, also titled as Halfbyte). In this format, the 4 bits used to encode decimal numbers have an unused range of combinations. For example, the number 2,450 is encoded as 0010 0100 0101 0000 BOOL A Boolean type is the basic data type in computing. A BOOL variable can have one of these values: 0 (FALSE), 1 (TRUE). A bit that is extracted from a word is of type BOOL, for example: %MW10.4 is a fifth bit a memory word number 10.
EIO0000000067 10/2010
275
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
Boot application Files that contain machine dependent parameters: machine name z device name or IP address z Modbus Serial Line address z Routing table
z
BOOTP The bootstrap protocol is a UDP network protocol that can be used by a network client to automatically obtain an IP address (and possibly other data) from a server. The client identifies itself to the server using the client MAC address. The server which maintains a pre-configured table of client device MAC addresses and associated IP addressessends the client its pre-configured IP address. BOOTP was originally used as a method that enabled diskless hosts to be remotely booted over a network. The BOOTP process assigns an infinite lease of an IP address. The BOOTP service utilizes UDP ports 67 and 68.
bps bit per second as a definition of transmission rate, also given in conjunction with multiplicator kilo (kbps) and mega (mbps).
bus base A bus base is a mounting device that is designed to seat an electronic module on a DIN rail and connect it to the TM5 bus for M258 and LMC058 controllers. Each base bus extends the TM5 data and to the power buses and the 24 Vdc I/O power segment. The electronic modules are added to the TM5 system through their insertion on the base bus. The base bus also supplies the articulation point for the terminal blocks.
BYTE When 8 bits are grouped together, they are called a BYTE. You can enter a BYTE either in binary mode or in base 8. The BYTE type is encoded in an 8-bit format that ranges from 16#00 to 16#FF (in hexadecimal format).
276
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
C
CAN The controller area network protocol (ISO 11898) for serial bus networks is designed for the interconnection of smart devices (from multiple manufacturers) in smart systems for real-time industrial applications. CAN multi-master systems ensure high data integrity through the implementation of broadcast messaging and advanced diagnostic mechanisms. Originally developed for use in automobiles, CAN is now used in a variety of industrial automation control environments.
CANmotion CANmotion is a CANopen-based motion bus with an additional mechanism that provides synchronization between the motion controller and the drives.
CANopen CANopen is an open industry-standard communication protocol and device profile specification.
CFC The continuous function chart (an extension of the IEC61131-3 standard) is a graphical programming language that works like a flowchart. By adding simple logic blocks (AND, OR, etc.), each function or function block in the program is represented in this graphical format. For each block, the inputs are on the left and the outputs on the right. Block outputs can be linked to inputs of other blocks in order to create complex expressions.
CiA CAN in automation is a non-profit group of manufacturers and users dedicated to developing and supporting CAN-based higher layer protocols.
CIP When the common industrial protocol is implemented in a network application layer, it can communicate seamlessly with other CIP-based networks without regard to the protocol. For example, the implementation of CIP in the application layer of an Ethernet TCP/IP network creates an EtherNet/IP environment. Similarly, CIP in the application layer of a CAN network creates a DeviceNet environment. In that case, devices on the EtherNet/IP network can communicate with devices on the DeviceNet network through CIP bridges or routers.
EIO0000000067 10/2010
277
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
CMU The current measurement unit is used to convert the relative current value (%) provided by TeSys into a real ISO value (A).
configuration The configuration includes the arrangement and interconnection of hardware components within a system and the hardware and software selections that determine the operating characteristics of the system.
controller A controller (or programmable logic controller, or programmable controller) is used to automate industrial processes.
controller status output The controller status output is a special function used in circuits that are external to the controller that control the power supply to the output devices or the controller power supply.
CRC A network message's cyclic redundancy check field contains a small number of bits that produce a checksum. The message is calculated by the transmitter according to the messages content. Receiving nodes then recalculate the field. Any discrepancy in the two CRC fields indicates that the transmitted message and the received message are different.
CSA The canadian standards association defines and maintains standards for industrial electronic equipment in hazardous environments.
CTS Clear to send is a data transmission signal and acknowledges the RDS signal from the transmitting station.
278
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
cyclic task The cyclic scan time has a fixed duration (interval) specified by the user. If the current scan time is shorter than the cyclic scan time, the controller waits until the cyclic scan time has elapsed before starting a new scan.
D
data log The controller logs events relative to the user application in a data log.
DCE Data communications equipment describes devices (often modems) that start, stop, and sustain network sessions.
Derating Derating describes a reduction in an operating specification. For devices in general it is usually a specified reduction in nominal power to facilitate operation at increased ambient conditions like higher temperatures or higher altitudes.
DHCP The dynamic host configuration protocol is an advanced extension of BOOTP. DHCP is a more advanced, but both DHCP and BOOTP are common. (DHCP can handle BOOTP client requests.)
digital I/O A digital input or output has an individual circuit connection at the electronic module that corresponds directly to a data table bit that holds the value of the signal at that I/O circuit. It gives the control logic digital access to I/O values.
DIN Deutsches Institut fr Normung is a German institution that sets engineering and dimensional standards.
EIO0000000067 10/2010
279
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
DNS The domain name system is the naming system for computers and devices connected to a LAN or the Internet.
drop cable A drop cable is the unterminated derivation cord used to connect a TAP to a device.
DTM With device type managers representing the field device in SoMachine, direct communications are possible to every single field device via SoMachine, the controller and the field bus, thus avoiding the need for individual cable connections.
E
EDS Electronic data sheet contains for example the properties of a device e.g. parameters and settings of a drive.
EEPROM Electrically erasable programmable read-only memory is a type of non-volatile memory used to store data that must be saved when power is removed.
EIA The electronic industries alliance is the trade organization for establishing electrical/electronic and data communication standards (including RS-232 and RS485) in the United States.
EIA rack An electronic industries alliance rack is a standardized (EIA 310-D, IEC 60297 and DIN 41494 SC48D) system for mounting various electronic modules in a stack or rack that is 19 inches (482.6 mm) wide.
280
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
electronic module In a programmable controller system, most electronic modules directly interface to the sensors, actuators, and external devices of the machine/process. This electronic module is the component that mounts in a bus base and provides electrical connections between the controller and the field devices. Electronic modules are offered in a variety of signal levels and capacities. (Some electronic modules are not I/O interfaces, including power distribution modules and transmitter/receiver modules.)
EN EN identifies one of many European standards maintained by CEN (European Committee for Standardization), CENELEC (European Committee for Electrotechnical Standardization), or ETSI (European Telecommunications Standards Institute).
encoder An encoder is a device for length or angular measurement (linear or rotary encoders).
Ethernet Ethernet is a physical and data link layer technology for LANs, also known as IEE 802.3.
EtherNet/IP The ethernet industrial protocol is an open communications protocol for manufacturing automation solutions in industrial systems. EtherNet/IP is in a family of networks that implements Common Industrial Protocol at its upper layers. The supporting organization (ODVA) specifies EtherNet/IP to accomplish global adaptability and media independence.
EIO0000000067 10/2010
281
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
expansion bus The expansion bus is an electronic communication bus between expansion modules and a CPU.
expansion I/O module An expansion input or output module is either a digital or analog module that adds additional I/O to the base controller.
expert I/O Expert I/Os are dedicated modules or channels for advanced features. These features are generally embedded in the module in order to not use the resources of the PLC Controller and to allow a fast response time, depending of the feature. Regarding the function, it could be considered as a stand alone module, because the function is independent of the Controller processing cycle, it just exchanges some information with the Controller CPU.
F
FAST I/O FAST I/Os are specific I/Os with some electrical features (response time, for example) but the treatment of these channels is done by the Controller CPU.
FAST task The FAST task is a periodic, high-priority task of a short duration that is run on a processor through its programming software. The task fast speed keeps it from interfering with the execution of lower priority master (MAST) tasks. A FAST task is useful when fast periodic changes in discrete inputs need to be monitored.
FB A function block performs a specific automation function, such as speed control, interval control, or counting. A function block comprises configuration data and a set of operating parameters.
FBD A function block diagram is a graphically oriented programming language, compliant with IEC 61131-3. It works with a list of networks whereby each network contains a graphical structure of boxes and connection lines which represents either a logical or arithmetic expression, the call of a function block, a jump, or a return instruction.
282
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
FDT Field device tool for standardized communications between field devices and SoMachine.
FE Functional ground is the point of a system or device that must be grounded to help prevent equipment damage.
FG frequency generator
Flash memory Flash memory is nonvolatile memory that can be overwritten. It is stored on a special EEPROM that can be erased and reprogrammed.
FTP File transfer protocol is a standard network protocol (built on a client-server architecture), to exchange and manipulate files over TCP/IP based networks.
function A function: z is a POU that returns 1 immediate result z is directly called with its name (as opposed to through an instance) z has no persistent state from one call to the next z can be used as an operand in expressions Examples: boolean (AND) operators, calculations, conversions (BYTE_TO_INT)
FWD forward
EIO0000000067 10/2010
283
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
G
GVL The global variable list manages global variables that are available in every application POU.
H
HE10 Rectangular connector for electrical signals with frequencies below 3MHz, complying with IEC60807-2.
HMI A human-machine interface is an operator interface (usually graphical) for industrial equipment.
hot swapping Hot swapping is the replacement of a component with a like component while the system remains operational. The replacement component begins to function automatically after it is installed.
HVAC Heating ventilation and air conditioning applications monitor and control indoor environments.
I
I/O input/output
284
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
I/O scan An input/output scan continuously polls I/O modules to collect data bits and status, error, and diagnostics information. This process monitors inputs and controls outputs.
I/O terminal An input/output terminal on the front of an expansion I/O module connects input and output signals.
ICMP The internet control message protocol reports errors and provides information related to datagram processing.
IEC The international electrotechnical commission is a non-profit and non-governmental international standards organization that prepares and publishes international standards for all electrical, electronic, and related technologies.
IEC 61131-3 The IEC 61131-3 is an international electrotechnical commission standard for industrial automation equipment (like controllers). IEC 61131-3 deals with controller programming languages and defines 2 graphical and 2 textual programming language standards: z graphical: ladder diagram, function block diagram z textual: structured text, instruction list
IEEE The institute of electrical and electronics engineers is a non-profit international standards and conformity assessment body for advances in all fields of electrotechnology.
IEEE 802.3 IEEE 802.3 is a collection of IEEE standards defining the physical layer, and the media access control (MAC) sublayer of the data link layer, of wired Ethernet.
IL A program written in the instruction list language is composed of a series of instructions executed sequentially by the controller. Each instruction includes a line number, an instruction code, and an operand. (IL is IEC 61131-3 compliant.)
285
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
immediate addressing The direct method of addressing memory objects, including physical inputs and outputs, used in programming instructions as operands and parameters by using their direct address (for example, %Iwx or %QWx). The use of immediate addressing in your program may avoid the need to create symbols for these objects, but there are also disadvantages. For example, if you change the program configuration by adding or deleting devices or I/O modules or slices, the immediate addresses used as programming instruction operands and/or parameters are not updated and must be corrected manually, which may cause extensive program modifications and lead to incorrect programming instructions. (See symbolic addressing.)
input filter An input filter is a special function that rejects input noises. It is useful for eliminating input noises and chatter in limit switches. All inputs provide a level of input filtering using the hardware. Additional filtering with software is also configurable through the programing or the configuration software.
input terminal An input terminal on the front of an expansion I/O module connects input signals from input devices (such as sensors, push buttons, and limit switches). For some modules, input terminals accept both sink and source DC input signals.
IP The internet protocol is part of the TCP/IP protocol family that tracks the Internet addresses of devices, routes outgoing messages, and recognizes incoming messages.
IP 20 Ingress protection rating according to IEC 60529. IP20 modules are protected against ingress and contact of objects larger than 12.5 mm. The module is not protected against harmful ingress of water.
286
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
IP 67 Ingress protection rating according to IEC 60529. IP67 modules are completely protected against ingress of dust and contact. Ingress of water in harmful quantity is not possible when the enclosure is immersed in water up to 1m.
K
Kd derivative gain
Ki integral gain
Kp proportional gain
L
Ladder Diagram language See LD.
LAN A local area network local area network is a short-distance communications network that is implemented in a home, office, or institutional environment.
latching input A latching input module interfaces with devices that transmit messages in short pulses. Incoming pulses are captured and recorded for later examination by the application.
LD A program in the ladder diagram language includes a graphical representation of instructions of a controller program with symbols for contacts, coils, and blocks in a series of rungs executed sequentially by a controller. IEC 61131-3 compliant.
EIO0000000067 10/2010
287
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
LED A light emitting diode is an indicator that lights up when electricity passes through it.
LINT Long integer is a 64-bit variable (4 times INT or two times DINT).
LSB The least significant bit (or least significant byte) is the part of a number, address, or field that is written as the right-most single value in conventional hexadecimal or binary notation.
M
MAC address The media access control address is a unique 48-bit number associated with a specific piece of hardware. The MAC address is programmed into each network card or device when it is manufactured.
Machine A Machine consists of several functions and/or equipments which build the machine.
288
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
Magelis Magelis is the commercial name for Schneider Electric's range of HMI terminals.
MAST A master (MAST) task is a processor task that is run through its programming software. The MAST task has two sections: z IN: Inputs are copied to the IN section before execution of the MAST task. z OUT: Outputs are copied to the OUT section after execution of the MAST task.
master/slave The single direction of control in a network that implements the master/slave model is always from a master device or process to one or more slave devices.
MIB The management information base is an object database that is monitored by a network management system like SNMP. SNMP monitors devices that are defined by their MIBs. Schneider has obtained a private MIB, groupeschneider (3833).
minimum I/O update time The minimum I/O update time is the minimum time it takes for the bus cycle to shut down to force an I/O update at each cycle.
Modbus The Modbus communication protocol allows communications between many devices connected to the same network.
MSB The most significant bit (or most significant byte) is the part of a number, address, or field that is written as the left-most single value in conventional hexadecimal or binary notation.
EIO0000000067 10/2010
289
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
N
NAK negative acknowledge
NC A normally closed contact is a contact pair that is closed when the actuator is deenergized (no power is applied) and open when the actuator is energized (power is applied).
NEC The national electric code dictates the safe installation of electrical wiring and equipment.
NEMA The national electrical manufacturers association publishes standards for the performance of various classes of electrical enclosures. The NEMA standards cover corrosion resistance, ability to protect from rain and submersion, etc. For IEC member countries, the IEC 60529 standard classifies the ingress protection rating for enclosures.
network A network includes interconnected devices that share a common data path and protocol for communications.
NMT Network management protocols provide services for network initialization, error control, and device status control.
290
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
NMT state machine A network management state machine defines the communication behavior of any CANopen device. The CANopen NMT state machine consists of an initialization state, a pre-operational state, an Operational state, and a stopped state. After power-on or reset, the device enters the initialization state. After the device initialization is finished, the device automatically enters the pre-operational state and announces the state transition by sending the boot-up message. In this manner, the device indicates that it is ready to work. A device that stays in pre-operational state may start to transmit SYNC-, Time Stamp-, or Heartbeat message. In this state, the device can not communicate through a PDO; it must do so with an SDO. In the operational state, the device can use all supported communication objects.
NO A normally open contact is a contact pair that is open when the actuator is deenergized (no power is applied) and closed when the actuator is energized (power is applied).
O
ODVA The open deviceNet vendors association supports the family of network technologies that are built on CIP (EtherNet/IP, DeviceNet, and CompoNet).
OS Operating system. Can be used for Firmware that can be uploaded/downloaded by the user.
OSI The open system interconnection reference model is a 7-layer model that describes network protocol communications. Each abstract layer receives services from the layer below it and provides services to the layer above.
OTB Optimized terminal block, used in the context of Advantys I/O distributed module
EIO0000000067 10/2010
291
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
output terminal An output terminal connects output signals to output devices (such as electromechanical relays and solenoid valves).
P
pallet A pallet is a portable platform, which is used for storing or moving goods.
PDM A power distribution module distributes either AC or DC field power to a cluster of I/O modules.
PDO A process data object is transmitted as an unconfirmed broadcast message or sent from a producer device to a consumer device in a CAN-based network. The transmit PDO from the producer device has a specific identifier that corresponds to the receive PDO of the consumer devices.
PE Protective ground is a return line across the bus for fault currents generated at a sensor or actuator device in the control system.
periodic execution The master task is executed either cyclically or periodically. In periodic mode, you determine a specific time (period) in which the master task must be executed. If it is executed under this time, a waiting time is generated before the next cycle. If it is executed over this time, a control system indicates the overrun. If the overrun is too high, the controller is stopped.
292
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
persistent data Value of persistent data that will be used at next application change or cold start. Only get re-initialized at a reboot of the controller or reset origin. Especially they maintain their values after a download.
PI proportional integral
PLC The programmable logic controller is the brain of an industrial manufacturing process. It automates a process, used instead of relay control systems. PLCs are computers suited to survive the harsh conditions of the industrial environment.
PLCopen The PLCopen standard brings efficiency, flexibility, and manufacturer independence to the automation and control industry through the standardization of tools, libraries, and modular approaches to software programming.
post-configuration Post-configuration files contain machine-independent parameters, including: z machine name z device name or IP address z Modbus serial line address z routing table
POU A program organization unit includes a variable declaration in source code and the corresponding instruction set. POUs facilitate the modular reuse of software programs, functions, and function blocks. Once declared, POUs are available to one another. SoMachine programming requires the utilization of POUs.
EIO0000000067 10/2010
293
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
POU FB Program organization unit function block types are user programs that can be defined by the user in the ST, IL, LD, or FBD languages. You can use POU FB types in an application to:
z z z z
simplify the design and entry of the program make the program easier to read simplify debugging reduce the amount of generated code
power supply terminals The power supply is connected to these terminals to provide power to the controller.
protocol A protocol is a convention or standard that controls or enables the connection, communication, and data transfer between two computing endpoints.
Pt100/Pt1000 Platinum resistance thermometer are characterized by their nominal resistance R0 at a temperature of 0 C. z Pt100 (R0 = 100 Ohm) z Pt1000 (R0 = 1 kOhm)
PTO Pulse train outputs are used to control for instance stepper motors in open loop.
PWM Pulse width modulation is used for regulation processes (e.g. actuators for temperature control) where a pulse signal is modulated in its length. For these kind of signals, transistor outputs are used.
R
RAM random access memory
REAL Real is a numeric data type. The REAL type is encoded in a 32-bit format.
294
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
reflex output In a counting mode, the high speed counter current value is measured against its configured thresholds to determine the state of these dedicated outputs.
retained data A retained data value is used in the next power-on or warm start. The value is retained even after an uncontrolled shutdown of the controller or a normal switch-off of the controller.
RFID Radio-frequency identification is an automatic identification method that relies on the storage and remote retrieval of data using RFID tags or transponders.
RJ-45 This registered jack is a modular connector that is commonly implemented in communication networks.
RS-232 RS-232 (also known as EIA RS-232C or V.24) is a standard type of serial communication bus, based on three wires.
RS-485 RS-485 (also known as EIA RS-485) is a standard type of serial communication bus, based on two wires.
EIO0000000067 10/2010
295
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
RTC The real-time clock option keeps the time for a limited amount of time even when the controller is not powered.
RTS Request to send is a data transmission signal and will be acknowledged by the CTS signal from the destination node.
RTU A remote terminal unit is a device that interfaces with objects in the physical world to a distributed control system or SCADA system by transmitting telemetry data to the system and/or altering the state of connected objects based on control messages received from the system.
S
SCADA A supervisory control and data acquisition system monitors, manages, and controls industrial applications or processes.
scan A controller scanning program performs 3 basic functions: [1] It reads inputs and places these values in memory; [2] it executes the application program 1 instruction at a time and stores results in memory; [3] It uses the results to update outputs.
SDO A service data object message is used by the field bus master to access (read/write) the object directories of network nodes in CAN-based networks. SDO types include service SDOs (SSDOs) and client SDOs (CSDOs).
SEL-V A system that follows IEC 61140 guidelines for safety extra low voltage is protected in such a way that voltage between any 2 accessible parts (or between 1 accessible part and the PE terminal for Class 1 equipment) does not exceed a specified value under normal conditions or under single-fault conditions.
296
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
SFC A program written in the sequential function chart language can be used for processes that can be split into steps. SFC is composed of steps with associated actions, transitions with associated logic condition, and directed links between steps and transitions. (The SFC standard is defined in IEC 848. It is IEC 61131-3 compliant.)
sink input A sink input is a wiring arrangement in which the device provides current to the input electronic module. A sink input is referenced to 0 Vdc.
SL serial line
SMS The short message service is a standard communication service for telephones (or other devices) that send short text messages over the mobile communications system.
SNMP The simple network management protocol can control a network remotely by polling the devices for their status, performing security tests, and viewing information relating to data transmission. It can also be used to manage software and databases remotely. The protocol also permits active management tasks, such as modifying and applying a new configuration
source output A source output is a wiring arrangement in which the output electronic module provides current to the device. A source output is referenced to +24 Vdc.
SSI Serial synchronous interface is a common interface for relative and absolute measurement systems like encoders.
EIO0000000067 10/2010
297
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
STRING A STRING variable is a series of ASCII characters. Structured Text A program written in the structured text (ST) language includes complex statements and nested instructions (such as iteration loops, conditional executions, or functions). ST is compliant with IEC 61131-3.
symbol A symbol is a string of a maximum of 32 alphanumeric characters, of which the first character is alphabetic. It allows you to personalize a controller object to facilitate the maintainability of the application.
symbolic addressing The indirect method of addressing memory objects, including physical inputs and outputs, used in programming instructions as operands and parameters by first defining symbols for them using these symbols in association with the programming instructions. In contrast to immediate addressing, this is the recommended method because if the program configuration changes, symbols are automatically updated with their new immediate address associations, whereas any immediate addresses used as operands or parameters are not. (See immediate addressing.)
system time An internal clock provides a device with the system time.
system variable A system variable structure provides controller data and diagnostic information and allows sending commands to the controller.
298
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
T
TAP A terminal access point is a junction box connected to the trunk cable that allows you to plug in drop cables.
task A group of sections and subroutines, executed cyclically or periodically for the MAST task, or periodically for the FAST task. A task possesses a level of priority and is linked to inputs and outputs of the controller. These I/O are refreshed in consequence. A controller can have several tasks.
TCP A transmission control protocol is a connection-based transport layer protocol that provides a reliable simultaneous bi-directional transmission of data. TCP is part of the TCP/IP protocol suite.
terminal block The terminal block is the component that mounts in an electronic module and provides electrical connections between the controller and the field devices.
threshold output Threshold outputs are controlled directly by the HSC according to the settings established during configuration.
TP A touch probe is a position capture that is triggered by a fast input signal (quick sensor). On the rising edge of the touch probe input the position of an encoder is captured. Example: This is used for packaging machines to capture the position of a printmark on a film to cut always on the same position.
299
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
trunk cable A trunk cable is the main cable that is terminated at both physical ends with line termination resistors.
U
UDINT An unsigned double integer is encoded in 32 bits.
UDP The user datagram protocol is a connectionless mode protocol (defined by IETF RFC 768) in which messages are delivered in a datagram (data telegram) to a destination computer on an IP network. The UDP protocol is typically bundled with the Internet Protocol. UDP/IP messages do not expect a response, and are therefore ideal for applications in which dropped packets do not require retransmission (such as streaming video and networks that demand real-time performance).
unlocated variable An unlocated variable does not have an address. (See located variable.)
300
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
V
VSD variable speed drive
W
WORD The WORD type is encoded in a 16-bit format.
EIO0000000067 10/2010
301
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Glossary
302
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Index
B C A
commands single access, 196 Commission machine - start with project, 43 Commission machine - upload project from device, 45 Commissioning, 250 Communication DTM, 93, 95, 117, 120 Communication manager configuration, 152 communication managers, 74 Configuration, 62 configuration diagnostic, 154 configuring devices, 70 consistency, 84 Create Boot Application, 198 Create new machine, 32 creating libraries, 175 Custom Information, 59 Customer Service Tool, 257
A
Add application, 82 adding controllers, 148 adding devices, 68 analog inputs CANopen, 270 applications, 82 AS-Interface, 78 AS-Interface configurations, 190 ASCII Managers, 186 attachments, 59
B
Boot Application, 244 boot applications, 198 Browse for existing project, 27 Build All command, 197
C
CANopen analog inputs, 270 CANopen devices, 152 CANopen interface, 180 close project, 25 closing projects, 23 Collapse All, 66 command Build All, 197 Export Vijeo-Designer project, 201 Import Vijeo-Designer project, 201
D
deleting devices, 68 device templates, 225, 226 device type managers, 93 devices adding, 154 display manager, 66 displaying panes, 23 DTM, 90, 93
EIO0000000067 10/2010
303
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Index
E
Ethernet configurations, 177 example projects, 39 Expand All, 66 Expand Last, 66 expansion modules, 78, 149, 150 export Vijeo-Designer projects, 201 export command, 201
L
language setting, 23 Learning Center, 50 libraries, 159, 162 adding libraries, 137 library creation, 175 Limitation, 94, 106 login, 244 Login/Logout, 253
F
FDT, 89, 90, 95, 124 field devices configuration, 152 fieldbus health information, 154 fieldbus manager adding slave devices, 76 Fieldbus Topology, 91 fieldbusses supported by templates, 215 function templates, 235
M
main selection screen, 23 menus, 268 message window, 23 Modbus configurations, 186 Modbus IOScanners, 186 Modbus Managers, 186 Modbus SL devices, 152 Multiple Download task, 255
G
general functions, 25 Generic DTM, 95, 113 graphical configuration editor, 66 graphical user interface elements, 23 GUI elements, 23
N
network connections, 84 Network Managers, 186 nodeguarding settings, 180
H
handles, 23 Hardwire Topology, 92 health information fieldbus, 154 heartbeat settings, 180 hiding panes, 23
O
online help, 23
P
placeholder concept, 137 Preferences, 25 Program, 130 programming logic, 82 projects close, 23
EIO0000000067 10/2010
I
IEC Objects fieldbus Diagnostic/O mapping, 154
304
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Index
Properties tab, 54 Protocol Managers, 186 publishing variables, 207 publishing variables (HMI), 209
transfer, 244 Boot Application, 244 TSXCUSB485 cable, 92, 117, 117, 120 TVD architecture, 34
R
Report tab, 259 Reroute, 66 Reroute On Drop, 66 run, 248
U
Update Device Version, 82 Update firmware, 48, 82 USB Mass Storage, 199
S
save project, 25 saving to USB mass storage device, 199 selecting variables, 208 Serial Line configurations, 186 Set active application, 82 shortcuts, 268 Show All, 66 Show existing machine, 27 single access commands, 196 slave devices, 76 Source Download, 257 Start with application, 36 Start with empty project, 33 Start with Example, 39 Start with existing project, 38 Start with TVD Architecture, 34 startup window, 23 stop, 248 symbol configuration, 143 Synchronized mode, 110
V
variable definition, 203 variable types, 203 variables persistent, 140 publishing, 207 publishing (HMI), 209 remanent, 140 visualization, 229
W
work area, 23
T
task Multiple Download, 255 task selection pane, 23 tasks adding, 134 template libraries, 225 templates, 212 Topology, 91, 91, 92, 101
EIO0000000067 10/2010
305
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com
Index
306
EIO0000000067 10/2010
Courtesy of Steven Engineering, Inc.-230 Ryan Way, South San Francisco, CA 94080-6370-Main Office: (650) 588-9200-Outside Local Area: (800) 258-9200-www.stevenengineering.com