Operating Modes
Operating Modes
Operating Modes
Original instructions
33003101.26
06/2022
www.se.com
Legal Information
The Schneider Electric brand and any trademarks of Schneider Electric SE and its
subsidiaries referred to in this guide are the property of Schneider Electric SE or its
subsidiaries. All other brands may be trademarks of their respective owners.
This guide and its content are protected under applicable copyright laws and furnished for
informational use only. No part of this guide may be reproduced or transmitted in any form or
by any means (electronic, mechanical, photocopying, recording, or otherwise), for any
purpose, without the prior written permission of Schneider Electric.
Schneider Electric does not grant any right or license for commercial use of the guide or its
content, except for a non-exclusive and personal license to consult it on an "as is" basis.
Schneider Electric products and equipment should be installed, operated, serviced, and
maintained only by qualified personnel.
As standards, specifications, and designs change from time to time, information contained in
this guide may be subject to change without notice.
To the extent permitted by applicable law, no responsibility or liability is assumed by
Schneider Electric and its subsidiaries for any errors or omissions in the informational
content of this material or consequences arising out of or resulting from the use of the
information contained herein.
33003101.26 3
Transferring the project between the terminal and the PLC........................... 112
Update of Upload Information .................................................................... 116
Sending a command to the PLC................................................................. 117
Project Backup Management for Modicon M340.......................................... 118
Project backup for Premium....................................................................... 120
Save/Restore Data Between a File and the PLC.......................................... 122
Compatibility Rules for Restore Using a *.DTX File ...................................... 127
Transferring Current Values ....................................................................... 134
Memory usage.......................................................................................... 134
Data Memory Protection............................................................................ 140
Function Pack for Memory ......................................................................... 145
Memory Card Access for Modicon M340..................................................... 147
FTP and Memory Card for Modicon M340................................................... 148
Project Management with DTMs ................................................................ 150
Project browser .................................................................................................... 155
Introduction to the project browser ................................................................... 155
Introduction to the project browser.............................................................. 155
Structural view and functional view of the project ......................................... 158
The Zoom In and Zoom Out commands...................................................... 160
The commands Contract all and Expand all ................................................ 163
The Goto command .................................................................................. 168
User Directory .......................................................................................... 171
Project Properties ..................................................................................... 172
Application Protection ............................................................................... 174
Safe Area Password Protection.................................................................. 181
Firmware Protection .................................................................................. 185
Program Unit, Section and Subroutine Protection ........................................ 187
Data Storage/Web Protection .................................................................... 189
Loss of Password ..................................................................................... 191
Introduction to the various directories of the project browser .............................. 198
Project Directory ...................................................................................... 198
Configuration Directory.............................................................................. 199
Derived data types (DDT) directory ............................................................ 201
Derived FB (DFB) types directory ............................................................... 202
Variables Directory.................................................................................... 203
4 33003101.26
Motion Directory ....................................................................................... 205
Communication Directory .......................................................................... 207
Ethernet Network Directory ...................................................................... 208
Programs Directory .................................................................................. 208
Animation Tables Directory ........................................................................ 212
Operator Screens Directory ....................................................................... 215
Documentation Directory ........................................................................... 217
Conversion Report Directory...................................................................... 218
Summaries of the utilities associated with the structure view and function
view............................................................................................................... 220
Summary of the services associated with the structural view ........................ 220
Functional modules .............................................................................................. 232
Introduction to the functional view .................................................................... 232
Functional modules................................................................................... 232
Project directory of the functional view ........................................................ 234
Functional Module Directory .................................................................... 235
Functional Module Program Directory......................................................... 236
Functional Module Animation Tables Directory ............................................ 237
Functional Module Operator Screens Directory ........................................... 238
Summary of the services associated with the functional view........................ 239
The functional modules and their associated utilities ......................................... 246
Properties of a functional module ............................................................... 246
Creating a functional module ..................................................................... 247
Programming a functional module .............................................................. 248
Protecting program elements of the functional module ................................. 250
Debugging a functional module .................................................................. 250
Detaching/Deleting a functional module ...................................................... 251
Functional module export .......................................................................... 255
Functional module import .......................................................................... 255
Creating, Deleting, Locating, Dragging-and-Dropping an Animation Table
in a Functional Module .............................................................................. 255
Creating, Deleting, Locating and Dragging-and-Dropping an Operator
Screen in a Functional Module ................................................................... 258
FDT Container ..................................................................................................... 263
FDT Container ............................................................................................... 263
33003101.26 5
Introduction to the Control Expert FDT Container ........................................ 263
FDT Container User Rights........................................................................ 264
DTM Hardware Catalog .................................................................................. 266
Introduction to the Hardware Catalog ......................................................... 266
Description of DTM Hardware Catalog........................................................ 267
Adding a DTM to the Control Expert Hardware Catalog................................ 271
Adding an EDS File to the Hardware Catalog .............................................. 272
Removing an EDS File from the Hardware Catalog...................................... 274
Export / Import EDS Library ....................................................................... 276
DTM Browser ................................................................................................. 279
DTM Browser ........................................................................................... 279
Ethernet Ready Equipment........................................................................ 284
Ready, Built, Connected and Installed DTMs............................................... 285
DTM Browser Contextual Menus................................................................ 289
Field Bus Discovery Service ...................................................................... 297
Store Device Configurations ...................................................................... 301
Renaming DTMs....................................................................................... 302
Profibus DTMs.......................................................................................... 304
DTM Properties Tabs ...................................................................................... 305
DTM Properties Dialog .............................................................................. 305
Type Library Manager........................................................................................... 310
Libset (Set of Libraries) ................................................................................... 310
Overview of the Type Library Manager ............................................................. 313
Type Library Manager ..................................................................................... 314
Description of the Type Library Manager .......................................................... 317
Loading an object from the library into the project ............................................. 323
Transferring an object from the project into the library........................................ 326
Creating a new library and family ..................................................................... 328
Creating an installable family ........................................................................... 330
Updating a family of a library ........................................................................... 332
Consistency Check Assistant .......................................................................... 334
Library Version Management........................................................................... 337
Using the type library of an older Unity Pro/Control Expert Version ..................... 341
Data Editor ............................................................................................................. 344
Description of the Data Editor................................................................................ 345
6 33003101.26
Data Editor Access ......................................................................................... 345
Description of Data Editor tabs ........................................................................ 347
Creating derived data types (DDT)......................................................................... 352
Access to derived data types (DDT) ................................................................. 352
Creation of a derived data type (DDT) .............................................................. 353
Administration of derived data types and their elements..................................... 364
Creating Nested Derived Data Types ............................................................... 366
Save Derived Data Types (DDT)...................................................................... 371
Creating data types of user function blocks (DFB)................................................... 374
Creation and Management of Data Types and Function Blocks (DFB) ................ 374
Managing of instances of data belonging to the family of function blocks (EF) ........... 376
Creating / Deleting a variable instance of function blocks (EFB/DFB) .................. 376
Displaying function block variable instances in the editor ................................... 379
Changing the attribute for variable instances in a function block ......................... 382
Managing variable instances belonging to the EDT/DDT/IODDT/Device DDT
families................................................................................................................ 386
Creation of EDT instances............................................................................... 386
Creation of DDT instances............................................................................... 390
Creating an IODDT instance............................................................................ 396
Managing a Device DDT instance .................................................................... 399
Managing an IODDT, DDT or an Array type instance ......................................... 403
Creation of multiple variable instances ............................................................. 409
Displaying the variable instances in the editor ................................................... 411
Changing attributes of variable instances ......................................................... 414
Creation of a Reference Type Instance............................................................. 418
General Functions ............................................................................................... 421
Configuring the Data Editor columns ................................................................ 421
Description of the Data Editor: Variable type selection ....................................... 425
Filtering of Data .............................................................................................. 430
Exporting a subset of variables ........................................................................ 434
Analyze DDT and DFB Data Types................................................................... 435
Purge of Unused Instances ............................................................................. 436
Local printing of data....................................................................................... 437
Save the context of the Data Editor .................................................................. 438
Communication ..................................................................................................... 441
33003101.26 7
Presentation of the communication editors ............................................................. 442
Presentation of the communication editors of the project browser....................... 442
Network Configuration .......................................................................................... 445
Network Configuration Principle Using Control Expert ....................................... 445
Creating a Logic Network ................................................................................ 446
Configuring a Logic Network............................................................................ 448
Associating a Logic Network with Network Hardware......................................... 449
Configuration of X-Way Routing Premium Stations ................................................. 453
Configuration ................................................................................................. 454
Configuration of Multi-Network Services ........................................................... 455
Configuring an X-Way Router Module .............................................................. 456
Examples of X-Way Routing Stations ............................................................... 460
Examples of Partial Routing ............................................................................ 463
Programming ......................................................................................................... 468
Accessing Tasks, Program Units and Sections ....................................................... 469
Access to Tasks.............................................................................................. 469
Create and Configuration of a Task ............................................................ 469
Displaying and Modifying Task Properties ................................................... 471
Accessing Program Units ................................................................................ 472
Creating Program Units ............................................................................. 472
Properties Dialog Box for Program Units..................................................... 474
Program Unit Data Scope .......................................................................... 479
Program Unit Data Editor Access ............................................................... 482
Description of Program Unit Data Editor Tabs.............................................. 483
Program Unit Variables.............................................................................. 488
Program Unit Management........................................................................ 496
Accessing Sections ........................................................................................ 499
Creating an FBD, LD, IL, or ST Section....................................................... 499
Properties Dialog Box for FBD, LD, IL, or ST Sections ................................. 502
Creating SFC sections .............................................................................. 507
Properties Dialog Box for SFC Sections...................................................... 510
Creating action, transition and macro sections ............................................ 515
Action, transition and macro sections properties dialog box .......................... 516
Create a Sub-Program Section (SR)........................................................... 519
Property Dialog of the Sub-Program Sections ............................................. 521
8 33003101.26
Creating a Timer Event Section.................................................................. 523
Properties dialog box for Timer Event Sections ........................................... 526
Create an I/O Event Section ...................................................................... 529
Property Dialog of I/O Event Sections......................................................... 531
Opening a Section .................................................................................... 534
Deleting sections ...................................................................................... 535
Execution order of sections........................................................................ 535
Creating LL984 Segments and Networks .................................................... 536
Modifying LL984 Segment Properties ......................................................... 540
Modifying LL984 Network Properties .......................................................... 541
Scheduling LL984 Segments and Network.................................................. 543
Deleting, Cutting, Copying and Pasting LL984 Segments and
Network ................................................................................................... 544
Control Expert Software Options ........................................................................... 546
Project Settings .............................................................................................. 546
General Description ................................................................................. 547
General Project Settings............................................................................ 548
Variables .................................................................................................. 562
Program................................................................................................... 566
Maintain Output Links on Disabled EF (EN=0)............................................. 574
Configuration Settings for Operator Screens ............................................... 583
Options.......................................................................................................... 587
General Description ................................................................................. 587
General Options ....................................................................................... 588
Data and Languages................................................................................. 590
Connection Options .................................................................................. 592
The Operator Screens Option .................................................................... 594
Converters ............................................................................................... 596
Customize Dialog Box..................................................................................... 602
Customize Dialog Box ............................................................................... 602
Common Function for graphical language .............................................................. 607
Using Bookmarks in Graphical Languages Sections.......................................... 607
Display grid in a FBD/LD/SFC section .............................................................. 613
Zoom in a FBD/LD/SFC section ....................................................................... 613
Tracking links in a FBD/LD/SFC section ........................................................... 616
33003101.26 9
Print Current Section in a FBD/LD/SFC section................................................. 617
Undo and redo changes in a FBD/LD section.................................................... 618
Using connectors in a FBD/LD section ............................................................. 619
Inspect windows in a FBD/LD section............................................................... 624
Tooltips for Variables in a FBD/LD/SFC Section ................................................ 628
Replace Variables in a FBD/LD Section............................................................ 630
Initialize search in a FBD/LD section ................................................................ 635
Initialize Animation Table in a FBD/LD section................................................... 636
Go to in a FBD/LD section ............................................................................... 637
Go to dialog box in a FBD/LD section ............................................................... 639
FBD Editor........................................................................................................... 643
Creating a program with FBD programming language ....................................... 643
Structure of an FBD program (function block language) ............................... 643
Creating an FBD Program ......................................................................... 645
Syntax and Semantics Check during programming...................................... 646
Navigating with the keyboard ..................................................................... 647
Selecting objects ...................................................................................... 648
Deleting, cutting, copying, pasting, duplicating, and moving objects .............. 650
Copying, pasting and adjusting pin variables............................................... 655
Inserting Rows and Columns ..................................................................... 656
Deleting Rows and Columns...................................................................... 657
Displaying the properties ........................................................................... 658
Refining DFBs and subroutines.................................................................. 659
Editing FFBs .................................................................................................. 661
General information about calling an FFB ................................................... 661
Calling an FFB via the FFB Input Assistant. ................................................ 663
Calling an FFB via the data selection .......................................................... 666
Assign actual parameters .......................................................................... 671
Using Public Variables............................................................................... 683
Expanding Functions................................................................................. 684
Negating FFB Pins.................................................................................... 685
EN and ENO Show and Hide ....................................................................... 686
Modifying the execution order .................................................................... 687
Replacing an FFB ..................................................................................... 691
10 33003101.26
Properties dialog box for elementary functions, procedures and sub-routine
blocks. ..................................................................................................... 693
Properties dialog box for elementary and derived function blocks
(FBs) ....................................................................................................... 695
Returning from a Subroutine or DFB ................................................................ 698
Returning from a Subroutine or DFB........................................................... 698
Return object properties dialog box ............................................................ 700
Calling a Subroutine ....................................................................................... 700
Calling a subroutine .................................................................................. 701
Jumps within the Current Section..................................................................... 705
Jump within the current section .................................................................. 705
Jump object properties dialog box .............................................................. 708
Definition of the Jump Target (Jump Labels) ..................................................... 710
Definitions of Jump Labels......................................................................... 710
Jump label objects properties dialog box..................................................... 713
Editing Links .................................................................................................. 715
Links........................................................................................................ 715
Placing a Link ........................................................................................... 716
Editing Links............................................................................................. 721
Entering Comments ........................................................................................ 729
Entering comments ................................................................................... 729
Online functions ............................................................................................. 731
Online functions........................................................................................ 731
FBD Reference Data Type .............................................................................. 731
Reference Data Type in FBD ..................................................................... 731
Export/Import ................................................................................................. 732
Export/Import FBD Sections ...................................................................... 733
Customize FBD Editor .................................................................................... 733
Customize FBD Editor Colors .................................................................... 733
FBD Favorite Bar..................................................................................... 735
LD Editor ............................................................................................................. 737
Creating a program with LD programming language .......................................... 737
Structure of an LD program (ladder diagram) .............................................. 738
Creating an LD program ............................................................................ 740
Syntax and Semantics Check during programming...................................... 744
33003101.26 11
View for variables ..................................................................................... 745
Navigating with the Keyboard .................................................................... 750
Selecting objects ...................................................................................... 752
Deleting, cutting, copying, pasting, duplicating, and moving objects .............. 755
Copying, and pasting variables .................................................................. 759
Insert Mode .............................................................................................. 760
Using Mnemonics ..................................................................................... 761
Displaying the properties ........................................................................... 762
Refining DFBs and subroutines.................................................................. 763
Inserting, Deleting, and Copying Rows ....................................................... 765
Columns Management .............................................................................. 766
Editing Contacts ............................................................................................. 767
Select contacts ......................................................................................... 768
Placing contacts ....................................................................................... 769
Property dialog box for contacts ................................................................. 773
Editing Coils................................................................................................... 775
Selection of coils....................................................................................... 776
Placing coils ............................................................................................. 778
Property dialog box for coils....................................................................... 783
Editing compare blocks ................................................................................... 786
Placing compare blocks............................................................................. 787
Compare block properties dialog box.......................................................... 790
Editing operation blocks .................................................................................. 792
Placing Operate Blocks ............................................................................. 792
Operate block properties dialog box ........................................................... 796
Editing FFBs .................................................................................................. 798
General information on calling an FFB ........................................................ 799
Calling an FFB via the FFB input assistant .................................................. 800
Calling an FFB via the data selection .......................................................... 804
Connection of FFBs to the Left Power Rail .................................................. 808
Assigning Actual Parameters ..................................................................... 809
Using Public Variables............................................................................... 822
Expanding Functions................................................................................. 824
Negating FFB Pins.................................................................................... 826
EN and ENO Show and Hide ....................................................................... 827
12 33003101.26
Properties dialog box for elementary functions, procedures and sub-routine
blocks. ..................................................................................................... 827
Properties dialog box for elementary and derived function blocks
(FBs) ....................................................................................................... 830
Returning from a Subroutine or DFB ................................................................ 832
Returning from a subroutine or DFB ........................................................... 832
Return object properties dialog box ............................................................ 834
Jumps within the Current Section..................................................................... 835
Jumps within the current section ................................................................ 835
Jump object properties dialog box .............................................................. 838
Definition of the Jump Target (Jump Labels) ..................................................... 840
Definitions of jump targets (jump labels) ..................................................... 840
Jump label properties dialog box ................................................................ 843
Editing Links .................................................................................................. 845
Select links............................................................................................... 845
Combining Links ....................................................................................... 847
Placing links ............................................................................................. 849
Editing links .............................................................................................. 864
Entering Comments ........................................................................................ 872
Entering comments ................................................................................... 872
Online functions ............................................................................................. 874
Online Functions....................................................................................... 874
LD Reference Data Type................................................................................. 874
Reference Data Type in LD........................................................................ 874
Export/Import ................................................................................................. 875
Export/Import LD Sections ......................................................................... 876
Customize LD Editor ....................................................................................... 876
Customize LD Editor Colors....................................................................... 876
LD Instruction Bar................................................................................... 878
LD Favorite Bar ....................................................................................... 879
SFC Editor........................................................................................................... 882
Creating a program with the SFC programming language .................................. 882
Structure of an SFC Program (Sequential Function Chart) ........................... 883
Creating an SFC Program ......................................................................... 885
Syntax and Semantics Check during Programming ..................................... 886
33003101.26 13
Navigating with the keyboard ..................................................................... 887
Selecting Objects...................................................................................... 889
Undo and Redo Changes .......................................................................... 891
Deleting, cutting, copying, pasting and moving objects................................. 892
Inserting Rows and Columns ..................................................................... 897
Deleting Rows and Columns...................................................................... 899
Displaying the object properties ................................................................. 900
Initialize Search ........................................................................................ 901
Initialize Animation Table ........................................................................... 902
Refining steps, macro steps and transitions ................................................ 904
Go to ....................................................................................................... 905
Go to dialog.............................................................................................. 907
List and display jumps ............................................................................... 911
Go to Step................................................................................................ 912
General Information about Steps ..................................................................... 913
Selecting steps ......................................................................................... 913
Placing steps............................................................................................ 915
Editing "normal" steps ..................................................................................... 916
Defining the properties of steps.................................................................. 917
Steps properties dialog box ....................................................................... 924
Editing macro steps ........................................................................................ 929
Defining the properties of macro steps........................................................ 930
Macro Steps Properties Dialog Box ............................................................ 937
Editing input steps .......................................................................................... 940
Defining the properties of InSteps .............................................................. 940
InSteps properties dialog box..................................................................... 942
Editing Output Steps ....................................................................................... 946
Defining the properties of OutSteps ............................................................ 947
OutStep properties dialog box.................................................................... 948
Editing actions................................................................................................ 950
Assigning actions to a step ........................................................................ 951
Display modes for actions.......................................................................... 960
Editing Transitions .......................................................................................... 961
Placing transitions..................................................................................... 961
Defining transition properties ..................................................................... 963
14 33003101.26
Properties dialog box for transitions............................................................ 968
Editing Jumps ................................................................................................ 970
Placing jumps ........................................................................................... 971
Defining jump properties............................................................................ 972
Jump properties dialog box........................................................................ 974
Editing Branches and Joints ............................................................................ 976
Selecting Branches and Joints ................................................................... 977
Placing branches and joints ....................................................................... 978
Modifying the Properties of Branches and Joints ......................................... 979
Branches properties dialog box .................................................................. 982
Joints properties dialog box ....................................................................... 983
Inserting Alternative Strings and Simultaneous Strings ...................................... 984
Selecting Alternative Sequences and Parallel Sequences ............................ 984
Placing alternative sequences and parallel sequences................................. 985
Inserting Step-Transitions and Transition-Step-Sequences ................................ 988
Selecting Step-Transition and Transition-Step Sequences ........................... 988
Placing step-transition and transition-step sequences.................................. 989
Editing Links .................................................................................................. 992
Links........................................................................................................ 993
Placing a Link ........................................................................................... 994
Editing links .............................................................................................. 998
Entering Comments ...................................................................................... 1003
Entering comments ................................................................................. 1003
Online functions ........................................................................................... 1005
Online functions...................................................................................... 1005
Export/Import ............................................................................................... 1005
Export/Import SFC Sections .................................................................... 1005
Customize SFC Editor Colors ........................................................................ 1005
Customize SFC Editor Colors .................................................................. 1006
Common Function for Textual Language .............................................................. 1009
Selecting Text............................................................................................... 1009
Deleting, cutting, copying, pasting and moving text.......................................... 1012
Undoing and redoing changes ....................................................................... 1014
Match case .................................................................................................. 1015
Zoom (font size) ........................................................................................... 1016
33003101.26 15
Using Bookmarks ......................................................................................... 1017
Go to ........................................................................................................... 1019
Go to dialog box ........................................................................................... 1021
Searching text .............................................................................................. 1023
Searching and replacing text ......................................................................... 1025
Call a subroutine .......................................................................................... 1027
Refine DFBs and subroutines ........................................................................ 1028
Inspect windows ........................................................................................... 1030
Enter comments .......................................................................................... 1034
Printing the Current Section........................................................................... 1035
Initialize search ............................................................................................ 1036
Initialize Animation table ............................................................................... 1037
Displaying the section properties ................................................................... 1039
Fullscreen .................................................................................................... 1039
Customize IL and ST Editor Colors ................................................................ 1040
IL Editor............................................................................................................. 1044
Structure of an IL program............................................................................. 1044
Creating an IL Program ................................................................................. 1046
Syntax and Semantics Check during Programming ......................................... 1047
Navigating with the keyboard......................................................................... 1052
Data input .................................................................................................... 1053
Calling an FFB ............................................................................................. 1059
Using Public Variables .................................................................................. 1070
Online functions ........................................................................................... 1072
Reference Data Type in IL ............................................................................. 1072
Export/Import IL Sections .............................................................................. 1073
ST Editor ........................................................................................................... 1075
Structure of an ST program ........................................................................... 1075
Creating an ST Program ............................................................................... 1077
Syntax and Semantics Check during Programming ......................................... 1078
Navigating with the keyboard......................................................................... 1082
Data input .................................................................................................... 1083
Calling an FFB ............................................................................................. 1090
Using public variables ................................................................................... 1101
Calling a statement ....................................................................................... 1103
16 33003101.26
Online functions ............................................................................................1110
Reference Data Type in ST ............................................................................1111
Export/Import IL Sections ...............................................................................1111
LL984 Editor .......................................................................................................1113
Creating a Program with LL984 Programming Language ..................................1113
Project Settings for LL984 Programs .........................................................1113
Structure of an LL984 Program .................................................................1114
Creating an LL984 Program......................................................................1117
Syntax and Semantics Check During Programming....................................1119
Network Display...................................................................................... 1122
Navigating with the Keyboard .................................................................. 1123
Selecting Objects.................................................................................... 1125
Deleting, Cutting, Copying, Pasting and Moving Objects ............................ 1127
Displaying the Properties......................................................................... 1130
Inserting and Deleting Rows/Columns ...................................................... 1130
Editing Contacts ........................................................................................... 1132
Selecting Contacts .................................................................................. 1132
Placing Contacts..................................................................................... 1134
Properties Dialog for Contacts ................................................................. 1137
Editing Coils................................................................................................. 1139
Selecting Coils........................................................................................ 1140
Placing Coils .......................................................................................... 1142
Property Dialog for Coils.......................................................................... 1145
Editing Function Blocks................................................................................. 1147
Editing Function Blocks ........................................................................... 1147
Using Mnemonics ................................................................................... 1150
Editing Links ................................................................................................ 1151
Selecting Links ....................................................................................... 1151
Combining Links ..................................................................................... 1152
Placing Links .......................................................................................... 1153
Editing Links........................................................................................... 1155
Editing Equation Network Blocks ................................................................... 1156
Editing Equation Network Blocks.............................................................. 1156
Editing the ST Assignment Expression ..................................................... 1158
Assigning Variables to LL984 Objects ............................................................ 1163
33003101.26 17
Assigning Variables to LL984 Objects....................................................... 1163
Calling Subroutines ...................................................................................... 1166
Calling Subroutines................................................................................. 1166
Entering Comments ...................................................................................... 1168
Entering Comments ................................................................................ 1168
Customize LL984 Editor Colors ..................................................................... 1170
Customize LL984 Editor Colors................................................................ 1170
Programming Languages Data Selection Dialog Box ............................................ 1174
Instance selection dialog box......................................................................... 1174
FFB Selection Dialog box .............................................................................. 1179
FFB Type Selection Dialog box ...................................................................... 1183
Data selection dialog box............................................................................. 1185
Function Input Assistant ................................................................................ 1192
Data Properties ............................................................................................ 1195
Generate variables ....................................................................................... 1197
I/O Objects tab ................................................................................................... 1200
Introduction to the I/O Object Tab................................................................... 1200
I/O Objects Tab for a Processor ..................................................................... 1202
I/O Objects Tab for a Module ......................................................................... 1204
Details of Areas in the I/O Objects Tab ........................................................... 1206
I/O Objects Tab for a Bus Device ................................................................... 1212
How to Use the I/O Objects Tab ..................................................................... 1212
Memory Tab....................................................................................................... 1218
Memory Tab ................................................................................................. 1218
Type Library Browser.......................................................................................... 1224
Access to the Type Library Browser ............................................................... 1224
Description of the Type Library Browser ......................................................... 1226
Configuration of Columns of the Type Library Browser..................................... 1228
Drag & Drop of FFBs in a program section...................................................... 1230
Search/Replace Tool .......................................................................................... 1232
Overview of the Search / Replace tool ............................................................ 1232
General Features for Search/Replace ............................................................ 1234
Searching for Data........................................................................................ 1235
Replacing Data............................................................................................. 1236
Search Toolbar ............................................................................................. 1237
18 33003101.26
Data Search Dialog....................................................................................... 1239
Cross-References (Search Results) ............................................................... 1240
Cross-References (Replace) ......................................................................... 1243
Tracing Variables / Addresses ....................................................................... 1245
User's Function Blocks ....................................................................................... 1247
DFB Type..................................................................................................... 1247
DFB Type............................................................................................... 1247
Creating a DFB Type............................................................................... 1249
Configuration of a DFB Type .................................................................... 1250
Programming a DFB type ........................................................................ 1254
Deleting a DFB type element ................................................................... 1256
Archiving a DFB Type.............................................................................. 1257
How to Reinforce Protection of a DFB Type .............................................. 1258
Deleting a DFB Type ............................................................................... 1260
How to access the attributes of a DFB type ............................................... 1261
Authorized DFB Type Modifications.......................................................... 1262
DFB Instance ............................................................................................... 1266
DFB Instance ......................................................................................... 1266
Creating a DFB Instance ......................................................................... 1267
Creating several DFB Instances............................................................... 1269
Deleting a DFB instance .......................................................................... 1269
Operations on DFB Instances .................................................................. 1269
Modifying the Attributes of a DFB Instance................................................ 1272
Authorized DFB Instance Modifications .................................................... 1276
Searching / Animating DFB Instances....................................................... 1277
How to Create Nested DFBs.......................................................................... 1279
How to Create Nested DFBs .................................................................... 1279
Project Configuration ......................................................................................... 1280
Introduction to the configuration........................................................................... 1281
Proposed Services ....................................................................................... 1281
Services offered in offline mode ..................................................................... 1286
Services Offered In Online Mode ................................................................... 1287
Access to project configuration ...................................................................... 1288
Bus Editors ........................................................................................................ 1294
Rack configuration on local bus ..................................................................... 1294
33003101.26 19
Organization of the Racks ....................................................................... 1294
How to configure the racks ...................................................................... 1299
Configuration of the power supply modules..................................................... 1300
How to configure the power supply modules ............................................. 1301
Configuration of the processor ....................................................................... 1303
Choice and replacement of the processor ................................................. 1303
Configuration of the modules in the PLC station .............................................. 1307
How to configure the modules in the PLC station ....................................... 1307
Configuration of devices on the field bus......................................................... 1311
Configuration of the CANopen Slaves for Modicon M340 ........................... 1311
How to access and create a Fipio field bus................................................ 1314
Creating and Accessing RIO\DIO Field Buses........................................... 1318
How to configure devices on the RIO/DIO bus........................................... 1324
Consumption management ........................................................................... 1329
Power consumption budget ..................................................................... 1329
Budget on the number of application-specific channels .............................. 1332
Bus editors in online mode ............................................................................ 1335
Online Information .................................................................................. 1336
Modules editor ................................................................................................... 1340
Configuration of Modicon M340 processors .................................................... 1340
Configuration of Modicon M340 Processors .............................................. 1340
Configuration of Premium processors............................................................. 1353
Configuration of Premium\Atrium processors ............................................ 1353
Access to PCMCIA memory cards of Premium processors......................... 1360
Access to control loop configuration for Premium processors ..................... 1361
Configuration of the Quantum processors....................................................... 1363
Configuration of Quantum processors ...................................................... 1363
Configuration of Modbus ports on Quantum .............................................. 1369
Configuration of the input\output modules for a Premium\Atrium, Quantum or
Modicon M340 station................................................................................... 1372
Access to the Modicon, Premium or Atrium I/O module configuration
editor ..................................................................................................... 1372
Access the Quantum input/output module configuration editor.................... 1374
General functionalities of the editor...................................................................... 1377
Analysis of the configuration .......................................................................... 1377
20 33003101.26
Export\Import of the configuration .................................................................. 1378
Printing the configuration............................................................................... 1378
Debugging and adjustment ............................................................................... 1381
Debugging the program ...................................................................................... 1382
Safety precautions........................................................................................ 1382
Modification in RUN ................................................................................ 1383
Switch to STOP of a PLC in Debug mode ................................................. 1383
Setting a task to STOP ............................................................................ 1384
Task deactivation .................................................................................... 1385
Deactivation of Inputs/Outputs ................................................................. 1386
Use of the Step by Step mode and Breakpoint .......................................... 1387
Unwanted disconnection in Debug mode for Premium ............................... 1387
Debug Screen Via a Fipway, Fipio or Uni-Telway Network with a PCMCIA
Card ...................................................................................................... 1388
Behavior of Forced Variables between Modsoft/NxT/Concept and Control
Expert .................................................................................................... 1388
Program Animation....................................................................................... 1389
Introduction to animation ......................................................................... 1389
Section in textual languages (Structured Text or Instruction List)................. 1393
Section in a Ladder Diagram language ..................................................... 1394
Section in Function Block Diagram (FBD) language................................... 1397
Section in Sequential Function Chart language (SFC)................................ 1399
Display of Prepositioned steps, after an on-line modification....................... 1400
DFB instances (user function blocks)........................................................ 1401
Representation of forced variables ........................................................... 1404
Debugging in Ladder Language..................................................................... 1405
Inserting a breakpoint in Ladder Diagram language (LD)............................ 1405
Step by step execution mode in Ladder Diagram language (LD) ................. 1408
Inserting a Watchpoint in Ladder Diagram Language ................................. 1411
Debugging in Textual Languages (Structured Text, Instruction List) .................. 1413
Insertion of a breakpoint in textual languages (Structured Text or
Instruction List) ....................................................................................... 1414
Step by step execution mode in textual languages (Structured Text or
Instruction List) ....................................................................................... 1416
33003101.26 21
Insertion of a Watchpoint in Textual Languages (Structured Text or
Instruction List) ....................................................................................... 1419
Debugging in Function Block Diagram (FBD) Language .................................. 1422
Inserting a breakpoint in Function Block Diagram language........................ 1422
Step by step execution mode in Function Block Diagram language
(FBD)..................................................................................................... 1425
Inserting a watchpoint in Function Block Diagram language (FBD).............. 1428
Debugging User Function Block (DFB) Instances............................................ 1431
Inserting a breakpoint in a DFB instance (user function block) .................... 1432
Step by step execution mode in a DFB instance (user function
block)..................................................................................................... 1433
Inserting a watchpoint in a user function block (DFB) ................................. 1434
Debugging in Sequential Function Chart Language (SFC) ............................... 1435
Inserting a breakpoint in Sequential Function Chart language
(SFC)..................................................................................................... 1435
Step by step execution mode in Sequential Function Chart language
(SFC)..................................................................................................... 1439
Inserting a watchpoint in Sequential Function Chart language .................... 1443
Information on Debugging ............................................................................. 1443
Tracing task execution ............................................................................ 1444
Task states during debugging .................................................................. 1446
Disconnection during the debug phase ..................................................... 1446
Operation of the alarm relay in Debug mode ............................................. 1447
PLC debug screen ........................................................................................ 1448
Overview of the CPU debugging screen ................................................... 1448
Description of the Task tab: Task checking field ......................................... 1450
Description of the Task tab: Operating mode field ...................................... 1451
Description of tab: Realtime Clock............................................................ 1454
Description of the Tab: Information ........................................................... 1455
Viewing and adjusting variables........................................................................... 1460
Introduction to variable animation .................................................................. 1460
Displaying variables in debug mode ......................................................... 1460
Variable Display Window............................................................................... 1461
Introduction to the Variable Output Window............................................... 1462
Variable Display Boxes ................................................................................. 1464
22 33003101.26
Introduction to variable display boxes ....................................................... 1465
Animation Tables .......................................................................................... 1467
Permanent and Temporary Animation Tables ............................................ 1467
Introduction to Animation Tables .............................................................. 1469
Managing Animation Tables..................................................................... 1470
Multiple Modifications of Animation Table Variables ................................... 1473
Animation Table Properties ...................................................................... 1474
Basic functions ....................................................................................... 1475
Animation of Strings in the Animation Table............................................... 1479
Modification Mode................................................................................... 1481
Force Mode ............................................................................................ 1486
Multiple modification and forcing of Boolean variables ............................... 1491
Animation Table of Forced Bits................................................................. 1494
Instruction Editor (LL984) .............................................................................. 1495
Instruction Editor..................................................................................... 1495
Modifying values:.......................................................................................... 1498
Modifying values: .................................................................................... 1498
Machine-Process Simulator ................................................................................ 1502
Introduction .................................................................................................. 1502
Diagnostics .......................................................................................................... 1504
Introduction to diagnostics tools........................................................................... 1505
Diagnostics with Control Expert ..................................................................... 1505
Diagnostics screens ........................................................................................... 1508
Module and processor diagnostics screens .................................................... 1508
Viewing fault diagnostics ......................................................................... 1508
Lists of fault diagnostics .......................................................................... 1510
Diagnostics Viewer............................................................................................. 1514
Reminder of the Diagnostics Associated with the Viewer ................................. 1514
Operation of the diagnostics in Control Expert ................................................ 1516
Description of the Diagnostics Viewer ............................................................ 1517
How to find causes ....................................................................................... 1520
Configuring the display.................................................................................. 1522
Managing error messages............................................................................. 1524
Diagnostics Viewer Commands ..................................................................... 1526
DiagViewer Properties .................................................................................. 1528
33003101.26 23
Archiving error messages.............................................................................. 1530
System diagnostics ............................................................................................ 1535
System diagnostic ........................................................................................ 1535
Project diagnostics ............................................................................................. 1539
How to Create a User Diagnostic DFB............................................................ 1539
Project diagnostic ......................................................................................... 1541
Operator screen .................................................................................................. 1545
General information............................................................................................ 1546
Introduction .................................................................................................. 1546
Creation of Runtime Screens......................................................................... 1547
First steps.......................................................................................................... 1549
Working principles ........................................................................................ 1549
How to access the operator screens ......................................................... 1549
Menus and tools in the runtime screen editor .................................................. 1550
Menus in the operator screen editor ......................................................... 1551
Edit toolbar............................................................................................. 1554
Configuring options from the runtime screen editor.......................................... 1557
General configuration of operator screens ................................................ 1558
Editing runtime screens ...................................................................................... 1559
Editing screens from the browser .................................................................. 1559
Editing operator screens.......................................................................... 1559
Operator screen editor functions .............................................................. 1561
Screen Family Editor Functions................................................................ 1565
Operator screen properties ...................................................................... 1567
Properties of Operator Screen Families .................................................... 1569
Creating an object ........................................................................................ 1571
Introduction of a graphic screen object...................................................... 1571
How to create standard objects ................................................................ 1571
How to insert an image in a screen ........................................................... 1573
How to create driving objects ................................................................... 1575
Operation of the driving objects................................................................ 1576
Default Properties screen.............................................................................. 1580
Default Properties screen ........................................................................ 1580
Modification of an object’s attributes............................................................... 1582
How to access an object’s attributes ......................................................... 1582
24 33003101.26
Design tab.............................................................................................. 1583
Extended colors...................................................................................... 1584
Text tab .................................................................................................. 1585
Animation Tab......................................................................................... 1587
Animation type tab .................................................................................. 1589
Trend diagrams ...................................................................................... 1592
Bar chart ................................................................................................ 1593
Screen browse tab .................................................................................. 1595
Control tab ............................................................................................. 1597
Image Tab .............................................................................................. 1599
Explicit Exchanges Tab ........................................................................... 1601
Information on the objects ....................................................................... 1602
The data selection tool ............................................................................ 1604
Manipulation of objects in runtime screens ..................................................... 1607
How to select graphic objects................................................................... 1607
How to move and resize objects............................................................... 1608
How to delete and copy objects................................................................ 1610
How to position objects............................................................................ 1611
How to create compound objects ............................................................. 1613
Managing the runtime screens messages editor ............................................. 1615
Operator screens messages editor........................................................... 1615
How to manage messages linked to operator screens ............................... 1617
Find dialog box ....................................................................................... 1619
Replace dialog box ................................................................................. 1620
Message Renumbering Dialog Box .......................................................... 1621
Message editing and import/export function .............................................. 1622
Runtime screens in online mode.......................................................................... 1626
Basic functions in online mode....................................................................... 1626
How to select an animated object................................................................... 1627
How to use command objects to modify the variables associated with
objects......................................................................................................... 1628
How to view the variables associated with graphic objects ............................... 1629
How to modify the variables associated with objects from an animation
table ............................................................................................................ 1630
How to search for cross-references................................................................ 1631
33003101.26 25
How to manage the display of operator screens .............................................. 1632
How to modify screen control......................................................................... 1634
How to obtain information on objects when in connected mode ........................ 1635
Runtime screens objects library........................................................................... 1637
Managing library objects ............................................................................... 1637
The Objects Library................................................................................. 1637
How to manage the list of graphic items in the library ................................. 1638
Properties of the object library and its elements......................................... 1641
Handling the Objects............................................................................... 1644
Dereferencing in Operator Screens .......................................................... 1647
Documentation, Import/export .......................................................................... 1650
Documentation................................................................................................... 1651
Creating Project Documentation .................................................................... 1651
Documentation Structure .............................................................................. 1652
Topics in Documentation ............................................................................... 1654
Creating Project Documentation .................................................................... 1663
Print Preview................................................................................................ 1666
Page Setup .................................................................................................. 1668
Print ............................................................................................................ 1669
Printout Setup .............................................................................................. 1672
Import / Export ................................................................................................... 1677
General information on the Import/Export function........................................... 1677
General Information on Import/Export....................................................... 1677
Import / Export Files ................................................................................ 1679
Type of dialog box for the export function .................................................. 1680
Type of dialog boxes for the import function .............................................. 1683
Managing Conflicts ................................................................................. 1685
Importing/Exporting the various elements of Control Expert ............................ 1687
Export of the input/output configuration..................................................... 1687
Import of the input/output configuration ..................................................... 1689
Exporting the program............................................................................. 1690
Importing the Program............................................................................. 1692
Exporting DFB types ............................................................................... 1694
Importing DFB types ............................................................................... 1695
Exporting DDTs ...................................................................................... 1696
26 33003101.26
Importing DDTs....................................................................................... 1697
Exporting Variables ................................................................................. 1698
Importing Variables ................................................................................. 1701
Exporting the communication network configuration .................................. 1702
Importing the configuration of a communication network ............................ 1703
Exporting operator screens...................................................................... 1704
Importing operator screens ...................................................................... 1705
Exporting animation tables ...................................................................... 1707
Importing animation tables....................................................................... 1708
Exporting a functional module .................................................................. 1709
Importing a functional module .................................................................. 1710
Exporting a global project ........................................................................ 1711
Importing a global project ........................................................................ 1713
Exporting/Importing LL984 Segments/Networks ........................................ 1715
Wizard for importing the various elements of Control Expert ............................ 1717
Using the assistant.................................................................................. 1717
Variables tab of the wizard ....................................................................... 1722
DFB and DDT Tabs of the Wizard............................................................. 1724
SR, Sections, Events and Macro steps tabs of the wizard .......................... 1725
Wizard animation tables tab..................................................................... 1727
Wizard functional module tabs ................................................................. 1727
Correspondence file................................................................................ 1729
Conversion Wizard ............................................................................................. 1732
Conversion Wizard ............................................................................................. 1733
General Description of the Conversion Wizard ................................................ 1733
Introduction ............................................................................................ 1733
Access to Conversion Wizard .................................................................. 1735
General Representation .......................................................................... 1737
Conversion and Result ............................................................................ 1738
Structure Tab of the Conversion Wizard.......................................................... 1739
Introduction ............................................................................................ 1739
Selecting Application Parts to be Converted.............................................. 1741
I/O Remapping Tab of the Conversion Wizard................................................. 1743
Introduction ............................................................................................ 1743
Remapping Table.................................................................................... 1746
33003101.26 27
Remapping Channels, Groups of Channels or Specific I/O Types ............... 1749
Clustering and Remapping of Memory Variables ....................................... 1752
Memory Area Tabs of the Conversion Wizard............................................ 1753
Concurrent Editing .................................................................................. 1755
Exclude, Communication -1, Type Restriction ........................................... 1757
CPU Configuration Tab of the Conversion Wizard ........................................... 1761
Introduction ............................................................................................ 1762
Appendices .......................................................................................................... 1764
Hyperlinks in Control Expert ............................................................................... 1765
General ....................................................................................................... 1765
Introduction to Hyperlinks ........................................................................ 1765
Representation and opening of a hyperlink ............................................... 1767
Principles..................................................................................................... 1768
Definitions .............................................................................................. 1768
Overview of operate-modes..................................................................... 1769
1-step mode ........................................................................................... 1769
2-step mode ........................................................................................... 1771
Description of the Hyperlink Comment Window ......................................... 1772
Properties .............................................................................................. 1775
List of barred characters .......................................................................... 1776
Hyperlinks in the project browser ................................................................... 1777
Creating a hyperlink in the project browser................................................ 1777
Editing the properties of a hyperlink in the project browser ......................... 1778
Opening a hyperlink from the project browser............................................ 1780
Deleting a hyperlink in the project browser ................................................ 1780
Hyperlink in the data editor ............................................................................ 1781
Creating a hyperlink in the data editor....................................................... 1781
Editing a hyperlink in the data editor ......................................................... 1783
Selecting a hyperlink in the data editor...................................................... 1785
Deleting a hyperlink in the data editor ....................................................... 1786
Hyperlinks in the DFB type attributes.............................................................. 1787
Creating a Hyperlink from DFB Type Attributes ......................................... 1787
Modifying a Hyperlink from DFB Type Attributes ........................................ 1789
Selecting a Hyperlink from DFB Type Attributes ........................................ 1791
Deleting a Hyperlink from DFB Type Attributes .......................................... 1793
28 33003101.26
Hyperlinks in animation tables ....................................................................... 1795
Creating a hyperlink in an animation table................................................. 1795
Editing a hyperlink from an animation table ............................................... 1797
Selecting a hyperlink from an animation table............................................ 1798
Deleting a hyperlink from an animation table ............................................. 1799
Hyperlinks in runtime screens........................................................................ 1799
Creating a hyperlink from operator screens ............................................... 1800
Editing a hyperlink in the operator screens ................................................ 1801
Selecting a hyperlink in an operator screen ............................................... 1803
Deleting a hyperlink in an operator screen ................................................ 1803
Hyperlinks in the documentation folder ........................................................... 1805
Creating a hyperlink in the general information of the project folder ............ 1805
Editing a hyperlink in the documentation folder.......................................... 1807
Deleting a hyperlink in the documentation folder........................................ 1809
Hyperlinks and drag-and-drop ....................................................................... 1810
Drag/drop............................................................................................... 1811
User Interface .................................................................................................... 1816
Window ....................................................................................................... 1816
Anchored window ......................................................................................... 1818
Menus ......................................................................................................... 1821
Menu commands.......................................................................................... 1823
Toolbar ........................................................................................................ 1826
Output windows............................................................................................ 1832
Status bar .................................................................................................... 1834
Directory Structures ...................................................................................... 1837
Using the Mouse .......................................................................................... 1838
Using the Keyboard ...................................................................................... 1839
Data selection boxes .................................................................................... 1841
Dialog boxes ................................................................................................ 1842
Keyboard Shortcuts............................................................................................ 1848
General Keyboard Shortcuts ......................................................................... 1848
Bus Editor Keyboard Shortcuts ................................................................ 1848
Control Expert Main Screen and Project Browser Keyboard
Shortcuts ............................................................................................... 1849
Configuring the Project.................................................................................. 1851
33003101.26 29
PLC Configuration Screen Keyboard Shortcuts ......................................... 1851
Creating the Project ...................................................................................... 1852
ST/IL Editors Keyboard Shortcuts ............................................................ 1852
FBD Editor Keyboard Shortcuts ............................................................... 1854
SFC Editor Keyboard Shortcuts ............................................................... 1855
LD Editor Keyboard Shortcuts.................................................................. 1857
Data Editor Keyboard Shortcuts ............................................................... 1859
Type Library Browser Keyboard Shortcuts ................................................ 1860
Type Library Manager Keyboard Shortcuts ............................................... 1861
Operating the Project .................................................................................... 1861
Search Replace Tool Screen Keyboard Shortcuts...................................... 1862
Diagnostic Viewer Screen Keyboard Shortcuts.......................................... 1862
PLC Screen Keyboard Shortcuts.............................................................. 1862
Animation Screen Keyboard Shortcuts ..................................................... 1863
Operator Screen Keyboard Shortcuts ....................................................... 1864
Documenting the Project ............................................................................... 1865
Documentation Screen Keyboard Shortcuts.............................................. 1865
Glossary ............................................................................................................... 1867
Index ..................................................................................................................... 1875
30 33003101.26
Safety Information
Safety Information
Important Information
Read these instructions carefully, and look at the equipment to become familiar with the
device before trying to install, operate, service, 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.
The addition of this symbol to a “Danger” or “Warning” safety label indicates that an
electrical hazard exists which will result in personal injury if the instructions are not
followed.
This is the safety alert symbol. It is used to alert you to potential personal injury
hazards. Obey all safety messages that follow this symbol to avoid possible injury or
death.
! DANGER
DANGER indicates a hazardous situation which, if not avoided, will result in death or serious
injury.
! WARNING
WARNING indicates a hazardous situation which, if not avoided, could result in death or
serious injury.
! CAUTION
CAUTION indicates a hazardous situation which, if not avoided, could result in minor or
moderate injury.
NOTICE
NOTICE is used to address practices not related to physical injury.
33003101.26 31
Safety Information
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 its installation, and has received safety training to
recognize and avoid the hazards involved.
WARNING
UNGUARDED EQUIPMENT
• Do not use this software and related automation equipment on equipment which does
not have point-of-operation protection.
• Do not reach into machinery during operation.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
This automation equipment and related software is used to control a variety of industrial
processes. The type or model of automation equipment suitable for each application will
vary depending on factors such as the control function required, degree of protection
required, production methods, unusual conditions, government regulations, etc. In some
applications, more than one processor may be required, as when backup redundancy is
needed.
Only you, the user, machine builder or system integrator can be aware of all the conditions
and factors present during setup, operation, and maintenance of the machine and,
therefore, can determine the automation equipment and the related safeties and interlocks
which can be properly used. When selecting automation and control equipment and related
software for a particular application, you should refer to the applicable local and national
standards and regulations. The National Safety Council's Accident Prevention Manual
(nationally recognized in the United States of America) also provides much useful
information.
In some applications, such as packaging machinery, additional operator protection such as
point-of-operation guarding must be provided. This is necessary if the operator's hands and
32 33003101.26
Safety Information
other parts of the body are free to enter the pinch points or other hazardous areas and
serious injury can occur. Software products alone cannot protect an operator from injury. For
this reason the software cannot be substituted for or take the place of point-of-operation
protection.
Ensure that appropriate safeties and mechanical/electrical interlocks related to point-of-
operation protection have been installed and are operational before placing the equipment
into service. All interlocks and safeties related to point-of-operation protection must be
coordinated with the related automation equipment and software programming.
NOTE: Coordination of safeties and mechanical/electrical interlocks for point-of-
operation protection is outside the scope of the Function Block Library, System User
Guide, or other implementation referenced in this documentation.
WARNING
EQUIPMENT OPERATION HAZARD
• Verify that all installation and set up procedures have been completed.
• Before operational tests are performed, remove all blocks or other temporary holding
means used for shipment from all component devices.
• Remove tools, meters, and debris from equipment.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
Follow all start-up tests recommended in the equipment documentation. Store all equipment
documentation for future references.
Software testing must be done in both simulated and real environments.
Verify that the completed system is free from all short circuits and temporary grounds that
are not installed according to local regulations (according to the National Electrical Code in
the U.S.A, for instance). If high-potential voltage testing is necessary, follow
recommendations in equipment documentation to prevent accidental equipment damage.
Before energizing equipment:
• Remove tools, meters, and debris from equipment.
33003101.26 33
Safety Information
34 33003101.26
About the Book
Validity Note
This document is valid for EcoStruxure™ Control Expert 15.1 or later.
Related Documents
Title of documentation Reference number
EcoStruxure™ Control Expert, Program Languages 35006144 (English), 35006145 (French), 35006146
and Structure, Reference Manual (German), 35013361 (Italian), 35006147 (Spanish),
35013362 (Chinese)
EcoStruxure™ Control Expert, System Bits and Words, EIO0000002135 (English), EIO0000002136 (French),
Reference Manual EIO0000002137 (German), EIO0000002138 (Italian),
EIO0000002139 (Spanish), EIO0000002140
(Chinese)
EcoStruxure™ Control Expert, Installation Manual 35014792 (English), 35014793 (French), 35014794
(German), 35014795 (Spanish), 35014796 (Italian),
35012191 (Chinese)
EcoStruxure™ Control Expert, LL984 Editor, Reference EIO0000000549 (English), EIO0000000802 (French),
Manual EIO0000000803 (German), EIO0000000804 (Italian),
EIO0000000805 (Spanish), EIO0000000806
(Chinese)
EcoStruxure™ Control Expert, Concept Application 33002515 (English), 33002516 (French), 33002517
Converter, User Manual (German), 33003676 (Italian), 33002518 (Spanish),
33003677 (Chinese)
EcoStruxure™ Control Expert, PL7 Application 35006148 (English), 35006149 (French), 35006150
Converter, User Manual (German), 35013967 (Italian), 35006151 (Spanish),
35012199 (Chinese)
Modicon M580, Change Configuration on the Fly, User EIO0000001590 (English), EIO0000001591 (French),
Guide EIO0000001592 (German), EIO0000001594 (Italian),
33003101.26 35
About the Book
Modicon M580 Hot Standby, System Planning Guide NHA58880 (English), NHA58881 (French),
for Frequently Used Architectures NHA58882 (German), NHA58883 (Italian), NHA58884
(Spanish), NHA58885 (Chinese)
Modicon M580, System Planning Guide for Complex NHA58892 (English), NHA58893 (French),
Topologies NHA58894 (German), NHA58895 (Italian), NHA58896
(Spanish), NHA58897 (Chjnese)
Modicon M340 for Ethernet, Communications Modules 31007131 (English), 31007132 (French), 31007133
and Processors, User Manual (German), 31007494 (Italian), 31007134 (Spanish),
31007493 (Chinese)
Premium and Atrium using EcoStruxure™ Control 35006216 (English), 35006217 (French), 35006218
Expert, Counter Modules, User Manual (German), 35013968 (Italian), 35006219 (Spanish),
35012200 (Chinese)
Premium and Atrium using EcoStruxure™ Control 35006242 (English), 35006243 (French), 35006244
Expert, Process Control, User Manual (German), 35014013 (Italian), 35006245 (Spanish),
35012198 (Chinese)
Communication Services and Architectures, Reference 35010500 (English), 35010501 (French), 35006176
Manual (German), 35013966 (Italian), 35006177 (Spanish),
35012196 (Chinese)
Premium and Atrium using EcoStruxure™ Control 35008155 (English), 35008156 (French), 35008157
Expert, Fipio Bus, Setup Manual (German), 35013953 (Italian), 35008158 (Spanish),
35013954 (Chinese)
Premium and Atrium using EcoStruxure™ Control 35006183 (English), 35006185 (French), 35006186
Expert, Fipway Network, User Manual (German), 35013955 (Italian), 35006187 (Spanish),
35013956 (Chinese)
Premium and Atrium using EcoStruxure™ Control 35006192 (English), 35006193 (French), 35006194
Expert, Ethernet Network Modules, User Manual (German), 31007214 (Italian), 35006195 (Spanish),
31007102 (Chinese)
Premium and Atrium using EcoStruxure™ Control 35006188 (English), 35006189 (French), 35006190
Expert, Modbus Plus Network, User Manual (German), 35013962 (Italian), 35006191 (Spanish),
35013963 (Chinese)
Premium using EcoStruxure™ Control Expert, Motion 35010601 (English), 35010602 (French), 35010603
Function Blocks, Start-up Guide (German), 35010600 (Italian), 35010604 (Spanish),
35012309 (Chinese)
Modicon M340, Processors, Setup Manual 35012676 (English), 35012677 (French), 35013351
(German), 35013352 (Italian), 35013353 (Spanish),
35013354 (Chinese)
36 33003101.26
About the Book
Modicon M340, CANopen, Setup Manual 35013944 (English), 35013945 (French), 35013946
(German), 35013948 (Italian), 35013947 (Spanish),
35013949 (Chinese)
Quantum using EcoStruxure™ Control Expert, 35010529 (English), 35010530 (French), 35010531
Hardware Reference Manual (German), 35013975 (Italian), 35010532 (Spanish),
35012184 (Chinese)
Quantum using EcoStruxure™ Control Expert, Change S1A48967 (English), S1A48968 (French), S1A48969
Configuration On The Fly, User Guide (German), S1A48970 (Italian), S1A48972 (Spanish),
S1A48976 (Chinese)
EcoStruxure™ Control Expert, Diagnostics, Block 33002523 (English), 33002524 (French), 33002525
Library (German), 33003680 (Italian), 33002526 (Spanish),
33003681 (Chinese)
EcoStruxure™ Control Expert, Communication, Block 33002527 (English), 33002528 (French), 33002529
Library (German), 33003682 (Italian), 33002530 (Spanish),
33003683 (Chinese)
EcoStruxure™ Control Expert, I/O Management, Block 33002531 (English), 33002532 (French), 33002533
Library (German), 33003684 (Italian), 33002534 (Spanish),
33003685 (Chinese)
EcoStruxure™ Control Expert, System, Block Library 33002539 (English), 33002540 (French), 33002541
(German), 33003688 (Italian), 33002542 (Spanish),
33003689 (Chinese)
You can download these technical publications, the present document and other technical
information from our website www.se.com/en/download/.
33003101.26 37
General
What’s in This Part
General Presentation of Control Expert......................................40
Programming Language Editors................................................49
Connecting a terminal to a PLC.................................................62
Global project management......................................................65
Project browser...................................................................... 155
Functional modules................................................................ 232
FDT Container....................................................................... 263
Type Library Manager ............................................................ 310
33003101.26 39
General Presentation of Control Expert
Overview
This chapter describes the general features of a project created using Control Expert.
Programming Languages
Control Expert provides the following programming languages for creating the user program:
• Function Block Diagram FBD
• Ladder Diagram (LD) language
• Instruction List IL
• Structured Text ST
• Sequential Control SFC
• Ladder Logic 984 (LL984)
All of these programming languages can be used together in the same project.
40 33003101.26
General Presentation of Control Expert
Block Libraries
The blocks that are included in the delivery of Control Expert extensive block libraries
extend from blocks for simple boolean operations, through blocks for strings and array
operations to blocks for controlling complex control loops.
For a better overview, the different blocks are arranged in libraries, which are then broken
down into families.
The blocks can be used in the programming languages FBD, LD, IL, and ST.
Elements of a Program
A program can be constructed from:
• a master task (MAST)
• a FAST task (not available for Momentum)
• one to 4 AUX tasks (not available for Modicon M340 and Momentum)
• Program Units which are assigned one of the defined tasks (available for Modicon
M580 and Modicon M340)
• sections, which are assigned one of the defined tasks
• sections for processing time controlled events (Timerx, not available for Momentum)
• sections for processing hardware controlled events (EVTx, not available for Momentum)
• subroutine sections (SR)
Software Licenses
There is one Control Expert installation setup (.iso file) and the license determines the
version that can be launched.
The following software versions are available:
• Control Expert S
• Control Expert L
• Control Expert XL
• Control Expert XL with M580 Safety
33003101.26 41
General Presentation of Control Expert
The M580 Safety CPUs are included in a Safety add-on available for Control Expert L and
XL.
Two types of licenses are available to activate Control Expert:
• Node-locked license for single use on a local PC.
• Floating license for multiple uses of an authorized number of PCs in a network
connected to the Enterprise License Server.
For detailed information on license activation and/or registration, refer to EcoStruxure™
Control Expert, Installation Manual.
Performance Scope
This table shows the main characteristics of the individual software versions:
Control Expert Control Expert Control Expert Control Expert Control Expert
S L L + Safety add- XL XL + Safety
on add-on
Programming languages
Function Block + + + + +
Diagram FBD
Libraries(1)
42 33003101.26
General Presentation of Control Expert
Control Expert Control Expert Control Expert Control Expert Control Expert
S L L + Safety add- XL XL + Safety
on add-on
Motion control drive - + +(2) + +(2)
library
Safety library - - + - +
General information
Create and use data + + +(2) + +(2)
structures (DDTs)
Operator screen + + + + +
Diagnostic viewer + + + + +
System diagnostics + + + + +
Trending Tool + + + + +
Application converter PL7 converter PL7 converter PL7 converter PL7 converter PL7 converter
Partial
conversion
Managing multi- - - - - -
stations
Supported platforms
Modicon M340 All CPUs All CPUs All CPUs All CPUs All CPUs
Modicon M580 - BMEP5810•• BMEP5810•• BMEP5810•• BMEP5810••
33003101.26 43
General Presentation of Control Expert
Control Expert Control Expert Control Expert Control Expert Control Expert
S L L + Safety add- XL XL + Safety
on add-on
BMEH582040 BMEH582040
BMEH584040 BMEH584040
BMEH586040 BMEH586040
BMEP582040S
BMEP584040S
BMEH582040S
BMEH584040S
BMEH586040S
Momentum 171CBU78090 171CBU78090 171CBU78090 171CBU78090 171CBU78090
140CPU65260 140CPU65260
140CPU65860 140CPU65860
140CPU67060 140CPU67060
44 33003101.26
General Presentation of Control Expert
Control Expert Control Expert Control Expert Control Expert Control Expert
S L L + Safety add- XL XL + Safety
on add-on
140CPU67160 140CPU67160
140CPU67260 140CPU67260
140CPU67261 140CPU67261
140CPU67861 140CPU67861
Atrium - All CPUs All CPUs All CPUs All CPUs
Simulator + + + + +
Openness
Hyperlinks + + + + +
Documentation as + + + + +
context help and PDF
OS Loader tool + HW + + + + +
firmware
+ Available
- Not available
Naming Convention
In the rest of this document, "Control Expert" is used as general term for "Control Expert S",
"Control Expert L", and "Control Expert XL", with or without Safety add-on.
User Interface
Overview
The user interface consists of several, configurable windows and toolbars.
33003101.26 45
General Presentation of Control Expert
User interface:
Legend:
Number Description
46 33003101.26
General Presentation of Control Expert
Number Description
6 Information window, page 1832 (provides information about errors which have occurred, signal
tracking, import functions, etc.)
33003101.26 47
48 33003101.26
Programming Language Editors
Overview
This chapter describes the different programming languages provided by Control Expert.
33003101.26 49
Programming Language Editors
Representation
Representation of an FBD section:
Objects
The objects of the FBD (Function Block Diagram) programming language help to divide a
section into a number of:
• Elementary Functions (EFs),
• Elementary Function Blocks (EFBs)
• Derived Function Blocks (DFBs)
• Procedures
• Subroutine calls
• Jumps
• Links
• Actual Parameters
• Text objects to comment on the logic
50 33003101.26
Programming Language Editors
Properties
FBD sections have a grid behind them. A grid unit consists of 10 coordinates. A grid unit is
the smallest possible space between 2 objects in an FBD section.
The FBD programming language is not cell oriented but the objects are still aligned with the
grid coordinates.
An FBD section can be configured in number of cells (horizontal grid coordinates and
vertical grid coordinates).
The program can be entered using the mouse or the keyboard.
Input Aids
The FBD editor offers the following input aids:
• Toolbars for quick and easy access to the desired objects
• Syntax and semantics are checked as the program is being written.
◦ Incorrect functions and function blocks are displayed in blue
◦ Unknown words (e.g. undeclared variables) or unsuitable data types are marked
with a red wavy line
◦ Brief description of errors in the Quickinfo (Tooltip)
• Information for variables and pins can be displayed in a Quickinfo (Tooltip)
◦ type, name, address and comment of a variable/expression
◦ type, name and comment of an FFB pin
• Tabular display of FFBs
• Actual parameters can be entered and displayed as symbols or topological addresses
• Different zoom factors
• Tracking of links
• Optimization of link routes
• Display of inspection windows
33003101.26 51
Programming Language Editors
Representation
Representation of an LD section:
Objects
The objects of the LD programming language help to divide a section into a number of:
• Contacts,
• Coils,
• Elementary Functions (EFs)
• Elementary Function Blocks (EFBs),
• Derived Function Blocks (DFBs)
52 33003101.26
Programming Language Editors
• Procedures
• Control elements
• Operation and compare blocks which represent an extension to IEC 61131-3
• Subroutine calls
• Jumps
• Links
• Actual Parameters
• Text objects to comment on the logic
Properties
LD sections have a background grid that divides the section into lines and columns.
The LD programming language is cell oriented, i.e. only one object can be placed in each
cell.
LD sections can be 11-63 columns and 17-3998 lines in size.
The program can be entered using the mouse or the keyboard.
Input Aids
The LD editor offers the following input aids:
• Objects can be selected from the toolbar, the menu or directly using shortcut keys
• Syntax and semantics are checked as the program is being written.
◦ Incorrect objects are displayed in blue
◦ Unknown words (e.g. undeclared variables) or unsuitable data types are marked
with a red wavy line
◦ Brief description of errors in the Quickinfo (Tooltip)
• Information for variables and for elements of an LD section, that can be connected to a
variable (pins, contacts, coils, operation and compare blocks), can be displayed in a
Quickinfo (Tooltip)
◦ type, name, address and comment of a variable/expression
◦ type, name and comment of FFB pins, contacts etc.
• Tabular display of FFBs
• Actual parameters can be entered and displayed as symbols or topological addresses
33003101.26 53
Programming Language Editors
54 33003101.26
Programming Language Editors
Representation
Representation of an SFC section:
Objects
An SFC section provides the following objects for creating a program:
33003101.26 55
Programming Language Editors
• Steps
• Macro steps (embedded sub-step sequences)
• Transitions (transition conditions)
• Transition sections
• Action sections
• Jumps
• Links
• Alternative sequences
• Parallel sequences
• Text objects to comment on the logic
Properties
The SFC editor has a background grid that divides the section into 200 rows and 64
columns.
The program can be entered using the mouse or the keyboard.
Input Aids
The SFC editor offers the following input aids:
• Toolbars for quick and easy access to the desired objects
• Automatic step numbering
• Direct access to actions and transition conditions
• Syntax and semantics are checked as the program is being written.
◦ Incorrect objects are displayed in blue
◦ Unknown words (e.g. undeclared variables) or unsuitable data types are marked
with a red wavy line
◦ Brief description of errors in the Quickinfo (Tooltip)
• Information for variables and for transitions can be displayed in a Quickinfo (Tooltip)
◦ type, name, address and comment of a variable/expression
◦ type, name and comment of transitions
• Different zoom factors
• Show/hide the allocated actions
56 33003101.26
Programming Language Editors
• Tracking of links
• Optimization of link routes
Step Properties
Step properties:
The step properties are defined using a dialog box that offers the following features:
• Definition of initial steps
• Definition of diagnostics times
• Step comments
• Allocation of actions and their qualifiers
33003101.26 57
Programming Language Editors
Instruction List IL
Introduction
The IL editor is used for instruction list programming according to IEC 61131-3.
Representation
Representation of an IL section:
Objects
An instruction list is composed of a series of instructions.
Each instruction begins on a new line and consists of:
• An operator
• A modifier if required
• One or more operands if required
• A label as a jump target if required
• A comment about the logic if required.
Input Aids
The IL editor offers the following input aids:
58 33003101.26
Programming Language Editors
Structured Text ST
Introduction
The ST editor is used for programming in structured text according to IEC 61131-3.
Representation
Representation of an ST section:
33003101.26 59
Programming Language Editors
Objects
The ST programming language works with "Expressions".
Expressions are constructions consisting of operators and operands that return a value
when executed.
Operators are symbols representing the operations to be executed.
Operators are used for operands. Operands are variables, literals, function and function
block inputs/outputs etc.
Instructions are used to structure and control the expressions.
Input Aids
The ST editor offers the following input aids:
• Syntax and semantics are checked as the program is being written.
◦ Keywords and comments are displayed in color
◦ Unknown words (e.g. undeclared variables) or unsuitable data types are marked
with a red wavy line
◦ Brief description of errors in the Quickinfo (Tooltip)
• Tabular display of the functions and function blocks
• Input assistance for functions and function blocks
• Operands can be entered and displayed as symbols or topological addresses
• Display of inspection windows
60 33003101.26
33003101.26 61
Connecting a terminal to a PLC
Cables References
Select a cable that conforms to your PLC type to physically connect your PLC to your
computer:
Premium terminal port cable TSX PCX 1031 (RS 232/RS 485)
62 33003101.26
Connecting a terminal to a PLC
Modicon M580 mini-USB to USB-A programming cable BMX XCA USBH •••(2)
(industrial use rated)
(1) Use a crossed cable for a PC-PLC link; whereas, use a straight-through cable for PC-Hub or PLC-Hub link.
(2) When connecting a PC to a PLC, the use of a USB 2.0 shielded cable following the USB international
standard is strongly recommended. The cables mentioned earlier avoid unexpected behavior of the PLC as they
are shielded and tested against electrical noises.
(3) This cable is usable but not recommended as all ports of a M580 system are Auto-MDIX capable and
crossed cables could be incompatible with future gigabit systems.
Procedure
The table below describes how to connect from a PC to a PLC.
Step Action
1 Physically connect your PLC to your computer using the appropriate cables, page 62.
2 Check that for the chosen communication protocol, the Driver corresponding to your operating
system is correctly installed.
Note: The documentation on drivers (see Communication Drivers, Installation Manual) describes
the various drivers available according to the operating system. For example, for the PC to be able
to use an X-Way address on an Ethernet network, you must install the XIP driver.
4 Choose the address of the PLC, page 87 to which you want to connect and the type of link, page 92
using the PLC > Set Address... command.
33003101.26 63
Connecting a terminal to a PLC
64 33003101.26
Global project management
33003101.26 65
Global project management
Project management
Subject of this Section
This section introduces the tools used for project management.
66 33003101.26
Global project management
Step Action
Special case:
If you have not yet activated the software, a message warns you of the number of days of use left,
and asks you whether you want to activate. For more information, refer to EcoStruxure™ Control
Expert, Installation Manual.
Other Cases
When security is active, page 65, execute the following commands to launch an instance of
Control Expert:
33003101.26 67
Global project management
Step Action
Result: The dialog box Enter your user name and password is displayed.
Creating a Project
To create a new project, carry out the following actions:
68 33003101.26
Global project management
Step Action
4 To create a project with specific values of project settings, check Settings File box and use the browser
button to localize the .XSO file (Project Settings file). It is also possible to create a new one.
If the Settings File box is not checked, default values of project settings are used.
33003101.26 69
Global project management
Open Dialog
Open project dialog
70 33003101.26
Global project management
Element Description
Look in The upper part of this dialog displays a standard Windows File Open
dialog.
File name
Files of type
Opening a legacy LL984 project Please refer to Importing an LL984 Application, page 102.
Open Options
Libset version
Libset (set of libraries) contains all libraries, families, functions and variables (I/O data structures) that can be
used to develop an automation project.
In general, to open an existing project (.STU file) or an archived project (.STA file) the Libset version can be
selected.
To import a .ZEF or .XEF file, the latest Libset version must be selected.
More information on the default Libset version used to open a project according to the file type is provided in the
libset, page 311 section.
Keep project version Select this option to keep the Libset version used at file creation time.
If the respective Libset is not installed, the latest Libset version will be
used.
Update with latest version Select this option to update the project with the latest Libset version.
available
Select a specific target version Select this option to choose a specific Libset version. The Version box
can be used to select a version.
Project information
Opening a Project
To open an existing project, carry out the following actions:
33003101.26 71
Global project management
Step Action
Opening a project also restores the Control Expert context, which was saved when the
project was closed. This involves:
• The list of open tools,
• For each tool: its window size, position, contents and animation status,
• taskbar and tool configuration.
The context file is a companion file to the <Project_name>.STU file. It is saved in the same
directory with the name <Project_name>.ZTX. The .ZTX file is not required to open an
application. If no .ZTX is provided the application is open with default context.
NOTE: When a project file is selected, the software provides a certain amount of
information: the project name, associated comment, version and date the project was
generated, target PLC, and date of last modification to the source code.
NOTE: The .STU file is a work file and it can not be used to switch from one version to
another of Control Expert software. In this case, you should use the archive format (.
STA file) or use the export function in the project and create a .ZEF or .XEF file.
NOTE: The .STU file contains the configuration of the TSX CPP 110 in the Project
Browser.
A The file not found message appears each time the configuration screen of the TSX
CPP 110 PCMCIA card is opened. Select the required .CO file to update the CANopen
configuration.
Step Action
72 33003101.26
Global project management
An STA file is a project archive file that can be accessed using the Archive command in the
File menu.
The properties of the .STA file are the following:
• The .STA file is very compressed (approximately 50 times more so than the STU). It is
used to transfer projects to networks (local or Internet, for example).
• The .STA file can be used to transfer projects between versions of Control Expert
software.
• The .STA file contains the entire project:
◦ The PLC binary,
◦ The Upload information: comments and animation tables,
◦ The operator screens.
NOTE: When a .STA file is selected, the software provides a certain amount of
information:
• The project name,
• Associated comment,
• Version and date the project was generated,
• Target PLC,
• Date of last modification to the source code,
• The version of Control Expert used to create this archive.
NOTE: As the file is compressed, loading takes much longer than for an .STU file. We
recommend using the .STA file to archive the project and the .STU file as the actual
work file.
NOTE: To Fully retrieve an application with Quantum Ethernet I/O system and/or 140
NOC 78• 00 topologies, The Upload information or Open an archive files must be
used.
33003101.26 73
Global project management
Step Action
Conversion Wizard
To convert a legacy project partially or as a whole the Conversion Wizard can be used.
The Conversion Wizard provides options to remap I/O objects (channels, variables etc.)
during conversion and to adapt the hardware configuration of the new project concurrently in
Control Expert.
Archiving a Project
To archive a project in STA format, carry out the following actions:
Step Action
74 33003101.26
Global project management
NOTE: Archiving is only possible after a Rebuild all project with the Upload
information, page 548 section of the Project Settings window set as follows:
• the Upload information and Comments check boxes are checked, with the
Animation tables check box unchecked
• the Upload information, Comments and Animation tables check boxes are
checked
• the Upload information, Comments and Animation tables check boxes are
unchecked
NOTE: The .STA file partially contains the TSX CPP 110 configuration. Do not forget to
backup the .CO file (Sycon) for CANopen after archiving of the project.
Analyzing a Project
To analyze the syntax of your project, carry out the following actions:
Step Action
2 Any errors detected are displayed in the information window at the bottom of your screen.
Step Action
2 Any errors detected are displayed in the information window at the bottom of your screen.
33003101.26 75
Global project management
Step Action
Result: the software analyzes and generates the modified parts of your project.
2 Any errors detected are displayed in the information window at the bottom of your screen.
NOTE: The Build Changes analyses and displays only modified sections or sections
impacted by modifications. To display all warnings, a Rebuild all Project command is
needed.
NOTE: The Build Changes command can be executed only if the Rebuild all Project
command has been executed at least once previously.
Step Action
Closing a Project
To close your project, carry out the following actions:
Step Action
76 33003101.26
Global project management
NOTE: Closing a project triggers saving the current context in the file <Project_name>.
ZTX, page 71.
Step Action
33003101.26 77
Global project management
User functions
The user functions provided in online mode that can be accessed from the PLC menu are
the following:
Function Description
Transfer Project to PLC Transfer of the program between the terminal and the PLC.
Save Data from PLC to File Transfer of data between a file and the PLC.
and Init
78 33003101.26
Global project management
Function Description
Update Init Values with Current The PLC forces the update of the initial values using current values (this
Values applies to the variables with the save attribute).
Cancel/Repeat
The Cancel/Repeat commands in the Edit menu are not available in the following cases:
• Deletion of a step or macro-step in online mode.
• Switch from normal view to extended view in SFC debug mode and vice-versa.
33003101.26 79
Global project management
To know what parts have been modified, the application browser displays a specific mark for
the modified parts and in the title bar of the editors by character ‘*’.
80 33003101.26
Global project management
NOTE: Adding an SFC section must be done offline, if the two following conditions are
fulfilled simultaneously:
• If the project contains at least one SFC section already.
• If the project has been designed with an earlier version than Unity Pro 3.0
Unity Pro is the former name of Control Expert for version 13.1 or earlier.
This modification requires a rebuild all of the project and a PLC stop to download the entire
application.
Modify Data
In the data editor, there is no specific operating mode.
Generally, it is allowed to modify the type of a variable or a Function Block (FB) in online
mode.
Modifying a data, which is used in the program, may have consequences wherever it is
used, on the contrary to an unused variable. Therefore online actions are more restricted on
used data.
NOTE: Adding a variable without rebuilding increases the memory usage until next
rebuild.
For used EDT variable or used DDT/FB instance, only comments and the initial values can
be modified. Unused variable/instance may be deleted. It is allowed to create new variable/
instance online.
Concerning DDT type, it is only allowed to change comments if the type is used. It is
possible to create new DDT or to delete an unused one.
For DFB type, it is possible to:
• create, modify and delete sections
• change comments
• change initial values
• add a new public or private variable
If there is no instance of the DFB, there is no limitation. The DFB type may even be deleted.
Finally creating new DFB type(s) and instantiating it in online mode is straightforward.
33003101.26 81
Global project management
For Modicon Quantum system PLCs, it is possible to add or delete a selection of modules
and change the parameters of an existing module in STOP and RUN mode. For more
information refer to Modicon Quantum, Change Configuration on the Fly, User Guide.
For Modicon M580 PLCs when the option CCTOF is selected, it is possible to add or delete
a selection of modules and change the parameters of an existing module in STOP and RUN
mode. For more information refer to Modicon M580, Change Configuration on the Fly, User
Guide.
Type of Modification Impacts Only Upload Allowed in Online Requires to Build the
Information Mode (RUN/STOP) Application in Offline
Mode
General
Name of Station, Programs, Yes Yes No
Sections
82 33003101.26
Global project management
Type of Modification Impacts Only Upload Allowed in Online Requires to Build the
Information Mode (RUN/STOP) Application in Offline
Mode
Comment of Station, Yes Yes No
Configuration, Programs,
Sections
Documentation Summary Yes Yes No
Program
33003101.26 83
Global project management
Type of Modification Impacts Only Upload Allowed in Online Requires to Build the
Information Mode (RUN/STOP) Application in Offline
Mode
Global Variables (Used
Even in Animation Table or
Operator Screen)
Used DFB
Type Name of Used DFB No No Yes
84 33003101.26
Global project management
Type of Modification Impacts Only Upload Allowed in Online Requires to Build the
Information Mode (RUN/STOP) Application in Offline
Mode
All Comments Yes Yes No
Add a Parameter No No Yes
Add a Public or Private No Yes No
Variable
Delete or Change Unused No Yes No
Private Variable
Initial Value of Parameters No Yes No
and Variables
Other Attributes of No No Yes
Parameters and Variables
(Public and Private)
Used DDT
Create a New DDT Type No Yes No
(1) Modifying only the graphical layout or the free form comments does not impact code generation, but only
generation of the upload information.
(2) This is only available in the RUN mode for the Quantum modules.
Connection / disconnection
At a Glance
Connection enables you to change from offline to online mode. On connection, data in the
PLC and the terminal is compared:
• if the information is identical, the online mode is Equal,
• if the information is different, the online mode is Different,
By disconnecting, you can return to offline mode from an online mode.
33003101.26 85
Global project management
Connection procedure
You must execute the following actions to connect up:
Step Action
Disconnection procedure
You must execute the following actions to disconnect:
86 33003101.26
Global project management
Step Action
Automatic disconnection
In order to avoid online mode switching automatically to offline mode, without your explicit
request (which is possible if the process executed by the processor is too large), you are
recommended to increase the Timeout communication parameter, page 95.
Step Action
1 Activate the menu PLC > Set address command, which displays the Set address dialogue.
2 In the PLC Address field, enter the address of the new PLC.
3 In the PLC Media field, select the type of communication you wish to use, page 92. For Ethway
drivers, refer to the following note.
NOTE: In the Set Address dialogue, Ethway drivers are not available. To use this type
of communication, you must enter manually ETHWAY01 or ETHWAY02 in the Media
drop-down menu.
NOTE: By default the simulator is started on port number 502. To change the port
number (portnum), add in the Simulator Address box an unused port number (e.g.,
127.0.0.1:511 to use port number 511).
33003101.26 87
Global project management
PLC Address PLC address (by default, the address of the PCL physically wired to the
terminal).
The drop-down menu lists any previous addresses entered. Clicking on the
trashcan clears the drop-down list
Media This drop-down selects the type of communication with the network for the
PCL.
Communication By clicking this button you access the PLC communication parameters,
Parameters page 95.
The drop-down menu lists any previous addresses entered. Clicking on the
trashcan clears the drop-down list
Media This drop-down selects the type of communication with the network for the
simulator.
Communication By clicking this button you access the simulator communication parameters,
Parameters page 96.
Bandwidth Click this button to display the Online Mode Services Bandwidth dialogue,
page 97.
Test Connection Click this button to execute a connection test without closing the Set
Address dialogue.
Speed rate auto- Choose this mode for applications which do not require a specific speed rate
adaptation at the end (e.g., Modems).
of download
88 33003101.26
Global project management
33003101.26 89
Global project management
Modicon M340 Serial Modbus MODBUS01 to Direct Address: Modbus slave number
MODBUS04
Remote address: Link_address.Modbus Slave
number
Bridging example:
• 66\\0.0.3{118.159.35.45} for Modbus slave
66 to PLC on Ethernet CPU.
• 66\\0.3.0{118.159.35.45} for Modbus slave
66 to PLC on Ethernet NOE on slot 3.
Ethernet TCP/IP Direct address: IP Address
Bridging example:
• 139.160.235.20\\0.3.0{118.159.35.45} for
Ethernet CPU to PLC on Ethernet NOE on
slot 3.
• 139.159.35.20\\0.0.0.66 for Ethernet to
Modbus slave 66.
Ethernet IP TCP/IP** IP address;Index or
Bridging example:
• 139.160.235.20\\0.3.0{118.159.35.45} for
Ethernet CPU to PLC on Ethernet BMX
NOR on slot 3.
• 139.159.35.20\\0.4.0.66 for Ethernet to
Modbus slave 66 of channel 0 of a BMX
NOM 0200 on slot 4.
90 33003101.26
Global project management
"localhost"
Legend **: "Index" is the Modbus Plus or Modbus index stipulated in the bridge you want to cross.
This access only works in display mode: it cannot be used to modify the program or force
values.
***: "Index" is the Modbus Plus or Modbus index stipulated in the bridge you want to cross.
Note: You must use quotation marks when the address includes characters other than
figures, full stops or semi colons. These are used to avoid this address being analyzed
syntactically.
33003101.26 91
Global project management
Port Destination
TCP/IP 3501 192.168.0.1:502
TCP/IP 3502 192.168.0.2:502
TCP/IP 3503 192.168.0.3:502
This example shows the same router address with different ports, each port corresponding to a PLC address.
Notes:
• Control Expert can communicate with PLC 2 using the router address followed by port
3502.
• In the Set Address dialog, type 139.160.39.12:3502.
• The router sends the message to the address 192.168.0.2:502 (configured in the router
in the network address translation table).
• To communicate with other PLCs, use the same router address, but change the port
number.
Connection Solutions
CAUTION
UNEXPECTED APPLICATION BEHAVIOR
Do not connect more than one PLC over USB on the same computer.
Failure to follow these instructions can result in injury or equipment damage.
The following table shows the different solutions that can be used to connect a PLC with
Control Expert software.
92 33003101.26
Global project management
33003101.26 93
Global project management
Ethernet TCP/IP (2) Processors Ethernet All processors Processors Ethernet Processors Ethernet
channels: channels: channels:
• BMX P34 2020 • TSX P57 4634 • 140 CPU 651
• BMX P34 2030 • TSX P57 5634 50
94 33003101.26
Global project management
(2) Requires a valid application to be installed on the PLC and requires the communication cards or modules used to be
configured correctly.
NOTE: For Modicon M580 and M340 PLCs, the TCP/IP connection does not require a valid application inside the
PLC to work.
• For details on Modicon M580 default address configuration, refer to Control Expert Configuration Tabs (see
Modicon M580, Hardware, Reference Manual).
• For details on Modicon M340 default address configuration, refer to Methods for IP Addressing (see Modicon
M340 for Ethernet, Communications Modules and Processors, User Manual).
(3) Cannot be used to view application-specific screens in online mode.
(4) Programming mode, page 77 cannot be accessed via a Modbus Plus network.
33003101.26 95
Global project management
Step Action
2
Click on the Communication Parameters button in the PLC field to display the following screen:
Note: Any modification to the communication parameters of the PLC will only actually be taken
into account if it is confirmed by clicking OK in the Set Address screen. Clicking Cancel cancels
acknowledgment of any modifications.
96 33003101.26
Global project management
Step Action
2
Click on the Communication Parameters button in the Simulator field to display the following
screen:
Note: Any modification to the simulator communication parameters will only actually be taken
into account if it is confirmed by clicking OK in the Set Address screen. Clicking Cancel cancels
acknowledgment of any modifications.
33003101.26 97
Global project management
• Diagnostics (Diagnostic Viewer). The higher the percentage allocated, the higher the
frequency with which the alarms in the PLC will be acquired.
This screen is used to optimize performance in online mode, by adjusting the parameters to
suit:
• the characteristics of the project loaded onto the PLC: numerous and frequent
diagnostics alarms, many animation screens open at once
• and the use made of online mode: the most frequently used functions.
Procedure:
Step Action
2
Click on the Bandwidth button to display the following screen:
3 Using the sliders, adjust the parameter values to suit the characteristics of your project and the
functions you use most frequently in online mode.
4 Click on the Default button if you want to revert to the default values.
5 The Freeze option is used for fine adjustment (in increments) of the parameters to suit the
characteristics of the project loaded in the PLC.
It is used to retain the value of a parameter once the response time of the corresponding function
has been determined, and then adjust only the parameters corresponding to the other functions.
Note: Any modification will only actually be taken into account if it is confirmed by clicking OK in
the Set Address screen. Clicking Cancel cancels acknowledgment of any modifications.
98 33003101.26
Global project management
Project comparison
At a Glance
Project comparison provides you with a concise overview of the possible differences
between a project embedded in the PLC and a project in the terminal. For each project, the
following information is displayed:
• Name,
• Version,
• Last build: date and time the executable was last generated.
• SourceSafeSignature: an SHA256 algorithmic fingerprint of the safe application.
Procedure
Perform the following actions to launch project comparison:
33003101.26 99
Global project management
Step Action
1
Activate the PLC > Compare command, which displays the screen below.
NOTE: Both the project and the safe application SourceSafeSignature values are compared. The
combination of the two comparisons is displayed in an icon placed between the two
SourceSafeSignature values:
• The icon in the graphic, above, indicates both the Projects and the SourceSafeSignatures are
DIFFERENT.
• indicates the Projects are DIFFERENT, but the SourceSafeSignatures are EQUAL.
Different projects
If the projects are different, 2 commands let you carry out a transfer between the terminal
and the PLC or vice versa, thus changing to Equal online mode:
• Transfer Project to PLC, transfer the project from the terminal to the PLC,
• Transfer Project from PLC, transfer the project from the PLC to the terminal.
NOTE: When the transfer is not possible, the corresponding button is grayed out (for
example, the Transfer Project from PLC command is grayed out when the project
embedded in the PLC is invalid or when information required for uploading is missing or
invalid).
100 33003101.26
Global project management
Global Conversion
To convert a legacy application as a whole you select the file exported out of the legacy
software in Control Expert via File > Open.
The respective converter (PL7 Converter, Concept Converter) automatically generates a
Control Expert application.
For detailed information on the converters, please refer to EcoStruxure™ Control Expert,
PL7 Application Converter, User Manual or EcoStruxure™ Control Expert, Concept
Application Converter, User Manual.
• Global conversion for Premium and Quantum contains also a hardware configuration.
• Applications with PLCs which do not have a direct equivalent in Control Expert
(Compact, Momentum, TSX Micro) should be converted using the partial conversion
with the conversion wizard.
However, if global conversion is chosen, a default hardware configuration is generated.
• For global conversion of Compact applications you can select either Quantum or
Modicon M340 as target PLC. Please refer to Importing an LL984 Application, page
102.
• Global conversion of Momentum applications contains only a default Quantum
hardware configuration with a CPU (140 CPU 534 14A/U) and a power supply (140
CPS 424 00). If needed the default CPU can be replaced.
• Global conversion of TSX Micro applications contains only a default Modicon M340
hardware configuration with a CPU (BMX P34 2020) and a power supply (BMX CPS
2000). If needed the default CPU can be replaced.
33003101.26 101
Global project management
Partial Conversion
To convert a legacy application partially to Control Expert, use the conversion wizard.
You can launch the conversion wizard in Control Expert via Tools > Convert Partially.
With the conversion wizard you can:
• select the parts of the application to be converted
• remap I/O objects before conversion
• adapt concurrently the hardware configuration of the new application in Control Expert
• modify the amount of used memory in the CPU
The partial conversion is possible for TSX Micro, Premium, Quantum, Momentum and
Compact applications.
With partial conversion for Compact and Momentum applications it is recommended to
prepare a Modicon M340 hardware configuration.
For detailed information, please refer to chapter Conversion Wizard, page 1733.
102 33003101.26
Global project management
WARNING
UNINTENDED EQUIPMENT OPERATION
• After you imported an application program, edit the result carefully to check that all the
logic elements have been ported completely and are located correctly in the program.
• Test the application before running it to check that it performs as expected.
• If necessary, edit the program to add logic elements that are missing, remove code
that is not necessary, and replace logic elements that behave differently from their
intended purpose.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
Import
To import an LL984 application use the File > Open menu command.
Please refer to Open dialog, page 70.
You can import the following legacy LL984 applications:
• Concept Projects (*.ASC)
• Modsoft Projects (*.CFG)
• ProWORX32 Databases (*.PWX)
• ProWORX Nxt (*.DCF)
NOTE: Imported MSTR functions are not designed to work with the Modicon M340
CPUs. After an application is converted to Control Expert, it must be manually updated.
The MSTR function must be replaced by the READ_VAR and WRITE_VAR functions.
For further information please refer to Import / Export of LL984 Applications (see
EcoStruxure™ Control Expert, LL984 Editor, Reference Manual).
33003101.26 103
Global project management
Element Description
Source PLC Family Displays the PLC family of the legacy application to be imported.
Full Topological This check box is only used to convert applications to Modicon M340 PLCs.
104 33003101.26
Global project management
Element Description
Symbols
Original Select this option to use the original variable names of the legacy application in
your new Control Expert application.
_XYYYYY Select this option to automatically convert the legacy variable names.
The new variable names will be composed according to the following list:
• _: an underscore will be the leading sign of the converted variables.
• X: represents the data type in the memory area.
◦ 0: %M (memory bit)
◦ 1: %I (discrete input)
◦ 3: %IM (input word)
◦ 4: %MW (memory word)
• YYYYY: represents the address number.
For example _400001 stands for%MW1.
M340 Select this option to use the Modicon M340 as target PLC.
The Modicon M340-specific parameters for full topological addressing are listed in
a separate table below.
Momentum Select this option to use the Modicon Momentum under Control Expert as target
PLC.
Label causes SR Select this option to import a segment containing labels as an SR segment, even
if its scheduling does not express this.
33003101.26 105
Global project management
Element Description
Shift 984 Remote This additional option appears if the legacy application CPU family is a 984 family.
If selected, a Quantum local rack is added to the application and all drop numbers
are increased by one until an unused drop number is reached, keeping the old
984 rack as the first remote rack (drop number 2) without the old CPU.
If the option is not selected, conversion attempts to translate the local rack and its
modules to Quantum, as far as possible. A common situation encountered is that
984 local drops often contain more racks than allowed with Quantum.
Long Comments are in This additional dialog box displays the path where the long comments are stored if
project and in directory the legacy application contains long comments.
This path is identical to the path where the legacy application is stored plus one
additional directory for the long comments.
To achieve consistency between data editor and text files, comment in both places
must be edited together.
106 33003101.26
Global project management
The following graphic shows an example for converting a legacy Compact application to a
Modicon M340 application with Mixed topological / State RAM addressing (option Full
Topological not selected).
NOTE:
If you want to import a legacy LL984 Compact application which uses Modbus request to
communicate with an HMI, you have to use State RAM addressing to preserve the
Modbus exchange between PLC and HMI.
Full Topological Addressing (-> Modicon M340)
To convert a legacy LL984 application to a Modicon M340 application with full topological
addressing, the option Full Topological has to be selected.
33003101.26 107
Global project management
• All word variables get a declaration with a symbol and the topological address in the
data editor, if not already present.
• Input Words are copied to a mirror area of memory words, allowing SCADA access.
• Discrete words are directly addressed with topological addresses in the programs, if no
symbols are defined for them, showing in this way directly their hardware connection to
the controller.
• If SCADA access is required to discrete inputs, the input bits can be copied as well to a
mirror area of memory bits by checking Copy Input Bits.
• SCADA access for inputs with Full Topological checked needs modified addresses in
the SCADA system – the offsets in the dialog must be added to the original offsets and
the memory areas must be used instead of the input areas.
108 33003101.26
Global project management
The following graphic shows an example for converting a legacy Compact application to a
Modicon M340 application with full topological addressing.
For converting a legacy LL984 application to a Modicon M340 application with full
topological addressing, the following additional parameters are used:
33003101.26 109
Global project management
Element Description
Full Topological Activate this option to convert input word addresses (3x) of the legacy LL984
application to a separate, mirrored area of the %MW areas of the target Modicon
M340 application.
If this option is not activated, the legacy LL984 application is converted into a
State RAM Modicon M340 application.
Input Word Offset Enter the offset for the input word addresses (3x) in the mirrored area of the %MW
area of the target Modicon M340 application.
Copy Input Bits Activate this option to additionally convert input bit addresses (1x) to the mirrored
area of the %M area of the target Modicon M340 application.
Input Bit Offset Enter the offset for the input bit addresses (1x) in the mirrored area of the %M area
of the target Modicon M340 application.
NOTE: With this Full Topological option activated you must manually change the
access to the %I and %IW addresses in the SCADA components.
Import Behavior
During import of a legacy LL984 application, problems may be detected:
• controller family not supported
• I/O family not supported
• I/O module not supported
• rack count exceeded
• instruction/function block not supported
• non-coil in column 11
Generally such an issue does not stop the import.
110 33003101.26
Global project management
Instead a message is displayed for each of these detected problems in the Import/Export
tab of the Output Window at the bottom of the Control Expert user interface.
Double-click such a message in the Output Window to access the respective dialog in your
application.
If detected problems occur the following is done during import:
• Not supported controllers or I/O families are replaced by a default Quantum/Modicon
M340 configuration.
• Not supported I/O modules are ignored in case of Quantum as target PLC family.
• Exceeding racks and their modules are ignored.
• Not supported instructions are represented by empty DFBs that look identical to the
LL984 instruction. In such a case proceed as described under Not Supported Legacy
LL984 Instructions and User Loadables (see EcoStruxure™ Control Expert, LL984
Editor, Reference Manual).
• Equation networks with questionable conversions (for example implicit type cast) will
contain the imported equation statement and an additional message.
Equation networks which are not compliant with Modicon M340 variable alignment
rules, will cause a build error during Analyze.
For details please refer to Equation Networks (see EcoStruxure™ Control Expert, LL984
Editor, Reference Manual).
• The import of a legacy application that contains duplicated identifiers is aborted. For
details please refer to Duplicated Identifiers (see EcoStruxure™ Control Expert, LL984
Editor, Reference Manual).
If parts of a legacy application are not imported, after Analyze and Build of the project an
appropriate message is displayed. In this case you have to adapt the application manually.
(For example in case of Modicon M340 by selecting Mixed topological and State RAM in
the Memory Tab, page 1218 of the modules and subsequently fixing the related variables).
33003101.26 111
Global project management
Step Action
1 Use the PLC > Set address command to define the current PLC to which you would like to
transfer your project, page 87.
3 Activate the PLC > Transfer Project to PLC command, which displays the corresponding screen,
page 114.
4 Check the PLC Run after Transfer box if you want the PLC to switch automatically to Run after the
transfer.
5 Activate the Transfer command.
112 33003101.26
Global project management
Step Action
6
If the project has not been generated in advance, the screen below allows you to generate it before
the transfer (Rebuild All then Transfer) or interrupt the transfer (Cancel Transfer).
7 The transfer progress is displayed on screen. At any moment, you can interrupt the transfer by
using the Esc key, which invalidates the PLC project.
Note: In the event that the project is transferred to a Flash Eprom memory card, the transfer can
take several minutes.
Step Action
1 Use the PLC > Set address command to define the current PLC to which you would like to
transfer your project, page 87.
3 Activate the PLC > Transfer Project from PLC command to display the corresponding screen,
page 115.
4 The transfer progress is displayed on screen. At any moment, you can interrupt the transfer by
using the Esc key.
33003101.26 113
Global project management
Parameter Description
Overwritten PLC Identification field for the project in the embedded in the PL. This project will be
Project overwritten or updated by the transfer:
• Name
• Version
• Last Build (date and time the executable was last generated)
114 33003101.26
Global project management
Parameter Description
PLC Run after Transfer If this box is checked, the PLC changes to Run after the transfer.
Parameter Description
Overwritten PC Project Identification field for the project in the terminal: name, version, date and time the
executable was last generated. This project will be overwritten or updated by the
transfer.
PLC Project Identification field for the project embedded in the PLC: name, version, date and
time the executable was last generated.
33003101.26 115
Global project management
116 33003101.26
Global project management
Update
When making modifications in online mode, it is possible to choose between 2 modes of
updating the Upload information:
• Automatic update; in which case the update of Upload information is implicit on each
build,
• Update on user request; in which case the update is performed explicitly, by the clicking
PLC > Update Upload Information.
The way in which upload information is updated is chosen in the Project Settings screen,
page 588 and is accessible by: Tools > Project Settings > PLC Embedded data
NOTE: The upload information is updated implicitly whenever a terminal project is
transferred to the PLC (where this is included with the executable code).
On connection, a message asks you to confirm the update of the Upload information, if
this has not already been performed.
Procedure
You must perform the following actions to control the PLC:
33003101.26 117
Global project management
Step Action
1 Use the PLC > Set address command to define the target PLC that you wish to control, page
87.
2 Change to online mode.
3 Activate the PLC > Run/Stop command to launch or stop execution of the project or the PLC >
Init command to initialize the project.
NOTICE
INOPERABLE MEMORY CARD
Do not format the memory card with a non-Schneider tool. The memory card needs a
structure to contain program and data. Formatting with another tool destroys this
structure.
Failure to follow these instructions can result in equipment damage.
Restore Function
The restore function is carried out as follows:
• Automatically:
◦ after a power cycle
◦ on a warm start
◦ on a cold start
• Manually, using the Control Expert command PLC > Project Backup... > Backup
Restore.
118 33003101.26
Global project management
NOTE:
• When you insert the memory card in run or stop mode, power cycle to restore the
project on the PLC.
• If the application contained in the memory card includes the RUN AUTO option,
then the PLC will automatically restart in RUN mode with this application as soon as
the inserted memory card content is restored to the PLC.
WARNING
UNEXPECTED BEHAVIOUR OF APPLICATION
Ensure that the right user application is contained in the memory card before inserting it
into the PLC.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
Save Function
The save function is carried out as follows:
• Automatically, after:
◦ a download, if the memory card is present and not write-protected
◦ online modification, if the memory card is present and not write-protected
◦ detection of a system bit %S66 rising edge
• Manually, using the command PLC > Project Backup... > Backup Save.
NOTE: If you remove the memory card when the backup is in progress, the program on
the memory card is lost. With system bit %S65 you can disable processor access to the
memory card.
If the memory card is not present or write-protected, the download in Processor memory
is allowed but the online modification is not allowed.
Compare Function
You can compare your project with the one contained on the memory card. To do so, use the
command PLC > Project Backup... > Compare.
33003101.26 119
Global project management
Off Access to the memory card is disabled. You can remove the memory card.
CARDERR LED on On Memory card is missing or memory card is not detected, or project on
PLC front panel memory card is different from PLC project.
Off Memory card is detected, and project in memory card is equivalent to PLC
project.
120 33003101.26
Global project management
Comparison
You can compare your project with the one contained in the backup memory. To do this,
perform the following actions:
Step Action
Step Action
3 Result: The memory card automatically transfers the contents of the backup memory to the
executable zone of the PLC.
NOTE: Inserting the memory card in its slot triggers a cold start of the PLC.
Step Action
33003101.26 121
Global project management
Clearing procedure
You must perform the following actions to clear the backup memory:
Step Action
122 33003101.26
Global project management
• DTX:
◦ Saving PLC data to a *.DTX file is allowed for all previous data types. In addition,
application references (at the time of the Save) are saved.
NOTE: I/O and device DDT objects cannot be saved in DTX data files.
◦ Restoring data from a *.DTX file is allowed even if the application has been built and/
or data has been modified since the Save was done. Compatibility Rules for Restore
Using a *.DTX File, page 127 explains the restoration process and the types of data
that cannot be restored.
NOTE: It is recommended to convert any *.DAT files to *.DTX file by restoring the *.
DAT file and then saving using the *.DTX format.
NOTE: The data transfer function can be used for migrating from different PLC range.
You can save M340 or Premium data to a *.DTX file and restore to M580 PLC the *.DTX
file.
CAUTION
LOSS OF DATA
Before transferring unlocated variables and function block instances data to the PLC,
ensure that your application is in a compatible state with the saved data.
Failure to follow these instructions can result in injury or equipment damage.
CAUTION
UNEXPECTED BEHAVIOUR OF APPLICATION
Before saving the data, verify the impact of the save on the application execution.
Failure to follow these instructions can result in injury or equipment damage.
You must perform the following actions to save the data from the PLC to a file:
33003101.26 123
Global project management
Step Action
1 To enable the menu item Save Data from PLC to File, the following must be true:
• The PLC is loaded with an application.
• The PLC is in RUN or STOP mode.
• Control Expert is running and is connected to the PLC.
• The Application built in Control Expert is equal to those in the PLC.
• The Application in Control Expert is in the built state.
2 Activate the PLC > Save Data from PLC to File command.
Result: The Save Data from PLC to File dialog (CPU in STOP mode) opens.
3 Using the check boxes, select the data type(s) to be transferred. For located data you must also
define the range of data to be transferred by entering the start and end address of the range.
4 Define the path and the name of the file to which the data is to be saved.
124 33003101.26
Global project management
The following table shows the parameters of the Save Data from PLC to File dialog.
Parameter Description
Content This field is used to define the type and range of the data to be transferred.
The checkboxes are used to define the type of located data. From: and To: fields are
used to define the range for located data.
Default values:
• %M and %MW checkboxes are checked
• %M and %MW range is set to the PLC values
• Unlocated variables instances and Function block instances (DFB and
EFB) are not checked
To file This field is used to define the path and name of the file.
Browse This button can be used to browse the disk to define the file name and path.
33003101.26 125
Global project management
If the PLC is in RUN mode, the restoring of data to the PLC from a file may need several
application cycles and the data may be de-synchronized, which may affect application
execution.
CAUTION
UNEXPECTED BEHAVIOUR OF APPLICATION
Before restoring the data, verify the impact of the store on the application execution.
Failure to follow these instructions can result in injury or equipment damage.
You must perform the following actions to restore the data from a file to the PLC:
Step Action
1 To enable the menu item Restore Data from File to PLC, the following must be true:
• The PLC is loaded with an application.
• The PLC is in RUN or STOP status.
NOTE: It is strongly recommended to do the transfer with the PLC in STOP mode.
• Control Expert is running and is connected to the PLC.
• The Application built in Control Expert may be different than those in the PLC.
• The Application in Control Expert is built state.
2 Activate the PLC > Restore Data from File to PLC command.
If the PLC is in RUN status, a message is displayed allowing to perform the transfer while the PLC
is still operating (Ok) or to cancel the transfer.
If forced bits are detected in the PLC, a message is displayed allowing to perform the transfer (Ok)
or to cancel the transfer.
126 33003101.26
Global project management
Step Action
5 A confirmation message is asking you if you want to proceed with the transfer.
33003101.26 127
Global project management
CAUTION
UNEXPECTED BEHAVIOR OF APPLICATION
Before restoring the data, verify the impact of the store on the application execution.
Failure to follow these instructions can result in injury or equipment damage.
Cas- Data File Contents PLC Application Restore Behavior Control Expert Message
e Contents
1 Var1 Deleted Var1 is not restored Var1: this variable no
longer exists.
3 Var3 Var3 was renamed The restore CANNOT BE Var3: this variable no
into Var3-3 (name PERFORMED due to technical longer exists.
changed) limitations.
128 33003101.26
Global project management
Cas- Data File Contents PLC Application Restore Behavior Control Expert Message
e Contents
5 Var5 is a simple Var5 was changed to The restore CANNOT BE Var5: type of the variable is
compatible type. a different simple PERFORMED. changed (from TYPE1 to
type. Source value is TYPE2) but value may not
not compatible with Var5 is converted into a different be compatible.
target type. type (the target) and its value is
either: +
• longer than target type Var5: value not compatible
• not compatible with target for conversion between
type TYPE1 and TYPE2.
6 Var6 is a simple Var6 was changed Restore of original value Var6: type of the variable is
incompatible type. into another type. CANNOT BE PERFORMED. changed (from TYPE1 to
Var6 retains its application value. TYPE2). But types are not
compatible.
Cas- Data File Contents PLC Application Restore Behavior Control Expert Message
e Contents
DDT Types
7 Var7 is a DDT type. Var7 was changed to The restore CANNOT BE Var7: type of the variable is
a simple type. PERFORMED because type is changed (from TYPE1 to
not compatible. TYPE2). But types are not
compatible.
8 Var8 is a simple type. Var8 was changed to The restore CANNOT BE Var8: type of the variable is
a DDT type. PERFORMED because type is changed (from TYPE1 to
not compatible. TYPE2). But types are not
compatible.
9 Var9 is a DDT type. Var9 is changed to The restore CANNOT BE Var9: type of the variable is
another DDT type. PERFORMED because type is changed (from TYPE1 to
not compatible. TYPE2). But types are not
compatible.
10 Var10 is a DDT type. The DDT type has Make the mapping of the field Var10.SubField1: … (see
changed. (see the cases from 1 to 9 and cases 1 to 9 and 11 to 16).
cases from 11 to 16 for array
type sub-fields).
ARRAY Types
11 Var11 is an array. Var11 is an array of Transfer the data file values. The -
the same type, same rest of the longer application
starting index but array is kept.
longer.
33003101.26 129
Global project management
Cas- Data File Contents PLC Application Restore Behavior Control Expert Message
e Contents
12 Var12 is an array. Var12 is an array of Transfer the data file values until Var12: length of ARRAY…
the same type, same target array is full. The rest of the array (range # 2) is shorter.
starting index but source array is lost. Last indexes will be lost.
shorter.
13 Var13 is an array. Var13 is an array of The restore CANNOT BE Var13: low bound of
the same type, but PERFORMED because starting ARRAY… array (range #2)
starting index is indexes must be identical. has changed. Cannot
lower or a different restore.
type. Ending index is
the same
14 Var14 is an array. Var14 is an array of The restore CANNOT BE Var14: high bound of
the same type, but PERFORMED because starting ARRAY… array (range #2)
starting index is indexes must be identical. has changed. Cannot
higher or a different restore.
type. Ending index is
the same
15 Var15 is an array. Var15 is an array of The restore CANNOT BE Var15: bounds of ARRAY…
the same type, but PERFORMED because starting array (range #2) have
the lower and upper indexes must be identical. changed. Cannot restore.
indexes are shifted.
The length is the
same.
16 Var16 is an array. The type of the array See cases 1 to 10 and 7 to 10. See cases 4 to 10 and 11 to
has changed 16.
130 33003101.26
Global project management
TOD
TIME
DATE
INT
UDINT
DWORD
REAL
DT
BOOL
EBOOL
BYTE
UINT
WORD
DINT
STRING
BOOL YES NO NO NO NO NO NO NO NO NO NO NO NO NO
EBOOL YES NO PDL PDL NO PDL PDL NO NO NO NO NO NO NO
BYTE NO NO YES YES YES YES YES YES NO NO NO NO NO NO
INT NO NO PDL PDL YES YES YES YES NO NO NO NO NO NO
UINT NO NO PDL PDL YES YES YES YES NO NO NO NO NO NO
STRING NO NO NO NO NO NO NO NO NO NO NO NO NO NO
TOD NO NO NO NO NO NO NO NO NO NO NO NO NO NO
TIME NO NO NO NO NO NO NO NO NO NO NO NO NO NO
DATE NO NO NO NO NO NO NO NO NO NO NO NO NO NO
DT NO NO NO NO NO NO NO NO NO NO NO NO NO NO
Compatibility of Aliases
The following table presents the rules followed for restoring aliases:
Cas- Data File Contents PLC Application Restore Behavior Control Expert Message
e Contents
1 Map1 is unlocated. Map1 is located on % Value of the data file for Map1 is Map1: restored at %
MW100. set to %MW100. MW100
%MW100 is used.
2 Map2 is located on % Map2 is no longer Value of data file for Map2 is set Map2: restored into
MW100. located on %MW100, at the new address of Map2 unlocated data area.
%MW100 is used. (unlocated data area).
%MW100: keeps current
%MW100 of the application value.
keeps its current value.
3 Map3 is located on % Map3 is located on % Restores the value of %MW100 Map2: restored from %
MW100. MW200. at address %MW 200. MW100 to %MW200.
33003101.26 131
Global project management
Cas- Data File Contents PLC Application Restore Behavior Control Expert Message
e Contents
6 Map6 is located at % Map6 is now located Restore CANNOT BE Map6: value at address %
MW100 and % on %MW200 and % PERFORMED because the MW100 is not available.
MW200 is used, but MW100 is used. source value is not in data file.
%MW area is not
exported.
7 Map7 does not exist Map7 is located at % Restore CANNOT BE Map7: mapped variable
or is an alias. MW100. PERFORMED to avoid the lost of that didn't exist at the file
the current variable. generation or was an alias
%MW100 value not
restored.
8 Topological - - MapVar: variable mapped
addresses, %CH, % on an unauthorized
SW, etc. address (%CH0.2.0).
SFC variables cannot be restored. Step1: SFC types (SFCSTEP_STATE) are not allowed
for restore
IODDT variables cannot be restored. IOVar: IODDT types (T_ANA...) are unknown so not
allowed for restore.
Device DDTs cannot be restored. DevDDT: Device DDT types (T_...) are not allowed for
restore.
132 33003101.26
Global project management
Variable Value when the save data Value before performing the Value in the application after
from PLC to file is restore data from file to PLC the restore data is
performed performed
Located 0 1 0
Located 0 forced to 1 forced to 1
Unlocated 0 1 0
Unlocated 0 forced to 1 forced to 1
Located 1 0 1
Located forced to 1 0 1(1)
Unlocated 1 0 1
Unlocated forced to 1 0 1(1)
33003101.26 133
Global project management
Memory usage
At a Glance
The memory usage function is used to view:
134 33003101.26
Global project management
• the physical distribution of the PLC memory (see EcoStruxure™ Control Expert,
Program Languages and Structure, Reference Manual) (internal memory and memory
card)
• the space taken up in the memory by a project (data, program, configuration, system)
It can also be used to reorganize the memory where possible.
NOTE: The memory usage screen is not available in simulation mode. This screen is
only available in standard mode when you have built the application.
If the application has been built and if it is in NOT BUILT state due to a program
modification, the screen is accessible, but it corresponds to the application built
previously. Modifications will be taken into account at the next build.
Procedure
Perform these actions to access the memory usage details of the PLC:
Step Action
1 Activate the PLC > Memory Consumption... command, which displays the corresponding screen.
The memory usage statistics of a project can only be accessed if you have generated its
executable in advance.
2 If you want to reorganize the memory to optimize it, activate the Pack command.
33003101.26 135
Global project management
136 33003101.26
Global project management
33003101.26 137
Global project management
138 33003101.26
Global project management
Parameter Description
User Data This field indicates the memory space (in words) taken up by user data (objects
relating to configuration):
• Data: located data associated with the processor (%M, %MW, %S, %SW, etc.)
or the input/output modules,
• Declared Data: unlocated data (declared in the data editor) saved after power
cut.
• Unsaved Declared Data: unlocated data (declared in the data editor) not saved
after power cut (available for the Hot Standby CPU BMEP586040).
User Program This field indicates the memory space (in words) taken up by the project program:
• Constants: static constants associated with the processor (%KW) and the input/
output modules; initial data values,
• Executable code: executable code of the project program, EFs, EFBs and DFB
types,
• Upload information: information for uploading a project (graphic code of
languages, symbols, etc.).
Other This field indicates the memory space (in words) taken up by other data relating to the
configuration and the project structure:
• Configuration: other data relating to configuration (Page0 for a Quantum PLC,
hardware configuration, software configuration),
• System: data used by the operating system (task stack, catalogs, etc.),
• Diagnostic: information relating to process or system diagnostics, diagnostics
buffer,
• Data Dictionary: Dictionary of symbolized variables with their characteristic
(address, type....)
• Data Storage: file and data storage (only for Premium and Quantum).
Internal Memory This field shows the organization of the PLC's internal memory. It also indicates the
memory space available (Total), the largest possible contiguous memory space
(Greatest) and the level of fragmentation (due to online modifications).
Cartridge A / Only for Premium and Quantum, this field shows the organization of the memory
Cartridge B cards. It also indicates the memory space available (Total), the largest possible
contiguous memory space (Greatest) and the level of fragmentation (due to online
modifications).
Memory re-organization
Memory re-organization is activated using the Pack command, page 145.
Memory re-organization can be performed in online or offline mode (Even if the PLC is in
Run or in Stop).
NOTE: Certain blocks cannot be moved in online mode. You will attain a lower level of
fragmentation by re-organizing the memory in offline mode.
33003101.26 139
Global project management
NOTICE
COMMUNICATION LIMITATION
Do not activate the data protection function on a variable or range if it needs to be written
by means other than the program.
Failure to follow these instructions can result in equipment damage.
140 33003101.26
Global project management
Protection Activation
Before any action on the data memory protection, you must activate this feature in your
project settings.
In the Control Expert main window, click Tools > Project Setting > PLC embedded data.
Then select the Data memory protect box and click Apply.
33003101.26 141
Global project management
142 33003101.26
Global project management
• Elementary
• Structured
• Safety
The unlocated data memory protection function is enabled in the Data Editor window. By
default, unlocated data are not protected.
NOTE: The current project setting Data memory protect must be activated.
The following particular cases must be considered when reinforcing protection of unlocated
data:
• An alias variable takes the same protection as the aliased variable
• A reference variable has always the reinforced protection; it is not affected by the
protection of the referenced variable
• The data protection can also be applied to DDT, Device DDT and IODDT data; and it is
enabled in the I/O protection check box in the CPU configuration window
The data memory protection function is also available for the Program Unit data:
• Input data:
◦ The data memory protection is applied to the input data if there is no effective
parameter on it
◦ Input data becomes “Read” when an effective parameter is set
• Output data:
◦ The data memory protection is not applied to the output data
◦ Output data becomes “Read” when an effective parameter is set
• Input/output data takes the protection of its effective parameter
Protecting Elementary Unlocated Data
The protection of unlocated elementary data can be reinforced individually. The required
modifications are done respectively for each element, one by one.
Protecting Structured Unlocated Data
The protection of structures of unlocated data can be reinforced globally. The required
modification is done once for the entire structure and applies to all its elements (all subfields
except subfields which are read-only by intrinsic access right).
The data protection function applies to the following structures of unlocated data:
• DDT
• Device DDT
• IODDT
• Array
• EFB instance
33003101.26 143
Global project management
• DFB instance
NOTE: The protection enforcement of DDT, Device DDT and IODDT unlocated data can
be enabled in the I/O protection check box of the CPU configuration window.
Protecting Safety Unlocated Data
In safety applications, the data protection function applies to the following unlocated data:
• Global variables
• Process resource data:
◦ Input variables (with or without an effective parameter)
◦ Output variables (with or without an effective parameter)
◦ Private variables)
◦ FB Instances
◦ DDT and device DDT
• Safe resource data:
◦ Input variables (with or without an effective parameter)
◦ Output variables (with or without an effective parameter)
◦ Private variables)
◦ Safe FB Instances
◦ Safe DDT and device DDT
Step Action
1 In the Control Expert main window, activate the data memory protection feature: click Tools > Project
Setting > PLC embedded data.
Then select the Data memory protect box and click Apply.
2 In the Control Expert Project Browser, double-click Variables & FB Instances to open the Data
Editor window, or click Tools > Data Editor in the Control Expert toolbar.
3 In the Data Protect column, select the boxes corresponding to data for which you need to reinforce
the protection.
NOTE: When you select the Data Editor attribute of a structured unlocated variable, this action
applies to all the subfields of the selected structure.
144 33003101.26
Global project management
NOTE: The unlocated variable that is mapped on a located address automatically takes
the protection of this address. Thus, the protection of this unlocated variable becomes
reinforced the same way as that of the located variable to which it is mapped.
33003101.26 145
Global project management
Procedure
Perform the following actions to use the Pack command:
Step Action
1 Activate the PLC > Memory Consumption: command, which displays the corresponding
screen.
2 In the Internal Memory or Cartridge area check the percentage values of:
• Memory available,
• Fragmentation,
• Greatest / total of Memory available.
3 Check if these values are in the ranges listed in the tables below.
5 Above the Pack button, if the warning Memory optimization is not terminated, please
continue to pack appears, the Pack button must be clicked again.
(1) Greatest is the Largest free contiguous block of memory available, this information is given in the Memory
usage screen.
146 33003101.26
Global project management
(1) Greatest is the Largest free contiguous block of memory available, this information is given in the Memory
usage screen.
33003101.26 147
Global project management
148 33003101.26
Global project management
NOTE: Downloading write-protected files to the memory card can prevent the
Automation Device Maintenance software from properly upgrading the module. Some
FTP clients (for example, the Windows Explorer client) cannot remove write-protected
files from the card. You can delete write-protected files from the card with some FTP
clients (for instance, FileZilla) that are available for free download over the Internet.
Using FTP
The following table describes how to use FTP with Internet Explorer.
Step Action
Example: ftp://login:password@FTP_Server_IP_Address
• Login: datastorage
• Password: datadownload
Result: The contents of the memory card are displayed.
3 Copy and/or paste the files between the memory card and your desired location.
The following modules have a time out value of 15 minutes and a maximum number of
eight sessions:
• BMX P34 20•0
• BMX NOE 01•0
• BMX NOC 0401
• BMX NOR 0200
• BME P58 ••••
• BME NOC 03•1
• TSX P57 •634
• TSX ETY •10••
• TSX ETY PORT
• 140 CPU 651 •0
• 140 NOE 771 ••
• 140 NOC 78• 00
33003101.26 149
Global project management
ZEF Files
The DTM topology tree and device configurations is saved and restored in the *.zef import/
export files.
XEF Files
The DTM topology tree and device configurations cannot be saved nor restored in the *.xef
import/export files.
150 33003101.26
Global project management
33003101.26 151
Global project management
A partial project build that does not take into account the DTM configurations does not call
the Check devices service, therefore, this build does not need to have all the DTMs
installed on the PC.
Upload Project
The Control Expert Transfer Project from PLC, page 78 (Upload project) function uploads
the current DTM topology tree and the device configurations stored in the PLC (but not the
information in the Profibus Remote Bus Master and the devices). This function is not the
same as the Load data from device DTM, page 293 service.
Some DTMs have a Compare function that allows comparing the configuration in the device
to the configuration in the PLC.
152 33003101.26
Global project management
Download Project
To use the Control Expert Transfer Project to PLC (Download project) function with DTMs:
Step Action
2 Use the Store to device, page 293 service on each DTM that has a physical device on the
network.
3 Call the Transfer Project to PLC function to download the Control Expert project that includes a
DTM topology tree and device configurations.
33003101.26 153
154 33003101.26
Project browser
Project browser
What’s in This Chapter
Introduction to the project browser........................................... 155
Introduction to the various directories of the project
browser................................................................................. 198
Summaries of the utilities associated with the structure view
and function view ................................................................... 220
Structural view
The structural view displays the directory tree of the Control Expert project and allows you to
navigate within this with direct access:
33003101.26 155
Project browser
• to the configuration,
• to the DDT and DFB types,
• to the variables (EDT, DDT, DFB and EFB instances),
• to motion functions,
• to communication functions,
• to the program,
• to the animation tables,
• to the operator screens,
• to the project documentation (title page, general information).
The following illustration shows the structural view of a project:
By default, the browser displays the second level of the directory tree. To access the other
levels, you need to expand the directories.
NOTE: The default project directory name is Project. You can change this name by
accessing the project properties dialog box using the Properties command from the
contextual menu.
Functional view
The functional view displays the directory tree of the project, broken down into functional
modules , page 232. This breakdown does not take into account the order of execution of
the program by the PLC.
156 33003101.26
Project browser
By default, the browser displays the first level of the directory tree. To access the other
levels, you need to expand the directories.
Allows you to display the structural view and the functional view in series, page 158.
Allows you to display the structural view and the functional view in parallel, page 159.
33003101.26 157
Project browser
158 33003101.26
Project browser
33003101.26 159
Project browser
NOTE: The following steps show how to use the Zoom In and Zoom Out commands
with a structural view. These steps can also be used with a functional view.
Step Action
1 In the project browser select the directory you wish to display (for example Program).
2 Activate the Zoom In command from the Display menu or from the contextual menu.
160 33003101.26
Project browser
Step Action
Result: Only the directory selected appears in the structural view (for example Program):
3 From the directory (for example Program) select the directory (for example Sections) that you
wish to display.
4 Activate the Zoom In command from the Display menu or from the contextual menu.
Result: Only the directory selected appears in the structural view (for example Sections):
33003101.26 161
Project browser
Step Action
1 In the project browser select the directory from the structural view.
2 Activate the Zoom Out command from the Display menu or from the contextual menu or by
Result: The structural view appears along with the directory tree of the project.
162 33003101.26
Project browser
Step Action
1 In the project browser select the directory from the structural view (for example Sections).
Expand the menu using the arrow to the right of the icon.
3 In the menu (for example Program) select the structural view to be displayed.
Result: The directory (for example Program) appears in the structural view:
33003101.26 163
Project browser
NOTE: The following steps show how to use the Contract all and Expand all
commands with a structural view. These steps can also be used with a functional view.
164 33003101.26
Project browser
Step Action
1 In the project browser select the directory you wish to expand (for example Program).
2 Activate the Expand all command from the Display menu or from the contextual menu.
33003101.26 165
Project browser
166 33003101.26
Project browser
Step Action
1 In the project browser select the directory you wish to contract (for example Program).
2 Activate the Contract all command from the Display menu or from the contextual menu.
33003101.26 167
Project browser
Finding an element
The following table shows you how to use the Goto command in the structural view of the
browser:
Step Action
1 Click the right mouse button on the background of the structural view.
168 33003101.26
Project browser
Step Action
Result: The element appears shaded in the structural view (Configuration in the example).
33003101.26 169
Project browser
Step Action
1 Click the right mouse button on the background of the structural view.
3 In the Location field type the first letter of the element you want to go to.
170 33003101.26
Project browser
User Directory
At a Glance
In the Project directory and in all the directories of the project browser, you can create
hyperlinks, page 1765 and user directories for grouping of hyperlinks.
NOTE: You cannot nest a user directory in a user directory and a hyperlink in a
hyperlink.
The following illustration shows a hyperlink and a user directory in the directory
Program :
33003101.26 171
Project browser
Step Action
1 In the project browser select the directory in which you wish to create a user directory.
2 Select the Add User Directory.. command from the popup menu..
4 In the Comment tab enter the comment associated with the user directory.
6 You can now create hyperlinks, page 1765 in the directory provided for this purpose.
Project Properties
At a Glance
Whichever view is displayed, you can access the project properties by using the Properties
command from the contextual menu (which can be reached by right-clicking the mouse on
the Project folder). This gives you access to a dialog box which allows you to:
• access information on the current project,
• define certain parameters of the project.
172 33003101.26
Project browser
Tab Description
Libset version: indicates the FB library version used for your current project.
33003101.26 173
Project browser
Tab Description
3 Only for Modicon M580 CPUs with OS version ≥ 2.00, BME NOC 03••, and BME CXM 0100 modules.
NOTE: By default, the dialog box is called Properties of Project. If you give the project
another name (myproject for example), this dialog box is called Properties of
myproject.
Application Protection
Overview
Control Expert provides a password mechanism to help guard against unauthorized access
to the application.
Control Expert uses the password when you:
• Open the application in Control Expert.
• Connect to the PAC in Control Expert.
Setting an application password helps prevent unwanted application modification,
download, or opening of application files. The password is stored encrypted in the
application.
In addition to setting the password, you can encrypt the .STU, .STA and .ZEF files. The file
encryption feature in Control Expert helps prevent modifications by any malicious person
and reinforces protection against theft of intellectual property. The file encryption option is
protected by a password mechanism.
NOTE: When a controller is managed as part of a system project, the application
password and file encryption are disabled in Control Expert editor and need to be
managed by using the Topology Manager.
Password Construction
The password construction is based on IEEE Standard 1686–2013 recommendations.
174 33003101.26
Project browser
A password should contain at least 8 characters and should combine as a minimum one
upper-case (A, B, C, …), one lower-case (a, b, c, …), one number, and one non–
alphanumeric character (!, $, %, &, …).
NOTE: when exporting a project not encrypted to a .XEF or a .ZEF file, the application
password is cleared.
Step Action
33003101.26 175
Project browser
Step Action
7 Click OK to confirm.
8 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
Step Action
8 Click OK to confirm.
9 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
176 33003101.26
Project browser
Step Action
6 Click OK to confirm.
7 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
Auto-Lock Feature
There is an optional auto-lock feature that limits access to the Control Expert software
programming tool after a configured time of inactivity. You can activate the auto-lock feature
with the check box Auto-lock and select the time-out for the time of inactivity via Minutes
before lock.
The default values are:
• Auto-lock is not activated
• Minutes before lock is set to 10 minutes (possible values: 1...999 minutes)
If the auto-lock feature is enabled and the configured inactivity time elapses, a modal dialog
box is displayed requiring the entry of the application password. Behind the modal dialog
box, all opened editors remain open in the same position. As a result, anybody can read the
current content of the Control Expert windows but cannot continue to work with Control
Expert.
NOTE: If you have not assigned a password to the project, the modal dialog box is not
displayed.
33003101.26 177
Project browser
Password Management
If the password is wrong, a message box indicates an incorrect password was entered, and a
new Application Password dialog box opens.
Accessing the application in Control Expert after an auto-lock, when Control Expert is not
connected to the PAC or when the project in Control Expert is EQUAL to the project in the
PAC:
Password Management
Click OK. If the password is correct, Control Expert becomes active again.
If the password is wrong, a message box indicates an incorrect password was entered, and a
new Application Password dialog box opens.
Accessing the application in the PAC after an auto-lock, when Control Expert is connected to
the PAC and the application in Control Expert is DIFFERENT from the application in the
PAC:
Password Management
On connection, if Control Expert software application and the CPU application are not equal, an Application
Password dialog box opens:
NOTE: On connection, if Control Expert software application and the CPU applications are equal, there is
no password request. If no password has been initially entered (left empty on project creation), click OK to
establish the connection on password prompt.
178 33003101.26
Project browser
NOTE: After three attempts with a wrong password, you will have to wait an increasing
amount of time between each subsequent password attempt. The wait period increases
from 15 seconds to 1 hour, with the wait increment increasing by a factor of 2 after each
successive attempt with a wrong password.
NOTE: In case of password loss, refer to the procedure described in chapter Loss of
Password, page 191.
Step Action
7 Click OK to confirm.
8 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
Step Action
33003101.26 179
Project browser
Step Action
If you click Cancel in the Properties of Project window, all changes are canceled.
Step Action
8 Click OK to confirm.
9 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
180 33003101.26
Project browser
Step Action
6 Click OK to confirm.
7 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
NOTE: In case of file encryption password loss, refer to the procedure described in
chapter Loss of Password, page 191.
Compatibility Rules
Encrypted application files (.STA, and .ZEF) can not be opened in Control Expert 15.0
Classic or earlier versions and encrypted files (.ZEF) cannot be imported in Control Expert
with Topology Manager.
The compatibility rules between application version and Control Expert/Unity Pro version
apply to .ZEF files exported without encryption option.
NOTE: When file encryption option in your project is enabled, archived application files
(.STA) cannot be saved without encryption.
33003101.26 181
Project browser
Modifications to the following safe area parts are not permitted when safe area password
protection is enabled:
Create Task
Import Task
Modify Task
Create Section
Delete Section
Import Section
Modify Section
Encryption
The safe area password uses the standard encryption SHA-256 with a salt.
182 33003101.26
Project browser
• If the user launching Control Expert has been assigned a user profile, that user can
access the safe areas of the safety application if the user knows the safe area
password and has been granted access rights in the Security Editor.
• If user profiles have not been assigned, a user can access the safe areas of the safety
application by knowing the safe area password.
Compatibility
The safe area password function exists for Control Expert V14.0 or later, for M580 safety
CPUs with firmware 2.80 or later.
NOTE:
• Application program .STU, .STA, and .ZEF files, which are created in Control
Expert V14.0 or later, cannot be opened in Unity Pro V13.1 and earlier.
• Replacing an M580 safety CPU in a Control Expert v14.0 application has the
following effect:
◦ Upgrading from firmware 2.70 to 2.80 (or later) adds the safe area password
functionality to the Program & Safety Protection tab of the Project >
Properties window.
◦ Downgrading from firmware 2.80 (or later) to 2.70 removes the safe area
password functionality.
33003101.26 183
Project browser
Step Action
4 In the Safety area, activate the protection by checking the Protection active box.
7 Click OK to confirm.
8 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
Step Action
8 Click OK to confirm.
9 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
184 33003101.26
Project browser
Step Action
6 Click OK to confirm.
7 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
Firmware Protection
Overview
Firmware protection by a password helps prevent unwanted access to the module firmware.
Password
The password is case-sensitive and contains 8 to 16 alphanumeric characters. The
password robustness is increased when it contains a mix of upper and lower case,
alphabetical, numerical, and special characters.
NOTE: When importing a ZEF file, the firmware password is stored inside the module
only if the File encryption option is selected.
33003101.26 185
Project browser
NOTE: Firmware password default value in the Control Expert application is:
fwdownload.
• For firmware V4.01 and later, you need to change the firmware password default
value, otherwise it will not be possible to build the Control Expert application.
• For firmware versions earlier than V4.01 it is not mandatory but strongly advised to
change firmware password default value.
Procedure for changing the firmware protection password:
Step Action
8 Click OK to confirm.
9 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
Step Action
186 33003101.26
Project browser
Step Action
6 Click OK to confirm.
7 Click OK or Apply in the Properties of Project window to confirm all changes. The new password
is the default password: fwdownload.
If you click Cancel in the Properties of Project window, all changes are canceled.
Step Action
33003101.26 187
Project browser
Step Action
4 In the Sections & Program Units field, activate the protection by checking the Protection active
box.
8 Click OK to confirm.
9 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
Notes
If a program element is configured with a protection (read or read/write), when protection
has been activated this will be indicated by a locked padlock at the program element level.
If the program element is configured with a protection but the protection is disabled, an open
padlock is displayed at the program element level.
Step Action
4 In the Sections & Program Units field, click Change password ....
188 33003101.26
Project browser
Step Action
Unity Pro is the former name of Control Expert for version 13.1 or earlier.
9 Click OK to confirm.
10 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
Step Action
6 Click OK to confirm.
7 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
33003101.26 189
Project browser
• Earlier than version 15.1, you can provide password protection for data storage access.
• Version 15.1 or later, you can provide password protection for both web diagnostics and
data storage access.
Password
The password is case-sensitive and contains 8 to 16 alphanumeric characters. The
password robustness is increased when it contains a mix of upper and lower case,
alphabetical, numerical, and special characters.
NOTE: When importing a ZEF file, the Data Storage/Web password is stored inside the
module only if the File encryption option is selected.
Step Action
4 In the Data Storage (or Web Diagnostics / Data Storage) field, click Change password ....
190 33003101.26
Project browser
Step Action
8 Click OK to confirm.
9 Click OK or Apply in the Properties of Project window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
Step Action
4 In the Data Storage (or Web Diagnostics / Data Storage) field, click Reset password....
6 Click OK to confirm.
7 Click OK or Apply in the Properties of Project window to confirm all changes. The new password
is the default password: datadownload.
If you click Cancel in the Properties of Project window, all changes are canceled.
Loss of Password
Overview
If you forget your password, proceed as indicated in the following procedures and contact
Schneider Electric support.
NOTE: The application password recovery procedure differ depending on whether the
file encryption option is enabled or disabled.
33003101.26 191
Project browser
Step Action
2 Press SHIFT+F2.
Result: The Password forgotten pop-up window is open and a string of alphanumeric characters is
displayed.
NOTE: The password is a temporary password, available as long as you do not modify the
application.
6 Modify the password (old password = password provided by Schneider Electric support).
192 33003101.26
Project browser
Step Action
Result: The Password forgotten pop-up window is open and a string of alphanumeric characters is
displayed.
Note: The password is a temporary password, available as long as you do not modify the application.
6 Modify the password (old password = password provided by Schneider Electric support).
Procedure for resetting the CPU application password if the respective *.STU file is not
available:
Step Action
2 Press SHIFT+F2.
Result: The Password forgotten pop-up window is open and a string of alphanumeric characters is
displayed.
33003101.26 193
Project browser
Step Action
Note: The password provided by Schneider Electric support is a temporary password, available as
long as you do not modify the application.
8 Modify the password (old password = the one provided by Schneider Electric support).
Step Action
2 Press SHIFT+F2.
Result: The Password forgotten pop-up window is open and a string of alphanumeric characters is
displayed.
Note: The password is a temporary password, available as long as you do not modify the application.
194 33003101.26
Project browser
Step Action
6 Click Change Password and change the password (the old password = password provided by
Schneider Electric support).
7 Click OK to close the Modify Password dialog, then click OK or Apply in the Properties of Project
window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
Step Action
2 Press SHIFT+F2.
Result: The Password forgotten pop-up window is open and a string of alphanumeric characters is
displayed.
Note: The password is a temporary password, available as long as you do not modify the application.
6 Click Change Password and change the password (the old password = password provided by
Schneider Electric support).
7 Click OK to close the Modify Password dialog, then click OK or Apply in the Properties of Project
window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
33003101.26 195
Project browser
Firmware Password
Schneider Electric support needs a string of alphanumeric characters displayed in the
Password forgotten pop-up window as soon as you press SHIFT+F2 in the Password
dialog box.
To reach the Password dialog box:
• Go to Project > Properties of Project > Project & Controller Protection
• In the Firmware field, click Reset password.... The Password dialog box is displayed.
Procedure for resetting the firmware password:
Step Action
2 Press SHIFT+F2.
Result: The Password forgotten pop-up window is open and a string of alphanumeric characters is
displayed.
Note: The password is a temporary password, available as long as you do not modify the application.
6 Click Change Password and change the password (the old password = password provided by
Schneider Electric support).
7 Click OK to close the Modify Password dialog, then click OK or Apply in the Properties of Project
window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
196 33003101.26
Project browser
Step Action
2 Press SHIFT+F2.
Result: The Password forgotten pop-up window is open and a string of alphanumeric characters is
displayed.
Note: The password is a temporary password, available as long as you do not modify the application.
6 Click Change Password and change the password (the old password = password provided by
Schneider Electric support).
7 Click OK to close the Modify Password dialog, then click OK or Apply in the Properties of Project
window to confirm all changes.
If you click Cancel in the Properties of Project window, all changes are canceled.
33003101.26 197
Project browser
Project Directory
At a Glance
The Project directory of the structural view allows you to access the structure of the project
and the associated services.
The following illustration shows the Project directory:
Associated services
The Project directory allows you to access the following services, which can be reached via
the contextual menu:
198 33003101.26
Project browser
Directory Services
Project Export Project: allows you to access export of the global project, page 1711.
Project Settings: allows you to access the project specific settings, page 548.
Configuration allows you to access the hardware configuration, page 199 and the parameter
settings of the modules.
Derived Data Types allows you to access the DDTs, page 201.
Derived FB Types allows you to access the DFB, page 202 types.
Variables & FB allows you to access the variables, page 203 and function block instances.
instances
Motion allows you to access the declaration, page 205 and configuration of the
servodrives.
Communication allows you to access the configuration of the networks, page 207.
Ethernet Network allows you to access the Ethernet Network configuration, page 208.
Animation Tables allows you to access the animation tables, page 212.
Operator Screens allows you to access the operator screens, page 215.
Configuration Directory
At a Glance
The Configuration directory of the structural view of the project allows you to access the
hardware configuration and the parameter settings of the following modules: bus, rack,
module.
33003101.26 199
Project browser
Accessible Services
The Configuration directory allows you to access the following services, which can be
reached via the contextual menu:
Directory Services
Configuration Open: used to access the bus editor, X Bus in the above example.
Import: used to import the configuration, page 1689 of the project inputs/outputs (offline
mode only).
Import SIS: used to import the configuration, page 1378 of a project created using the SIS
Automation tool.
Export: used to export the configuration, page 1687 of the project inputs/outputs (offline
mode only).
Bus Open: used to access the bus editor, X Bus in the above example.
Go to Bus Master: displays the processor in reverse video in the project navigator, TSX
57304M in the above example.
Rack Open: used to access the bus editor, TSX RKY 6EX in the above example.
Export: used to export the configuration, page 1687 of the module(offline mode only and
depending on the module).
Empty slot Import: used to import the configuration of a BMENOC03•1 module with all devices
configured behind the NOC master DTM.
200 33003101.26
Project browser
Access
From the Configuration directory, you can:
• Configure the PLC rack, page 1294 with:
◦ a power supply, page 1300,
◦ a processor, page 1303,
◦ one or more modules, page 1307.
• Configure field bus devices, page 1311,
• Access the configuration of the rack elements:
◦ Premium, page 1353 and Quantum, page 1363 processors,
◦ modules, page 1372.
Associated services
The Derived Data Types directory allows you to access the following services, which can
be reached via the contextual menu:
33003101.26 201
Project browser
Directory Services
Derived Data Types Open: allows you to access the DDT types tab of the data editor, page 345, from
which you can:
• create, page 353 a DDT,
• manage, page 364 a DDT,
Get from Library: allows you read access to one or more DDT types from a library,
page 310.
Put in Library: used to archive, page 371 all the DDTs in a library, page 310.
Export: allows you to access export of all DDT types, page 1696.
Import: allows you to access import of one or more DDT types, page 1697.
DDT Open: allows you to access the DDT in the DDT types tab of the data editor.
Export: allows you to access export of all DDT types, page 1696.
202 33003101.26
Project browser
Associated services
The Derived FB types directory allows you to access the following services, which can be
reached via the contextual menu:
Directory Services
FB Type Open: allows you to access the DFB tab of the data editor, page 1249.
Get from Library: allows you read access to one or more DFB types from a library,
page 310.
Put in Library: allows you write access to all DFB types in a library.
Export: allows you to access export of all DFB types, page 1694 of the project.
Import: allows you to access import of one or more DFB types, page 1695.
DFB Type (Counter, etc.) Open: allows you to access the DFB type in the DFB tab of the Data Editor, page
1249.
Put in Library: allows you write access to the DFB type in a Library, page 310.
Properties: allows you to access the properties, page 1261 of the DFB type.
Export: allows you to access export of the DFB type, page 1694.
Sections New Section: allows you to create a new section, page 499 in the DFB type.
Section XX Open: allows you to access the section, page 499 program language editor.
Properties: allows you to access the properties, page 502 of the section.
Variables Directory
At a Glance
The Variables & FB instances directory of the structural view of the project is used to
access the variables (EDT, (see EcoStruxure™ Control Expert, Program Languages and
Structure, Reference Manual)DDT, IODDT) (see EcoStruxure™ Control Expert, Program
Languages and Structure, Reference Manual)and the function block instances(EFB, DFB).
(see EcoStruxure™ Control Expert, Program Languages and Structure, Reference Manual)
33003101.26 203
Project browser
The following illustration shows an example of the Variables & FB instances directory:
Accessible Services
The Variables & FB instances directory allows you access to the following services, which
can be reached via the contextual menu:
Directory Services
Export: used to access the export of all variables, page 1698 of the
project,
Import: used to access the import of all variables, page 1701 of the
project.
Elementary variables Open: used to access the tab corresponding to the variables editor,
Derived variables Export: used to access the export of all variables, page 1698 of the
family selected (EDT, DFB, etc.) .
Decice DDT variables
Elementary FB instances
Derived FB instances
Access
From the Variables & FB instances directory, you can access the different tabs of the data
editor:
204 33003101.26
Project browser
• Variables tab,
◦ Create, page 386 a data instance,
◦ Create, page 396 an IODDT type data instance,
◦ Create, page 399 a Device DDT type data instance,
◦ Modify, page 414 attributes of data instances.
• DDT Types tab,
◦ Create, page 353 a data instance,
◦ Archive, page 371 DDTs in a library, page 310,
• Function blocks tab,
◦ Create, page 376 a data instance,
◦ Modify, page 382 attributes of data instances.
• DFB Types tab,
◦ Create, page 1249 a DFB type,
◦ Configure settings, page 1250 of a DFB type.
Motion Directory
At a Glance
The Motion directory of the structural view of the project allows you to access the
declaration and configuration of the servodrives.
When declaring a servodrive, various information is required, such as:
• the name given to the servodrive
• the type of servodrive
• the CANopen address of the servodrive
• the reference of the servodrive
• the version of the servodrive
• the input of variable names associated to the axis.
33003101.26 205
Project browser
The following diagram shows an example of a tree structure for the Motion directory:
Accessible Services
The Motion directory gives you access to the following services, which can be reached via
the contextual menu:
Directory Service
206 33003101.26
Project browser
Communication Directory
At a Glance
The Communication directory of the structural view of the project allows you to access the
configuration of the networks.
The following illustration shows an example of a directory tree of the Communication
directory:
Associated services
The Communication directory allows you to access the following services, which can be
reached via the contextual menu:
Directory Services
Communication Export: allows you to access export of all networks, page 1702.
Import: allows you to access import of one or more networks, page 1703.
Network New Network: allows you to add a network, page 445 to your project.
33003101.26 207
Project browser
Directory Services
Network Open: allows you to access the corresponding network editor: Ethernet,
Modbus Plus, Fipway.
(Network_1, Modbus Plus_A,
etc.) Export: allows you to access export of one network, page 1702.
Routing Table Open: allows you to access the configuration, page 453 of a bridge between 2
networks (routing tables).
Programs Directory
At a Glance
The Programs directory of the structural view of the project allows you to define the
structure of the program and to access the language editors of the program elements:
Program Units, sections, program modules and event processing.
208 33003101.26
Project browser
The following illustration shows an example of a directory tree of the Programs directory:
NOTE: When Program Units in the application are not allowed, the Logic folder is
replaced by the Sections folder in the directory tree. For more detailed information refer
to the chapter Description of the Available Functions for Each Type of PLC (see
EcoStruxure™ Control Expert, Program Languages and Structure, Reference Manual).
Directory Services
Tasks New Task ...: allows you to create a new sequential task, page 469 (FAST, AUX, AUX0,
AUX1). The MAST task is created by default.
MAST, FAST, etc. Delete: allows you to delete the task. The MAST task cannot be deleted.
Clear: allows you to clear the contents of the task. This clears all the sections of the
task.
33003101.26 209
Project browser
Directory Services
Logic New Program Unit...: allows you to create a new “empty” Program Unit.
New Section ...: allows you to create a new “empty” section, page 499.
Import ...: allows you to import a program unit or a section, page 1692.
Or
Sections New Section ...: allows you to create a new "empty" section, page 499.
Create section activation conditions table: allows you to initialize an animation table,
with the activation condition variables associated with the sections.
For each Program Analyze: allows you to analyze the Program Unit.
Unit
Delete: allows you to delete the Program Unit.
Paste After: allows you to paste after a duplication of the copied Program Unit, page
497.
Paste Special after...: allows you to paste after a duplication of the copied Program
Unit with effective parameters, page 498.
Import after: allows you to import a Program Unit or a section, page 1692.
Export ...: allows you to export the Program Unit, page 1690.
For the Interface & Open: allows you to access the Program Unit data editor.
Variables
Sections directory New Section ...: allows you to create a new “empty” section, page 499.
(under Program Unit)
Import ...: allows you to import a section, page 1692
210 33003101.26
Project browser
For each section, Refer to services associated, page 211 with the section.
section Macro-step,
action, or transition
Animation Tables Refer to services associated, page 213 with the Animation Tables Directory.
directory (under
Program Unit)
For each section Open: allows you to access the section, page 499 language editor.
Forcing to 0, allows you to choose Force to 0 as the activation condition of the section
(in online mode).
Forcing to 1, allows you to choose Force to 1 as the activation condition of the section
(in online mode).
Unforce: allows you to choose cancel forcing as the activation condition of the section
(in online mode).
For each Section Open: allows you to access the section language editor.
Macro-step, action,
or transition Delete: allows you to delete the section.
NOTE: Only the MAST task can contain one or more sections in SFC language.
33003101.26 211
Project browser
Directory Services
SR Sections New SR Section ...: allows you to create a new “empty” program module, page 519.
Import ...: allows you to access import of program module, page 1692.
For each program Open: allows you to access the program module language editor.
module
Delete: allows you to delete the program module.
Directory Services
Timer Events, I/O New Event Section: allows you to create a new “empty” event processing, page 523.
Events
Import: allows you to access import of event processing, page 1692.
For each event Open: allows you to access the event processing language editor.
processing
Delete: allows you to delete the event processing.
Detach: allows you to detach the event processing of the functional module.
212 33003101.26
Project browser
The following illustration shows an example of a directory tree of the Animation Tables
directory:
Associated services
The Animation Tables directory allows you to access the following services, which can be
reached via the contextual menu:
33003101.26 213
Project browser
Directory Services
Animation tables New Animation Table: allows you to create a new animation table, page 1469.
Paste: used to paste an animation table into the clipboard or the animation tables
directory.
Detach all: allows you to detach all the animation tables from the functional
modules.
Export: allows you to access export of all animation tables, page 1707.
Import: allows you to access import of one or more animation tables, page 1708.
Make All Tables Permanent: allows you to change all temporary animation tables
to permanent animation tables (see also Permanent and Temporary Animation
Tables, page 1467).
Purge Temporary Tables: allows you to delete all temporary animation tables (see
also Permanent and Temporary Animation Tables, page 1467).
Open Forced Bits Table: allows you to create the animation table that includes all
forced bits of a project (see also Animation Table of Forced Bits, page 1494).
For each animation table Open: allows you to access the animation table.
Paste: allows you to add a copy of an animation table to the clipboard or the
animation tables directory.
Detach: allows you to Detach the animation table from the functional module.
Export: allows you to access export of the animation table, page 1707.
Access
The Animation Tables Directory is used to create an animation table. From this table, you
can:
• add, page 1475 data,
• switch to modification, page 1481 mode,
• switch to forcing, page 1486 mode,
• modify or force, page 1491 several variables.
214 33003101.26
Project browser
Associated services
The Operator Screens directory allows you to access the following services, which can be
reached via the contextual menu:
33003101.26 215
Project browser
Directory Services
Operator Screens New screen: allows you to create a new operator screen.
Paste: allows you to paste an operator screen into the clipboard or the operator
screen directory.
Detach all: allows you to detach all the operator screens from the functional
modules.
Clean unuse image: allows you delete all the created images that are not used.
Import: allows you to access import of one or several screens, page 1705 and/or
family of screens.
Messages list: allows you to access the message list for the operator screens.
For each family of screens New screen: allows you to create a new operator screen.
Copy: allows you to duplicate the family of screens and its associated operator
screens.
Paste: allows you to add a copy of a screen family and its operator screens to the
clipboard or the operator screens directory.
Export: allows you to access export of the family of screens, page 1704.
Family Properties: allows you to access the properties of the family of screens.
For each operator screen Open: allows you to access the operator screens editor.
Paste: allows you to add a copy of an operator screen to the clipboard or the
operator screen directory.
Detach: allows you to detach the operator screen from the functional module.
Export: allows you to access export of the operator screen, page 1704.
Screen properties: allows you to access the properties of the operator screen.
Access
The Operator Screens directory is used to create screens. From these screens, you can:
216 33003101.26
Project browser
Documentation Directory
At a Glance
The Documentation directory of the structural view of the project allows you to access the
documentation.
The following illustration shows an example of a Documentation directory:
Associated services
The Documentation directory allows you to access the following services, which can be
reached via the contextual menu:
33003101.26 217
Project browser
Directory Services
Documentation Open: allows you to access the documentation, page 1651 tool.
Title Page Print Configuration: also gives access to the print configuration settings.
General information Open: this heading allows you to specify various information about the project. A
dialog box allows you to enter the information and to create hyperlinks, page 1805.
Services
The Conversion Report directory provides you with:
• general information (application name, source file, PLC type, etc.),
218 33003101.26
Project browser
• warnings,
• errors.
33003101.26 219
Project browser
Project Directory
The Project directory, page 198 allows you to access the following services.
Stop Run
Configuration Directory
The Configuration directory, page 199 allows you to access the following services.
220 33003101.26
Project browser
Stop Run
Import Yes No No
Stop Run
Export Yes No No
Import Yes No No
Export Yes No No
33003101.26 221
Project browser
Stop Run
Delete Yes No No
Stop Run
Export Yes No No
Import Yes No No
222 33003101.26
Project browser
Stop Run
Export Yes No No
Import Yes No No
Export Yes No No
Motion Directory
The Motion directory, page 203 allows you to access the following services.
Stop Run
Delete Yes No No
Communication Directory
The Communication directory, page 207 allows you to access the following services.
Stop Run
Import Yes No No
33003101.26 223
Project browser
Stop Run
Programs Directory
The Programs directory, page 208 allows you to access the following services.
Stop Run
Import Yes No No
Export Yes No No
Sections(3) Refer to the tables below for services availability according to the operating mode.
or
Logic(3)
Import Yes No No
Export Yes No No
224 33003101.26
Project browser
Stop Run
Timer Events, I/O Events New Event Section Yes Yes Yes
Import Yes No No
Export Yes No No
(2) Only if the program module or the event processing is not called.
The Sections directory under each task allows you to access the following services.
Stop Run
Import Yes No No
Export Yes No No
The Logic directory under each task allows you to access the following services.
33003101.26 225
Project browser
Stop Run
Import Yes No No
Export Yes No No
Export Yes No No
Import Yes No No
226 33003101.26
Project browser
Stop Run
Export Yes No No
Export Yes No No
Export Yes No No
33003101.26 227
Project browser
Stop Run
Import Yes No No
Export Yes No No
Export Yes No No
228 33003101.26
Project browser
Stop Run
Export Yes No No
Import Yes No No
Export Yes No No
Export Yes No No
Documentation Directory
The Documentation directory, page 217 allows you to access the following services.
33003101.26 229
Project browser
Stop Run
230 33003101.26
33003101.26 231
Functional modules
Functional modules
What’s in This Chapter
Introduction to the functional view ........................................... 232
The functional modules and their associated utilities................. 246
Functional modules
Definition
A functional module is a group of program elements intended to perform a PLC function.
A functional module is comprised:
• Program Units (only for Modicon M580 and M340)
• program or event processing sections,
• animation tables associated with the functional module,
• runtime screens associated with the functional module,
• a comment (max. 1024 characters),
• interleaved functional modules, with these modules, in relation to the main function,
performing one or more PLC sub-functions.
NOTE: a functional module does not necessarily have a program section, an animation
table or runtime screens.
The other elements that make up a project are not incorporated into the functional modules:
232 33003101.26
Functional modules
• the configuration,
• the global variables of a project,
• the DFB and DDT types, which are global to a project,
• the SR program modules, which are global to a task,
• the documentation.
At a glance
All the functional modules of the project can be found in the Functional Project directory of
the function view.
The following illustration shows the Functional Project directory:
NOTE: When Program Units are allowed in the application (Modicon M580 and M340),
the Program folder is replaced by the Logic folder in each functional module directory.
As the default the browser displays the first level of the directory tree. To access the other
levels, you need to expand the directories.
NOTE: This breakdown does not take into account the order of execution of the program
by the PLC.
33003101.26 233
Functional modules
Associated services
The Functional Project directory allows you to access the following services, which can be
reached via the contextual menu:
Directory Services
Functional Project New Functional Module: allows you to create a new functional module.
Detach all: allows you to detach all elements included in the functional modules
(sections and animation tables) without deleting them.
Export: allows you to access export of the global project, page 1711.
Project Settings: allows you to access the project specific settings, page 548.
For each functional allows you to access all the elements of the functional module: program,
module animation tables, operator screens, nested functional modules.
234 33003101.26
Functional modules
Associated services
The functional module directory allows you to access the following services, which can be
reached via the contextual menu:
33003101.26 235
Functional modules
Directory Services
Functional module: New Functional Module...: allows you to create a new nested functional module.
Processing
Create...: allows you to create a new program element in the functional module.
Detach all: allows you to detach all elements included in the functional module
(sections and animation tables) without deleting them.
Export: allows you to access export of the functional module, page 1709.
Program allows you to access the functional module programs, page 236.
or
Logic
Table allows you to access the animation tables of the functional module, page 237.
Screen allows you to access the operator screens of the functional module, page 238.
Associated services
The program directory of a functional module allows you to access the following services,
which can be reached via the contextual menu:
236 33003101.26
Functional modules
Directory Services
Program Create...: allows you to create a new program element in the functional module:
Program Unit, section, program module or event processing.
or
Detach all: allows you to detach all elements included in the functional module
Logic (Program Units, sections, and animation tables) without deleting them.
Import...: allows you to import a program element to the functional module: Program
unit, section, program module, event processing (see also topic on program import,
page 1692).
Program Unit, See Programs Directory, page 208 for a description of the associated services.
Section, SR
section, event
processing
Associated services
The Table directory of a functional module allows you to access the following services,
which can be reached via the contextual menu:
33003101.26 237
Functional modules
Directory Services
Table New Animation Table: allows you to create a new animation table.
Detach all: allows you to detach all the animation tables from the functional
module, without deleting them.
Import: allows you to access import of the animation tables, page 1708 in the
functional module.
For each animation Open: allows you to access the animation table.
table
Copy: allows you to duplicate the animation table.
Paste: allows you to add a copy of an animation table into the animation tables
directory in the functional module and the project browser.
Export: allows you to access export of the animation table, page 1707.
Detach: allows you to detach the animation table from the functional module,
without deleting it.
Associated services
The Screen directory of a functional module allows you to access the following services,
which can be reached via the contextual menu:
238 33003101.26
Functional modules
Directory Services
Screen Import: allows you to access import of one or more screens, page 1705 and/or
families of screens.
Detach all: allows you to detach all the screen elements from the functional
module, without deleting them.
For each family of See Operator Screens Directory, page 215 for a description of the screen families
screens services.
For each operator See Operator Screens Directory, page 215 for a description of the services
screen available from the screen.
Stop Run
Export Yes No No
Import Yes No No
33003101.26 239
Functional modules
Stop Run
Export Yes No No
Import Yes No No
Stop Run
or Import Yes No No
240 33003101.26
Functional modules
Stop Run
Export Yes No No
The Program Unit directory, page 236 of a functional module allows you to access the
following services.
33003101.26 241
Functional modules
Stop Run
Export Yes No No
Export Yes No No
242 33003101.26
Functional modules
Stop Run
Import Yes No No
Export Yes No No
Export Yes No No
33003101.26 243
Functional modules
Stop Run
Import Yes No No
244 33003101.26
Functional modules
Stop Run
Import Yes No No
Export Yes No No
Export Yes No No
33003101.26 245
Functional modules
Step Action
1 In the functional view, right-click the functional module, in the Functional Project directory.
2 Click Properties.
NOTE: The Apply button confirms the editing without closing the window.
246 33003101.26
Functional modules
Step Action
Step Action
1 In the functional view, right-click the module "above", in the Functional Project directory.
33003101.26 247
Functional modules
Step Action
Step Action
248 33003101.26
Functional modules
Step Action
1 In the Functional view, right-click the Program or Logic directory in the functional module
directory.
4 Enter the various headings in exactly the same way as for creating a program element from the
structural view. The name of the functional module is shown again at the structural view level.
Step Action
1 In the Functional view, right-click the Program or Logic directory in the functional module
directory.
When using the functional view to import a program element that does not have its task in
the importing application, the program element is attached to the MAST task.
CAUTION
UNEXPECTED APPLICATION BEHAVIOR
Verify that an imported program element operates correctly while attached to the MAST
task if it was originally running in a non-MAST task.
Failure to follow these instructions can result in injury or equipment damage.
Rules
Take into account the following notes:
1 An SFC section can only be created off-line and then only in the MAST task.
33003101.26 249
Functional modules
3 The other actions are authorized in off-line mode, with the PLC at Stop or in Run.
4 The protection of a module applies to all the program elements attached to the functional module
and to the lower level modules.
Protection
Procedure:
from the Program or Logic • with the mouse right-click on the Program or Logic directory in a functional
directory module of the functional view,
• select Protection of Included Section(s) ...,
• select Read only or No read & write.
Result: All the program elements of the module are protected.
250 33003101.26
Functional modules
NOTE: All the activation conditions that are displayed in the animation table are the
conditions used during the last build (partial or total).
33003101.26 251
Functional modules
Step Action
Step Action
Step Action
1 Select the Program or Logic or Table or Screen directory from the functional module.
Result: All the elements in the chosen directory are detached from the functional module.
Step Action
1 Select the element to be detached in the Program or Logic or Table or Screen directory.
Result: The element in the chosen directory is detached from the functional module.
252 33003101.26
Functional modules
Step Action
1 From the functional module, detach the module with the Detach all command in the contextual
menu.
Result: All the elements of the module and the lower level modules are detached.
2 Delete the module(s) by right-clicking (contextual menu) and selecting the Delete command.
33003101.26 253
Functional modules
CAUTION
UNEXPECTED APPLICATION BEHAVIOR
Before deleting a module, ensure that the deletion of the subsequent elements:
• the Program Units contained in the module,
• the sub-modules contained in the module,
• the sections contained in the module,
• the associated animation tables,
• the associated screens,
has no adverse consequence on the application behavior.
Failure to follow these instructions can result in injury or equipment damage.
Step Action
NOTE: This action is authorized for the SFC sections and the events in off-line mode,
with the PLC at Stop. The other elements may be deleted in Run.
CAUTION
UNEXPECTED APPLICATION BEHAVIOR
A Program Unit, or a section, or an event may be deleted in a functional module. They are
then deleted in the module and in the associated task.
Failure to follow these instructions can result in injury or equipment damage.
254 33003101.26
Functional modules
Step Action
2 Select Delete.
3 Confirm with Yes.
Rules
Take into account the following rules:
1 In order not to delete the contents of a module, you must detach its elements before deleting.
33003101.26 255
Functional modules
needs to be created from • with the mouse right-click the Table directory of the module,
the functional view • select New Animation Table.
Step Action
3 You can edit the name or the comment of a table and its assignment to a module.
256 33003101.26
Functional modules
Step Action
Step Action
If using Then...
the drag-and-drop function • left-click on the table to be moved (holding down the mouse button),
• drop the table at the desired position.
Note: The insertion point of the table is represented by a line.
33003101.26 257
Functional modules
needs to be created from • with the mouse right-click the Screen directory of the functional module,
the functional view
• select New screen.
258 33003101.26
Functional modules
a specific screen • select a screen in the Screen directory of the structural view,
• Select Screen Properties from the contextual menu.
already exists • select the family of operator screens in the Functional Project directory of
the functional view or the Operator Screen directory of the structural view,
• drop the family of operator screens in a functional module at the Screen
directory level.
needs to be created from • with the mouse right-click the Screen directory of the functional module,
the functional view • select New family.
Step Action
1 Select the operator screen in the Functional Project directory of the functional view or the
Operator Screens directory of the structural view.
33003101.26 259
Functional modules
If using Then...
the drag-and-drop function • left-click on the operator screen to be moved (holding down the mouse
button),
• move the operator screen to the desired location.
NOTE: The insertion point of the operator screen is represented by a line.
a specific screen • select the operator screen in the Screen directory of the functional module,
• select Detach from the contextual menu,
260 33003101.26
Functional modules
Step Action
33003101.26 261
262 33003101.26
FDT Container
FDT Container
What’s in This Chapter
FDT Container....................................................................... 263
DTM Hardware Catalog.......................................................... 266
DTM Browser ........................................................................ 279
DTM Properties Tabs ............................................................. 305
FDT Container
Object of this Section
This section is an introduction to using DTMs in Control Expert.
33003101.26 263
FDT Container
FDT Concept
The FDT defines the interfaces between device-specific software components (DTMs) and
Control Expert. The focus of the current version of FDT is on engineering, commissioning,
diagnostics and documentation of fieldbus based control systems.
The device-specific software component is called a DTM (Device Type Manager), which are
supplied by the device manufacturer together with the device. Because the FDT technology
used in Control Expert is based on an open standard, Control Expert accepts compliant
DTM products from any DTM/device vendor.
NOTE: The DTMs are installed/uninstalled on the PC (like most other Windows®
programs) that runs Control Expert and information about the DTMs is kept in the
Windows Registry.
NOTE: The DTM Browser displays the DTM connectivity configuration, but does not
create any topological variables (%I or %Q) in the application.
Components
To create a Fieldbus network with Control Expert, its FDT Container uses:
• The DTM Hardware Catalog, page 267
• The DTM Browser, page 279
• The DTM Editor, which uses vendor supplied GUIs to configure the DTMs
NOTE: The DTM vendor is responsible for the DTM Configuration on-line Help, it is
not available through the Control Expert on-line Help.
User Rights
The FDT Container user has all rights of access for the DTM connectivity tree (add, delete,
configure, save DTMs) unless:
1. The Control Expert profile is set to Read Only for the user
2. The user has opened Control Expert in the Read Only mode
264 33003101.26
FDT Container
Limitation
If the user opens a project in Read Only mode, the DTM user right remains in Read-Only as
long as the project is still opened (even if the user removes the Read-Only opened mode by
performing the service Save As).
33003101.26 265
FDT Container
EDS Files
Not all devices in today’s market offer device-specific DTMs. Some devices are defined by
device-specific EDS files. Control Expert displays EDS files in the form of a DTM. In this
way, you can use Control Expert to configure devices that are defined by an EDS file in the
same way you would configure a device defined by its DTM.
Other devices lack both a DTM and an EDS file. Configure those devices by using the
generic DTM on the DTM Catalog page.
Step Action
266 33003101.26
FDT Container
33003101.26 267
FDT Container
268 33003101.26
FDT Container
• Date
Clicking on a column heading sorts the DTMs alphabetically according the contents of the
column.
DTM Properties
To display the properties of a DTM from the Device List Area:
Step Action
3 Use the tabs, page 305 to see additional information about the DTM:
NOTE: When installing or modifying a DTM, update the Hardware Catalog, page 270 to
update its properties information.
33003101.26 269
FDT Container
Step Action
1 When DTMs are installed or uninstalled and the Control Expert software is launched.
NOTE: Only a V1.2.1 FDT/DTM version or higher provides the detection service.
The DTM catalog can be updated manually update can be done using the following
procedure:
270 33003101.26
FDT Container
Step Action
1 From the hardware Catalog, page 270, click on the Update button.
Updating the Hardware Catalog does not modify the build status of the DTM. It creates an
internal catalog file based on the installed DTMs existing in the Windows® registry.
The time necessary for an update depends on the number for DTMs installed and their
sizes.
33003101.26 271
FDT Container
The installation process for the DTM is defined by the device manufacturer. Consult the
documentation from the device manufacturer to install a device DTM on your PC.
NOTE: After a device DTM is successfully installed on your PC, update the Control
Expert Hardware Catalog to see the new DTM in the catalog. The DTM can then be
added to a Control Expert project.
Step Action
4 Right-click on the communication module and scroll to Device menu > Additional functions > Add
EDS to library.
272 33003101.26
FDT Container
Step Action
1 Use these commands in the Select the Location of the EDS File(s) area of the EDS Addition dialog
box to identify the location of the EDS files:
• Add File(s): Add one or more EDS files that are individually selected.
• Add all the EDS from the Directory: Add all files from a selected folder. (Check Look in
Subfolders to add EDS files from the folders within the selected folder.)
33003101.26 273
FDT Container
Step Action
5 Choose the naming convention rule for the EDS DTM name creation.
The new naming convention is based on Model Name / Product Name and Revision. A random
character is automatically suffixed when Model Name / Product Name and Revision of an EDS file in
the library is identical. The new naming convention is irrespective of the order in which EDS files are
added to device library.
By default, the New Naming Convention check box is selected and the new naming rule applies.
NOTE: To keep backward compatibility with Unity Pro/Control Expert versions, unchecked the
New Naming Convention check box and the naming rule is based on Model Name / Product
Name.
6 Click Next to compare the selected EDS files to the files in the library.
NOTE: If one or more selected EDS files is a duplicate, a File Already Exists message appears.
Click Close to hide the message.
7 The next page of the EDS Addition wizard opens. It indicates the status of each device you
attempted to add:
Result: The next page of the EDS Addition wizard opens to indicate that the action is complete.
274 33003101.26
FDT Container
Step Action
1 Open the Control Expert DTM Browser (Tools > DTM Browser).
2 In the DTM Browser, select an Ethernet communication module.
3
Right-click the module and scroll to Device menu > Additional functions > Remove EDS from
library to open the EDS Deletion from Device Library window:
4 Use the selection lists in the heading of this window to specify how EDS files are displayed:
33003101.26 275
FDT Container
Step Action
5 Expand (+) the Device Library navigation tree and select the EDS file you want to remove.
NOTE: Click View Selected File to see the read-only contents of the selected EDS file.
6 Click the Delete Selected File(s) button to open the DeleteEDS dialog box.
7 Click Yes to remove the selected EDS file from the list.
8 Repeat these steps for each EDS file you want to delete.
Step Action
276 33003101.26
FDT Container
Step Action
4
Right-click on the communication module and scroll to Device menu > Additional functions >
Export EDS library to open the Export EDS library window:
Result: A new wizard opens to indicate that the export is complete. Click Ok to close the wizard.
Step Action
1 Open the Control Expert DTM Browser (Tools > DTM Browser).
2 In the DTM Browser, select an Ethernet communication module.
33003101.26 277
FDT Container
Step Action
3
Right-click the module and scroll to Device menu > Additional functions > Import EDS library to
open the Import EDS library window:
5 Click Import.
Result: A new wizard opens to indicate that the export is complete. Click Ok to close the wizard.
278 33003101.26
FDT Container
DTM Browser
About this Section
This section describes the DTM Browser, which enables the user to select the different
DTMs that make up the DTM connectivity tree on the host PC.
DTM Browser
At a Glance
The DTM Browser is the main component of the Control Expert FDT Container. The DTM
devices are managed from the browser.
DTM Browser
To open the DTM Browser use the Tools menu -> DTM Browser:
33003101.26 279
FDT Container
The root of the DTM Browser is HostPC, which is the PC platform for the Control Expert
project.
280 33003101.26
FDT Container
The following table describes the different hierarchical nodes of the connected DTMs in the
above example connectivity tree:
1 The First Level is the root node, HostPC, which is where the PC is connected to the physical
network.
2 The Second Level devices are communication DTMs (drivers) that connect to their physical
communication devices on the network.
3 The Third Level devices are connected to a communication device.
33003101.26 281
FDT Container
282 33003101.26
FDT Container
1 This Second Level PRM Comm Master communication DTM connects to the HostPC for
communication with a PRM device via the Ethernet for DPV0 and DPV1 exchanges.
2 This Second Level PRM Comm communication DTM connects to the HostPC for communication
with a PRM device via the Ethernet for DPV1 exchanges.
3 This Third Level Profibus Gateway DTM connects simple or Gateway devices to the higher
communication DTM.
4 The Simple or Compact DTMs are connected to communication DTMs that allow them to
communicate with their physical devices on the network. These tree leaves do not allow any
sub-connectively.
33003101.26 283
FDT Container
Applicability
This concept of Ready equipment applies to:
• Standalone devices connected to the Ethernet I/O
• Modules plugged on the Ethernet backplane
NOTE: The only Ready module that exists is the BME CXM 0100.
Representation
In Control Expert, such devices are identified with a specific green label in the DTM
browser:
Services
Ready services are related to the software integration of the products into Control Expert. It
is based on DTM technology.
This table presents the services available for Ethernet Ready equipment:
284 33003101.26
FDT Container
Service Description
Single parameter entry Any device parameter that you enter is shared into the entire configuration
environment.
Bus editor declaration Declaration is done from the Ethernet I/O bus editor or PLC bus editor in the
Control Expert browser. It uses products that belong natively to the Control Expert
Hardware Catalog.
System transfer You can transfer all the system in a single operation: the Ready device
configuration is transferred to the PLC with the PLC application.
NOTE: The PLC acts as a configuration server for all the Ready devices.
Scanning capacity Scanned in a deterministic way (from the CPU RIO scanner(1)): you can attach the
Ready equipment to any PLC task. It is refreshed within the task scan.
NOTE: This Ready equipment is called remote equipment to differentiate it
from distributed equipment, which is scanned from the DIO scanner (RPI can
be changed and is not linked to the task period).
Alert message Inform you when a modification done from the device DTM impacts the PLC
application and can lead to stop the PLC.
Shared user rights User rights are automatically shared between Control Expert and the device DTM.
(1) Scanners that accept Ready devices (M580 CPU) are also identified with this green label .
Ready
Ready devices or modules are devices or modules that are used by DTMs and fully
integrated in the Control Expert software, they mainly bring two particularities:
• They use new Control Expert mechanisms to be integrated into the Control Expert
hardware catalog.
• They are managed by Control Expert Ethernet I/O bus editors as for any X80 I/O
modules.
A green “R” icon indicates that the device or module is a Ready one.
33003101.26 285
FDT Container
Installed DTMs
Installation status:
A red X on the icon of a DTM indicates that the DTM software is not installed on the PC.
• This status is updated (red X added) when devices are detected but no DTM software
is installed on the Host PC when the user:
◦ Updates the Hardware Catalog
◦ Tries to build the application
◦ Tries to use a service in one of the 2 right-click contextual menus in the DTM
Browser
◦ Tries to use the Open service by left-clicking twice on a DTM in the DTM Browser
• This status is updated (red X removed) when the user updates the Hardware Catalog
with the missing DTM.
A right-click on an invalid or non-installed DTM opens a 2-item contextual menu:
286 33003101.26
FDT Container
Function Description
Delete This removes the selected DTM (and its sub-nodes) from the DTM project.
Properties
To help identify the non-installed DTMs, this function displays one tab (Device information) in
the Properties of dialog box:
33003101.26 287
FDT Container
DTM Browser
The following illustration gives examples of built/non-built, connected/non-connected and
non-installed statuses:
The following table explains how a DTM Browser indicates if the DTMs are built, connected
and non-installed:
288 33003101.26
FDT Container
Host PC
The Host PC contextual menu:
Name Description
Add...(1) The Add dialog box opens, a version of the Hardware Catalog, allowing the
selection of a Communication DTM.
Check DTM devices(1) This function checks the current project for invalid or non-PC-installed DTMs. Refer
to Check DTM devices, page 290 below.
DTM Services(1) This function allows the users to select/unselect all the DTMs added in the project
and performed actions on the selected DTMs. Refer to DTM Services, page 291
below.
33003101.26 289
FDT Container
Name Description
DTM Hardware Catalog This function open the DTM catalog tab in the Hardware Catalog.
(1)
Collapse all(2) Only the Commutation DTMs in the project are shown.
(2) This function is similar to Project Browser Expand/Collapse all, page 163.
NOTE: Check DTM devices only detects installed DTMs, for GSDs verify the GSD
library.
290 33003101.26
FDT Container
DTM Services
The users can select/unselect DTMs added in the project and performed actions on the
selected DTMs:
The DTMs services dialog box menu contains the following group boxes:
Name Description
Communication Dtms The user can select or unselect all communication DTMs and attached DTMs
selection currently added in the project.
Topology The Topology area lists all DTMs added in the project. The set of selected DTMs
can be modified by selecting or unselecting the DTMs in the Structure tree control.
Actions The user can perform actions for each DTMs contained in the set of DTMs
previously selected in the Structure tree control.
On errors The user can select to Continue or Stop the process if an error is detected. A
dialog box is displayed whatever options is selected.
33003101.26 291
FDT Container
The dialog box below is an example when the user selects either Continue or Stop in the
On errors group box:
NOTE: The entire process can be cancelled any time by using control button Cancel.
292 33003101.26
FDT Container
33003101.26 293
FDT Container
Name Description
Open(1) This opens the “<device name> - DTM Configuration” window with the
Configuration and Device Description information supplied by the device vendor.
A double-click on the DTM in the DTM Browser also opens this window.
Add...(1) This opens the Add dialog box, a version of the Hardware Catalog, allowing the
instantiation of a DTM.
The DTMs are filtered, that is, the Add window only displays DTMs compatible with
the DTM selected in the DTM Browser.
Delete(1) If the selected DTM allows this function, this deletes the selected DTM and its sub-
node DTMs from the DTM connectivity tree.
Deletion from the DTM connectivity tree does not effect the DTMs link to the I/O
Scanning table.
NOTE: If the DTM you want to delete is a Gateway, and is not installed on the
Host PC:
• It is possible to delete the DTM only if no devices are configured under
the Gateway.
• If devices are configured under the Gateway, it is not possible to delete
these devices nor the DTM Gateway.
Field Bus Discovery This scans the connected physical devices to create the corresponding field bus
connection topology. This item is only available in the contextual menu if a device
connected.
Sort by address This displays the DTMs sorted under their parent DTMs according to the bus
address of its physical device in ascending order.
Connect(1) This connects the DTM to its physical device on the network. This connection does
not depend on the PLC online/offline status of the Control Expert project
application.
Disconnect(1) This disconnects the DTM from its physical device. This disconnection does not
depend on the PLC online/offline status of the Control Expert project application.
Load data from device(1) This uploads the configuration parameters from the physical device to the local
DTM, but not from the application (binary) in the PLC.
While the device is disconnected, Load data from device is not available.
294 33003101.26
FDT Container
Name Description
Store data to device(1) This downloads the local DTM parameters to the physical device. Each DTM must
be stored manually (one by one).
To make an application in the PLC consistent with the stored DTM, the user must
build the Control Expert application and download the new version of the
application to the PLC
Device Menu The functions in this menu are vendor dependent, such as:
• Compare (the online and offline parameters)
• Diagnostic (displays a diagnostic screen)
• Print (HTML)
• Observe
• Additional functions available when selecting the communication DTM:
◦ EDS file (add, or remove)
◦ EDS library (export, or import)
◦ Online Action
◦ Explicit Message (Ethernet or Modbus)
◦ Store configuration of devices to the FDR server
◦ About
◦ Advanced Mode(4)
When configuring a DTM, the changes are validated in Control Expert in 2 ways,
depending on the changes:
• Automatically as the changes are made.
• You must click on a OK, Apply or Validate button after making the changes.
Print device If this optional function is supported by a DTM, it opens the vendor device
documentation in Internet Explorer, which can then be printed.
Only one DTM information can be printed out at time. A print of the whole network
is not available.
Zoom in(1),(2) This displays only the selected DTM node and its child DTMs.
Zoom out(1),(2) This returns to the full display of the DTM connectivity tree.
Expand all(3) This displays all DTMs below the selected DTM.
33003101.26 295
FDT Container
Name Description
(2) This function is similar to Project Browser Zoom in/out, page 160.
(3) This function is similar to Project Browser Expand/Collapse all, page 163.
Step Action
If it is not in the catalog, perform an update, page 270 of the Hardware Catalog using the Update
button.
If it still does not appear in the Hardware Catalog, the DTM must be installed on the PC, page 268.
2 In the DTM Browser select the node where the DTM is to be added.
3 Right-click and select Add...
4 In the Add window select the DTM to be added to the DTM connectivity tree.
5 Either:
• Click on the Add DTM button
• Double-click on the selected DTM
Results: The 4-tab DTM Properties of dialog opens.
6 Using the 4 tabs, verify that the correct DTM has been added to the DTM connectivity tree and verify its
configuration.
7 If the DTM Alias name does not meet the Control Expert (or the user application) naming rules, it must
be changed before closing the dialog.
8 Click on the OK button to finish adding the DTM to the network tree or click on the Cancel button to
close the dialog without adding anything.
296 33003101.26
FDT Container
Step Action
4 Click on OK in the message box to have this service detect all devices on the selected channel.
5 If at least one matched device has been found, the Field Bus Discovery dialog, page 299 is
displayed listing the scanned and matched devices. Select the matched devices to be created in the
Control Expert project.
33003101.26 297
FDT Container
298 33003101.26
FDT Container
33003101.26 299
FDT Container
List Description
Scanned Devices This list displays all the devices (matched and unmatched) found during the scan.
Matched Devices This list displays the matched DTM found in the workstation DTM catalogue for the
selected device in the Scanned Devices list.
Each time a scanned device is selected in the Scanned Devices list, the contents
of the Matched Devices list is updated to display the matched device DTM found
for the selected scanned device.
The matching process can yield one or more matched devices for a given scanned
device. In this case, select one among the matched DTMs found.
Selected Devices This list displays the device DTMs selected to be added to the Control Expert
project.
Color Description
If there are one or more devices in the Selected Devices list that have the same address in the
Control Expert project, a message box opens asking if you want to continue.
If you click OK, all devices in the Control Expert project that have identical addresses as the
selected devices is deleted and replaced by the DTMs selected in the Selected Devices list.
Cancel cancel the Field Bus Discovery scan and do nothing. All information in the three lists is lost
300 33003101.26
FDT Container
Connectivity Tree
For a connectivity tree it is necessary to:
• Store the configuration for each DTM into the corresponding device so that the device
works correctly
• Build or Rebuild all the Control Expert application and download it to the PLC be able
to upload the complete application including all DTM configurations from the PLC binary
The total number of operations equals the number of DTMs stored + 1 download of rebuilt
application.
De-synchronization of Project
If a DTM configuration is changed and stored to its device, the application running in the
PLC is not updated.
To synchronize the PLC application with the device configuration, rebuild the Control Expert
application to take into account the changes and download it to the PLC.
Uploading a binary from a PLC overwrites the configurations of all DTMs in Control Expert
applications retrieved from the PLC. Any modifications of the DTM configurations that are
not stored in the PLC binary are overwritten by the configuration in the PLC binary and lost.
33003101.26 301
FDT Container
CAUTION
UNEXPECTED EQUIPMENT OPERATION
Do not upload a project from the PLC if any changes have been made in any devices
connected to the PLC since the last build and download of the project.
Failure to follow these instructions can result in injury or equipment damage.
Renaming DTMs
At a Glance
According to the FDT standard, the official name of a DTM is its Tag name assigned by the
DTM vendor.
Unfortunately, some DTMs have Tag names that do not:
• Allow the Tag name to be changed
• Meet the Control Expert naming rules
The solution is to choose the DTM Alias name that meets these rules (and any special user
defined application naming rules).
Alias Name
The Alias name is the DTM reference name in Control Expert and must be unique in an
application.
If possible, the default, the Alias name is the same as the DTM Tag name. But if necessary,
the Alias name can be changed in 3 places:
• Directly in the General tab, page 306
• In the DTM Browser by clicking on the selected DTM or using the F2 shortcut with the
selected DTM.
302 33003101.26
FDT Container
Changing the Alias name automatically changes the names of the Input/Output Types and
Variables:
33003101.26 303
FDT Container
Profibus DTMs
Configuration of Profibus Field Devices
Using vendor-supplied Profibus DTMs, users are able to remotely:
• Configure Profibus devices associated with the DTM
• Adjust the parameters of these devices while they are off-line
• Adjust the parameters of these devices while they are on-line
304 33003101.26
FDT Container
Properties Tabs
The Properties dialog is called when a DTM is selected:
• To be added to connectivity tree in the DTM Browser from the Hardware Catalog:
• For the Contextual Menu Properties service in the Hardware Catalog:
• It opens with 4 tabs:
◦ General
◦ Device Information
◦ DTM Information
◦ Protocol Information
33003101.26 305
FDT Container
General
The General tab:
NOTE: The Alias name (and the DTM Tag name if the vendor allows it) can be changed,
page 302 here or in the DTM Browser.
306 33003101.26
FDT Container
Device Information
The Device Information tab:
33003101.26 307
FDT Container
DTM Information
The DTM Information tab:
308 33003101.26
FDT Container
Protocol information
The Protocol Information tab:
Item Description
Supported protocols These are the protocols available for the child nodes of this DTM.
Required protocols These are the protocols that must be supported by the parent DTM of this
DTM.
33003101.26 309
Type Library Manager
Libset Versions
The Libset V10.0 and later are automatically installed with Control Expert.
To install previous Libset versions, start Programs > EcoStruxure Control Expert >
Install libset tool.
310 33003101.26
Type Library Manager
Opening a Project
In general, opening an existing project (STU file) or an archived project (STA file), you can
select the Libset version.
NOTE: At opening time, if the Libset version is missing, a pop-up message appears.
You can use the Installer libset tool to setup one or several Libsets.
Importing a ZEF or XEF file, the latest Libset version is always selected.
The following table describes the default Libset version used to open a project according to
the file type.
File Type Project before Unity Pro 4.0 Project from Unity Pro 4.0 Project from Unity Pro 6.0
to Unity Pro 5.1
STU file Not applicable The Libset version used to build the project is automatically
selected. If the respective Libset version is not installed, the
latest version will be used.
STA file The Libset version used to The Libset version used to generate the STA file is
generate the STA file is automatically selected. If the respective Libset version is not
automatically selected. If the installed, the latest version will be used.
respective Libset version is not
installed, the latest version will be
used.
XEF file The latest Libset version is The latest Libset version is selected.
selected.
ZEF file Not applicable Not applicable The latest Libset version is
selected.
33003101.26 311
Type Library Manager
Element Description
Keep project version Select this option to keep the Libset version used to build the
project.
Upgrade/Downgrade
• Upgrading the Libset does not update the project with the newly chosen libset
automatically.
EF/EFB differences will be displayed during opening the project in the LIBRARY
Version Management dialog, where you can update the project.
You can update the project later as well, using the contextual menu command in the
Type Library Manager dialog, page 337.
If you have updated the project, you have to start a Rebuild All. A Rebuild All needs to
stop the PLC and to perform a global download.
• You can also downgrade the Libset version.
There is no consistency check when downgrading the Libset while opening a project.
So you may not be able to rebuild the project (using a block created in an earlier Libset
version, not available in the latest Libset version).
If the rebuild is unsuccessful, you have to save your project and to open it again with an
appropriate Libset.
• If you want to add an FFB which is not yet contained in the current version of the
Libset, you have to upgrade the whole Libset.
• A change of Libset version in the Open dialog is memorized in the project.
Libset Information
If no project is opened, information is displayed on the latest Libset.
312 33003101.26
Type Library Manager
If a project is opened, information is displayed on the Libset used for the project.
Information on the Libset version used for your current project is provided in the General
tab of the Properties of Project dialog.
In the Project Browser of Control Expert right-click Project and select Properties from the
context menu. In the General tab you find the FFB Library version.
Further on the following dialogs provide information on the Libset version (e.g. LibsetV3.0):
• Types Library Manager
• Types Library Browser
• Data Selection
• Data Editor: Variable Type Selection
• Function Input Assistant: FFB Type Selection
• Data Properties
• PLCScreen > Information tab > APPLICATION > IDENTIFICATION
33003101.26 313
Type Library Manager
• EF (Functions),
• EFB (Function blocks),
• DFB (user function blocks),
• DDT (Variables)
• ...
The Type Library Manager provides functions to edit the contents of the library and execute
transfers between the library and the project you are working on.
Simple operations are automatically executed or you will be asked to confirm. An Assistant,
page 334 will support complex operations. This Assistant becomes available during loading,
transfers, or deletions.
314 33003101.26
Type Library Manager
Tabs The tabs enable you to display the following according to your selection:
• All Types
• Variable types
• FFB Types (Functions)
The left sub-window His sub-window shows the tree structures of the objects of the project, library of
functions (division of functions by family), and the IODDT.
33003101.26 315
Type Library Manager
Area Description
The right sub-window This sub-window displays the list of objects included in the selection made in the
left sub-window.
Information
Click the Information button to open the Libset Information window.
316 33003101.26
Type Library Manager
Fields Description
Current library Library status: information on the status of the custom library
• available
• not available
Diagnostics: information on the validity of the library
• OK (valid)
• not valid.
Library contents Families: indicates the number of families available
33003101.26 317
Type Library Manager
Element Description
Click this button to update the display corresponding to the filter term defined in the
Button Name field.
Click this button to open a dialog box, page 430 for defining the filters.
Button
318 33003101.26
Type Library Manager
Element Description
Click this button to invert the filter. The button changes from = to <> and vice versa.
Button
Name (Text Box) The name of the object to search for can be entered in this text box. You can also
use the joker * and ?.
EF When you enable this check box, Elementary Function types (EFs) are displayed.
EFB When you enable this checkbox, Elementary Function Block types (EFBs) are
displayed.
DFB When you enable this checkbox, Derived Function Blocks (DFBs) are displayed.
DDT When you enable this checkbox, multi-element variables (derived variables) are
displayed.
Device DDT When you enable this checkbox, multi-element variables (derived variables) are
displayed.
Name (Column) This column displays the names of the function types and function block types and
their formal parameters (inputs, outputs).
Type This column displays the types of the function types and function block types and the
data types of their formal parameters (inputs, outputs).
Comment This column displays comments about the function types and function block types
and their formal parameters (inputs, outputs).
For information on the buttons at the bottom of the dialog please refer to Areas of the Type Library Manager,
page 315.
33003101.26 319
Type Library Manager
Element Description
Click this button to update the display corresponding to the filter term defined in the
Button Name field.
Click this button to open a dialog box, page 430 for defining the filters.
Button
Click this button to invert the filter. The button changes from = to <> and vice versa.
Button
Name (Text Box)) The name of the object to search for can be entered in this text box. You can also
use the joker * and ?.
DDT When you enable this checkbox, multi-element variables (derived variables) are
displayed.
Device DDT When you enable this checkbox, multi-element variables (derived variables) are
displayed.
Name (Column) This column displays the names of the function types and function block types and
their formal parameters (inputs, outputs).
320 33003101.26
Type Library Manager
Element Description
Type This column displays the types of the function types and function block types and the
data types of their formal parameters (inputs, outputs).
Comment This column displays comments about the function types and function block types
and their formal parameters (inputs, outputs).
For information on the buttons at the bottom of the dialog please refer to Areas of the Type Library Manager,
page 315.
Element Description
Click this button to update the display corresponding to the filter term defined in the
Button Name field.
Click this button to open a dialog box, page 430 for defining the filters.
Button
33003101.26 321
Type Library Manager
Element Description
Click this button to invert the filter. The button changes from = to <> and vice versa.
Button
Name (Text Box) The name of the object to search for can be entered in this text box. You can also
use the joker * and ?.
EF When you enable this check box, Elementary Function types (EFs) are displayed.
EFB When you enable this checkbox, Elementary Function Block types (EFBs) are
displayed.
DFB When you enable this checkbox, Derived Function Blocks (DFBs) are displayed.
Name (Column) This column displays the names of the function types and function block types and
their formal parameters (inputs, outputs).
Type This column displays the types of the function types and function block types and the
data types of their formal parameters (inputs, outputs).
Comment This column displays comments about the function types and function block types
and their formal parameters (inputs, outputs).
For information on the buttons at the bottom of the dialog please refer to Areas of the Type Library Manager,
page 315.
Expand All Use this menu command to show the directory structure of a selected
library. The same function is also available via the + symbol.
Collapse Use this menu command to hide the directory structure of a selected
library. The same function is also available via the - symbol.
Create New Library Use this menu command to create a new user-defined library. Compare
also Creating a new library and family, page 328.
322 33003101.26
Type Library Manager
Local Print Use this menu command to print a list of the FFBs of a selected library.
Display Get Assistant Use this menu command to open a window to copy objects into a project.
(Loading an object from the library into the project , page 323).
Purge unused Types Use the menu command to delete all unused FFBs from the project.
NOTE: When a FFB is not available for a kind of PLC (after a
section import for instance) but still in the application (removed from
the section but still in the list of the Application FFBs), the purge
feature should be used before building the application.
Compare Project with Library This menu command enables you to compare all FFB types of a project
with the FFB types of the libraries and update them, if necessary.
Compare to Library Version Management, page 337
33003101.26 323
Type Library Manager
324 33003101.26
Type Library Manager
Step Action
Result: The following area is added on the right of the previously displayed window:
3 Use this area to create a list of objects to be loaded by selecting them in sequence beginning in the two
sub-windows of Step 1 and then transfer the objects by clicking on the button (double arrows).
Result: The objects are now loaded into the project and will be displayed in the tree structure for the
project.
33003101.26 325
Type Library Manager
Loading requirements
If the name of the object in the project ... then...
exists, but the types are different. the transfer will be stopped and not performed, and a
message listing the causes will be displayed.
Note: To load this object you must rename it and restart the
loading process.
exists and the types are identical. loading will be executed after you confirm.
326 33003101.26
Type Library Manager
3 Click the right mouse button to open the context menu and select the Copy to Library option.
4 Select the library and target family and click on OK to confirm your selection.
Note: If the transfer is not performed automatically, a help window will be displayed to help you correct the
problem.
does not exist, the object will be transferred if you have specified the family
and the library to which the object is to be transferred.
exists, but the types are different. the transfer will be stopped and not performed, and a
message listing the causes will be displayed.
Note: To load this object you must rename it and restart the
loading process.
33003101.26 327
Type Library Manager
exists and the objects are identical. no action is required because the objects are identical.
exists and only the codes of the objects are the transfer will only be executed if the version of the object to
different. be transferred matches or is higher than the version of the
object that currently exists in the library.
Note: The Consistency Check Assistant, page 334 will ask for
a confirmation before executing the transfer.
exists and only the prototypes of the objects are the transfer will be stopped and not performed, and a
different. message listing the causes will be displayed.
Note: To load this object you must rename it and restart the
loading process.
328 33003101.26
Type Library Manager
33003101.26 329
Type Library Manager
Result: The selected object is located in Custom FAMILY or the new family.
330 33003101.26
Type Library Manager
Procedure
Step Action
Note: Enable the Include Sub-Types checkbox when the family contains sub-types that are not
defined in the new project.
6 Click OK.
33003101.26 331
Type Library Manager
Procedure
Step Action
1 Select Start > Programs > EcoStruxure Control Expert > Types Library Update.
The Types Library Update window will be displayed.
2 Select the directory where the family is stored using the ... button.
(To change the Library path please refer to Library configuration options, page 589.)
NOTE: If you want to use a family in several Libset versions of Control Expert, you must
proceed as described above for each Libset version.
332 33003101.26
Type Library Manager
Step Action
1 Use your user-defined family (e.g. ToolKit family) to create an installable family, page 330.
Result: The DFB/DDTs of the family will be exported, the EF/EFBs will not be exported. A warning
will advise you.
2 Install the user-defined family with the EF/EFBs you originally created with the EFB toolkit in the
new Control Expert installation.
3 Install the family you exported in Step 1via Start > Programs > EcoStruxure Contro lExpert >
Types Library Update.
Result: Since the original family from the EFB toolkit and the installable family from Control
Expert have the same name, a message will appear that this family already exists and you will be
asked if you want to replace it.
Result: Another question is displayed whether you want to add the additional types to the existing
family instead.
Result: All other types (DFB/DDTs) will be added to the family. No existing types will be replaced.
NOTE: If you want to use a family in several Libset versions of Control Expert, you must
proceed as described above for each Libset version.
33003101.26 333
Type Library Manager
Unchecked elements
When using the Type Library Manager, some elements are not considered during the
compatibility check of DFB and EFB types.
These elements are:
• Initial value elements that contain the initial value of data.
• The Save option showing whether a data element accepts or doesn’t accept the backup
/ restore mechanism.
• The RW program option showing whether a public variable can or cannot be written
from the DFB and EFB program.
• The RW program instance option showing whether a public variable can or cannot be
written from the program launcher.
• The Pin Number of the parameter. (Note: This check is only not considered with DFBs)
334 33003101.26
Type Library Manager
33003101.26 335
Type Library Manager
336 33003101.26
Type Library Manager
33003101.26 337
Type Library Manager
Element Description
Update
Button Updates all FFB types shown in this tab with the FFB types from the
library.
Update All
338 33003101.26
Type Library Manager
Element Description
OK
Button Opens Control Expert Help
Help
NOTE: Updating FFB types leads to Rebuild All Project. The PLC must be stopped
and a global download of the project must be performed.
Element Description
Update
Button Updates all FFB types shown in this tab with the FFB types from the
library.
Update All
33003101.26 339
Type Library Manager
Element Description
OK
Button Opens Control Expert Help
Help
NOTE: Updating FFB types leads to Rebuild All Project. The PLC must be stopped
and a global download of the project must be performed.
Element Description
340 33003101.26
Type Library Manager
Element Description
OK
Button Opens Control Expert Help
Help
Step Action
3 Create a ready-to-install family for each family containing your own DFBs or DDTs (via the
context menu for the applicable family). Save these families on your hard drive (but not in the
Schneider Electric directories).
5 Go to Programs > Schneider Electric > EcoStruxureControlExpert > Control Expert and
start the Tool Type Library Update and install all of your families.
Note: If you want to use your families in several Libset versions, you must repeat this step for
every Libset version.
33003101.26 341
Type Library Manager
Step Action
8 Create an application.
9 Copy each DFB that belongs to your own type library from the library into your application.
10 Then copy each DFB from the application into the library family that it came from.
11 All of your libraries and families are now ready for the new Control Expert Version.
342 33003101.26
33003101.26 343
Data Editor
What’s in This Part
Description of the Data Editor ................................................. 345
Creating derived data types (DDT) .......................................... 352
Creating data types of user function blocks (DFB) .................... 374
Managing of instances of data belonging to the family of
function blocks (EF) ............................................................... 376
Managing variable instances belonging to the EDT/DDT/
IODDT/Device DDT families ................................................... 386
General Functions ................................................................. 421
344 33003101.26
Description of the Data Editor
33003101.26 345
Description of the Data Editor
Step Action
1 With the right mouse-button click on the Variables and FB instances directory.
Result: The data editor opens. The Variables tab is shown by default.
346 33003101.26
Description of the Data Editor
Data Editor:
NOTE: You can open the editor directly via data instances which belong to a family
defined by you. If you want to do this open the editor from one of the subdirectories in
the Variables and FB instances directory. The variables to be displayed will be listed in
the selected subdirectory.
Description:
Element Description
Filter
Clicking on this button updates the display corresponding to the filter term defined in the
Button name field.
33003101.26 347
Description of the Data Editor
Element Description
Clicking on this button opens a dialog box, page 430 for defining the filters.
Button
Clicking on this button inverts the filter. The button changes from = to <> and vice versa.
Button
Name Column where you enter the name (symbol) of the instance or the data type you want to
display. You can use the place holders (* or ? for this.).
IODDT Display the derived data types (DDT) that reference inputs/outputs
Properties
Name Column where you enter the name (symbol) of the instance or data type
Address Column where you reference the variable instance with an address in the controller (located
instance).
Comment Column where you enter the comment for the variables.
348 33003101.26
Description of the Data Editor
Tab: Variables
The Variables tab enables the administration of variable instances that belong to the
families EDT/ DDT/ IODDT/ Device DDT
33003101.26 349
Description of the Data Editor
350 33003101.26
33003101.26 351
Creating derived data types (DDT)
1 In the project structure view, switch to the Variables and FB Instances directory.
2 Select the Open command in the shortcut menu and the Data Editor will open.
352 33003101.26
Creating derived data types (DDT)
Example:
1 Switch to the Derived Data Types directory in the project structure view.
2 Select the Open command in the shortcut menu, which will open the Data Editor that is
automatically shown in the DDT Types tab.
33003101.26 353
Creating derived data types (DDT)
Memory Structure
The different PLC families vary in memory structure.
1 Double click in the Data Editor in the DDT Types tab on the empty field (marked by an arrow
Name, and enter the name of the structure type (e.g. IDENTITY); the default type is <Struct>.
Enter a comment (optional).
Example:
3 Double-click on the corresponding Name field and enter the name of the first element of the
structure (e.g. Name, Age) and its type and comment (optional).
Example:
354 33003101.26
Creating derived data types (DDT)
Step Action
4 Double-click on the next cell (marked with an arrow) to enter the name of the next element etc.
5 Go to the name of the structure type (IDENTITY) and select Analyze Type in the shortcut menu.
Result: The structure was successfully analyzed (the symbol in front of the structure type
has changed):
Result: The IDENTITY structure is created in the structure view of the project:
NOTE: Using the shortcut menu and the Open command you can access the
IDENTITY structure.
33003101.26 355
Creating derived data types (DDT)
Step Action
1 Double click in the Data Editor in the DDT Types tab on the empty field (marked by an arrow Name,
and enter the name of the structure type (for example, MyDDT); the default type is <Struct>. Enter
a comment (optional).
2
Call up the newly created structure by clicking on +:
356 33003101.26
Creating derived data types (DDT)
Step Action
3
Double-click on the corresponding Name field and enter the name of the first element of the
structure (e.g. Extract, Extract1) and its type and comment (optional):
4 Double-click on the next cell (marked with an arrow) to enter the name of the next element etc.
5 Select the variable to create the extracted bit and right-click on the variable.
33003101.26 357
Creating derived data types (DDT)
Step Action
6 Within the Bit Rank menu, the user can select to named each variable manually or automatically
using the Generate button.
NOTE: The Bit name can be edited manually directly in the Data Editor.
7 Go to the name of the structure type (MyDDT) and select Analyze Type in the shortcut menu.
358 33003101.26
Creating derived data types (DDT)
Result: The structure was successfully analyzed (the symbol in front of the array type has
changed):
33003101.26 359
Creating derived data types (DDT)
Result: The MyDDT structure is created in the structure view of the project:
NOTE: Using the shortcut menu and the Open command you can access the
IDENTITY structure.
Step Action
1 Double click in the Data Editor in the DDT Types tab on the empty field (marked by an arrow Name,
and enter the name of the array type (e.g. SERIAL_NUMBER); the default type is <Struct>. Enter a
comment (optional).
2 Double click on the Type field, select <Array>, and confirm by pressing Enter.
360 33003101.26
Creating derived data types (DDT)
Step Action
Result: The array was successfully analyzed (the symbol in front of the array type has changed):
NOTE: Comments cannot be entered for the sub elements of the array type.
The array type SERIAL_NUMBERS is created in the project structure view:
NOTE: You can access the array of the SERIAL_NUMBER type in the context menu
using the Open command.
33003101.26 361
Creating derived data types (DDT)
1 Double click in the Data Editor in the DDT Types tab on the empty field (marked by an arrow
Name, and enter the name of the reference type (e.g. MyRefInt); the default type is <Struct>.
Enter a comment (optional).
2 Double click on the Type field, select <Reference>, and confirm by pressing Enter.
3 The REF_TO checkbox is automatically checked. Select the reference data type, in this example:
INT.
4 Confirm with OK.
5 In the Data Editor, right-click the name MyRefInt and select Analyze Type.
Result: The reference was successfully analyzed (the symbol in front of the reference type has
changed).
The reference type MyRefInt is created in the Project Browser Structure view.
NOTE: You can access the reference of the MyRefInt type using the contextual menu
using the Open command.
Array of References
You cannot make directly, for example, an Array of REF_TO INT. You must first make a
reference DDT with type REF_TO INT as in the figure above. Then you make a new DDT
type, an array of the references.
362 33003101.26
Creating derived data types (DDT)
After confirming with OK and performing an Analyze Type, you obtain an array of
references:
33003101.26 363
Creating derived data types (DDT)
Step Action
1 Double click DDT Types tab in the Data Editor on the empty field (marked by an arrow Name,
enter the name of the structured type and press ENTER. The default type is <Struct>.
5 Select <Application>.
6 Select MyDDTRefINT.
364 33003101.26
Creating derived data types (DDT)
Steps Action
1 Display the desired data type in the data editor in the DDT Types tab.
2 Place the cursor on the element in front of which you want to insert another element and select the
Insert new command in the shortcut menu.
3 Enter the attributes of the element into the newly created row.
Step Action
1 Display the desired data type in the data editor in the DDT Types tab from which you wish to delete the
element.
2 Select the desired element.
3 Use the shortcut menu to select the Delete command.
33003101.26 365
Creating derived data types (DDT)
Step Action
1 Select the desired data type in the data editor in the DDT Types tab.
NOTE: Data types that exist as an instance in the application cannot be deleted.
Step Action
1 Double click in the Data Editor in the DDT Types tab on the empty field (marked by an arrow Name, and
enter the name of the array type (e.g. PERSONNEL); the default type is <Struct>. Enter a comment
(optional).
2 Double click on the Typefield, select <Array>, and confirm by pressing Enter.
366 33003101.26
Creating derived data types (DDT)
Step Action
4 Enable the DDT checkbox, which will display the derived data types.
5 Select the desired structure in the Name column and confirm with OK.
6 Change to the name of the array type and go to the context menu and select Analyze Type.
NOTE: Comments cannot be entered for the sub elements of the array type.
NOTE: Changing the boundaries of an anonymous array lead to the lost of the initial
values of that array. Those values must be re-entered after the modification.
33003101.26 367
Creating derived data types (DDT)
Array of the type PERSONNEL that contains structures of the type IDENTITY:
Step Action
1 Click on + to display the type of the structure in the DDT Types tab in the data editor, to which you want
to add an element.
2 Double click on the empty Namefield and enter the name of the new structure type element. Enter a
comment (optional).
368 33003101.26
Creating derived data types (DDT)
Step Action
33003101.26 369
Creating derived data types (DDT)
Step Action
5 Enable the DDT checkbox, which will display the derived data types.
6 Select the desired structure in the Name column and confirm with OK.
7 Switch to the name of the structure type and select the Analyze Typeentry in the context menu.
370 33003101.26
Creating derived data types (DDT)
Example:
33003101.26 371
Creating derived data types (DDT)
Step Action
2 Select the data type that you want to save in the library.
3 Using the shortcut menu select the Copy into Library command.
4 Show the desired family to select the directory where you want to archive the data type.
NOTE: This procedure can also be started from the project browser in the Derived Data
Types directory.
372 33003101.26
33003101.26 373
Creating data types of user function blocks (DFB)
374 33003101.26
33003101.26 375
Managing of instances of data belonging to the family
of function blocks (EF)
Steps Actions
376 33003101.26
Managing of instances of data belonging to the family
of function blocks (EF)
Steps Actions
33003101.26 377
Managing of instances of data belonging to the family
of function blocks (EF)
Steps Actions
5 In the Name column select the EFB or DFB type and confirm with OK.
378 33003101.26
Managing of instances of data belonging to the family
of function blocks (EF)
Example:
33003101.26 379
Managing of instances of data belonging to the family
of function blocks (EF)
To do this, click on the area that contains the name of the column in question and the arrow
will turn blue.
Sorting in descending alphabetical order in the column Name
380 33003101.26
Managing of instances of data belonging to the family
of function blocks (EF)
Step Action
Step Action
33003101.26 381
Managing of instances of data belonging to the family
of function blocks (EF)
Example:
382 33003101.26
Managing of instances of data belonging to the family
of function blocks (EF)
Step Action
-
enter the desired type,
33003101.26 383
Managing of instances of data belonging to the family
of function blocks (EF)
• The connections of pins that no longer exist in the new type are lost.
IL and ST sections:
If necessary, formal parameters in IL and ST sections will be renamed according to the new
block during formal access. The number of actual parameters will be adjusted during
informal access.
NOTE: Instance access in IL or ST sections will only be adjusted if required by the type
change. However, if an adjustment is made, the old access will be removed and
replaced with a generated access. This means that all comments and formatting
contained in the old access will be lost.
FBD and LD sections
The new type will be displayed in the FBD and LD sections following the adjustment.
384 33003101.26
33003101.26 385
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
3 Double-click the Type cell and enter the type of the instance.
386 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Example:
Step Action
3 Double-click the Type cell and enter REF_TO and the type referenced for this instance.
Example:
33003101.26 387
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
1 In the Variables tab of the Data Editor, select the reference type variable to be initialized.
2 Double-click Value.
3 Enter REF(VarName), where VarName is the variable referenced by the Instance of the
Referenced Variable.
Example:
Step Action
3 Double-click on the Type cell and enter the type of the instance.
4 Double-click on the Address cell and enter the storage address for the controller.
388 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
1 Double-click on the empty Address cell and enter the storage address for the controller.
Example:
33003101.26 389
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
5 Enable the DDT checkbox, which will display the derived data types.
390 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
6 Select the desired structure type in the Name column and confirm with OK.
7 Fill out the Value column to initialize the elements of the structure. To carry out this task, click on + to show
the structure.
Example:
NOTE: The comments will be transferred to the selected structure type, but they may be
changed for the applicable instance.
NOTE: My_Tab1 and My_Tab2 are two identical instances. The difference is that the
type of the My_Tab1 instance was previously defined (the name of the Type is Tab) while
the type of the My_Tab2 instance was defined during instancing.
Creating an instance for a non-typical array:
33003101.26 391
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
392 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
33003101.26 393
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Example:
NOTE: Enter comments for the sub-elements of this instance of a non-typical array.
Step Action
394 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
5 Enable the DDT checkbox, which will display the derived data types.
6 Select the desired array type in the Name column and confirm with OK.
7 Fill out the Value column to initialize the elements of the array as needed. To carry out this task, click on
+ to show the elements.
33003101.26 395
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Example:
NOTE: Comments cannot be entered for the sub elements of this instance of an array.
NOTE: If you resize an array variable type, you will lose the comments and the initial
values of the elements of the array.
Step Action
396 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
33003101.26 397
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
5 Select the Type of Controller, Function and the corresponding IODDT Type.
398 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
3 Select the IODDT instance based on which the link will be created.
4 Enter the address of the module or its future storage location in the Address column (it is not necessary
to configure the module during this phase).
Example:
Rules
Follow the rules below:
• An IODDT data type cannot be nestled in a DDT data type.
• An IODDT data type cannot be nestled in another IODDT data type.
• A public or private variable of a DFB cannot be an IODDT type.
• An input / output parameter of a DFB may be of Type IODDT. However, you can only
use those IODDT types that are listed in the Variable Type Selection menu.
• An IODDT instance cannot be accessed from a DFB section.
33003101.26 399
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Implicit Device DDT instances are created by default on device insertion and refreshed
automatically by the PLC. They contain the modules status, modules and channels health
bits, values of the modules inputs, values of the modules outputs, etc.
NOTE: Optional explicit DDT types are proposed in the data editor to support status or
command data used by explicit exchanges on a channel of I/O modules in a remote I/O
drop. Explicit DDT instances are created manually by the user in the data editor and
used as input or output parameter with the function block managing the explicit
exchange (see EcoStruxure™ Control Expert, I/O Management, Block Library).
Step Action
1 In the Project Browser, double-click the module that contains the device DDT to rename.
5 Validate the name changes in the advice window. This advice window appears when selecting
another tab or view.
WARNING
UNEXPECTED EQUIPMENT BEHAVIOR
• Always verify that the Control Expert configuration is consistent with the hardware
installation.
• If you attempt to change the default names of your devices, manage the naming to
prevent from addressing the wrong device.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
400 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Moving a Module
Moving a module does not modify its name.
If the same module type is inserted in the slot freed by the module shifting, the new inserted
module should get the same topological name. In order to keep the naming uniqueness,
_rrrrrr is added at the end of the string (rrrrrr being a random character series).
Step Action
3 Double-click the corresponding Type field and click the following button:
5 Select the family (I/O Management for example) and the corresponding Device DDT type.
33003101.26 401
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
2 In the Project Browser, double-click the module to be associated to the created device DDT.
NOTE: The created device DDT can only be linked to a module of the same type. For
example, an 8 analog input module can only be linked to an 8 analog input device DDT.
5 In the Implicit device DDT > Name : list, select the name of the device DDT created (instead
of the current name).
402 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
6 Validate the name changes in the advice window. This advice window appears when selecting
another tab or view.
NOTE: Once a module is linked to a new device DDT, the variables that were linked to
former device DDT name do not address the module anymore.
7
The previously created Device DDT instance is now linked to the module. It is displayed as
follows in the data editor:
NOTE: A variable linked to a module shows a lock in front of its name in the data
editor.
33003101.26 403
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
1 Create one or more variable instances you want to customize that are identical with the elements of the
IODDT / DDT / Array.
2 Select an element of the DDT_Inst1 instance (for example Value) that you want to assign to the
previously created AliasValue instance.
Alternatively, the user can also assign a new symbol as alias. In this case the alias variable is
automatically be created with the type of the current element.
404 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
4 In the Alias area enter the element AliasValue and then do the same for all elements that you want to
assign.
Along with the alias names and the elements of the DDT a symbol is shown.
NOTE: The user can directly enter the AliasValue in the Alias column.
33003101.26 405
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Example:
The Data properties window can also be opened from the Alias instance. In such a case
Alias of is an instance attribute; it contains the names of the elements of the IODDT
structure, DDT structure or an Array element.
Example:
406 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Disconnecting an alias
Step Action
1 Select the element from the appropriate IODDT structure, DDT structure or Array element.
2 From the shortcut menu select the command Properties, and the following dialog box will appear.
Dialog box:
3 Double-click on the target alias, delete the element in edit mode (AliasValue) and confirm.
NOTE: Alternatively, the user can directly delete the name in the column Alias or
AliasOf.
NOTE: The alias instance returns to being a normal EDT instance and the attributes for
the element to which the instance is assigned are retained. The element for the IODDT
structure, DDT structure or an Array element contains the original manufacturer-defined
name again.
33003101.26 407
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
408 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
33003101.26 409
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
4 Select an open position (row) from which the instances will be copied.
5 From the context menu select the command Insert and the new instances will be created and renamed.
Example:
410 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Importing instances
See "Importing Variables", page 1701.
33003101.26 411
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
412 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
33003101.26 413
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Example:
Step Action
414 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
33003101.26 415
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
Step Action
Step Action
416 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
33003101.26 417
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
In contrast, the changes listed above (instance name, type, address) are applied directly
to the instances and do not affect the internal organization, only the instantiation of the type.
Step Action
6 Select the desired type in the Name column and confirm with OK.
7 Fill out the Value column to initialize the variable by typing the name of the variable to be
referenced.
418 33003101.26
Managing variable instances belonging to the EDT/
DDT/IODDT/Device DDT families
33003101.26 419
420 33003101.26
General Functions
General Functions
What’s in This Chapter
Configuring the Data Editor columns ....................................... 421
Description of the Data Editor: Variable type selection............... 425
Filtering of Data ..................................................................... 430
Exporting a subset of variables ............................................... 434
Analyze DDT and DFB Data Types .......................................... 435
Purge of Unused Instances..................................................... 436
Local printing of data .............................................................. 437
Save the context of the Data Editor ......................................... 438
Columns Available
The following table shows the different columns available in the Data Editor:
Value Initial value for the variables. By default this attribute is checked.
33003101.26 421
General Functions
Alias Name selected by the user which makes it possible to change an IODDT, DDT, or an Array
element to a name defined by the manufacturer or the user. By default this attribute is
checked.
NOTE: An Alias value cannot be set for a variable if the Bit rank attribute has been set,
page 356 for that variable.
Alias of Complete path of the variable subfield on which user sets Alias attribute. By default this
attribute is checked.
Constant Kind of variable, the variable is a constant or not.
Custom Free text for use of an external tool or for special user requirements.
Used Number of times the variables are used in the program and in other parts of the project
(animation tables, user windows).
Owner Only for Device DDT, it displays the address of the modules which owns this variable.
Address Address in the controller for referencing the variables. By default this attribute is checked.
Global data Shows if the variable is a variable that was swapped between different stations via the
network.
+ Group Number of the group (the variables) in which the variable is transported.
ID Number for the unique display of a variable in the group (the variables).
Save Define if the variable accepts the mechanism for updating initial values with current values.
HMI variable When General Project Settings > Data Dictionary > Only HMI variables is checked, this
reduces memory usage. By default this attribute is checked.
Time stamping Select if a variable is time stamped or not and the kind of time stamping, see the System
time stamping variables (see System Time Stamping, User Guide) or Applicative time
stamping variables (see EcoStruxure™ Control Expert, Applicative Time Stamping, User
Guide).
Scanned Variables Attribute that you can use to tag a variable to be a scanned variable by the PLC, through
Ethernet for instance.
R/W Rights of Access rights of a reference type instance, used when the reference dereferences a read
Referenced Variable only variable, see the Reference Access rights (see EcoStruxure™ Control Expert, Program
Languages and Structure, Reference Manual). By default this attribute is checked.
Data Protect Use this attribute to protect your data from modification request in monitoring mode.
When Data Protect is checked, it is not possible to modify the protected variable. By default
this attribute is unchecked.
NOTE: The project setting Data memory protect must be enabled: Tools > Project
Settings > PLC embedded data.
422 33003101.26
General Functions
Exchange On STBY Only for M580 Hotstandby systems (see Modicon M580 Hot Standby, System Planning
Guide for, Frequently Used Architectures), if checked, the variable or the function block
instance is automatically exchanged between Primary PLC and Standby PLC. By default
this attribute is checked.
+ Task Give the task in which a Variable, EFB instance, or DFB instance is used.
Retain BME•586040 CPUs present this variable attribute, which determines whether the variable
value will persist after a warm start of the CPU. If the attribute is:
• Selected: Variable data persists and is applied to the variable after a warm start.
• De-selected: Variable data is lost after a warm start; the variable value is reset.
For other Modicon M580 CPUs, this attribute is read-only. It is selected by default and
cannot be de-selected.
no. Order number of a function block.
984 Address LL984 address of the variable (%Mx = 00000x, %Ix = 10000x, %IWx = 30000x, %MWx =
40000x)
This column is only available for Quantum PLCs (but not for Quantum Safety PLCs).
RW program Access rights of the variable, read only or read and write by the program.
Descriptor 1 is displayed after selecting this column in the Column Configuration dialog.
Descriptors 2 to 9 can be displayed using the + sign in the Descriptor column header.
Bit rank Gives the bit rank of the variable in its structure type.
Nature Only for the Program Unit data editor. Define if the Program Unit variable is an input, output
or Input/output parameter, a public or private variable. By default this attribute is checked.
Effective Parameter Only for the Program Unit data editor. Variable assignment to the program unit parameters
(input, output and input/output parameters).
Defining Columns
Step Action
33003101.26 423
General Functions
Step Action
3 Check the check boxes that correspond to the columns you wish to display.
Button Description
424 33003101.26
General Functions
3 Place the cursor on the chosen attribute and move it to the desired location by clicking the two
buttons to the right of the window.
NOTE: The first column must always correspond with the attribute Name.
At a Glance
Data Editor: You can access the variables type selection by double-clicking on the Type
33003101.26 425
General Functions
Variables:
DDT Types:
426 33003101.26
General Functions
Function blocks:
NOTE: Access to the editor for the selection of the data types is not possible via the
DFB types tab.
33003101.26 427
General Functions
• the <Libset> directory that is organized into special libraries contains the families
made available by the manufacturer or the functions archived by the user:
◦ the Derived Data Types (DDT); the DDT checkbox must be enabled.
◦ the data types for the sequence controls (SFC); the DDT checkbox must be
enabled,
◦ the data types for the derived function blocks (DFB); the DFB checkbox must be
enabled,
◦ the elementary function blocks (EFB); the EFB checkbox must be enabled,
◦ the Device Derived Data Types (DDDT); the Device DDT checkbox must be
enabled.
• the <Catalog> directory that shows the derived data types that reference inputs/outputs
(IODDT) from the manufacturer; the IODDT checkbox must be enabled.
ARRAY checkbox
If this checkbox is enabled, you can use the editor to select the array types to have a single
size or several sizes (maximum six dimensions).
Example: Array with two dimensions 10x4 DINT
428 33003101.26
General Functions
REF_TO checkbox
If this checkbox is enabled, you can use the editor to create a reference type instance.
Example: REF_TO BOOL
Filtering
You can create filters in the data editor to display the data types according to your
requirements.
The Name field is used to enter the name of the data type that you want to display in the
Name/Type/Comment area. You can use place holder symbols (* or ?) to carry out multiple
search operations.
Clicking on the button updates the display corresponding to the filter term defined in
the field Name.
Clicking on this button opens the Filtering data, page 431 dialog box where you
can define various filter attributes.
Clicking on this button inverts the filter. The button changes from = to <> and vice
versa.
33003101.26 429
General Functions
Filtering of Data
Introduction
You can create filters in the data editor to display the data according to your requirements.
A filter is the sum of the conditions applied to various attributes.
In every tab, it is standard for all variable instances or data types to be shown.
The various filters you have defined are saved when the data editor is closed and restored
when it is opened again.
At a Glance
The filter parameterization in the data editor is determined depending on the tab chosen.
Description of the Data editor different fields depending on the tab:
All tabs Clicking on this button opens the Filtering data dialog box where you can
Button define the conditions for the individual attributes.
All tabs Clicking on this button inverts the filter. The button changes from = to <>
Button and vice versa.
Name All tabs Field where the name (symbol) of the instance or the data type you want to
display can be entered. You can use the place holder (* or ?) for this.
EDT Variables tab The enabled check box authorizes the display of the Elementary Data
Types (EDT).
EFB Function Blocks tab The enabled check box authorizes the display of the Elementary Function
Blocks (EFB).
DDT Variables tab The enabled check box authorizes the display of the Derived Data Types
(DDT).
430 33003101.26
General Functions
IODDT Variables tab The enabled check box authorizes the display of the Derived Data Types
(DDT) that reference inputs/outputs (IODDT).
Device DDT Variables tab The enabled check box authorizes the display of the Derived Data Types
(DDT).
Column Description
Name This column contains the attributes for the (Variables, DDT Types, Function Blocks or
DFB Types) tab used to open the dialog box.
Check the box for the attributes that you want to filter.
Condition The column allows you to define the filter condition for every attribute.
Inverted Using this checkbox you can invert the filter condition for the attribute in question.
Comment Free text All variables whose comment All variables whose comment
attribute contains the word attribute does not contain the
e.g. *motor* Motor are filtered. word Motor are filtered.
Type Free text All variables of data type Int All variables not of data type
are filtered. Int are filtered.
33003101.26 431
General Functions
e.g. Int
Alias of Yes All variables defined as an alias All variables not defined as an
are filtered. alias are filtered.
Value User defined All variables defined with an All variables not defined with
initial value are filtered. an initial value are filtered.
Constant Yes All variables defined as All variables not defined as
constants are filtered. constants are filtered.
Custom Free text All variables are filtered if their All variables whose user-
user-defined text (free text for defined text does not contain
e.g. *HMI* use in an external tool or for the word HMI are filtered.
special user requirements)
contains the word HMI.
Used >0 All variables used in the project All variables not used in the
are filtered. project are filtered.
Owner Free text All variables which owner begins All variables which owner
with \2.1\ are filtered. doesn’t begin with \2.1\ are
e.g. \2.1\* filtered.
Address Free text All variables with the address % All variables that do not have
MW1 are filtered. the address %MW1 are filtered.
e.g. %MW1
Global data Yes All variables defined as global All variables not defined as
data are filtered. global data are filtered.
Save Accept All variables that accept saving All variables that do not accept
and restore operations are saving and restore operations
filtered. are filtered.
HMI variable Yes All variables defined as HMI All variables not defined as
variable are filtered. HMI variable are filtered.
Time stamping Free text All variables which Time All variables which Time
stamping attribute is Both stamping attribute is not Both
e.g. Both edges edges are filtered. edges are filtered.
Scanned Variables Yes All variables defined as Scanned All variables not defined as
Variables are filtered. Scanned Variables are filtered.
Exchange On STBY Yes All variables defined as All variables not defined as
Exchange On STBY are filtered. Exchange On STBY are
filtered.
Retain Yes All variables defined as Retain All variables not defined as
Variables are filtered. Retain are filtered.
432 33003101.26
General Functions
Comment Free text All DDT types whose comment All DDT types whose comment
attribute contains the word attribute does not contain the
e.g. *Motor* Motor are filtered. word Motor are filtered.
Custom Free text All function blocks are filtered if All function blocks whose user-
their user-defined text (free text defined text does not contain
e.g. *HMI* for use in an external tool or for the word HMI are filtered.
special user requirements)
contains the word HMI.
Used >0 All function blocks used in the All function blocks not used in
project are filtered. the project are filtered.
Owner Free text All function blocks which owner All function blocks which owner
begins with \2.1\ are filtered. doesn’t begin with \2.1\ are
e.g. \2.1\* filtered.
HMI variable Yes All function blocks defined as All function blocks not defined
HMI variable are filtered. as HMI variable are filtered.
Exchange On STBY Yes All function blocks defined as All function blocks not defined
Exchange On STBY Variables as Exchange On STBY are
are filtered. filtered.
Retain Yes All function blocks defined as All function blocks not defined
Retain Variables are filtered. as Retain are filtered.
33003101.26 433
General Functions
Comment Free text All DFB types whose comment All DFB types whose comment
attribute contains the word attribute does not contain the
e.g. *Motor* Motor are filtered. word Motor are filtered.
Diag Accept All DFB types that accept the All DFB types that do not
attribute Diag are filtered. accept the attribute Diag are
filtered.
Protection Protected All protected DFB types are All non-protected DFB types
filtered. are filtered.
Filter
Filter the variables as described in the chapter Filtering of Data, page 430.
Selecting
Click on a variable to select it in the Data Editor. You can select multiple variables by holding
down the Alt or Ctrl keys.
Export
Export the filtered or selected variables via the context menu (right-click).
434 33003101.26
General Functions
Step Action
1 Select the desired data type in the DDT Types or DFB Types tab.
3 Check the result of the analysis in the Display Window on the lower part of the window.
NOTE: Double-click on an error row in the display window to go to the source of the
error.
33003101.26 435
General Functions
Step Action
2 Check the result of the analysis in the display window on the lower part of the window.
NOTE: Double-click on an error row in the display window to go to the source of the
error.
Step Action
3 Select the menu command Purge Unused Variables from the context menu.
436 33003101.26
General Functions
Step Action
3 Select the menu command Purge Unused FB Instances from the context menu.
NOTE: When a FFB is not available for a kind of PLC (after a section import for
instance) but still in the application (removed from the section but still in the list of the
Application FFBs), the purge feature should be used before building the application.
Step Action
3 Select one of the two menu commands Purge Unused Private Data Instances or Purge
unused Types from the context menu.
33003101.26 437
General Functions
• Filtering variables,
• Sorting variables,
• Using certain variables
How to print
Carry out the following steps:
Step Action
1 Select the user-defined adjustment of the printing process in the Data Editor:
• Select the tab,
• Select the filter, page 430:
• Select the sorting order (alphabetically ascending or descending),
• Using structured variables
or
NOTE: Local printing takes the access security into consideration. Only information
appearing in the window is printed.
NOTE: If an IODDT, a DDT or an Array element of an instance has an alias, the instance
is displayed with the alias of the element as in the Data Editor.
438 33003101.26
General Functions
33003101.26 439
440 33003101.26
Communication
What’s in This Part
Presentation of the communication editors............................... 442
Network Configuration............................................................ 445
Configuration of X-Way Routing Premium Stations ................... 453
33003101.26 441
Presentation of the communication editors
442 33003101.26
Presentation of the communication editors
Illustration
The figure below shows an example of the project browser
33003101.26 443
444 33003101.26
Network Configuration
Network Configuration
What’s in This Chapter
Network Configuration Principle Using Control Expert .............. 445
Creating a Logic Network ....................................................... 446
Configuring a Logic Network ................................................... 448
Associating a Logic Network with Network Hardware ................ 449
33003101.26 445
Network Configuration
• Ethernet configuration for Premium (see Premium and Atrium Using EcoStruxure™
Control Expert, Ethernet Network Modules, User Manual), Ethernet configuration for
M340 (see Modicon M340 for Ethernet, Communications Modules and Processors,
User Manual), and Ethernet configuration for Modicon M580 (see Modicon M580,
Hardware, Reference Manual),
• Modbus Plus configuration (see Premium and Atrium Using EcoStruxure™ Control
Expert, Modbus Plus Network, User Manual),
• Fipway configuration (see Premium and Atrium using EcoStruxure™ Control Expert,
Fipway Network, User Manual).
Step Action
Result::
2 Right-click in the Networks sub-directory and select the New network option.
Result::
446 33003101.26
Network Configuration
Step Action
3 Select the network that you want to create from the list of available networks and give it a
meaningful name.
Note: You can also add a comment, if you so desire, by clicking on the Comment tab.
33003101.26 447
Network Configuration
Step Action
Result: We have just created the Ethernet network that appears in the project browser
Note: As you can see, a small icon indicates that the logic network is not associated with any
PLC hardware. Furthermore, the small blue "v" sign indicates that the project needs to be rebuilt
before it can be used in the PLC.
448 33003101.26
Network Configuration
Step Action
1 In the project browser, expand the directory tree under the Networks sub-tab located in the
Communication tab of the tree directory to display all the project networks.
Example::
2 Double-click the network you want to configure to obtain the network configuration window.
Note: The windows differ according to the network family selected. However, for all networks,
from this window it is possible to configure the Global Data, IPO scanning, Peer Cop utilities,
common words, etc.
Note: For Ethernet networks, an intermediate step is necessary, which involves selecting the
family of the module that will be used in the hardware configuration.
Step Action
2 Right-click the device (Ethernet module, Fipway PCMCIA card or Modbus Plus PCMCIA card)
that you wish to associate with a logical network.
33003101.26 449
Network Configuration
Step Action
4 In the Network link field, select the network to be associated with the card.
Result:
Result: The logic network is associated with the device. The icon associated with this logic
network changes and indicates the existence of a link with a PLC. Furthermore, the rack, module
and channel numbers are updated in the logic network configuration screen. In our example we
obtain the following project browser:
450 33003101.26
Network Configuration
Step Action
33003101.26 451
452 33003101.26
Configuration of X-Way Routing Premium Stations
33003101.26 453
Configuration of X-Way Routing Premium Stations
Configuration
At a Glance
In an intermediate station, the management of several network couplers requires a
configuration phase in order to distribute the functional characteristics to the various network
entities.
NOTE: Multi-network routing information is constructed at the station level at the time of
configuration of each bridge. No consistency check is done on routing data for the same
network architecture.
454 33003101.26
Configuration of X-Way Routing Premium Stations
Illustration
A specific screen allows entry of routing data for all the network modules of a station.
33003101.26 455
Configuration of X-Way Routing Premium Stations
3 Accessible Used:
networks
• for the unshaded Logical Network zone, to enter the list of networks
accessible by this module,
• for the shaded Logical Network zones, to display the list of networks
accessible by these modules.
Procedure
The following procedure is used to access, and then configure the station’s module as an X-
Way router.
456 33003101.26
Configuration of X-Way Routing Premium Stations
Step Action
1 Open the Communication tab in your project browser and in the Routing table tab, click the X-
Way table tab.
If the list of accessible module networks is empty, the window appears automatically (without
double-clicking).
3 Double-click the number of the required network from the Available networks scroll list.
33003101.26 457
Configuration of X-Way Routing Premium Stations
Step Action
Result: The network number is assigned in the Access networks scroll list.
4 Perform operation 3 as many times as necessary to define all the networks accessible by the
module.
6 Confirm the configuration of the X-Way router by closing the window or clicking the Enable
button in the toolbar.
Step Action
1
Access the following X-Way window.
458 33003101.26
Configuration of X-Way Routing Premium Stations
Step Action
1
Access the following X-Way window of the accessible networks.
Result: The network number is reassigned in the Available networks scroll list.
33003101.26 459
Configuration of X-Way Routing Premium Stations
Configuration of Station R1
The module at slot 2 can only access network 12.
The module at slot 4 can only access network 1 and 11.
The module at slot 5 can access networks 13 and 21.
460 33003101.26
Configuration of X-Way Routing Premium Stations
Configuration of Station R2
The module at slot 0 can only access network 11.
The module at slot 5 can access networks 1, 12, 13 and 21.
The bridge configuration of the station is therefore as follows:
Configuration of Station R3
The module at slot 0 can access networks 13, 12, 1 and 11.
The module at slot 5 can only access network 21.
33003101.26 461
Configuration of X-Way Routing Premium Stations
Messaging
To use the communication function (see EcoStruxure™ Control Expert, Communication,
Block Library) such as Read_VAR for ethernet exchange between stations, configure the
TCP/IP Messaging in the Ethernet network configuration (see Premium and Atrium Using
EcoStruxure™ Control Expert, Ethernet Network Modules, User Manual) screen. In the
Messaging tab, for each exchange set the IP address and target XWay address.
For example if station R3 needs to communicate with station B, in R1Messaging tab:
• set the R2 IP address (139.255.255.4) in the field IP address, and
• set the B XWay address (11.4) in the field XWay address.
The following illustration shows the R1 Messaging tab:
For another example if station B needs to communicate with station A, in R2, Messaging
tab:
• set the R1 IP address (139.255.255.5) in the field IP address, and
• set the A XWay address (21.7) in the field XWay address.
462 33003101.26
Configuration of X-Way Routing Premium Stations
33003101.26 463
Configuration of X-Way Routing Premium Stations
Illustration
Each station must be configured in order to define the list of accessible networks.
Configuration of Station R1
The module at slot 2 is not involved in the routing of data.
The module at slot 4 can access networks #1 and #11.
The module at slot 5 can access networks #13 and #21.
464 33003101.26
Configuration of X-Way Routing Premium Stations
Configuration of Station R2
The module at slot 0 can only access network #11.
The module at slot 5 can access networks #1, #13 and #21. Network #12 is inaccessible.
The bridge configuration of the station is therefore as follows:
Configuration of Station R3
The module at slot 0 can access networks #13, #1 and #11. Network #12 is no longer
accessible.
The module at slot 5 can only access network #21.
33003101.26 465
Configuration of X-Way Routing Premium Stations
466 33003101.26
33003101.26 467
Programming
What’s in This Part
Accessing Tasks, Program Units and Sections ......................... 469
Control Expert Software Options ............................................. 546
Common Function for graphical language................................ 607
FBD Editor ............................................................................ 643
LD Editor............................................................................... 737
SFC Editor ............................................................................ 882
Common Function for Textual Language................................ 1009
IL Editor .............................................................................. 1044
ST Editor............................................................................. 1075
LL984 Editor.........................................................................1113
Programming Languages Data Selection Dialog Box .............. 1174
I/O Objects tab..................................................................... 1200
Memory Tab ........................................................................ 1218
Type Library Browser ........................................................... 1224
Search/Replace Tool ............................................................ 1232
User's Function Blocks ......................................................... 1247
468 33003101.26
Accessing Tasks, Program Units and Sections
Overview
This section describes how to access tasks, Program Units and sections.
NOTE: Program Units are not available for Momentum, Quantum, Premium and Atrium.
Access to Tasks
Subject of this Section
This section covers the creation and modification of program tasks.
33003101.26 469
Accessing Tasks, Program Units and Sections
Creating a Task
Carry out the following actions:
Step Action
2 Right-click on the Tasks directory, and then execute the New task... command from the contextual
menu.
3 Click on New task..., and the following dialog box appears:
7 Set the Watchdog value which must be greater than the period value. We recommend to set it at twice
the logic execution time.
8 The Comment tab can be used to add a comment to describe the role of the task for example.
470 33003101.26
Accessing Tasks, Program Units and Sections
Task Properties
Carry out the following actions:
Step Action
The MAST directory (as well as the FAST and AUX directories if they have been created) appears in
the Tasks directory.
2 Right-click on the MAST, FAST, or AUX directory, and then execute the Properties command from the
contextual menu.
3 Click on Properties, and the following dialog box appears:
33003101.26 471
Accessing Tasks, Program Units and Sections
Step Action
6 Set the Watchdog value which must be greater than the period value. We recommend to set it at twice
the logic execution time.
7 The Comment tab can be used to add a comment to describe the role of the task for example.
Step Action
1 Left-click the Logic directory of the desired task, or place the cursor using the arrow keys on this
directory.
2 Click the right mouse button or use Shift+F10 to select New Program Unit... in the context menu.
Result: The New dialog box for the Program Unit opens.
3 Enter the name of the Program Unit. It must be unique in the entire project and conform to the
general naming conventions.
472 33003101.26
Accessing Tasks, Program Units and Sections
Step Action
4 Select the type of access protection if necessary from the Protection list box:
• None
No protection
• Read only
Write protection
• No read & write
Read and write protection
See also section Project Protection, page 187.
5 Select the functional module to which the section is allocated from the Localization tab if
necessary.
6 Define a variable of BOOL or EBOOL type in the Condition tab with which the Program Unit can be
activated/deactivated (section active when variable=1) if required.
10 Create sections in FBD, LD, IL, ST, page 499 or SFC, page 507.
33003101.26 473
Accessing Tasks, Program Units and Sections
Step Action
1 Left-click on the desired Program Unit, or place the cursor on this Program Unit with the arrow
keys.
2 Select (right-click or Shift+F10 key combination) the Properties menu command from the shortcut
menu.
Result: The Properties of dialog box for the Program Unit opens.
474 33003101.26
Accessing Tasks, Program Units and Sections
General tab
Representation of the General tab:
Element Description
Name Enter the name of the Program Unit in this text box.
The name must be unique in the entire project and conform to the general naming
conventions.
Protection Select the type of access protection from this list box.
• None
No protection
• Read-Only
Write protection
• No read & write
Read and write protection
See also Program Unit, Section and Subroutine Protection, page 187.
OK Use this command button to accept the entries and close the properties dialog box.
Apply Use this command button to accept the entries without closing the properties dialog box.
33003101.26 475
Accessing Tasks, Program Units and Sections
Localization tab
Representation of the Localization tab:
Element Description
Functional module Select the functional module to which the Program Unit is to be allocated to in this list
box.
OK Use this command button to accept the entries and close the properties dialog box.
Apply Use this command button to accept the entries without closing the properties dialog box.
476 33003101.26
Accessing Tasks, Program Units and Sections
Condition tab
Display of the Condition tab:
Element Description
Variable You can enter variable of BOOL or EBOOL type which can conditionally enable/disable
the Program Unit in this tab. The scope to select the variable is a either a global variable,
or a public variable or an output parameter of another Program Unit.
Can be forced This check box indicates whether the selected variable can be forced or not.
OK Use this command button to accept the entries and close the properties dialog box.
Apply Use this command button to accept the entries without closing the properties dialog box.
The animation of the activation condition behavior is provided in the project browser. The
Program Unit and its sections have activation conditions, page 505.
In the project browser, the flag (green for activate, red for inactivate) of the Program Unit and
the sections reflect the variable value of the variable used for their activation.
33003101.26 477
Accessing Tasks, Program Units and Sections
A section under a Program Unit is executed only if the section is activated and the Program
Unit is activated.
Case: Description
Comment tab
Representation of the Comment tab:
478 33003101.26
Accessing Tasks, Program Units and Sections
Element Description
Text box A comment about the Program Unit can be entered in this text box.
OK Use this command button to accept the entries and close the properties dialog box.
Apply Use this command button to accept the entries without closing the properties dialog box.
Global variables: They refer to the application wide - or global - scope of data in a project which are:
• Unlocated variable
• Located variable (mapped at %M flat address)
Program Unit variables: They refer to the Program Unit data scope and have one of the following attributes:
• Private: can only be R/W in the scope of this Program Unit.
• Public: can be R/W out of the scope of this Program Unit.
• Parameter (Inputs, Outputs, and Inputs/Outputs): linked to Public variables
(from other Program Units) or Global variables.
• External: Global variables used in this Program Unit.
NOTE: The management of topological variable is only supported in the data editor,
refer to parameter assignment, page 489 to map a variable of a Program Unit to a
topological variable.
33003101.26 479
Accessing Tasks, Program Units and Sections
480 33003101.26
Accessing Tasks, Program Units and Sections
Variables Accessibility
The variable accessibility is dependent to the scope (Global, Program Unit):
NOTE: System behavior of the PLC is accessible using the system bits and system
words into the Program Unit.
33003101.26 481
Accessing Tasks, Program Units and Sections
482 33003101.26
Accessing Tasks, Program Units and Sections
Step Action
1 Click the left mouse button on the selected Interface & Variables directory, or place the cursor on
this directory with the arrow keys.
2 Select (right-click or Shift+F10 combination) the Open command from the shortcut menu.
or
or
33003101.26 483
Accessing Tasks, Program Units and Sections
Tab: Variables
The Variables tab enables the management of all the variables that belong to the Program
Unit:
Description:
Element Description
Filter
Clicking on this button updates the display corresponding to the filter term defined in the name
Button field.
Clicking on this button opens a dialog box, page 430 for defining the filters.
Button
Clicking on this button inverts the filter. The button changes from = to <> and vice versa.
Button
Name Column where you enter the name (symbol) of the variable you want to display. You can use the
place holders (* or ? for this.).
IODDT Display the variables with derived data types (DDT) that reference inputs/outputs
Device DDT Display the variables with device derived data types
Properties
Name Column where you enter the name (symbol) of the variable.
484 33003101.26
Accessing Tasks, Program Units and Sections
Element Description
Comment Column where you enter the comment for the variable.
Alias Column where you can change the name of a variable. Only for <private> variables.
Alias of Column where you enter the complete path of the variable subfield on which you set Alias
attribute.
HMI variable Column where you check if the variable is embedded in the data dictionary.
R/W Rights Column where you set the access rights of a reference type variable.
of
Referenced
variable
Effective Column where you can assign a variable to the Program Unit parameter.
Parameter
Nature Column where you set the nature of the Program Unit variable.
The above properties are displayed by default, for customized properties, refer to Configuring the Data Editor
columns, page 421.
NOTE: For more detailed information, refer to chapter Managing of variables belonging
to the Program Unit, page 488.
Description:
33003101.26 485
Accessing Tasks, Program Units and Sections
Element Description
Filter
Clicking on this button updates the display corresponding to the filter term defined in the name
Button field.
Clicking on this button opens a dialog box, page 430 for defining the filters.
Button
Clicking on this button inverts the filter. The button changes from = to <> and vice versa.
Button
Name Column where you enter the name (symbol) of the instance or the data type you want to display.
You can use the place holders (* or ? for this.).
Properties
Name Column where you enter the name (symbol) of the function block instance.
no. Order number of the inputs and outputs of the function block.
Value Column where you enter the initial value for the variable.
Comment Column where you enter the comment for the variable.
HMI variable Column where you check if the variable is embedded in the data dictionary.
R/W Rights Column where you set the access rights of a reference type variable.
of
Referenced
variable
The above properties are displayed by default, for customized properties, refer to Configuring the Data Editor
columns, page 421.
NOTE: For more detailed information, refer to chapter Managing of instances of date
belonging to the family of function blocks (EF), page 376.
486 33003101.26
Accessing Tasks, Program Units and Sections
Tab: Interface
The Interface tab enables the management of the Program Unit variables sorted by Nature:
Element Description
Properties
Name This column contains the Column where you set the nature of the Program Unit variable.
Comment Column where you enter the comment for the variable.
Effective Column where you can assign a variable to the Program Unit parameter.
Parameter
HMI variable Column where you check if the variable is embedded in the data dictionary.
The above properties are displayed by default, for customized properties, refer to Configuring the Data Editor
columns, page 421.
33003101.26 487
Accessing Tasks, Program Units and Sections
Output These parameters are read/write access in <outputs> EDT, DDT, ARRAY, References
parameters the Program Unit. They are used to (REF_TO), Device DDT
transfer values from the Program Unit.
Input/Output These parameters are read/write access in <inputs/ EDT, DDT, ARRAY, Device
parameters the Program Unit. They are used to outputs> DDT, IODDT
transfer values to and from the Program
Unit.
Public These local variables are accessible from <public> EDT, DDT, ARRAY
variables another Program Unit using the effective
parameter assignment.
Private These local variables are only accessible <private> EDT, DDT, ARRAY, References
variables inside the scope of the Program Unit to (REF_TO), DFB, EFB
which they belong.
NOTE: A REF_TO can be
initialized with a variable of
the Program Unit which
Nature is <private> or
<public>.
External The global variables are accessible in the <external> EDT, DDT, ARRAY, References
variables sections of the Program Unit. (REF_TO)
488 33003101.26
Accessing Tasks, Program Units and Sections
Parameter Assignment
The following table gives the rule for assigning to parameters of a Program Unit:
Input parameters Optional except for ARRAY, DDT, Device DDT, STRING, and REF_TO
Output parameters
The way to assign variable for Program Unit parameter (formal parameter) is done via the
attribute Effective Parameter. The assigned variable is a global variable or a public variable
of another Program Unit.
The Program Unit parameters and the variables which are assigned to must be of the same
data type. For example, if the data type INT is defined for the input parameter, then you
cannot assign to this parameter a variable of the data type DINT nor REAL.
The only exceptions are for BOOL and EBOOL data types which can be mixed. For
example, a %Mi internal bit of data type EBOOL can be assigned to an input parameter
defined as BOOL.
You have the following options to enter the variable in the Effective parameter field:
• You can enter the variable name.
or
• Using the button ... you can open a Data selection dialog box and confirm the selected
variables there with OK.
Example of a Data selection dialog box according to the scope:
33003101.26 489
Accessing Tasks, Program Units and Sections
NOTE: As the management of topological variable is only supported in the data editor of
the application (Address attribute of the variable), to map an interface variable of a
Program Unit to a topological variable, you have to:
• define a global located variable in the Data editor, then
• assign the global variable as an effective parameter of the Program Unit.
490 33003101.26
Accessing Tasks, Program Units and Sections
This is a variable belonging to the global scope (declared in the Data Editor):
Name Type
Glob1 BOOL
This is the definition of the variables belonging to the Prog1 scope (declared in the
Program Unit Data Editor):
The following table shows the syntax, the usage, and the access rights of the variables
according to their nature and scope:
33003101.26 491
Accessing Tasks, Program Units and Sections
Variable Usage in Prog1 Usage in the code Usage in Prog2 Usage in Sect1
of Prog2 as Effective
Parameter
Glob1 Glob1 (R/W) No Glob1 (R/W) Glob1 (R/W)
R: Read only
(1) The write access can be restricted if Pub1 has the attribute RW program set to read only.
(2) The write access can be restricted in external usage if Pub1 has the attribute RW program external use set
to read only.
(3) The write access depends on the write access of the system bit or system word.
Step Action
492 33003101.26
Accessing Tasks, Program Units and Sections
Step Action
3 Select the menu command Purge Unused Variables from the context menu.
NOTE: This action can also be done from the Interface tab and Function Blocks tab.
Step Action
2 Filter the variables as described in the chapter Filtering of Data, page 430.
3 Select the menu command Export Filtered from the context menu.
4 Select the target folder for the export (directory tree) then enter the file name.
7 A message is displayed in the display window to indicate that the export is finished.
33003101.26 493
Accessing Tasks, Program Units and Sections
Step Action
2 Click on a variable to select it in the Program Unit data editor. You can select multiple variables by
holding down the Alt or Ctrl keys.
3 Select the menu command Export Selected from the context menu.
4 Select the target folder for the export (directory tree) then enter the file name.
7 A message is displayed in the display window to indicate that the export is finished.
NOTE: The above export procedures can be also performed for the FB instances
defined under the Program Unit by selecting the Function Blocks tab of the Program
Unit data editor instead of the Variables tab.
Step Action
2 Activate the Import command from the contextual menu (by clicking the right mouse button).
3 Choose the source folder for the import (directory tree) then select the file to be imported (XPU or
XSY).
494 33003101.26
Accessing Tasks, Program Units and Sections
Step Action
Result: the name of the file then appears in the File name field.
If errors occur during the import, they are indicated by a message in the display window.
NOTE: The above import procedure can be also performed for the FB instances defined
under the Program Unit by selecting the Function Blocks tab of the Program Unit data
editor instead of the Variables tab.
<inputs/outputs> BOOL, R R
Constant R
<private> EDT, DDT, ARRAY, DFB, and EFB R/W
33003101.26 495
Accessing Tasks, Program Units and Sections
R: Read only
NOTE: In the animation table dedicated to a Program Unit (sub folder Animation
Tables under Program Unit directory), only variables that belong to this Program Unit
can be added.
The implementation of animation tables dedicated to a Program Unit and its management is
similar to the ones in the Animation Tables folder in the Project directory. For detailed
information refer to chapter Animation Tables, page 1467.
HMI Access
The following Program Unit variables are accessible from HMI/SCADA:
Using the attribute RW program external used, you can restrict the default access as:
• Read only for public variables.
• No access for public variables and parameters.
In the Program Unit data editor, select the attribute HMI variable to embed the variable in
the data dictionary. These variables will be visible for HMI/SCADA.
To access the Program Unit variable from HMI/SCADA, use the variable syntax: <Program
Unit name>.<variable name>. For example: Program1.MyVar
496 33003101.26
Accessing Tasks, Program Units and Sections
You can use the menu command, shortcut menu or drag-and-drop to duplicate a Program
Unit.
Step Action
1 Click on the desired Program Unit with the left mouse button and hold the mouse button down.
2 Move the Program Unit to the required position within the current task or into another task.
NOTE: A Program Unit containing an SFC section can not be moved form the MAST
task to another task.
Step Action
3 Select the location for the new Program Unit. It can be a Program Unit.
If using the drag-and-drop function to duplicate a Program Unit without copy of the effective
parameters:
• Press the key combination Ctrl + left-click on the Program Unit to be duplicated
(holding down the mouse button),
33003101.26 497
Accessing Tasks, Program Units and Sections
Step Action
3 Select the location for the new Program Unit. It can be a Program Unit.
4 Paste the new Program Unit by clicking Paste Special After... from the shortcut menu.
Result: A message box opens asking if you want to copy the effective parameters.
6 Result: The new Program Unit is created just after the selected Program Unit.
If using the drag-and-drop function to duplicate a Program Unit with copy of the effective
parameters:
• Press the key combination Ctrl + Shift + left-click on the Program Unit to be duplicated
(holding down the mouse button),
• drop the Program Unit at the desired location.
NOTE: A Program Unit containing an SFC section can be only duplicated in the MAST
task.
Analyze
Process the following steps to analyze a Program Unit:
498 33003101.26
Accessing Tasks, Program Units and Sections
Step Action
2 Analyze the Program Unit by clicking Analyze from the shortcut menu.
3 Check the result of the analysis in the Display Window on the lower part of the window.
NOTE: Double-click on an error row in the display window to go to the source of the
error.
Accessing Sections
Overview
This section describes accessing sections.
33003101.26 499
Accessing Tasks, Program Units and Sections
The number of columns is set in the Tools > Project Settings dialog box, in the Program >
Languages > LD tab, in the Number of Columns text box.
This setting only applies to sections to be created, not existing sections. Verify that you
define the number of columns before you create a new LD section.
(The number of rows and columns can be changed during the creation of section contents.)
Creating a section
Creating a section:
Step Action
1 To create a section in a task, select the desired directory (Sections or Logic) or place the cursor
using the arrow keys on this directory.
2 Click the right mouse button or use Shift+F10 to select New Section in the context menu.
Or
The section name must be unique in the entire project and conform to the general naming
conventions.
NOTE: Two sections of different program units can have the same name.
5 Select the type of access protection if necessary from the Protection list box:
• None
No protection
500 33003101.26
Accessing Tasks, Program Units and Sections
Step Action
• Read-Only
Write protection
• No read & write
Read and write protection
See also section Project Protection, page 187.
6 Select the functional module to which the section is allocated from the Localization tab if
necessary.
7 Define a Boolean variable in the Condition tab with which the section can be activated/deactivated
(section active when variable=1) if required.
Assign a read RIO drop and a write RIO drop to the section in the Remote IO tab if required.
See also section Executing Quantum sections with distributed inputs/outputs (see EcoStruxure™
Control Expert, Program Languages and Structure, Reference Manual).
If you do not wish to create additional sections, confirm the entries with OK. In this case, the New
dialog box will close and the generated section will open automatically.
Step Action
1 Left-click on the desired section, or place the cursor on this section with the arrow keys.
2 Select (right-click or Shift+F10 key combination) the Properties... menu command from the
shortcut menu.
33003101.26 501
Accessing Tasks, Program Units and Sections
Importing/exporting sections
See:
• Importing programs, page 1692
• Exporting programs, page 1690
502 33003101.26
Accessing Tasks, Program Units and Sections
General tab
Representation of the General tab:
Element Description
The section name must be unique in the entire project and conform to the general
naming conventions.
Language Select the programming language of the section from this list box.
Note: The programming language can only be defined for new sections. The
programming language cannot be changed for existing sections.
Protection Select the type of access protection from this list box.
• None
No protection
• Read-Only
Write protection
• No read & write
Read and write protection
See also Program Unit, Section and Subroutine Protection, page 187.
OK Use this command button to accept the entries and close the properties dialog box.
Apply Use this command button to accept the entries without closing the properties dialog box.
33003101.26 503
Accessing Tasks, Program Units and Sections
Localization tab
Representation of the Localization tab:
Element Description
Functional module Select the functional module to which the section is to be allocated to in this list box.
OK Use this command button to accept the entries and close the properties dialog box.
Apply Use this command button to accept the entries without closing the properties dialog box.
504 33003101.26
Accessing Tasks, Program Units and Sections
Condition tab
Display of the Condition tab:
Element Description
Variable You can enter Boolean variables which can conditionally enable/disable the section in
this tab.