Sucosoft s40 User Interface h1305



Comments



Description

User Interface Sucosoft S40 Programming Software07/01 AWB2700-1305-GB 1st edition 12/97 2nd edition 06/98 3rd edition 06/98 4th edition 07/99 5th edition 05/00 6th edition 07/01 See list of revisions on inside rear cover © Moeller GmbH, Bonn Author: Arno Dielmann Editor: Thomas Kracht Translator: Terence Osborn All brand and product names are trademarks or registered trademarks of the owner concerned. All rights reserved, including those of the translation. No part of this manual may be reproduced in any form (printed, photocopy, microfilm or any otherprocess) or processed, duplicated or distributed by means of electronic systems without written permission of Moeller GmbH, Bonn. Subject to alterations without notice. Contents Introduction 1 NAVIGATOR Getting to know the NAVIGATOR – Introduction – The NAVIGATOR user interface – Incorporating other applications in the NAVIGATOR – Importing additional libraries – Changing dialog language – Font and colour setting – NAVIGATOR settings – POU Editor settings Project management – Introduction – Source file and device view – Options – Creating a new project – Opening existing projects – Deleting a project – Copying projects – Renaming projects – Saving projects – Restoring projects – Exporting/importing sources – Registering sources – Printer Setting – Printing – POU information Program code generation – Introduction – Selecting PLC type – Creating a new make file – Setting program parameters – Selecting make files – Generating program code – Aborting program code generation 7 9 9 9 9 13 16 17 17 18 18 19 19 19 22 23 27 28 29 31 31 33 36 39 39 40 41 42 42 43 44 46 61 62 64 1 07/01 AWB2700-1305-GB Contents – Creating a cross-reference file 64 – Program properties 65 Using libraries 67 – Introduction 67 – Library view 68 – Importing or deleting libraries 69 – Creating a library 71 – Using a library 71 – Activating and deactivating library modules 72 – Editing of library modules at a later time 72 – Saving libraries 73 – Restoring a library 73 – Information on libraries 74 – Library properties 75 Importing S30 programs 76 – Structure of the S30 program source 76 – Type of conversion 77 – Conversion procedure 78 – Program adaptions during conversion 79 – S30-S316: conversion restrictions 80 – S30-S3: conversion restrictions 84 – S30-S4: conversion restrictions 84 2 POU Editor Overview – Program type POU – Function block POU – Function type POU – Structure of a POU – Primary functions of the POU Editor: Declaration of variables – Starting the POU Editor User interface of the POU Editor – Declaration section – Instruction section – Menu bar – Standard toolbar – Language elements toolbar – Output window Variables declaration 85 85 86 86 86 87 88 88 89 90 91 92 98 99 100 102 2 07/01 AWB2700-1305-GB Contents – Scopes for variables 103 – Declaring variables 106 Programming in IL 121 – Overview 121 – Creating a POU in IL 121 Programming in ST 127 – Overview 127 – Creating a new POU in ST 128 Programming in LD 132 – Overview 132 – Creating a new POU in LD 135 – Editing POUs in LD 138 Programming in FBD 149 – Overview 149 – Creating a new POU in FBD 153 – Editing POUs in FBD 158 Changing programming language 175 – Conditional function block call 176 – Intermediate storage within an IL sequence 178 – Line-oriented comments 180 POU Info 182 Converting POU types 183 Opening/editing global types 185 Cross-reference file 186 3 Topology Configurator (Offline) Basic principles – Structure – Offline mode – Plausibility checks – Starting the Topology Configurator – Network types Operations – Toolbar functions – Changing a topology configuration Topology configuration with Suconet K – Topology configuration – Device configuration – Addressing the slaves 187 187 187 187 188 189 190 193 193 203 206 206 206 210 07/01 AWB2700-1305-GB 3 Contents – Master - slave operation with Remote control 211 – Special note with PS4-101-DD1 and PS4-111-DR1 213 – Special note with PS4-300 214 – Special note with PS416 217 Topology configuration with AS-Interface® 219 Topology configuration with PROFIBUS-DP 220 – Deviations between current and saved DP configuration 221 – Accessing the I/O of a PROFIBUS-DP slave 221 – Syntax check of access addresses for PROFIBUS-DP slaves 221 – Maximum number of modules per slave 222 – Behaviour of the DDK or KOM diagnostics bits 222 – Changing the DP configuration with CFG-DP 223 – Startup of a PROFIBUS-DP line of the PS416 modular PLC 223 Configuration examples 224 – Example with a local configuration (PS4-200) 224 – Example with PS4-300 228 – Example with PS416 244 – Example with AS-Interface®network (PS4-200 256 – Example with PROFIBUS-DP network (PS416-CPU-300) 262 – Complex configuration example (PS416-CPU-400) 268 – Example with multi-processing operation 271 4 07/01 AWB2700-1305-GB Contents 4 Form Editor Overview User interface – Toolbar – Menu bar Functions of the Form Editor – Designing a new print form – Editing an existing standard print form – Using a new print form for a project printout 5 Test & Commissioning Overview User interface – Menu bar – Toolbar Commissioning – Overview of programming connections – Point-to-point programming connection (directly to the PLC) – Multidrop programming connections – Programming connection via modem – Programming via Suconet K – Connecting and disconnecting a PLC – Wiring test – Transferring the operating system – Transferring the program – Starting programs System diagnostics – CPU status – CPU diagnostics – Program status – Network diagnostics Program test – Overview – Switching the POU Editor to online mode – Test POU – Modifying POUs online – Quitting the online POU Editor – Configuring the AS-Interface®network online 281 281 281 282 283 284 285 291 293 295 295 297 299 303 311 313 313 315 316 334 341 343 349 352 357 361 361 366 374 379 384 384 385 387 396 403 403 5 07/01 AWB2700-1305-GB Contents Appendix 417 Modem operation 417 – Modem requirements 417 – Frequently asked questions and problems relating to modems 417 – Overview of the most important Hayes compatible AT commands 420 – V.24 interface cable for modem operation 421 – Connecting the PLC with the PLC modem 422 – Configuration example using ke modems LOGEM 928 and LOGEM LGH 28.8D1 423 – Configuration example using the Westermo modem TD-32 424 – Initialise via remove configuration using a Logem 928 ke modem 426 Using several PS416-CPUs 427 – Configuring a PS416 system 427 – Assigning local inputs and outputs 428 – Addressing remote I/O via Suconet K 430 – Programming master and slave CPU 430 Glossary 431 Shortcuts 437 Index 439 6 07/01 AWB2700-1305-GB Introduction The two reference manuals Sucosoft S40 User Interface and Sucosoft S40 Language Elements are part of the Sucosoft S40 programming software. The Sucosoft S40 User Interface reference manual gives a complete description of the software package, its functions and how to use all Sucosoft tools. All the necessary steps up to the finished program are described. The reference manual Sucosoft S40, Language Elements contains definitions, Sucosoft language elements and programming features for all PLC types which can be programmed with Sucosoft S40. Sucosoft provides specific test and commissioning tools for every Sucosoft device type. These tools vary depending on application in either PS4 or PS416 controllers. The differences are indicated by means of headings or footnotes in the reference manual. “PS4-200” refers to PS4-201-MM1, PS4-271-MM1, PS4-151-MM1, and PS4-141-MM1 controllers. “PS4-300” stands for the PS4-341-MM1 controller. “PS416” includes all types of CPUs, i.e. CPU-200, CPU-300 and CPU-400. The user interface is a standard Windows interface. 07/01 AWB2700-1305-GB 7 8 07/01 AWB2700-1305-GB The NAVIGATOR user interface The NAVIGATOR user interface is bordered on the top by the title bar and by the status bar on the bottom. The menu bar appears under the title bar. The working area located between them is divided into three windows. It provides support for all necessary organisational tasks.1 NAVIGATOR Getting to know the NAVIGATOR Introduction The NAVIGATOR will assist you with all tasks involving the organisation of Sucosoft S40 software and the generation of projects. consistently manages project-related information and enables you to create executable. and the status bar includes the name of the project folder. followed by the toolbar. The title bar displays the project name. This supports standardisation and thereby shortens the time required for program development. The NAVIGATOR furthermore allows you the ability to import function blocks and functions in the form of PLC-specific libraries. and then the Sucosoft toolbar. PLC-specific program code. 07/01 AWB2700-1305-GB 9 . The division of these windows is fixed. Only the horizontal and vertical size of the windows can be altered by dragging the window margins with the mouse. Devices. for example. be output during program code generation. displaying the respective folders. The bottom of this window is made up of the four file card tabs: Sources. Underneath these windows is the Output window in which status and error messages are shown that may. Libraries and Options. The right-hand window shows the view of the file structure.NAVIGATOR Figure 1: The NAVIGATOR User Interface The upper left window (browser window) contains the “tree structure window”. 07/01 AWB2700-1305-GB 10 . “File” for editing objects selected in the browser and file window. Window and Help menus: “Project” for editing new or existing S40 projects. Figure 2: Toolbar buttons for project management Figure 3: Functions in the program code generation toolbar 07/01 AWB2700-1305-GB 11 . “Tools” for implementing Sucosoft Tools or integrated Windows applications.Getting to know the NAVIGATOR Menu bar The following menus are provided in addition to the standard Edit. for incorporating Windows applications and for setting up the NAVIGATOR environment to your particular requirements. and “Options” for importing and deleting additional libraries. View. the toolbars also provide list functions for selecting make files and PLC types. “Generate” for creating executable program codes. Toolbar As well as function buttons for project management and program code generation tasks. Here you can create the source files of your programs. and the result of this generation. To these toolbars can also be added buttons for starting Windows applications. Figure 4: Toolbar buttons Sucosoft S40 tools include: POU Editor. Test & Commissioning. Here you can define the hardware configuration and set the device parameters. With this tool you can transfer your program to the PLC for testing. Form Editor. 12 . the left section of the status bar displays the function of an activated button. see section “Incorporating other applications in the NAVIGATOR” on Page 13.NAVIGATOR Sucosoft toolbar The Sucosoft toolbar initially contains the four Sucosoft project tools that are also available in the Tools menu. This tool enables you to view and edit standard forms for printing files. 07/01 AWB2700-1305-GB The section in between shows the line. Topology Configurator. The right section of the status bar displays the path to the directory in which the opened project is located. Status bar As in other Sucosoft S40 tools. the progress display when creating a make file or when generating program code. in which the cursor is located in the output window. The content of the context menu depends on where the mouse was activated and the selected object. Incorporating other applications in the NAVIGATOR To start frequently-used Windows applications easily you can integrate the appropriate tool button into the NAVIGATOR Sucosoft toolbar.Getting to know the NAVIGATOR Context menus The context menus contain the most important commands for a selected object. 13 . 07/01 AWB2700-1305-GB Figure 6: Add/Delete Tools dialog. The Add/Delete Tools dialog will open.. Click Options © Add Tools. Figure 5: Sucosoft toolbar (before) Requirement: This is a windows application. They are opened by right clicking the selected object or window.. Alternatively you can click the “. in addition to the entry in the Menu Text field.. Select the desired application and accept it by clicking Open. the new application is added to the list of tools in the Add/Remove Tools window and the new icon will be inserted in the Sucosoft toolbar. 14 07/01 AWB2700-1305-GB .NAVIGATOR In the Command Line field enter the name of the executable program together with its directory and path data.. The selected application will be transferred into the Menu Text and Command Line fields of the Add/ Remove Tools window. You can then specify call arguments for the application concerned.” button next to the command line to search for the required application. After clicking Add. This will activate the Open dialog. Getting to know the NAVIGATOR Figure 7: New application The Up and Down buttons can be used to change the order of the tools in the toolbar. 07/01 AWB2700-1305-GB 15 . Figure 8: Sucosoft toolbar (after) You can also use Options © Tools. to remove applications from the NAVIGATOR's Sucosoft toolbar... Importing libraries This allows you to transfer additional libraries previously created with the help of the Library Manager. Information on the use of libraries is available in the section “Using libraries” on Page 67. Further information on creating these libraries is available in the online documentation “Library Manager” (AWB-C 2700-1366 GB).NAVIGATOR Importing additional libraries The Import Library option is available via Options © Library © Import or via the Import Library button. and they can be considered to be error-free without the need for further testing. Such libraries vary according to the type of PLC and are accessible for all projects. Compared to using the source text of function blocks and functions. 16 07/01 AWB2700-1305-GB . the use of function blocks and functions in library format has the advantage that the time required for compiling them is no longer necessary. You can choose among the installed languages: Select the required dialog language via Options © Dialog Language.Getting to know the NAVIGATOR Changing dialog language Sucosoft S40 is available in German.. During installation you indicated which of these languages you wished to install and which language you wished to use. English. 07/01 AWB2700-1305-GB 17 . Font and colour setting You can make font settings in the NAVIGATOR output window and in the POU Editor using the fields provided under the Font tab in Options © Settings. you can also set the colour of different outputs in the NAVIGATOR and syntax elements in the Editor.. Bold and Bold Italic are not supported in the Editor.. Sucosoft S40 will convert to the selected language and will automatically restart. French. Spanish and Italian. These settings can then be saved as a particular Scheme. The font styles Italic. As well as defining the font. .. POU Editor settings You can define the behaviour of the Editor when creating source files via the Editor tab in Options © Settings.NAVIGATOR NAVIGATOR settings You can define the behaviour of the NAVIGATOR when printing projects via the Print tab in Options © Settings. Other settings for the behaviour of the NAVIGATOR are available in the Others tab in Options © Settings.... 18 07/01 AWB2700-1305-GB ..... see section “Exporting/importing sources” on Page 36 and “Registering sources” on Page 39. Source files that are copied with a different tool to the Project Manager or created with different editors can be imported and registered in a project at a later time. Source file and device view The content of the Tree Structure and File Structure windows depends on whether you have activated the source or device display. 07/01 AWB2700-1305-GB 19 . the file card tabs Sources or Devices. Double-click on one of these files to open the Sucosoft S40 Tool that they are associated with.e. This is used to organise all the necessary folders when you create a new project. The Project Manager cannot be replaced by other file management programs such as File Manager or Explorer. i. tab will cause the tree structure window to show the Sources tree structure. Clicking the Sources. At the same time the source files (POUs) and topology files belonging to the project will be shown in the file structure window.Project management Project management Introduction The NAVIGATOR contains the Sucosoft S40 Project Manager. File © Rename. make sure that the correct type of PLC is selected. and Edit © Delete can be used for creating. This is displayed and selected in a selection window in the NAVIGATOR toolbar. Before you start to create your project files.NAVIGATOR Figure 9: The NAVIGATOR user interface with source file tree The context menu (right mouse button) or File © New. 20 07/01 AWB2700-1305-GB Figure 10: Selection window for PLC type . This selection also affects the POU Editor since the data types as well as manufacturer-defined function blocks and functions offered there depend on the controller selected. renaming or deleting subfolders in the source file tree structure. Project management After the Devices file card tab has been clicked. 07/01 AWB2700-1305-GB 21 . “PS4-300” and “PS4-200” PLC types as subfolders (see section “Selecting PLC type” on Page 43). the make files and executable user programs available for this PLC type will be displayed in the file structure window. If you select one of the three subfolders or have selected the corresponding PLC type in the toolbar selection window. Double-clicking a program code file (executable user program) will open the Sucosoft S40 Test & Commissioning tool. Figure 11: The NAVIGATOR user interface with the device tree structure You will not be able to create any further subfolders. the tree structure window will show the three currently supported groups of “PS416”. the Options folder will be included if this has been set on the Others tab via Options © Settings.. Other subfolders can also be created in the Options folder.NAVIGATOR Options Clicking the Options file card tab will cause the tree structure window to display the Options folder. in which you can store any documents that you wish to store in your project. To do this use Windows Explorer to drag the file concerned into the file structure window of the Navigator or add it to the Navigator via Edit © Paste.. When saving or restoring a project.. 22 07/01 AWB2700-1305-GB . The document can now be opened in the appropriate application by doubleclicking from the file structure window or via the context menu. New Project button This opens the Create New Project dialog: Figure 12: Create new project dialog First select one of the drives suggested. Confirm the entry with the OK button.. 23 .. or click the corresponding button to create a new project.Project management Creating a new project Choose Project © New. 07/01 AWB2700-1305-GB If you wish to create your project in a subfolder not yet created: Click the New Folder button and enter the name of the new folder in the New Folder dialog. Clicking the respective Sources or Devices tab will display in the folder window the files produced during the project in the Source folder (topology files and POUs) or in the Devices folder (make files and loadable application programs). Finally. enter the name of the folder for the new project into the New Project Folder entry field. The name of the open project will be displayed in the title bar.NAVIGATOR The OK button will be made available if the project name entered does not already exist as a folder. Sucosoft S40 will set up a project structure with the folders Devices and Source. 24 07/01 AWB2700-1305-GB . and the project directory. Confirm the entry with the OK button. with path data if applicable. will be displayed in the status bar. does not contain any impermissible special characters and is not more than 32 characters long. All the files you save are automatically registered by the Navigator under the current project. All topology and POU (program. The Topology Configurator or POU Editor icon in front of the file name allows you to arrange and locate the file types quickly. Other columns show you the size of the file. type and modification date by clicking the appropriate column header. these will be offered as destination folders in addition to Source when you save a POU in the POU Editor. You can sort the files according to name. and registration status. If you have created Source subfolders.Project management Source This folder stores all the project files that you create in the POU Editor or in the Topology Configurator. and function block) files are therefore displayed in the file structure window on the right. function. How to view POU related information is described in section “POU information” on Page 41. You can find additional information on the type of POU in the Type column. 07/01 AWB2700-1305-GB 25 . when it was last modified. Starting with a double-click in the file structure you can navigate between project-related files and Sucosoft S40 Tools. After selecting the appropriate folder for the PLC type required. The structure and content of the tree structure window are preset and cannot be modified. delete or view the properties of program POUs or program code files. you can start a print or delete task in this window for each individuallyselected make file via the context menu. all files logically connected to the make file will be displayed in the file structure window on the right. Sucosoft S40 creates a subfolder for the folder of the corresponding PLC type. Further information on this is provided in the section “Program properties” on page Page 65.NAVIGATOR Devices All controller-specific files related to the project are stored in this folder. 26 07/01 AWB2700-1305-GB . PS4-300 and PS4-200 are sub-filed in the Devices tree structure window on the left. In addition. When you generate a program code file. If you select this additional subfolder. PS416 for example. Device folders PS416. you will see the make file created and the program code files in the file structure window. for example. identified by the name of the make file belonging to it. In this subfolder you can use the context menu to print. starting Test & Commissioning. or with the corresponding button. 27 . Open Project button The Open Existing Project dialog window will open: Figure 13: Open Existing Project dialog 07/01 AWB2700-1305-GB Select the desired project name and then click the Open button.Project management Opening existing projects You can open an existing project by means of the menu item Project © Open... i. or after a confirmation. button. Confirm the selection with the OK button. depending on the setting in Options © Options © Deletion © Confirm. Now select the desired project folder in the Open Existing Project window.NAVIGATOR If the desired project is not listed in the tree structure of the dialog window: Click the Browse. Confirm this task only when you are certain that the project does not contain any files that you still need! 28 07/01 AWB2700-1305-GB .. The converted project will then no longer be capable of being edited with the older Sucosoft S40 version. Deleting a project Requirement: The project must be open. it must be a Sucosoft S40 project folder. The OK button is only made available if the selected project folder can be processed by the NAVIGATOR. The open project will be deleted directly. This latter option is the default setting.e. Older S40 projects will be automatically converted to the current version and all relevant data will be transferred. Choose Project © Delete.. Project management Copying projects Requirement: The project must be open.. Copying a project is carried out by choosing Project © Copy. or with the corresponding button.. Copy button The Copy Current Project To dialog window will open: Figure 14: Copy Project dialog 07/01 AWB2700-1305-GB 29 . If you are just now going to create the folder for the project to be copied: Click on the New Folder button in the Copy Current Project To dialog window. and select the existing destination folder for the new project in the tree structure view of the Copy Current Project To dialog window. Upon completion of copying.NAVIGATOR Change the drive. if necessary. be saved. Confirm the entry with the OK button. you will receive the corresponding report in the status bar. Enter the project name in the New Project Name entry field and confirm with the OK button. Information on how to save a project is provided in section “Saving projects” on Page 31. however. Projects can. then enter the new folder name in the new folder dialog window. Finally. 30 07/01 AWB2700-1305-GB . enter the project name in the New Project Name entry field and confirm with the OK button. Copying projects to standard disk drives is not possible. Save Project button 07/01 AWB2700-1305-GB 31 ... read the section “Saving libraries” on Page 73. Choose Project © Rename. If the project to be saved contains imported libraries. The new project name appears in the title bar. The Rename Project dialog window will open: Figure 15: Rename project dialog Enter the new project name into the entry field and then click the OK button. or by clicking the corresponding button...Project management Renaming projects Requirement: The project must be open. Saving projects You can save a project in compressed form via the menu item Project © Save... NAVIGATOR The Save Current Project To dialog window will open. Figure 16: Save Project dialog Choose the drive and select the existing destination folder for the saved project in the tree structure of the Save Current Project To dialog window. Confirm with the OK button. 07/01 AWB2700-1305-GB 32 . Enter a cross in the Only Sources check box to reduce the space requirements. You can reduce the space needed in the saving medium by saving only project files from the Sources folder. Project management You can observe the progress of saving in the status bar. The entire project is saved in ZIP format in the destination folder under the project name with the extension ZIP. please take note of the section “Restoring a library” on Page 73.. or by clicking the corresponding button. then enter the new folder name in the New Folder dialog window. Restore Project button Upon initiating this action.. 07/01 AWB2700-1305-GB 33 . If the project you are restoring contains libraries. If you are just now going to create the folder for the material to be saved: Click the New Folder button in the Save Current Project To dialog window. Confirm the entry with the OK button. Restoring projects You can restore a saved project to a destination drive by choosing Project © Restore. Save the project as described above. any other open project will be closed.. Figure 17: Restore Project From dialog Select the drive. and. 07/01 AWB2700-1305-GB 34 .0. if necessary. Confirm the task with the Accept button.0. for projects archived with Sucosoft S40 version 5. the folder(s) of the archived project and the project itself with the extension PCK for archived projects carried out with a Sucosoft S40 version older than 5.NAVIGATOR The Restore Project From dialog window will open. or with the extension ZIP. Specify a destination drive and the destination folder.Project management The Restore Project To dialog window will open. then enter the new folder name in the New Folder dialog window. Confirm the entry with the OK button. Confirm the task with the OK button. If you are just now going to create the folder for the project to be saved: Click the New Folder button in the Restore Project To dialog window. Sucosoft S40 will organise a project structure with the folders Devices and Source in the destination project and will enter the project files belonging to it. The Devices folder will not be written if the Only Sources check box was crossed when saving. with path data if applicable. will be displayed in the status bar. The restored project name will be displayed in the title bar and the project directory. 07/01 AWB2700-1305-GB 35 . Specify the destination drive and the destination folder as described above. 11: This is the POU format for projects that were processed with Sucosoft version 3.xx Format: This is the format of POUs for projects that were written with Sucosoft version 4. © Export POU Sources. This format therefore enables you to process the 36 07/01 AWB2700-1305-GB . Now select the destination folder to which you wish to export the file(s). or select Export/Import. This format therefore enables you to process the exported files in this type of project. S40 V4... this is converted to a comment. The POU file name is therefore shortened to 8 characters.x or higher..NAVIGATOR Exporting/importing sources Export This function can be used to copy POU files from the current project to any location outside of the project. This function can be used on one or several selected POUs...11 or an older version. © Export POU Sources. To do this first select the POUs to be exported and then choose Project © Export/Import.00 to V3. If the source file to be exported contains POU information. The POU information is retained. The POU file name is therefore shortened to 8 characters. in the context menu for the selected file(s). S40 Format V1..0 or higher.. The Export POU dialog window will open.. You can also specify the format of the file(s) to be exported: S40 Format: This is the format of POUs for projects that were written with Sucosoft version 5. however. This simple format allows you to process the exported file in other IEC/EN 61131-3 programming systems (see following paragraph “Importing IEC/EN 61131-3 sources”). © Import IEC/EN 61131-3 Sources.. in the context menu of a directory in the source file structure.. it can be set for all file types as required. or Export/ Import. Either IEC/EN 61131-3 sources or S30 sources can be imported.. Importing IEC/EN 61131-3 sources To do this choose Project © Export/Import. 37 . This function can be used on one or several selected POUs.Project management exported files in an older project if you use programming elements that were not yet supported by this older Sucosoft version. However... All POUs are copied to the current project and registered there.. Special entries for processing the file(s) in Sucosoft projects are no longer contained.. If the POU to be exported contains POU information. This will open the IEC/EN 61131-3 Sources dialog box. The file display of this dialog is preset for POU file types. this is converted to comments in text format. © Import IEC/EN 61131-3 Sources.. 07/01 AWB2700-1305-GB Now select the file(s) you wish to import. Text File: This a simple text file. Import This function can be used to copy POU files from any location outside of the project to the current project. . Further information on importing S30 sources is provided in the section “Importing S30 programs” on Page 76. they must have a declaration section and instruction section in ASCII format.NAVIGATOR The import function is possible for all IEC/EN 61 1313 source files. or Export/Import. The only requirement for a successful import is that the file name corresponds to the name of the program. This will open the dialog box with the caption Please Select An S30 Program File. Importing S30 sources To do this choose Project © Export/Import.. 38 07/01 AWB2700-1305-GB . © Import S30 Sources. © Import IEC/EN S30 Sources. the imported file has the extension POE and is stored in the source file structure for which you have called the function.. i..e.. After the import has been successfully completed. Now select the S30 file(s) you wish to import. This dialog will only display Sucosoft S30 file types. The Sucosoft S40 version of the source file or whether it was written with a different editor is not important.. in the context menu of a directory in the source file structure. function or function block inside the file... 07/01 AWB2700-1305-GB 39 .. You can select your printer. Requirement: A project must be open and the copied files must be displayed in the Source branch. The Print Setup dialog window offering you various printer setting options will open. it must be registered. POUs not yet registered are indicated by a missing checkmark in the Registered column of the file view window..Project management Registering sources In order to edit a POU copied to the project with a different tool such as Explorer. specify a standard printer.. The new status will be indicated by a checkmark in the Registered column. Printer Setting Choose Project © Print Setup. Choose Project © Register Sources. set the paper and print format (portrait or landscape) and select the form and cover sheet which you wish to use for the printout. You can use the Form Editor to create other forms which can be used in this dialog in addition to the standard forms. the data of the make file. The first page printed shows an overview of the project directory with information on the CPU type. via the context menu.. 40 07/01 AWB2700-1305-GB .NAVIGATOR Printing Unlike the print function of the individual S40 tools.. global data types. . The program parameters. or by clicking the button. including path and type. You can then print by means of the menu item File © Print. Printing all files To print all the files belonging to a user program. the topology for the make file. the NAVIGATOR print function allows you to print files individually or all together. the instance tree and the functions and function blocks of the program can only be printed if the appropriate output was activated on the Print file card via Options © Settings. The printout in this case uses the currently set cover and form sheet. the device configuration. compiler flags. After the overview the following is printed out: the Global Data Types. and program parameters as well as the main program and all POUs used. the POUs and instance tree. click the Devices tab and select the make file in the file structure window belonging to the program concerned. . Name. Date. Print as described above. Comment and the prototype if required.Project management Printing individual files To print the individual files of an application program click the Sources tab.. 07/01 AWB2700-1305-GB 41 . This information is also available for POUs in libraries if there is no library Help available for the POU concerned (see “Using Library Help” on Page 69). function block. or function) to be printed. Author.. POU information In the file structure window of the Sources file card you can display information on selected POU source files via the direct Help of the context menu (rightclick). Version. and in the file structure window select the topology file or POU (program. This information is created beforehand in the POU Editor via File © POU Info. For each POU a dialog is opened with fields for Project. Printing contents of the Output window All Output window contents can be printed via Project © Print Output. PLC Type(s). by incorporating or removing function blocks or functions. Generation of program code is carried out on the basis of the make file and therefore depends on the elements included in the file. another PLC type) or vice versa. the topology file and the program code parameters. does the make file have to be created again.NAVIGATOR Program code generation Introduction A wide range of commands are provided for creating executable. the function block registered at the time of the generation will be selected. These commands will be described below in sections. the program POUs (including the instantiated function blocks and functions they contain). The files will automatically have the name of these program POUs. Make sure that all POUs in a project have different names. program parameters. Generation of program code is carried out in two phases: the creation of a make file in which the elements (files) are specified that must be included in the program code generation process. If there are function blocks of the same name in different subfolders of the current folder. These commands can be directly carried out via the Generate menu item or by means of the toolbar buttons (see Figure 3). Sucosoft S40 will then automatically update the file as soon as you modify the program POU. for example.g. i. or the topology. You create the file once for each program POU in your project.e. Only if the program POU is linked with a completely different topology configuration (e. All unregistered sources will be ignored during generation. PLC-specific program code. 42 07/01 AWB2700-1305-GB . You should already have selected the PLC type appropriate to the topology files before preparing to generate program code. They will automatically receive the name of the respective program POU.Program code generation In a project with several program POUs (main programs) several make files can be generated and stored. The following controllers are currently grouped under the three selectable PLC types: 07/01 AWB2700-1305-GB 43 . Selecting PLC type The data types and manufacturer-defined function blocks and functions available to you in the POU Editor depend on the PLC type selected. NAVIGATOR PS4-200: PS4-141-MM1. PS416-CPU-400 Select the desired PLC type in the selection window in the toolbar. PS4-271-MM1 PS4-300: PS4-341-MM1 PS416: PS416-CPU-200. Creating a new make file Requirement: The required PLC type must have already been selected. PS4-151-MM1. you will receive a corresponding error report when you attempt to generate a make file. If the PLC type does not correspond to the one specified in the topology file and to the one selected for the make file. Choose Generate © New Make File... PS4-201-MM1.. or the corresponding button. New Make File button The New Make File dialog window will open. PS416-CPU-300. 07/01 AWB2700-1305-GB 44 . Confirm with the OK button. 07/01 AWB2700-1305-GB 45 . The selected files and default program parameters are entered in the make file.Program code generation Figure 18: New Make File dialog Select the program POU you wish to generate as an executable control program from the program POUs list box.e. all changes to the project are automatically entered in the make file. i. will be created. All other changes to program parameters. the required function blocks and functions required for generating the program code are not saved in the make file but are determined anew for each access. from which the executable program can be generated. The make file. Select the topology file from the Topology Configurations list box which is appropriate for your controller configuration and for the program POU you previously created with the Topology Configurator. Unlike older Sucosoft versions. A report will appear in the status bar when the list is created. .. This is carried out via the menu item Generate ©Program Parameters. Program Parameters button Changing program parameters for the PS4-200 Requirement: PS4-200 must have been selected as PLC type.. or the corresponding button. password.. Initiate the setting of parameters via Generate © Program Parameters.NAVIGATOR Setting program parameters Selection of controller-specific program parameters You can set program parameters such as compiler options for the currently selected PLC type or relevant parameters for program performance such as maximum cycle time. The PS4-200 Program Parameters dialog will open for the current make file: 46 07/01 AWB2700-1305-GB .. and marker range. Make sure.This can occur at any place in the program. i. composed of a maximum of four letters and numbers. can be assigned in this field. If you wish to change a saved password. Password: The password is used for protecting the PLC from unauthorised access. Startup behaviour after Not Ready: If the running user program is interrupted by a Stop error. an error message will appear and the connection will not be established. such as maximum cycle time exceeded. the PLC will switch to Not Ready. : A version code for the program to be generated. The password is requested every time a connection is established (Connect) if the PLC concerned contains a password-protected program.e. all functions are freely available until the connection (Disconnection) is closed. If there is no response to a requested password or in the case of an incorrect entry. This facilitates identifying various program versions when troubleshooting. that no dangerous circumstances can arise! The startup 07/01 AWB2700-1305-GB 47 . When the correct password is entered once. enter the new password and confirm with OK. that any possibly inconsistent variable or marker values in Warm Start Behaviour are avoided. therefore. The version number will be displayed in the Program Status dialog box of the Test & Commissioning tool under Program Version. It can consist of a maximum of 8 characters (letters and numbers).Program code generation Runtime settings Complete the Runtime Parameters panel or click the Default button to choose the preset default values. The default setting is 60 ms. 48 07/01 AWB2700-1305-GB . Warm Start:Selects a PLC warm start. Cold Start:Selects a PLC cold start.NAVIGATOR behaviour after Not Ready described is only effective and appropriate with the switch in the RUN position. Maximum Cycle Time: This entry field is used to enter the maximum cycle time for the program in the range from 1 ms to 255 ms. the controller will switch to Halt. If the program exceeds the maximum set cycle time while running. it should only be set to a lower value when you know precisely the typical program cycle time and wish to achieve such precise fault control. Stop: After a program error there is no restart. Warm start or cold start may only be selected when the process to be controlled can also be restarted after an undefined interruption with the Not Ready status without danger to man or machine. This range is subdivided into normal markers and warm and cold start retentive markers. The maximum number of these markers is 16 KByte (0 -16383). The standard setting is no active marker range. 07/01 AWB2700-1305-GB 49 .Program code generation Markers This is where you define the marker range which is declared with directly represented variables with the identifier AT%M. Assign the marker ranges for the PLC working memory under the Markers tab: Active Marker Range: This defines the PLC marker range which can be addressed as directly represented variables with the identifier %M. The use of the keyword RETAIN in the declaration of retentive markers for the PS4-200 only has a documentation function. The actual retentive setting is made in the marker range.NAVIGATOR Retentive Range: This specifies the range of the warm start retentive markers. Recipe Range: This specifies the range of the cold start retentive markers. The recipe range is a subset of the active marker range and must not overlap the retentive range. 50 07/01 AWB2700-1305-GB . The retentive range is a subset of the active marker range and must not overlap the recipe range. Warm start retentive markers retain their last value before PLC shutdown and continue to operate with these values after a warm start. Retentive and recipe marker ranges must both be set within the defined limits of the active marker field and may not overlap each other. Cold start retentive markers retain their last value before PLC shutdown and also through a cold start. The settings become active only after compiling and transfer. Start the parameter setting via Generate © Program Parameters.. 07/01 AWB2700-1305-GB 51 . The PS4-300 Program Parameters dialog will open for the current make file: Runtime settings Complete the Runtime Parameters panel or click the Default button to choose the preset default values..Program code generation Changing program parameters for PS4-300 Requirement: PS4-300 must have been selected as PLC type.. i.1000 ms)... Click on the Cyclical tab to enter the parameters for cyclical program execution.NAVIGATOR Cyclical: The program is immediately restarted each time program execution is completed.e. the time within which a program execution must be completed (permissible value range 1. Enter the maximum program runtime. 52 07/01 AWB2700-1305-GB . 53 . 07/01 AWB2700-1305-GB You must specify: The required time interval (time between the individual program invocations). The value you specify must not exceed the specified time interval and must be less than or equal to 1000 milliseconds. In addition.Days in the value range 1 to 40. program execution must be completed before the specified maximum program runtime. The value for the maximum program runtime.Seconds in the value range 1 to 3600 . The entry can be made in: . Click on the Periodic tab to enter the parameters for periodic program execution.Hours in the value range 1 to 960 .Minutes in the value range 1 to 1440 .Milliseconds in the value range 1 to 60000 .Program code generation Periodic: The program is restarted when the specified time interval has elapsed. For this the operating mode switch must be set to RUN. can be assigned in this field. This facilitates identifying various program versions when troubleshooting. The operating mode switch can be set to RUN or RUN-M-RESET for the cold start option. composed of a maximum of ten letters and numbers. The data declared with the keyword RETAIN is reused. Cold Start: This starts the user program with the initialisation values of the variables. The version number is displayed in the Program Status dialog box of the Test & Commissioning tool under Program Version. Attempting a warm start will cause the PLC to switch to NOT-READY and will increment the diagnostics counter for the ENR diagnostics bit. execution will be resumed at the position where it was interrupted. No Restart: If this has been selected with the setting Warm Start as startup behaviour. the user program will not be automatically restarted when the power supply is restored. 54 07/01 AWB2700-1305-GB . A version code for the program to be generated.NAVIGATOR Warm Start: If the user program is restarted. Assign the marker ranges for the PLC working memory under the Markers tab: Active Marker Range: This defines the PLC marker range which can be addressed as directly represented variables with the identifier %M. The standard setting is no active marker range. 07/01 AWB2700-1305-GB 55 . This range is subdivided into normal markers and warm and cold start retentive markers. These markers are declared as directly represented variables with the identifier AT %M. Retentive Range: This specifies the range of the warm start retentive markers. The maximum number of these markers is 15000 Byte (0 to 14999 Byte).Program code generation Markers This is where you define the marker range which is declared with directly represented variables with the identifier AT%M. This means that they must be initialised before they are first used in the user program. These markers are declared as directly represented variables with the identifier AT%M. 56 07/01 AWB2700-1305-GB . Only the recipe range must be defined via the Program Parameters. The retentive marker range and the recipe marker range must both lie within the defined limits of the active marker range and must not overlap each other. With the PS4-300 recipe data is also retained after the operating system is transferred. The retentive range is a subset of the active marker range and must not overlap the recipe range. The settings become active only after compiling and transfer.NAVIGATOR Warm start retentive markers retain their last value before PLC shutdown and continue to operate with these values after a warm start. The recipe range is a subset of the active marker range and must not overlap the retentive range. Recipe values are retained with each cold start. Cold start retentive markers retain their last value before PLC shutdown and also through a cold start. Recipe Range: This specifies the range of the cold start retentive markers. Retentive markers for the PS4-300 can also be declared with the keyword RETAIN if required. Initiate the setting of parameters with Generate © Program Parameters.› . 07/01 AWB2700-1305-GB You can define the protected recipe range of the PS416 controller whilst a program is running via the ColdstartRetention function block (see AWB2700-1306-GB). The PS416 Program Parameters dialog will open for the current make file: Make entries in the dialog box as required or click the Default button to enter the standard values. dialog on the Markers tab..... 57 . The recipe range (cold start retentive markers) of PS4-200/-300 controllers is defined in the Program Parameters...Program code generation Changing program parameters for the PS416 Requirement: PS416 must have been selected as PLC type.. In addition. i. 58 . Click on the Cyclical tab to enter the parameters for cyclical program execution. Periodic: The program is restarted when the specified time interval has elapsed. the time within which a program execution must be completed (permissible value range 1 . program execution must be completed before the specified maximum program runtime.e.NAVIGATOR Runtime settings Cyclical: The program is immediately restarted each time program execution is completed.. 1000 ms). 07/01 AWB2700-1305-GB Click on the Periodic tab to enter the parameters for periodic program execution. Enter the maximum cycle time.. Hours in the value range 1 to 960 . The entry can be made in: .Seconds in the value range 1 to 3600 . The time value must not exceed the value for the set time interval and must be less than or equal to 1000 milliseconds.Days in the value range 1 to 40. 07/01 AWB2700-1305-GB 59 . The value for the maximum program runtime.Program code generation You must specify: The required time interval (time between the individual program invocations).Minutes in the value range 1 to 1440 .Milliseconds in the value range 1 to 60000 . The recipe data of the PS416 is reset after the operating system is transferred (see AWB2700-1306-GB: PS416 function block. The version number will be displayed in the Program Status dialog box of the Test and Commissioning tool under Program Version. The data rescued at the time of the program interruption will be reused. Cold Start: This starts the user program with the initialisation values of the variables. The operating mode switch can be set to RUN or RUN-M-RESET for the cold start option. can be assigned in this field. composed of a maximum of ten letters and numbers. This facilitates the identification of various program versions when troubleshooting. ColdstartRetention). 60 07/01 AWB2700-1305-GB . Recipe values are retained with each cold start. A version code for the program to be generated. For this the operating mode switch must be set to RUN.NAVIGATOR Warm Start: If the user program is restarted. This means that they must be initialised before the first use. execution will be resumed at the position where it was interrupted. Program code generation Selecting make files Since you are able to create numerous make files in a project you are offered the option of choosing one for generating the desired user program. Figure 20: Created make files with file attributes 07/01 AWB2700-1305-GB When you open the folder of a PLC type in the tree structure window and select one of the make files displayed. This is done via the list box in the toolbar. Figure 19: Make file list box You can see an overview of make files created with all file attributes in the file structure window by clicking the Devices tab and selecting the corresponding PLC type. 61 . the file structure window will show all the POUs assigned to this make file as well as the assigned topology (see following figure). Figure 22: Generating via the context menu 62 07/01 AWB2700-1305-GB . or click the corresponding button: Generate Code button The executable program will be generated according to the currently selected make file. you can also generate the program code via the context menu. Choose Generate © Generate Program Code.NAVIGATOR Figure 21: POUs and topologies for the selected make file Generating program code Requirement: You must have selected a make file for the desired PLC type. If you select the folder of a PLC type in the tree structure window. Program code errors If an error should occur when generating program code. The progress of the generation can be viewed in the Output window. Figure 23: Output window after program code generation with error reports Clicking one of the output lines during this operation. Current compiler outputs can be printed via Project © Print Output. Error reports can be printed via Project © Print Output 07/01 AWB2700-1305-GB 63 .Program code generation The executable programs are generated according to all the make files assigned to the selected PLC type. will freeze the list at this position. An appropriate report will appear after successful execution. In this way. the window no longer scrolls through the other output lines. it will be issued in the Output window with the appropriate report. Double-clicking on an error line or firstly selecting it with a mouse-click and then pressing the Enter key will automatically open the POU Editor. 64 07/01 AWB2700-1305-GB . Click the Stop button.NAVIGATOR Troubleshooting After code generation has been completed. The cursor will then be positioned in the line/column position in the specific POU in which the error was found. This then also appears in the file structure window with the same name as the make file for which it was created. You can now create a cross-reference file via the context menu or via File © Cross-Reference File. Clicking an error line and then pressing the F1 key opens a Help window explaining the error that has occurred. Stop button Creating a cross-reference file Requirement:A make file has been created and has been selected in the file structure window after clicking the Devices tab. Aborting program code generation You can abort the current generation process before completion via Generate © Abort Generation or by clicking the Stop button. Each additional press of the F4 key moves the cursor to the next reported error. if you have associated this file type with Excel via Explorer. This is created as an Excel table and can be loaded into the Excel Editor via the Open function of the context menu. the F4 key can be used to reach the first reported error in the Output window. date and time of program code generation. a list of local function blocks used in this source a list of the global function blocks used in this source. this information is displayed as the instance tree (the hierarchical display of all instances used in the program with the function block name in square brackets) as well as general properties information with the name of the program. the PLC series for which the source was written. the topology configuration assigned to the program. With Source files this information consists of the POU type (program. If you have selected a make file in the tree structure window of the Devices tab. function. 65 07/01 AWB2700-1305-GB . date and time of the last modification to this source. the total code size of the program in bytes.Program code generation Program properties Requirement: The program code generation has been completed successfully via a make file. the number of bytes that this source takes up in the data size of the program code file. you can use the Properties function in the context menu of a source or program file selected in the file structure window to display file related information in a dialog. function block). the number of bytes that this source takes up in the code size of the program code file. With program code files. the total number of POU sources used in this program. the total data size of the program in bytes. NAVIGATOR the number of function blocks used in this program. the PLC type for which the program was created (corresponding to the PLC type set in the topology configuration). the list of these user libraries. the number of functions used in this program. the number of user libraries used in this program. the number of function block instances used in this program. 66 07/01 AWB2700-1305-GB . Figure 24: View of a manufacturer-defined library In addition to manufacturer-defined libraries you can import other libraries. After you have entered a library into your project. which is available as an S40 add-on module. There may also be other libraries available from Moeller or other suppliers. its function blocks and functions (user modules) are available for use in your project in the same way as manufacturer or user-defined blocks.Using libraries Using libraries Introduction Sucosoft S40 is provided with ready-made and tested function blocks and functions in the form of manufacturer-defined libraries for each of the three PLC types. 07/01 AWB2700-1305-GB 67 . These can be libraries you have created yourself with the S40 Library Manager. Library view After clicking the Libraries tab. if imported. PS4-300 and PS4-200 device folders as subfolders and their corresponding library groups (see Figure 24 ). No further subfolders can be created. The Library view offers a brief overview of which modules.e. The Help function also provides information on the individual modules (see section “Using Library Help” on Page 69). the PLC-specific functions and function blocks belonging to that library will be displayed in the file window. i. which manufacturer-defined and userdefined function blocks and functions are available for effective programming. By clicking the appropriate folder. the tree structure window will display the Library file tree with the PS416. a folder with user-defined libraries will be displayed. 68 07/01 AWB2700-1305-GB . When you select a subfolder. a folder with manufacturer-defined libraries and. If a library POU does not have a Help text.Using libraries Using Library Help Library Help. Now call up Help. 07/01 AWB2700-1305-GB 69 . will be shown as Help text instead. Libraries must be created separately for different PLC types. You will find detailed explanations loaded with example programs for all manufacturer-defined function blocks and functions.. open the PLC-specific folder in the Library tree view. then select the desired subfolder and select the module you are looking for in the file structure window (see Figure 24). Importing or deleting libraries With this option you can transfer or delete an additional library created by the Library Manager itself or by other means. for a specific function block. can be accessed by the usual Help procedure in the menu or via “About” in the context menu. You can paste these passages into your POU by selecting the declaration or instruction section of the example program with the left mouse button and then saving on the Clipboard. the POU information created in the POU Editor via File © POU Info. You must take this into account when creating your POU as well as during subsequent library generation in the Library Manager. First. for example.. lib). 70 07/01 AWB2700-1305-GB . After it is imported into a project. This dialog will only display libraries (*. Sucosoft S40 manages the library and makes its function blocks and functions available for the corresponding PLC type in all projects. Now select the libraries you wish to import. Choose Options © Library © Delete or Delete in the context menu for the Library file tree structure in the tree structure window. Import library button The Import Library dialog window will open. Deleting a library Deleting a library will remove it from Sucosoft S40 management.NAVIGATOR Importing libraries Choose Options © Library © Import or click on the Import Library button. After creating these library modules. The project for generating these POUs is referred to here as the original library project. A library cannot be imported into its original library project since more than one module of the same name may not appear. 07/01 AWB2700-1305-GB 71 . You will find a detailed description in the manual “S40 Library Manager” AWB-C2700-1366GB. Function blocks (FBs) and functions to be used as library modules are generated like any other POU. A library cannot be imported while the library origination project is open in the Navigator. Using a library Imported libraries are available to all projects except the original library project. Sucosoft S40 monitors the assignment of names.Using libraries Creating a library Creation and subsequent modification of a library will only be described briefly here. After the program code has been successfully generated. in which the library modules are instantiated (FBs) and called up. the modules can be grouped into a library with the help of the Library Manager. a program POU must be created for testing purposes. POU names used in a library must not be assigned more than once in a project. 72 07/01 AWB2700-1305-GB . After clicking the Library tab you can confirm activation in the appropriate column of the Navigator file structure window. Choose Edit © Activate/Deactivate or the Activate/Deactivate option in the context menu. all the library entries will be deactivated so that the original POUs can be compiled with the next program generation. The corresponding warning messages will appear in the Output window.NAVIGATOR Activating and deactivating library modules Libraries are automatically activated when imported. Editing of library modules at a later time If you open the original library project with the library activated. When you wish to subsequently edit a library module in the original library project. There are two reasons that could prompt you to deactivate a user library: When no library module is being used in a library user project and you wish to conserve memory for saving the project. you must import it manually as described above.Using libraries Follow these steps to ensure that modified POUs are included in the generation: Deactivate the respective library in the NAVIGATOR. it will be stored under the corresponding PLC type folder in the Devices project branch. Modify and save the originating POUs in the POU Editor. only along with a project as a component. Saving libraries Libraries cannot be saved individually. only as part of a project. When saving a project the most recently imported libraries apart from those that were deactivated will be saved as well. Import the library after creating an updated version in the Library Manager. Register the POUs in the NAVIGATOR via the menu point Project © Register Sources. Restoring a library Libraries cannot be restored individually. Generate the program code. 07/01 AWB2700-1305-GB 73 . When you restore a project containing a library. To transfer the library to Sucosoft S40 management. the number of hidden POUs. the list of all groups in the libraries for this device type with the total number of groups and the number of hidden groups and the list of all POUs in the libraries for this device type with the total number of POUs.NAVIGATOR Information on libraries If you have selected a PLC type in the tree structure window of the Libraries tab. This information consists of the selected PLC type. 74 07/01 AWB2700-1305-GB . the list of all libraries for this PLC type with the total number of libraries and the number of deactivated libraries. you can use the Properties function in the context menu to display information on the libraries of this PLC type in the Library Information dialog. the number of function blocks and functions. Using libraries Library properties If you have selected a PLC type in the tree structure window of the Libraries tab. hidden and deactivated library modules changes). in the file structure window you can use the Properties function in the context menu to display information in the Library Properties dialog on the libraries listed. the name of the manufacturer of this library. the version number of this library. the name of the Help file linked to this library. the PLC type for which this library was created. the path where the physical libraries are located. 07/01 AWB2700-1305-GB 75 . the visible. the number of functions and function blocks that can be used in the physical library selected under Name. the display for the number of all library modules. the total number of all functions and function blocks in the physical library selected under the Name. This information consists of a list of the physical libraries of which the displayed library consists (depending on the library file selected in this list. q42. Programs can be imported and converted that were written for the PS316/PS306 with the suffixes *. the notification whether the library is password protected or not. Structure of the S30 program source The S30 program source can consist of the main program and several Include programs that are incorporated into the main program.q6w. 76 07/01 AWB2700-1305-GB .NAVIGATOR the number of the functions and the function blocks that are hidden in the physical library selected under Name and which cannot therefore be used. with the appropriate reference files.q3 and for the PS4-201-MM1 and PS4-141/151-MM1 with the suffix *. for the PS3 with the suffix *.q6b or *. A program conversion is used that matches the program content to the IEC/EN 61131-3 standard. Importing S30 programs Programs that you have written in Sucosoft S30 can be imported to Sucosoft S40. the number of the functions and the function blocks that are deactivated in the physical library selected under Name and which cannot therefore be used. The symbolic operands are also provided with a comment specifying the contact characteristics (M/B) and terminal designation (T) that were defined in the reference file. Remember to create a hardware configuration with the Topology Configurator for your PS416 PLC (see Page 187). The S30 converter automatically generates equivalent S40 programs during the conversion process. The conversion will change the S30 program into a program type POU and. if necessary.Q**) using the Include instruction. these must be incorporated into the source programs (*. S30-S316 source programs are converted to programs for the PS416. Type of conversion Use a newly created S40 project for the conversion. In this case. 07/01 AWB2700-1305-GB 77 . into one or several function block POUs. Due to the different programming concepts. A syntax check should therefore always be carried out after importing in order to rectify any errors reported. the converter may in some cases not be able to make a complete conversion and may not be able to generate syntactically correct POUs. symbolic operands are declared and used in the converted program.Importing S30 programs If other reference files are required for generating the S30 program in addition to the main reference file. All S30 sources must be located in the same folder. S30-S4 or S30-S3 source programs are converted to programs for PS4-200 compact PLCs. After this process has been completed successfully.Z) and (*. Existing POUs will be overwritten by imported POUs with the same name.Z??) and click the Open button.NAVIGATOR Conversion procedure Open the new S40 project and ensure that it does not contain any POUs... Choose Project © Export/Import © Import S30 Sources. Select the source file (*. the window opens for selecting the relevant S30 reference file. Ensure that the other programs (*.K) are located in the same folder as the source file. .Q??) of the main program you wish to import and click the Open button.. This will open the window for selecting an S30 program file: Figure 25: Selecting an S30 program file 78 07/01 AWB2700-1305-GB Set the File Type list box to the imported source file. Select the relevant reference file (*. some adaptions are carried out during the import. “1” for “B”. Instructions/sequences that have not be imported are transferred unchanged and appear as comments. In this way. the user is notified of unconvertible program sections via the syntax check. 07/01 AWB2700-1305-GB 79 . Program adaptions during conversion Adapting names In order to fulfill IEC/EN 61131-3 requirements with regard to POU and variable names. the number is changed to the corresponding letters: “0” for “A”. If the name is 8 characters long. The remaining steps are the same as in general POU processing. The sources are registered automatically after the conversion has been successfully completed. “2” for “C” etc. A number at the beginning of a name is preceded by the single character “A” if the name is less than 8 characters in length.Importing S30 programs Sucosoft S40 indicates the progress of the conversion in the Output window. Modifications in the name of a program or function block: Two “_ _” underlines in succession are converted to “_ I”. An underline at the end of a name is changed to the single character “E”. cycle time..NAVIGATOR Changes in the name of a symbol: A number at the beginning of a symbol is preceded by “D”. (see section “Setting program parameters” on Page 46). For program code generation in the NAVIGATOR you must first create the make file and then set the commented parameters via Generate © Program Parameters. An underline at the beginning/end of a symbol is preceded/followed by a “U”. If these characters were used in your S30 source program.) are stored as comments in the program POU header. Transferring the system parameters When importing S30-S4 source programs the system parameters (active marker range. check whether the automatic name change has by accident created identical names for different variables.. S30-S316: conversion restrictions Topology configuration There is no topology configuration in S30-S316. Two “_ _” underlines in succession in a symbol are converted to “_ I”.. max. You can generate the program after you have written the make file. 80 07/01 AWB2700-1305-GB .. After the conversion you must create the S40 topology for the required PS416 PLC in the Topology Configurator and save it in the project. Importing S30 programs SK sequential control function block The SK sequential control function block is available in S40 programming for the PS4200/300 PLCs in the form of the equivalent SFC function block. The TADR and RADR inputs are AnyARRAY type inputs in S40. The SlotNumber input and the two outputs InterfaceStatus and SlotError remain unassigned in S40 because they did not yet exist in S30. The S30 inputs I1 to I32. Mask and Text mode are not supported in the PS416. This function block is not available in S40 programming for PS416 controllers. as well as TOFF and ROFF. 07/01 AWB2700-1305-GB 81 . The SK function blocks are nevertheless portable so that the sources can be used for PS4 controllers or for corresponding function blocks for the PS416. The array size must then be defined in the declaration of the S40 source program. COM serial interface function block The COM function block for serial communication functions in Transparent mode. are not supported in the PS416 system and are therefore not converted. The size of these arrays cannot be recognised by the converter if this information is contained in a variable. DSW diagnostics status word Only the following PS306/PS316 compatible diagnostic bits are supported in the PS416: DAK: Card not fitted DBM: CPU battery failure Address operator The address operator in S30-PS316/306 programming does not have any equivalent in S40 programming for the PS416. The size of these arrays cannot be recognised by the converter if this information is contained in a variable. Although it is converted for the PS4-200 in S4 programming. The size of these arrays cannot be recognised by the converter if this information is contained in a variable. 07/01 AWB2700-1305-GB 82 . ICP function block The ICP function block is converted to the CompareArray function block.NAVIGATOR ICPY function block The ICPY module is converted to the TransferArray function block. The array size must then be defined in the declaration of the S40 source program. the PS416 code generator will report a syntax error. The Source and Destination inputs are AnyARRAY type inputs in S40. The array size must then be defined in the declaration of the S40 source program. The Source and Destination inputs are AnyARRAY type inputs in S40. g. Timers The timers of the PS316 (e. NOP command The NOP command does not exist in S40. #define command The #define command is not supported in S40. It is therefore transferred as a comment. 07/01 AWB2700-1305-GB 83 . They create a syntax error when compiled. In this case.g.Importing S30 programs PP and SYS commands The PP operands and the SYS commands are transferred to the S40 source program without any changes. adapt your program logic accordingly. T24) are replaced with suitable time generators. Flash markers The three flash markers of the PS316 (e. TEST command The TEST command is replaced by the functions IsZero and IsPositiv. FRQ1) are replaced with appropriate time generators. It is not converted. You can generate the program after you have written the make file. C0 high-speed counter function block The C0 function block cannot be converted. After the conversion you must create the S40 topology for the required PS4-200 PLC in the Topology Configurator and save it in the project. It is not converted. TR function block – on-delayed timer The TR function block has a basic clock rate of 100 ms. CK function block input DATE 07/01 AWB2700-1305-GB Unlike the S30 CK function block. S30-S4: conversion restrictions NOP command This command does not exist in S40. Printer control commands Printer control commands such as TITLE are not supported in S40 and are transferred as comments. This entry must be updated by the user. the RealTimeClock function block requires a year entry at the RealDate input.NAVIGATOR S30-S3: conversion restrictions Topology configuration There is no topology configuration in S30-S3. because a similar counter with a hardware input and scaling factor is not available. It is replaced by a suitable time generator. 84 . To do this.2 POU Editor Overview The POU Editor is the Sucosoft S40 tool you use to create your POUs. This approach is known as “structured programming”. In the following. the user program is kept to a manageable size and handling is simplified. 07/01 AWB2700-1305-GB 85 . and functions – will be described. In this way. the three types of POUs from which a PLC program is constructed – programs. These different POU types allow you to divide an extensive programming task into several subtasks which are in turn handled in function blocks or functions. function blocks. or function) into a different type of POU. function block. and function – from which a PLC program is constructed. You can convert a previously-created POU (program. use the Convert POU type option Section “Converting POU types” described on Page 183. The term POU stands for Program Organisation Unit and denotes the three POU types – program. function block. POU Editor Program type POU The program POU represents the main program. select the correct PLC type in the Navigator toolbar selection window. A function can display one or any number of input parameters it is linked to and delivers the result as a return value. Function block POU Function blocks (FBs) are important elements in structuring your PLC program. Functions blocks and functions can be called up from a program. for example) are declared in the program. All project variables firmly defined at a physical address (markers and inputs and outputs. under which the currently selectable 86 . a function only returns one element. They are used by programs or other FBs and can themselves call up other FBs or functions. Sucosoft S40 provides numerous standard function blocks and functions for use in frequently encountered programming tasks. always delivers the same return value. The internal data of FBs is retained for the time between one call and the next. Function type POU Functions are also structuring elements for your PLC program. They are used by programs or FBs and can themselves call up other functions. Unlike a function block. 07/01 AWB2700-1305-GB Before beginning to create your POU. The following three PLC types are displayed. Internal data is not saved so a function. called up with the same input values. Functions are valid throughout the project and can be called up from any POU. the corresponding data types. manufacturer-defined function blocks and functions are made available to you. Sucosoft S40 uses these variables to initialise. To create a user program you can choose between the textual programming languages.Overview controllers will be listed according to group: PS4-200. Depending on the PLC type selected. process. and save your data. You create your user program in the instruction section. or the graphical languages Ladder Diagram (LD) and Function Block Diagram (FBD). PS4-300 and PS416. 07/01 AWB2700-1305-GB 87 . Structure of a POU POUs always consist of a declaration section and an instruction section: The declaration section is where you declare the variables you wish to use in the instruction section. Instruction List (IL) and Structured Text (ST). POU Editor Primary functions of the POU Editor: Declaration of variables Declaring variables Editing user programs in the programming languages IL. 88 07/01 AWB2700-1305-GB . ST. FBD Syntax control Calling the code generation function Creating “global data types” valid for the entire project Printing Creation of a cross-reference file list Customised user interface display and colour display Starting the POU Editor The POU Editor is started as a tool from the NAVIGATOR. LD. see Page 91 File card tabs for switching quickly between POUs. see following section Instruction section. Output window and Editor for “global types” 07/01 AWB2700-1305-GB A number of Windows standard shortcuts are listed in the Appendix on Page 437 for optimum use of the POU Editor. respectively). ST.User interface of the POU Editor User interface of the POU Editor Like the POU itself. Both sections are shown when an existing POU is to be opened or a new one is to be created. 89 . Figure 26: POU Editor with declaration section (Syntax mode) at the top and the instruction section at the bottom Toolbar. the POU Editor window is divided into declaration and instruction sections (Variables Editor and IL Editor. LD or FBD. see Page 98 Language element toolbar for IL. see Page 99 Declaration section (in Syntax mode). Both modes are described in Section “Declaring variables” from Page 106. The declaration section is independent of the programming language employed and is therefore the same for all programming languages... the mode in which the Editor will open. i. 90 07/01 AWB2700-1305-GB . via Options © Settings.POU Editor Declaration section Sucosoft S40 provides either a tabular. Syntaxcontrolled Variables Editor (Syntax mode) or a purely textual. Switching between Syntax mode and Free mode With an open POU you can switch between the two modes by choosing Options © Variables Editor © Free Mode/Syntax Mode or via standard toolbar buttons. Free mode button Syntax mode button You can define basic settings for the Variables Editor when creating a new POU. Free Variables Editor (Free mode) for entering variables in the declaration section.e. © Editor © Display Mode in Declaration Section. and possibly using functions. to form an executable user program. The instruction section is where you link previously declared variables or function blocks via operators to form an operable POU. You can switch between the instruction section and the declaration section by clicking the left mouse button or by choosing Window © Change. by positioning the cursor on the variable name.. or via the context menu: Position the cursor in the instruction line containing the new variable and then call the variables declaration function. In this way you can provide information the manufacturer or user-defined data types or function blocks. Functions and function blocks are shown as prototypes with all their relevant inputs and outputs and data types. New variables that were used in the instruction section can be transferred to the declaration section and declared via Insert © Variables Declaration. The language toolbar is activated as soon as the cursor is positioned in the instruction section.User interface of the POU Editor Instruction section You create your user program in the instruction section. These can be particularly useful for variables in the instruction section. These tool tips are only available in textual programming languages. Tool tips The Sucosoft S40 tool tips offer simple and quick information on the buttons of the toolbars. 07/01 AWB2700-1305-GB 91 .. The following menu items are described in the appropriate section: POU Info. with PLCdependent. i. see Page 182 Converting POU types. see Page 186. for preparing printouts and printing POUs.e.POU Editor Figure 27: Tool tip for variables Menu bar The functions of Sucosoft S40 within the individual windows are described below: File menu The File menu is used for processing new or existing POUs or files containing global types. and for displaying the cross-reference file. see Page 185 Cross-reference file. user-defined data types. 07/01 AWB2700-1305-GB 92 . Print setup and print menus The same settings are made here as for the NAVIGATOR (see Page 39 and Page 40). see Page 183 Opening global types. The options for searching/ replacing in several files can be particularly helpful. and Go To.. Pressing the More button in the Find. and Replace. Double-clicking a line in the Output window will move you to the location of the variable in the instruction section. you wish to undo an action in the instruction section. The result is shown in the Output window under Undeclared Variables. function depend on the cursor position and the selected programming language... for example.. The Find Undeclared Variables menu item allows you to search the opened POUs for variables that are used in the instruction section but which are not yet declared.User interface of the POU Editor Edit menu The Edit menu provides standard functions such as Undo. If. Find.. 07/01 AWB2700-1305-GB 93 .... The Undo and Restore functions work separately for the declaration section and the instruction section. The result of a find/ replace operation in several files is shown in the Output window. dialog boxes enables you to select additional search criteria. The Find elements for the Go To.. Restore. the cursor must also be positioned in this section. Replace.. allowing the search to be extended to the files associated with a particular make file or files that belong to the current project..... Add the missing information to the variable names shown.POU Editor To do this position the cursor in a suitable line in the Output window and then press F5 to open the Declaration Wizard. Figure 28: Find. the variable will then be inserted to the declaration section. Replace and Go To dialog Figure 29: Find result 07/01 AWB2700-1305-GB 94 . . The Variables From Topology menu item enables directly addressed variables from your topology to be transferred and declared. LD and FBD. it doesn't matter whether the cursor is located in the declaration section or the instruction section. Code generation: for calling the code generator via the NAVIGATOR (see Page 62). Options menu The Options menu offers the following settings: Variables Editor: switching the declaration section between Free and Syntax mode (Page 90). 07/01 AWB2700-1305-GB 95 . Programming language: switching between programming languages IL. Online menu The Online menu enables you to edit your POUs online during test and commissioning (see Page 385).User interface of the POU Editor Insert menu The Insert menu is used for inserting manufacturer and user-defined functions or already declared variables. Calling the Settings. When declaring variables. The Variables Declaration menu item enables new variables to be declared. For this the cursor must be positioned in the instruction section before the menu is opened.. dialog box and Calling the Customize Toolbars dialog box (Page 97). ST. i. even with long entries. Figure 30: Settings Editor dialog Editor: the options Automatic and Free of the Column Adjustment control the column width.POU Editor Settings dialog The setting options of this dialog box are largely self-explanatory and are not fully described here. 96 07/01 AWB2700-1305-GB . the width of the entry cells in the declaration section in Syntax mode. Automatic: column adjustment automatically adjusts to the width of the longest entry. The whole entry can be seen by moving the cursor within the entry field. Free: the column width is fixed as set.e. you can define the colour for keywords or the background colour of comments. The toolbars of the POU Editor can be reduced in size by clicking the unwanted buttons and dragging them (mouse button depressed) over the edge of the POU Editor. You can create your own toolbars named consecutively ToolBar1 . The settings you have made can be saved as a new scheme by clicking the Save As.. You can increase the size of toolbars or re-compose them by adding the buttons from the dialog box or another toolbar. Print: If you wish to print or display in the NAVIGATOR a project or parts of it selected via a make file....User interface of the POU Editor Font: This is the same font and colour setting that can be carried out in the NAVIGATOR. For example. Customize Toolbars. button and entering a name for the scheme. you can include or exclude in the output the display of the device configuration and the global data types. 07/01 AWB2700-1305-GB 97 . be removed from the list of available toolbars. Multiple-nested comments cannot be shown in the same colour. you can define the content of the output in the options selected here. menu Once this dialog has been opened you can adapt the toolbars of the POU Editor to suit your personal requirements or create additional toolbars... n by dragging the buttons onto the screen. For example. It cannot. The toolbar created in this way can be positioned as required or hidden. however. POU Editor Figure 31: Customize Toolbars dialog box Standard toolbar You can display or hide the standard toolbar via the View menu. It can be added to with the following buttons: - Buttons for using bookmarks Within a file (POU or global types) you can assign a bookmark to a line in which the cursor is positioned. Bookmarks enable you to use the following symbols for finding particular positions in the programs. 07/01 AWB2700-1305-GB 98 User interface of the POU Editor Next Bookmark Previous Bookmark You can use bookmarks in the POU Editor in both online and offline mode. In Free mode you can insert bookmarks in the instruction section or declaration section in the POU. For this position the cursor in the appropriate line and click the Set Bookmark button. The other buttons allow you to jump to the previous or next bookmark or delete all of them. Buttons for arranging several POUs on the desktop or for arranging the declaration section or instruction section. - Buttons for changing the programming language: Language elements toolbar You can display or hide the language elements toolbar via the View menu. The buttons available in the language elements toolbar depend on the programming language selected. They are inactive (dimmed), if the cursor is positioned in the declaration section. 07/01 AWB2700-1305-GB 99 POU Editor Output window The Output window is used for displaying the results of different operations. It is opened automatically as soon as the operation you have started has been executed. You can close the Output window at any time if it impairs your view of the screen. The Output window can display error reports, the results of a find/replace operation in several files, the results of a search for undeclared variables or a cross-reference file. The contents displayed depend on the operation you have started or on the file card tab that you have selected: Error report display An error report will appear if you have started a syntax check of the POU and Sucosoft S40 has found an error. Find/Replace display The results of a find/replace operation in several files will be shown with all the locations of the search string with the file name, line, column and program line in the declaration section and instruction section and in the global type file (usertyp.typ), if appropriate. Cross-reference file The cross-reference file is displayed for the current POU if you have selected File © Cross-Reference File beforehand. This cross-reference file enables you to move easily to the required position of a variable in the instruction section. To do this, doubleclick the appropriate line in the cross-reference file list. 07/01 AWB2700-1305-GB 100 User interface of the POU Editor Display mode of the Output window The Output window can be docked or floated on the screen depending on the setting made. This is carried out via Options © Settings © Editor © Output Window. The Output window is then displayed according to the setting made. When in docked mode the Output window is positioned directly below the Editor window. You can drag the Output window to the position required by clicking the handle and docking it to any of the four edges of the Editor window. A docked Output window is always visible and cannot therefore be moved to the background. An undocked Output window can always be moved to the background as required. You can bring one of the opened POUs or the Output window to the foreground as required by clicking the file card tab or via the Window menu. 07/01 AWB2700-1305-GB 101 POU Editor Variables declaration The declaration section is where you define the variables (assign a data type or a function block to the individual variables) you wish to link together in sequences in the instruction section. Depending on the application concerned, add other values to the declaration such as initial values, attributes or, in the case of directly represented variables, an address. A variable is identified by a name. This name must be different from the POU with which it is associated. Writing conventions for variable names are described in the sections “Variables” and “Compliance with the IEC Standard”, in the manual S40 Language Elements (AWB2700-1306-GB). Element Name (variable names) Type (Data type) Initial value Attribute Address Comment Entry required required optional optional optional optional This assignment of variables in the declaration section is called instantiating, whereby Sucosoft S40 automatically reserves the required memory in the PLC. Function blocks are also declared as variables. Functions occupy no permanent memory and are therefore not declared. Declarations and instances no longer needed should be deleted from the POU to minimise the amount of memory required. 102 07/01 AWB2700-1305-GB Variables declaration Scopes for variables This section provides information on the permissible scopes for variables, according to the POU type concerned. Understandably, a program POU cannot recognise an External variable since the Global variable type is the only one that can be declared in program type POUs. A program POU can only occur once inside a project. Table 1: Overview of permissible scopes for variables in the three POU types and with global types Scope Free mode VAR_INPUT VAR_OUTPUT VAR_IN_OUT VAR_GLOBAL VAR_EXTERNAL VAR Type Syntax mode Input Output Input/output Global External Local Type              FU FB PRG Global types Input Input variables are used to transfer parameters to functions or function blocks. They can only be accessed as Read Only. Keyword: VAR_INPUT Output An output variable that is declared in the function block in which it is supplied as the return value. You can supplement the declaration of output variables with the attribute RETAIN or CONSTANT (see Page 114). Keyword: VAR_OUTPUT 07/01 AWB2700-1305-GB 103 POU Editor Input/output An input/output variable (also known as passing parameter) is read and processed by a function block and output under the same name. When the parameters are passed with the function block call, the IN_OUT variable receives a pointer to the transferred variable and its memory location. Since an operation on an IN_OUT variable thus directly affects the content of the transferred variable, the transferred variable must not be of a type that does not permit write operations such as variables with the attribute CONSTANT. Input/output variables must assigned parameters and connected with every call. Keyword: VAR_IN_OUT Global You declare a variable as global in the program POU when you wish it to be valid in the program POU itself and in the function blocks called up by the POU. It must be declared as an external variable (VAR_EXTERNAL) in all the function blocks in which the variable is to be used. A global variable can therefore only be declared in the program POU. Global variable declarations can be assigned the attribute RETAIN or CONSTANT (see Page 114) as well as being assigned an address (see Page 114). Keyword: VAR_GLOBAL External If you wish to use a variable declared as global in the program POU within a function block it must be declared as an external variable in the function block. Keyword: VAR_EXTERNAL 07/01 AWB2700-1305-GB 104 Variables declaration Local A local variable is only valid in the POU in which it is declared. Global variable declarations can be assigned the attribute RETAIN or CONSTANT (see Page 114) as well as being assigned an address (see Page 114). Keyword: VAR Type The keyword TYPE is used for declaring userdefined, derived data types with local scope in the relevant POU. Derived data types are special data types you can derive, i.e. compile yourself, from elementary types. As an alternative to these local type definitions, you can make global type definitions via File © Open Global Types. Example: By declaring a derived data type “Pressure” as an INT data type with a limited value range, the new data type can be used for declaring variables: TYPE Pressure : INT (0..100); END_TYPE VAR ChamberPressure: Pressure; END_VAR The variable “ChamberPressure” is thereby also an INT data type but can only hold values in the range of 0..100.Keyword: TYPE 07/01 AWB2700-1305-GB 105 POU Editor Declaring variables Table 2: Overview of procedures Procedures Open POU Editor Select POU type Generate variables from topology? Generate other variables with the Declaration Wizard in Syntax mode in Free mode Page 109 Page 106 – – Program Function block Function without the Declaration Wizard Page 112 Page 118 Changing declared variables Page 120 Generating variables from the topology This function is only available in program type POUs. You can transfer the physical PLC addresses defined in the Topology Configurator to the declaration section of a program POU in order to reduce the amount of editing required. These physical PLC addresses such as PLC inputs and outputs or elements of the communications memory are called directly represented variables. They are entered automatically for the global scope and are therefore known within the program POU as well as within the FBs that are called from this program. The assignment of symbolic names is useful but not compulsory (see the chapter “Directly Represented Variables” in the manual “S40 Language Elements”). 106 07/01 AWB2700-1305-GB Figure 33: Topology selection 07/01 AWB2700-1305-GB 107 .. Then select a topology from your current project.. Figure 32: Generate variables from a topology? Answer with “Yes” and then select a topology from your current project. the POU Editor will first of all ask if you wish to create and declare variables from a topology.Variables declaration If you wish to create a new program POU. To extend the declaration of an existing program POU: Open the Insert Variables Declaration dialog box by choosing Insert © Variables From Topology.. Figure 34: Example declaration from a topology Only the (optional) assignment of symbolic names is required. The name of the configuration file (*. path and device specifications.dcf) is entered together with the drive. They are assigned global scope.POU Editor Once you have opened the required topology. the variables are automatically transferred to the declaration section. 108 07/01 AWB2700-1305-GB . The S40 Declaration Wizard simplifies declarations by proposing the order and number of entries required.Variables declaration Declaration Wizard Variable declarations can be made "free-hand" or with the aid of the S40 Declaration Wizard. as well as a selection of available function blocks and data types. Variables declarations using the Declaration Wizard are carried out in the Insert Variables Declaration dialog of the relevant PLC. function key F5 or via the appropriate toolbar button. This dialog box can be opened via Insert © Variables Declaration. The symbol button is enabled if you show the declaration section in Syntax mode or if the cursor is in the instruction section. For example. Declare New Variable button 07/01 AWB2700-1305-GB 109 .. the context menu... global and type scopes for the Program POU. the local. It also limits the possible scopes according to the POU type being processed. POU Editor Figure 35: Declaration Wizard with a selection of manufacturer-defined data types New variables can be accepted after you have selected a function block or data type and made the necessary entries for variable name, scope and length, if necessary. Only then is the OK button available and no longer dimmed so that variables can be accepted in the declaration section. Instances of function blocks, i.e. variables assigned with a function block, can be used as local and global variables in the program POU and as local or external variables in function block POUs. In order for a function block instance to be valid in all POUs, it must be declared as a Global variable when used in the program POU and as an External variable when used in a function block POU in a sub-folder. 110 07/01 AWB2700-1305-GB Variables declaration The Manufacturer file card tab provides all the manufacturer-defined function blocks and data types available for the PLC used. The data types provide a group with derived data types and several groups with elementary data types. All the data types provided here are pre-defined and are identified by keywords. Further information and notes on manufacturerdefined data types and function blocks are provided in the Help system via the context menu (F1) or direct Help (?). The User file card tab provides all the user-defined function blocks and global data types available for the PLC used. These data types, also known as derived data types, are type declarations that were previously created via the Open Global Types function, see Section “Opening/editing global types” on Page 185. 07/01 AWB2700-1305-GB 111 POU Editor Figure 36: Declaration section with a group of user-defined data types If you have imported a library, its function blocks are available by clicking the appropriate file card tab (in this case "ControllerLib"). Syntax mode In Syntax mode the Variables Editor offers convenient, user-guided variable declaration.For example, you will not need to know the keywords for scopes; they will be entered automatically. Variables can be entered for each scope separately under a separate file card directly in the entry cells. 112 07/01 AWB2700-1305-GB Variables declaration Procedure: If necessary, switch to Syntax mode. Click the appropriate file card tab at the bottom of the window to assign the new variable to a scope. The tab for the selected range is shown in the foreground. Figure 37: Possible scopes for the program POU Fill in the entry cells in the editing line. Figure 38: Editing line for the program POU and Local or Global variable types. The entry cells for Name, Type and Comment are available for every scope. Attribute and Address entry cells are displayed according to the POU and variable type involved. Attributes can be entered only for Local and Global variable types. Addresses can only be entered for Local and Global variable types in the program POU. The display of entry cells can be defined via Options © Settings © Editor © Column Adjustment. 07/01 AWB2700-1305-GB 113 POU Editor Entry cells for variable properties in the Syntaxcontrolled Variables Editor: Name: Enter the variable name here. The length of the name is limited to 64 characters. Type: Enter the variable data type in the Type cell. This can be an elementary data type (such as BOOL, UINT, etc.), a derived data type, or a function block. Initial value: The value you enter here will be assigned to the variable when the PLC is started. If you enter nothing, the variable will be assigned the default value (0 for numeric variables). Attribute: Use this box to define whether the variable should be assigned an attribute. You can choose between RETAIN or CONSTANT. RETAIN: This keyword specifies that the variable is retentive, i.e. it is retained in the event of a power failure or when the controller is halted. The RETAIN attribute can also be used with FBs. CONSTANT: This keyword specifies that the variable is a data element whose value cannot be changed by the PLC program. Address: When you require a variable with a set relation to a physical address, i.e. a directly represented variable, establish this relation by entering an identifier letter for memory location and an identifier letter for data format in the address cell. 114 07/01 AWB2700-1305-GB Variables declaration Memory location identifiers: I: Q: M: IA: QA: IC: IP: QP: IPA: QPA: IPC: IS: SD: RD: Digital input Digital output Marker Analog input (not usable as bit operand) Analog output (not usable as bit operand) Counter input (not usable as bit operand) Digital input (peripheral direct access)* Digital output (peripheral direct access)* Analog input (peripheral direct access)* Analog output (peripheral direct access)* Counter input (peripheral direct access)* Status information (diagnostics) Send Data – Communication data to a network station Receive Data – Communication data from a network station * (See “Direct Peripheral Access for PS4-200 and PS4-300” in the section “Language Extension” in AWB2700-1306GB) Data format identifiers: X or without letter: B: W: D: Example: I0.0.0.0.0 defines a Boolean input Bit size Byte Word Double-word 07/01 AWB2700-1305-GB 115 POU Editor Comment: Enter here any additional comments for the variable. In Syntax mode, an initial parenthesis and an asterisk [(*] are placed automatically in front of the comment and a closing parenthesis [*)] is placed behind it. You will only see this, however, if you switch to Free mode. (*Comment*). Conclude variable declaration by pressing the Enter key; the Editor will add an empty line to the end of it. Declare all variables of this scope in the same way. You can use the right mouse button and the context menu if you need to make any corrections afterwards. Declare variables of the other scopes in the same way after clicking the corresponding tab. 116 07/01 AWB2700-1305-GB Variables declaration Figure 39: Sample list of declared variables in Syntax mode Due to its tabular layout in Syntax mode, the Variables Editor arranges its assigned components (name, type etc.) in a set format during declaration. Tabulators or line breaks inserted into comments in Free mode will be represented as squares in Syntax mode and then again as spaces after switching back to Free mode. When writing (variables, for example) you may use upper and lower case letters as you wish. The POU Editor is not case-sensitive here. 07/01 AWB2700-1305-GB 117 POU Editor Free mode Free mode is designed for experienced programmers who are familiar with declaring variables in Sucosoft S40 and require a fast entry tool. In Free mode, every declaration line must be entered in the correct syntax. Errors will not be reported until the syntax check for the entire POU is carried out. Unlike Syntax mode operation, the Variables Editor shows all scopes all declared variables at the same time in Free mode, thus providing a better overview of variables already declared. Figure 40: Declaration section in Free mode 118 07/01 AWB2700-1305-GB Saving a POU The Editor checks POU format before saving. In general. all the variables described for Syntax mode are available (see Section “Scopes for variables” on Page 103). 119 . (*Comment*). Declare the variables according to scopes in separate declaration blocks.END_VAR.END_TYPE. e. Check the declaration section in Free mode and make sure that there are no additional characters before a VAR or after a END_VAR. and that all comments are correctly closed.. e. For greater clarity separate the individual components of a declaration line with tabs.. a missing END_VAR or comment ending. TYPE. Enter the appropriate keyword for the required scope. for example. Conclude the declaration block with the appropriate keyword..g. 07/01 AWB2700-1305-GB Sucosoft will show an error message if it finds an error. Enter the same variable properties that were described for Syntax mode (see Page 114).Variables declaration Procedures: Switch to Free mode. This is shown in colour. if applicable.. Comments are also shown in colour. VAR_OUTPUT.g. Enter comments for further explanation of the corresponding declaration lines. It begins by checking that all declaration blocks are bracketed with correctly written keywords. VAR_IN_OUT. VAR. Begin comments with an initial parenthesis followed by an asterisk and end them with an asterisk and a closing parenthesis. You must observe the following sequence in declaration blocks: VAR must not be placed in front of VAR_INPUT. Changing declared variables To change the properties of a previously declared variable. Directly represented variable.0. first position the cursor on the name of the variable concerned either in the declaration section or the instruction section and then call the S40 Declaration Wizard.POU Editor Examples of variable declaration – Free mode Variable without initialisation: Variable with initialisation: IntermediateValue : INT.0. without name and without initialisation: Directly represented variable without name and with initialisation: Directly represented variable with name and without initialisation: Example of a function block: AT %Q0.0.0.0.0.1 : BOOL := 1.0.2 : BOOL. Counter1 : CTU. AT %Q0.0. 120 07/01 AWB2700-1305-GB .0 : BOOL. Valve AT %Q0. specified by a % character directly in front of the required physical address and a preceding AT identifier.0. Qty : INT := 5. The operators and functions can be entered directly or taken from the language elements toolbar. This has the following structure: Label (optional) . function block. to open a dialog box providing functions compatible with the PLC. Click the appropriate toolbar button if the IL programming language has not yet been selected.. Each instruction line must be terminated with a line break. Using the IL Editor Once this button is clicked. line-oriented programming language.Comment (optional) Creating a POU in IL Requirement: The POU Editor and the desired POU type (program.. Figure 41: Toolbar buttons for IL language elements 07/01 AWB2700-1305-GB Inserting operators and functions Enter the instruction list in the instruction section of the POU.Programming in IL Programming in IL Overview IL is a textual.Operand . Use the F button on this toolbar or choose Insert © Functions. the language elements toolbar will provide IL operators. 121 . from which you can create your instructions.Operator . or function) must be open. user-defined functions or functions from imported libraries. You can quickly get instructions for this by selecting the function in the instruction section and pressing function key F1. if applicable. Manufacturer-defined functions for the currently selected PLC are arranged according to functionality in folders. Select the desired function and click the OK button. 122 07/01 AWB2700-1305-GB . Set the function parameters.POU Editor Figure 42: Function selection The file card tabs provide the manufacturer-defined or. Open the Insert Variable dialog box and select the name of the variable in the selection list. the context menu or via the appropriate toolbar button.Programming in IL Inserting variables You can enter the variable name manually or insert a previously declared variable by mouse click. This dialog box can be opened via Insert © Variable. Insert Declared Variable toolbar button Figure 43: Variable selection 07/01 AWB2700-1305-GB 123 . Assign a function block or data type to the Insert Variables Declaration dialog and acknowledge it with OK. (*Comment*).POU Editor Inserting function block variables If you are dealing with a function block in your selected variables it will be inserted with all inputs and outputs if you leave the default option “FB Instances with Prototype” active.g. e. You can make comments for individual lines of the instruction list. Comments must begin with an initial parenthesis followed by an asterisk and end with an asterisk followed by a closing parenthesis. Enter the new variable name as the search string the Insert Variables dialog. 124 07/01 AWB2700-1305-GB . only the instance name will be inserted in the instruction section. changing variable declarations Variables not yet used can be edited and at the same time declared from the instruction section with Insert © Variable © (Variable or Function Block). Set the function block parameters. Enter comments to the right next to the instruction. Subsequent variable declarations. Define the scope and confirm this dialog and the subsequent prompt with OK. The new variable is inserted in the declaration and instruction section. Otherwise. the remaining error messages will not be shown until the first 25 have been rectified.Programming in IL Used. but so far undeclared variables marked with ??? in the tool tip can now be declared from the instruction section: To do this position the cursor in front of the name of the undeclared variable and open the Declaration Wizard. Correct the errors in ascending line order. This is followed by the line and column number of the error and a short error description. Double-click on each error message to display 125 . function key F10 or via File © Syntax Check Syntax check A syntactically correct POU will be reported to you by a corresponding message in the Status bar on the lower edge of the window. Up to 400 errors can be listed. Testing POUs Check the syntax of the POU or a global data type by clicking the toolbar button. via function key F5 for example. ( Figure 44: Syntax check with error message 07/01 AWB2700-1305-GB The first entry in each line indicates whether the error is in the instruction section (Ins) or declaration section (Decl). if more than 400 errors have been found. Add the missing entries to the existing variable name. The Error Messages window will open if syntax errors are detected. The save operation is carried out exclusively in the currently opened project. After the syntax check is successfully completed. Close the POU via File © Close. Saving and closing POU Save the POU by clicking the corresponding toolbar button. You will be asked to enter a file name when it is checked and saved for the first time. the tool tip of a variable. see Figure 27 on Page 92. 07/01 AWB2700-1305-GB 126 . you will be asked in the following dialog window for the name under which the POU is to be saved. select. to save a POU file under a new name. POUs are always saved in the project in the Source folder or any possible Source subfolders.POU Editor the source of the error in the IL Editor – the cursor is positioned in the faulty line. If you require further help in rectifying a particular error. depending on the declaration. even if the POU was loaded from another project.. select the error message concerned and press F1.. Choose File © Save As. The POU is saved with the syntax check. In the window that opens. Save button If you are saving the file for the first time. shows the data type or the prototype of a function block. The current project is pre-set as a folder. one of the sub-folders you created. if applicable. in the chapter “Programming in Structured Text (ST)”. In PLC programming. The instruction section of a POU created in ST consists of at least one statement or a sequence of statements. Statements consist of command constructs that are combined to form an executable function. ST simplifies the programming of loops and alternative instructions and the programming of powerful command constructs using abstract commands. or ST for short. However. is a PASCAL-based programming language. ST and IL sequences can be combined inside a POU if the IL sequence or ST statement is properly terminated. a POU containing ST elements cannot be displayed in graphical languages LD and FBD or completely changed to IL. 07/01 AWB2700-1305-GB 127 . Each statement must be terminated with a semicolon. The syntax rules to be observed when creating a POU in ST are described completely in the manual “S40 Language Elements” (AWB27001306-GB).Programming in ST Programming in ST Overview Structured text. to open a dialog from which you can insert PLC-compatible functions for your ST instructions.. function block.POU Editor Creating a new POU in ST Requirement: The POU Editor and the desired POU type (program. In order to reduce the declaration work required. Assignment operator 128 07/01 AWB2700-1305-GB Click the F button on this toolbar or choose Insert © Function. or function) are open. Using the ST Editor Once this button is clicked. Figure 45: Toolbar buttons for ST language elements Inserting operators and functions Enter the statements in the instruction section of the POU. the language elements toolbar will provide ST operators. the hardware configuration of your PLC should be created beforehand in the TOPOLOGY CONFIGURATOR. you can insert the variable directly that is to be assigned to the expression. The operators and functions can be entered directly or taken from the language elements toolbar. .. When inserting the assignment operator via the toolbar button. Click the appropriate toolbar button if the ST programming language has not yet been selected. Select the desired function and click the OK button. Set the function parameters. Manufacturer-defined functions for the currently selected PLC are arranged according to functionality in folders. The function is entered with the necessary syntaxrelated additions. if applicable. user-defined functions or functions from imported libraries. You can quickly get instructions for this by selecting the function in the instruction section and pressing function key F1. 07/01 AWB2700-1305-GB 129 .Programming in ST Figure 46: Function selection The file card tab provides the manufacturer-defined or. Open the Insert Variable dialog box and select the name of the variable in the selection list. This dialog box can be opened via Insert © Variable. Insert Declared Variable button Figure 47: Variable selection 130 07/01 AWB2700-1305-GB . the context menu or via the appropriate toolbar button.POU Editor Inserting variables You can enter the variable name manually or insert a previously declared variable by mouse click. . Otherwise. only the instance name will be inserted in the instruction section.. Set the function block parameters. The FB will be inserted with all its operands if you leave the default option “FB Instances with Prototype” active. Figure 48: Alternative statement buttons 07/01 AWB2700-1305-GB 131 . Control statements consist of either selection statements.Programming in ST Inserting function block variables The Insert Variable dialog is opened via the FB button on the toolbar.. iteration statements and jump instructions. Inserting control statements Control statements enable the required program flow in your POU. Variables not yet declared can be declared now from the instruction section with Insert © Variables Declaration © (appropriate data type). The function block is entered with the possible syntax additions to the operands. by choosing Insert © Variable. or via the context menu. Selection statements (alternative statements): Selection statements that you can use to control the program can be inserted in your statements using the language element toolbar buttons. their order. and their type of connection (serial or parallel). Repeat and For loops are used to repeat sections of your POU until the defined condition is fulfilled. Figure 50: Jump statement buttons How to check. Programming in LD Overview The graphical programming language LD originated from the field of electromagnetic relay systems and is therefore especially suited to the programming of logical sequences of binary variables with their potential states of TRUE-1 or FALSE-0. While. LD represents the flow of current through a network starting from the left “current rail” possessing the TRUE state. save and close your POU is described on Page 125. The resulting sequence is determined by the network elements. 132 07/01 AWB2700-1305-GB . through the various network elements and the variables.POU Editor Iteration statement: Iteration statements are used for the control of loops. Figure 49: Iteration statement buttons Jump statements: Jump statements cause the immediate exit of a loop (Exit statement) or from a POU (Return statement). to the right “current rail”. Function and function block calls. This means that you can create a program in LD. You will find a detailed description of variable declaration on Page 106. You can declare variables in the Variables Editor which is common to all programming languages.Programming in LD A POU may consist of individual networks corresponding to the program sequences. i. for example. To create a POU in LD click on the LD POU Editor in the instruction section. While doing this. Programs can always be written in IL. Contacts and coils. Using the LD Editor 07/01 AWB2700-1305-GB 133 . The sequence network number is located in the network header and comments can be entered below the network number. LD networks consist of the graphical objects: Connections (horizontal and vertical lines).e. via the corresponding toolbar button. LD and FBD programming languages interchangeably. you must take note of the restrictions which are explained in the section Section “Changing programming language” from Page 175. Jump instructions. and then display it or continue working in IL or FBD. Figure 51: LD language element toolbar buttons In addition to the language element toolbar buttons. These must then be replaced with the required variable names or jump labels. i. 134 07/01 AWB2700-1305-GB . Variable names and jump labels are initially assigned the designation “undef_opd” in the graphical view of the POU. use the keyboard for certain programming entry tasks. All programming steps in the LD Editor are available in the LD language element toolbar. The basic structure of a POU. you can also use the context menu (press the right mouse button) to speed up the completion of different stages of the POU. the network sequence and structure of the individual networks are described below. the language elements toolbar will provide LD operators. Identifying networks as jump destinations as well as entering variable names and comments are discussed in later sections. You must still.e. however.POU Editor Once this button is clicked. Programming in LD Creating a new POU in LD Requirement: The POU Editor must be open. Click the LD Editor button and. Move to the instruction section. Start LD network Choose Insert © Start LD Network or click the corresponding toolbar button: Start LD network button The first network will appear in the instruction section with a contact and a coil. 07/01 AWB2700-1305-GB 135 . You can also carry out this action via the toolbar or context menu. if necessary maximise the LD Editor window. First select the Program POU type and declare the variable as described on Page 106. POU Editor Execution control (jumps) Click the Unconditional Jump to a Network Label button. Figure 52: Naming an element as jump destination Displaying and inserting operators All operators are made available via the Sucosoft S40 language element toolbar buttons. the element for entering and editing the jump destination will appear in the new network. Press the Enter key. Unconditional Jump button The jump symbol. 136 07/01 AWB2700-1305-GB . The Name Element window in which you enter the jump destination will open. The graphical symbol for the function block will appear with all inputs and outputs as a new network if the FB Instances with Prototype option is kept active. 07/01 AWB2700-1305-GB 137 . menu item or via the context menu. When changing later to LD. You can reproduce any number of graphic elements in a network. the function is shown as a rectangular FBD symbol (see Section “Creating a new POU in FBD” on Page 153)... only one function block call per network. You can name and connect inputs and outputs as you wish.Programming in LD Inserting FB variables Position the cursor at the required location in the instruction section of your LD POU. Inserting functions Functions cannot be entered in LD networks. Select the instance of the required function block and click on OK. Switch to FBD to enter a function. Select the function block from a list of all declared variables which you can open from the Insert © Variable. however. Select the entire POU via Edit © Select All. or the entire POU. Drag a frame around the desired section of the network with the mouse pointer while holding down the left mouse button. To select several adjacent elements in a network you have various options: Select one of the outermost elements with the mouse pointer and. Selecting POU elements You can use the mouse pointer. select the other outermost element.POU Editor Editing POUs in LD Select the section of the POU you wish to modify. 07/01 AWB2700-1305-GB 138 . or the tab key to select an individual element. To select an entire network use the mouse pointer to click the square marking point located on the left edge of the screen directly below the network. Then. several adjacent elements. To select several networks. click the marking points for the other appropriate networks above or below the first one selected. first click on one of the marking points. select the desired elements. You can even select a single graphic element. a network. the cursor keys. while holding down the Shift key. holding down the Shift key. Select an element with the mouse pointer and then. while holding down the Shift key. . Press the DEL key or select Delete from the menu bar or the context menu. Select the network marking point of an existing network behind which the new network is to be inserted.Programming in LD Inserting an additional network A new network can be inserted in front of or behind an existing network. Start LD network button Deleting networks Select the network to be deleted. The selected network will be deleted... the context menu or via the appropriate toolbar button. Add the new network via Insert © Start LD Network. 07/01 AWB2700-1305-GB 139 . The jump label name will appear in the network header of the selected network. in this case “Label_2”. 140 07/01 AWB2700-1305-GB .POU Editor Selecting networks as jump destination A network can be selected as a jump destination for a jump operation programmed in another network. Editing a logical sequence An LD start network consists of a contact and a coil. Click the toolbar button: Insert jump label button The Edit Network Jump Label dialog will open. in the cell and confirm by clicking OK. Position the cursor in the network you wish to select as a jump destination. You can insert and edit logic sequences in this network. Figure 53: Editing the LD network jump label Enter the name of the jump label. The OR operator can also be taken from the language element toolbar.Programming in LD Inserting AND sequences Select the point on the horizontal line in which the new contact is to be inserted. Press the space bar and a series contact will be inserted. A new contact will be added parallel to the selected area. The AND operator can also be taken from the language element toolbar. Inserting OR sequences Select the contact or the network area to which a parallel contact should be added. 07/01 AWB2700-1305-GB 141 . You will obtain the same result in this way.POU Editor Inserting conditional coils Select the horizontal line directly before or after the existing output symbol. 142 07/01 AWB2700-1305-GB . You can also select the horizontal line directly in front of Output_2 and insert the conditional operation behind it. Select the required conditional coil from the language element toolbar The corresponding graphical symbol will appear above (marking in front of the output symbol) or below (marking behind the output symbol) the existing output symbol. Programming in LD Converting the sequence type You can change the logic sequence of a mixed AND/ OR sequence by adding or deleting vertical connection lines between the parallel branches. 1. the logic sequence has changed: 07/01 AWB2700-1305-GB 143 . Release the Ctrl key. Press the space bar The selected points will be connected. Use the mouse or the cursor keys to select the first point between the parallel branches you wish to connect. Press the Ctrl key and hold it down while selecting the second point. Adding vertical connection lines In order to add a vertical line the two lines to be connected must be selected. Press the DEL key or select Delete from the menu bar or the context menu. The selected line will be deleted and the OR before AND sequence becomes an AND before OR sequence: Negating jumps.POU Editor 2. Press the space bar The selected element will be negated. contacts or coils Only individual selected elements can be negated. Select the element to be negated. Deleting vertical connection lines Select the vertical line you wish to delete. 07/01 AWB2700-1305-GB 144 . An unconditional operation will remain in the network. If you wish to delete several elements in mixed AND/OR sequences.e. At least one contact must be retained in networks with coils.Programming in LD You can also carry out this action via the toolbar button. Negate button Deleting elements You can delete a single graphical element or a group of adjacent elements. 07/01 AWB2700-1305-GB 145 . In networks with conditional jump operations the entire logic sequence can be deleted. i. at least one valid network start must be left after deleting. the POU will only allow element groupings resulting in a logical network content. The Name Element dialog box will open. Insert Declared Variable button 146 07/01 AWB2700-1305-GB .. values. i. Inputs can also be assigned constants.POU Editor Naming elements The contacts and coils must be completed by entering variable names. Parameter passing in the program requires the assignment of variable names to the connections of functions and function blocks. Select the element for which you wish to enter an element name. menu item. the toolbar button or via the context menu. Figure 54: Naming LD Elements Or select the variable from a list of all declared variables which you can open from the Insert © Variables.e. 0001 undef_opd >>undef_opd Press the Enter key.. Figure 55: Naming an LD element as jump destination Enter the name of the jump destination and confirm by clicking OK or the Enter key. Position the cursor in the network. Choose Network Comment.Programming in LD Enter names with Jump operations A jump symbol must be completed by defining the jump destination. Press the Enter key. Select the jump symbol for which you wish to define a jump destination... Entering network comments Each network can be assigned a comment of several lines in length. from the context menu or click the corresponding toolbar button: 07/01 AWB2700-1305-GB Network Comment button 147 . The rules for creating function blocks in LD are the same as those for creating program POUs. Figure 56: Network Comment – LD Enter the comments and confirm by clicking OK.POU Editor The Network Comment window will open. you must have selected Function Block as POU type and must have clicked the LD Editor button. The comments entered will appear in the network header beneath the network number. 148 07/01 AWB2700-1305-GB . Creating function blocks in LD Requirement: The POU Editor must be open. functions and function blocks are shown as rectangular block symbols with connection lines for inputs on the left side and connection lines for outputs on the right. Several operators and functions can be linked in any sequence within a network. Programming in FBD Overview The FBD programming language has it origins in the field of electrical signal processing. A function block is treated as an individual network to which no other program components can be added 07/01 AWB2700-1305-GB 149 . The rules for creating functions in LD are the same as those for creating program POUs. save and close your POU is described on Page 125 . The individual objects (language elements) are represented with the help of graphical symbols. The ends of connection lines are to be assigned parameters (variables/constants) or connected with other inputs or outputs. FBD recognises the following objects: Connections Execution control elements (jumps) Function block and function calls Operators Operators. Structuring of the POU is carried out via these graphics. They are initially assigned with “undef_opd”. the instruction section is divided into networks as in LD. How to check.Programming in FBD Creating functions in LD Requirement: The POU Editor must be open. In FBD. you must have selected Function and must have clicked the LD Editor button. When writing a user-defined function block.POU Editor except for pre-switching conditions in the form of contact elements. Network label Every network which is to be a jump destination for another network must begin with an alphanumeric identifier or an unsigned decimal integer which serves as a jump label. In contrast to a function. Network comments Network comments can be entered between network labels and network graphics. FBD networks consist of the following graphical elements described below: Network labels. Network comment and Network graphics. One comment per network is allowed but it can be extended to several lines by pressing the Enter key. A function can only have one output with several possible inputs. it can contain several inputs and outputs. This label must not be confused with the consecutive numbering with which the POU Editor automatically begins each network. This order can be changed via the Variables Editor. 150 07/01 AWB2700-1305-GB . the inputs and outputs are shown on the function block symbol in the order in which they were declared in the Variable Editor of the function block concerned. Programming in FBD Network graphics Network graphics consist of graphical elements (block symbols) with input connection lines on the left and output connection lines on the right side. Declare the variables in the Variables Editor common to the programming languages. Outputs from one block. You will find a detailed description of the variables declaration on Page 106. you must take note of the restrictions which are explained in the section Section “Changing programming language” on Page 175. All programming steps in the FBD Editor are available in the FBD language element toolbar. 151 . cannot be connected together because the source of the data to be passed on would not be clear. You can therefore begin writing a program in FBD and then display or continue writing it in IL or LD. Using the FBD Editor 07/01 AWB2700-1305-GB Once this button is clicked. the language elements toolbar will provide FBD operators. To create a POU in FBD activate the FBD POU Editor in the instruction section via the corresponding toolbar button. Programs can always be written in IL. Data flows over these connection lines and then over the further-extending horizontal or vertical connection lines to graphical elements where it is processed and led on to the output. While doing this. LD and FBD programming languages interchangeably. as well as those of different blocks. Data flow can only occur from an output or from a variable/constant to one or several inputs of a subsequent block. In addition to the language element toolbar buttons. i. The basic structure of a POU. the network sequence and structure of the individual networks are described below. Identifying networks as jump destinations as well as entering variable names and comments are discussed in later sections.POU Editor Figure 57: FBD language element buttons A number of language elements such as the network division of the POU. however. use the keyboard for certain programming entry tasks. You must still. the representation of functions or function blocks is the same in both LD and FBD. 152 07/01 AWB2700-1305-GB . you can also use the context menu (press the right mouse button) to speed up the completion of different stages of the POU. These must then be replaced with the required variable names or jump destinations.e. Variable names and jump destinations are initially assigned the designation “undef_opd” in the graphical view of the POU. The differences between LD and FBD are in the programming of logical operations with binary operands. the element for entering and editing the jump destination will appear in the new network. Start FBD network Choose Insert © Start FBD network or click on the toolbar button: The first network will appear in the instruction section with a contact and an assignment symbol. 07/01 AWB2700-1305-GB 153 . First select the Program POU type and declare the variable as described on Page 106. Execution control (jumps) Click the Unconditional Jump to a Network Label button. Then click the toolbar button for FBD programming and move to the instruction section.Programming in FBD Creating a new POU in FBD Requirement: The POU Editor must be open. Unconditional Jump button The jump symbol. Select the function block from a list of all declared variables which you can open from the Insert © Variable. Inserting FB variables Function blocks are treated as individual networks. Assign parameters with the appropriate variable identifiers and connections. Position the cursor in the required place in the instruction section of your FBD POU. 154 07/01 AWB2700-1305-GB ... Function block call button Select the required function block and click on OK. The graphical symbol for the function block will appear with all operands as a new network if the FB Instances with Prototype option is kept active.POU Editor Displaying and inserting operators All operators are made available via the Sucosoft S40 language element toolbar buttons. menu item or via the context menu. Inserting functions Choose Insert © Start FBD Network or click the corresponding toolbar button when the function is designated for a separate. 155 . Select the complete connection line behind which a function is to be inserted. If you wish to insert the function into an existing network observe the following procedure. however. only one function block call per network. new network. 07/01 AWB2700-1305-GB Open the Function dialog box with the appropriate toolbar button and select the function required.Programming in FBD You can reproduce any number of graphic elements in a network. in which manufacturer and user-defined functions or functions from a library are organised under the respective tabs. are grouped in folders and will be displayed by opening the respective folder.POU Editor Function block call button The Function dialog box will open. Figure 58: Insert function FBD 156 07/01 AWB2700-1305-GB . Manufacturer-defined functions for the currently selected controller. arranged according to functionality. The graphical symbol for the function will be inserted behind the selected location.Programming in FBD Select the required function or enter it directly into the entry field and click on OK. An error message will inform you if you are trying to enter a function with incorrect syntax. 07/01 AWB2700-1305-GB 157 . Deleting function blocks or functions Select the function block or function and press the DEL key or select Delete in the menu bar or context menu. The selected graphical symbol will be deleted. Select an element with the mouse pointer and then. or the tab key. select the other outermost element. select the desired elements. or the entire POU. a network.POU Editor Editing POUs in FBD In order to modify a POU you must first select the appropriate part. also in conjunction with the Shift key. while holding down the Shift key. several adjacent elements. holding down the Shift key. You can either select a single graphic element. Drag a frame around the desired section of the network with the mouse pointer while holding down the left mouse button. 158 07/01 AWB2700-1305-GB . to select the elements required. Selecting POU elements You can use the mouse pointer. the cursor keys. To select several adjacent elements in a network you have various options: Select one of the outermost elements with the mouse pointer and. To select an entire network use the mouse pointer to click the square marking point located on the left edge of the screen directly below the network. . Then. Select the entire POU via Edit © Select All. Inserting networks A new network can be inserted in front of or behind an existing network.Programming in FBD To select several networks. however.) an unconditional jump and an unconditional return. Select the network marking point behind which the new network is to be inserted. The selected network will be deleted. click the marking points for the other appropriate networks above or below the first one selected. first click on one of the marking points. The following options are available: FBD network start. and via Operators. Deleting networks Select the network to be deleted. variables (only function blocks.. while holding down the Shift key. 07/01 AWB2700-1305-GB 159 . Select the desired network content from the Insert menu or from the context menu. Press the DEL key or select Delete from the menu bar or the context menu. The jump label name will appear in the network header of the selected network. 160 07/01 AWB2700-1305-GB . Position the cursor in the network you wish to select as a jump destination. Choose Insert © Edit Network Jump Label or click the corresponding toolbar button: Insert jump label button The Edit Network Jump Label dialog will open: Figure 59: Editing the FBD network jump label Enter the name of the jump label. in this case “Label_2”. in the cell and confirm by clicking OK.POU Editor Selecting networks as jump destination A network can be selected as a jump destination for a jump operation programmed in another network. 1. When combining functions. an additional graphical symbol can only be inserted in front of the first function input. a logical AND operator. 0001 SUB Measuring Value_1 Measuring Value_2 ispositive Result := 07/01 AWB2700-1305-GB 161 .Programming in FBD Editing networks You can insert graphical symbols such as operators and functions into an existing network. . You can thereby program several operators and functions in any sequence in a network. even if the data types are different. When a network is edited in FBD. you can nest any number of operators and functions. Inserting graphical symbols In order to insert a graphical symbol. Inserting operators Select the connection line behind which you wish to insert a new operator.g. The new graphical symbol is inserted to the right of the selected position. the connection line in front of or behind an existing symbol must be selected. e. The data types are not checked until the syntax check. Insert AND function 0001 SUB Measuring Value_1 Measuring Value_2 ispositive AND Result undef_opd := Other sequences are available (next to the AND button) by the pressing the cursor key.POU Editor Clicking the Insert AND function button in the language element toolbar will immediately transfer the sequence to the selected point. 162 07/01 AWB2700-1305-GB . Inserting functions See Section “Inserting functions” on Page 155. Figure 60: List of logical sequences 2. 07/01 AWB2700-1305-GB 163 .Programming in FBD Deleting graphical symbols Selected graphical symbols can be deleted from a network. When a selected sequence symbol is deleted. The selected graphical symbol will be deleted. only the graphical symbols at the topmost input upstream and the graphical symbols downstream are kept. Press the DEL key or select Delete from the menu bar or the context menu. Select the graphical symbol to be deleted. Add Input To Function button An additional input is inserted after the selected input.POU Editor Inserting inputs The number of inputs can only be increased for some logic sequence symbols and the arithmetic operations ADD and MUL. 07/01 AWB2700-1305-GB 164 . select either the existing bottom input or the graphical symbol itself. In order to insert an input at the bottom. Select the input behind which you wish to insert a new input. Click the Add Input To Function button. You can also select and delete several adjacent inputs. The selected input will be deleted.Programming in FBD Deleting inputs You can reduce the number of input variables for logic sequences and for arithmetic operations to two input variables in the following way. 07/01 AWB2700-1305-GB 165 . Press the DEL key or select Delete from the menu bar or the context menu. Note: the entire symbol will be deleted if you reduce the number of inputs to one. Select the input to be deleted. JMPC. Logic group: for Boolean outputs: S. are listed below. STN can also be used with bit patterns. RETC and RETCN 166 07/01 AWB2700-1305-GB . R Branches group: for Boolean outputs: JMPC. R. STN. JMPCN.POU Editor Inserting outputs An output can be inserted above or below an existing output. The usable operators.JMPCN. RETC and RETCN are available for Boolean outputs and only ST for the other data types.The operators ST. Select the operator from the language element toolbar. Inserting an output above all existing outputs Select the connection line in front of the output symbol. organised by group. S. 1. 07/01 AWB2700-1305-GB 167 . The appropriate graphical symbol will be inserted above existing outputs.Programming in FBD Assignments group: for Boolean outputs: ST for other data types: ST for bit patterns: STN (by negating an ST instruction via the One's Complement function or the space bar) Select the required operator. 2. Inserting outputs behind an existing output Select the output behind which you wish to insert the new output. POU Editor Select the operators as described above. The appropriate graphical symbol will appear below the existing output. Select the required operator. 168 07/01 AWB2700-1305-GB . The selected output range will be deleted. At least one output symbol must be left when outputs are deleted.Programming in FBD Deleting outputs Individual outputs or several adjacent outputs can be deleted. Select the output range to be deleted. 07/01 AWB2700-1305-GB 169 . Press the DEL key or select Delete from the menu bar or the context menu. Select the input to be negated.POU Editor Negating inputs You can negate inputs assigned to Boolean data types or bit pattern data types. 170 07/01 AWB2700-1305-GB . You can also carry out this action via the One's Complement button in the language element toolbar. The selected input will be negated. Press the space bar. The selected output will be negated. This does not apply to “S” and “R” operators. Press the space bar.Programming in FBD Negating outputs You can negate outputs assigned to binary or bit pattern data types. Select the output to be negated. You can also carry out this action via the One's Complement button in the language element toolbar. 07/01 AWB2700-1305-GB 171 . Inputs can also be assigned constants.POU Editor Naming elements The contacts and outputs must be completed by entering the variable names.e. via the toolbar button or via the context menu. values. 1.. or select the function block from a list of all declared variables which you can open via Insert ? Variable. The Name Element dialog box will open. Press the Enter key. 172 .. Figure 61: Name Element. Confirm the entry with the OK button or the Enter key. FBD Enter the variable name directly or via the Clipboard or enter the value of a constant and confirm with the OK button. i. The remaining procedure is the same as described in the section “Name input”. 2. Parameter passing in the program requires the assignment of variable names to the connections of functions and function blocks.. Naming inputs Select the input for which you wish to enter a variable name or a constant. Naming outputs 07/01 AWB2700-1305-GB Select the output for which you wish to enter a variable name. Figure 62: Name element as jump destination. The operation is also available in the context menu.Programming in FBD Entering names with Jump operations A jump symbol must be completed by defining the jump destination. FBD Enter the name of the jump destination and confirm with the OK button. Press the Enter key. The Name Element dialog box will open. Select the jump symbol for which you wish to define a jump destination. 07/01 AWB2700-1305-GB 173 . or click the corresponding toolbar button.. Position the cursor in the network. Figure 63: Edit FBD Network comment Enter the comment (you can switch lines by pressing the Enter key) and confirm with the OK button. Network Comment button The Edit Network Comment window will open. 174 07/01 AWB2700-1305-GB .. The comments entered will appear in the network header beneath the network number. Choose Network Comment.POU Editor Entering network comments Each network can be assigned a comment of several lines in length. IL. they must be terminated with an IL sequence or an ST statement. however. LD and FBD programming languages are interchangeable if the POU is syntactically correct. an appropriate error message will be generated. Changing programming language In general. 07/01 AWB2700-1305-GB Figure 64: Language selection button 175 . If not. as well as being syntactically correct. The programming language can be changed in the following way: Choose Options © Programming Language © IL/ FBD/LD/ST or Select the desired programming language via the toolbar button in the standard toolbar. ST language elements and elements of the LD and FBD graphical programming languages cannot be mixed.Changing programming language How to check. save and close your POU is described on Page 125. IL and ST language elements can also be mixed. Figure 65: POU section which cannot be graphically displayed The following examples are offered to help you solve any problems arising from conversion restrictions. Conditional function block call A CALC or CALCN function block call that was programmed in IL cannot be displayed graphically.POU Editor The instruction section for the POU will appear in the selected programming language. Some instruction sequences of a program created in IL cannot be shown graphically. 176 07/01 AWB2700-1305-GB . a network with the message “Network cannot be graphically displayed” will be issued for each program section which cannot be converted. even when the Sucosoft syntax is correct. The instructions and statements concerned will be displayed in IL. When converting programs of this kind into one of the graphical languages. RESET := RES_button. PV := 120 | full := Q. RESET := RES_button. Solution: Programming a conditional jump of the CAL function block call when the variable Palletizing is “0” results in an IL program that can be displayed graphically.Changing programming language Example: (* Conditional call of the CTU counter function block when the “palletizing” production step is running *) LD Palettizing CALC Counter_3( CU := Lightbarrier. := CV ) After changing to LD or FBD the program section appears as follows (it cannot be edited here). PV := 120 | full := Q. ) Label_4: 07/01 AWB2700-1305-GB 177 . LDN Palletizing JMPC Label_4 CAL Counter_3( CU := Lightbarrier. POU Editor After changing to FBD the program section appears as follows: Intermediate storage within an IL sequence Intermediate storage within a sequence is possible in IL programming. only displayable in IL *) LD var1 OR ( var2 AND var3 ST AND_result (* Intermediate storage not displayable in LD/ FBD *) ) OR var4 ST OR_result 178 07/01 AWB2700-1305-GB . Example: (* AND-before-OR-sequence. LD/FBD compatible. LD/FBD compatible. Part2 *) LD var1 OR AND_result OR var4 ST OR_result After changing to FBD the program section appears as follows: 07/01 AWB2700-1305-GB 179 .Changing programming language After changing to LD or FBD the program section appears as follows: Solution: (* AND-before-OR-sequence. Part1 *) LD var2 AND var3 ST AND_result (* AND-before-OR-sequence. POU Editor Line-oriented comments Line comments are possible in IL at any point in the program. In graphical programming languages, comments can only be entered in the network header. When a program written in IL is displayed in LD or FBD, all line comments of an IL sequence will appear in the network header.These comments can then no longer be re-assigned to the respective IL lines if you change back into IL format, and will be placed at the beginning of the IL sequence. Example: (* Counting the produced parts *) CAL Counter_4( (* Instance of the CTD function block*) CD := Part, (* Pulses from a light barrier *) Load := SetKey, PV := 50 (* Quantity in a packing unit *) | empty:= Q (* Counter elapsed, i.e. Packing full *):= CV ) 07/01 AWB2700-1305-GB After changing to FBD the program section appears as follows: 180 Changing programming language After returning to IL the program looks as follows: 07/01 AWB2700-1305-GB 181 POU Editor POU Info The POU Info... function in the Editor provides useful help when using your POUs. You can edit important POU data such as destination PLC type, author, date created, comments on the POU, etc. in the left portion of the dialog box displayed below. The edited information on a POU is displayed when you select the POU in the Navigator and select the “About” option in the Edit menu or you can call it up via the context menu. With an open POU choose File © POU Info... and click the Prototype button in the dialog box that opens. The following figure will appear: Figure 66: POU Info 182 07/01 AWB2700-1305-GB The prototype is shown in the right-hand part of this figure, i.e. the interface of an FB or function type POU. Converting POU types Converting POU types Use this option when you want to use the contents of an existing POU in a new POU of a different type (program, function, or function block) or when you have selected the wrong POU type when creating the POU with File © New POU. Requirement: The POU whose type you wish to change is open in the POU Editor. When the POU type is converted, there are some declarations that cannot be converted. This applies to the scopes that are not available with the new POU type (e.g. input or output variables in the Program POU). The instruction section is nevertheless accepted unchanged. Choose File © Convert POU Type. Select the desired POU type in the list box that opens showing the current POU type with a check mark and the change will be carried out. The new POU type will be displayed in the title line of the POU Editor. Figure 67: Convert POU type Switch the Variables Editor to Free mode via Options © Variables Editor © Free Mode in order to have the entire declaration section with all variable types in view. Check both the instruction and the declaration sections of your POU. Save the POU. 07/01 AWB2700-1305-GB 183 POU Editor You can also use this option to convert the return value of a function POU currently in process to another return value. Choose File © Convert POU Type. In the list box that opens, where the Function... POU type is marked with a tick, select Convert Function Type... to open the Function Type window where you can select the new function type and confirm the selection by clicking the Accept button.The return value will be converted and the new value will then be displayed in the title bar of the POU Editor. Figure 68: Convert function type 184 07/01 AWB2700-1305-GB Opening/editing global types Opening/editing global types You can easily make declarations of complex types, such as structures, that you wish to use for several POUs within the overall project, by declaring them in a separate editor that you can call up via the menu bar by choosing File © Open Global Types. You can make type declarations by combining derived and elementary data types within the keywords TYPE...END_ TYPE (See “Derived Data Types” in AWB2700-1306-GB). Remember that although this kind of type declaration is valid for all POU types, it is only valid for the selected PLC! Figure 69: Global user-defined data types 07/01 AWB2700-1305-GB Unlike derived data types that only have scope within the POU concerned, the data types formed here are global, i.e. their scope is within the entire project. They can thus be used, for example, as data types 185 POU Editor for input or output variables for function blocks. As a further example, complex data can be transferred by using a structure variable at a function block input for processing. Cross-reference file This shows a list of all declared variables for the current POU including the POU lines in which they are used. It also provides the physical address or location of directly represented variables. The POU cross-reference file is created via File © Cross-Reference File. The updated cross-reference file is then shown in the Output window. Doubleclicking the line that contains the required variable in the cross-reference file will cause the POU Editor to move to the position in the instruction section where the variable was first used. Menu item Print in the context menu of the Output window can be used to document the cross-reference file. Figure 70: POU cross-reference file 186 07/01 AWB2700-1305-GB A POU cross-reference file list for all POUs listed in the current make file can be created via File © CrossReference File in the NAVIGATOR. This kind of central cross-reference file list shows, for example, the global/external interrelationships between program and function block POUs. 3 Topology Configurator (Offline) Basic principles Structure The Topology Configurator supports two operating modes: Offline mode and Online mode. In Offline mode you can create your hardware system and enter the information required for the topology. The topology configuration is then compiled with the program it belongs to and loaded into the PLC. Online mode is used for commissioning the system. You can use the Test & Commissioning tool to carry out extensive diagnostics and test functions, such as wiring tests or network diagnostics. Online mode is described in further detail in chapter “Test & Commissioning”. Offline mode The Topology Configurator allows you to create the hardware configuration of your automation system. The CPU is the hardware component that forms the basis of this configuration. Starting from the CPU unit (master PLC), the local and remote expansions of the automation system are defined and assigned parameters in the graphical user interface of the Configurator. The graphical Topology Configurator supports both Suconet K and AS-Interface®topologies. PROFIBUS-DP, PROFIBUS-FMS and INTERBUS topologies are configured with their own configurators: 07/01 AWB2700-1305-GB 187 Topology Configurator (Offline) Table 3: Overview of the configurators Configurator in Offline mode Configurator in Online mode (Test & Commissioning) Suconet K AS-Interface® PROFIBUS-DP PROFIBUS-FMS INTERBUS Sucosoft S40 + CFG-DP Sucosoft S40 + CFG-Suconet-P Sucosoft S40 + CFG-CMD CFG-DP CFG-Suconet-P CFG-CMD Sucosoft S40 Plausibility checks The range of possible functions and the availability of cards and modules in the selection windows is determined by means of plausibility checks within the Topology Configurator. In this way the Configurator only offers the options that are permissible within the context defined. Tasks and considerations like complex current calculations, checks on I/O utilisation, the maximum number of connectable network lines, the permissible location of cards/modules, the memory requirement, the maximum number of LEs or cards/modules as well as syntax checks are handled by the Configurator automatically, thus ensuring that all configurations that are created are actually plausible. 188 07/01 AWB2700-1305-GB These kinds of overlaps should therefore be avoided if you have mixed the configurations of PS416-OUT-400 and PS416-OUT-410 output cards! Starting the Topology Configurator Start the Topology Configurator via The NAVIGATOR menu: Tools © Topology Configurator or click the appropriate icon in the Sucosoft toolbar of the NAVIGATOR: Topology Configurator 07/01 AWB2700-1305-GB 189 . However the Topology Configurator cannot detect if you assign a PS416-OUT-410 (8 outputs) with a possible odd numbered byte address that overlaps the even byte address of a PS416-OUT400.Basic principles The Topology Configurator will propose a suitable even numbered byte address for the highest output byte address of all configured PS416-OUT-400/-410 output cards. These PLCs are stations on Suconet K network lines that are managed by the master. 190 07/01 AWB2700-1305-GB .Topology Configurator (Offline) Network types Suconet K network PLCs used in a networked system can be programmed via a point-to-point connection established between the programming unit and the PLC concerned. which is connected to the programming unit via a normal programmer interface. Only one cable is thus required for programming. maintenance and communication. With Sucosoft it is also possible to program and commission subordinate PLCs in the first network level via a so-called “master” PLC. and several PLCs can be accessed from one central programming system. The data is exchanged via Suconet K in master-slave mode. and ensures a defined reaction time. The AS-Interface bus also features a user-friendly and rugged connection system. AS-Interface®slaves are defined by: the IO code. This “singlemaster system” operates a typical cyclical polling of slaves. The ASInterface®Association also defines the so-called profiles which lay down the specifications for particular groups of similar network stations. There is therefore only one master for every AS-Interface®subnetwork. ID code The ID code identifies the device type and thus defines the meaning of the data and parameter bits. 191 07/01 AWB2700-1305-GB . 0 to F. The IO code is a parameter value between 0 and F. IO code The number and division of inputs and outputs are specified by the IO code. Its open system capabilities are promoted and protected by the AS-Interface®Association. the ID code. which addresses the slaves in succession and carries out read or write data exchanges with them. which are the first 15 components of the Type selection window. a maximum of four initial parameters. i. Up to four inputs and outputs can be selected. The ID code is for the generic AS-Interface® components. It is used to distinguish slaves with the same IO code. and which can be selected with hex.e. This is a single master system.Basic principles AS-Interface®network The Actuator-Sensor Interface®is an open-standard and rugged fieldbus system which extends the networkability of automation devices down to the “field level”. the lowest process level. “DP” stands for decentralised periphery and is based on the RS 485 protocol for data transmission. the initial parameters can be used to choose or enable/disable certain device parameters such as the frequency for proximity switches. the value range for current inputs and outputs. 192 07/01 AWB2700-1305-GB . It covers layers 1 and 2 of the ISO/OSI reference model for networks. The PROFIBUS-DP network is configured in Sucosoft with the Topology Configurator and the PROFIBUS-DP CFG-DP Configurator (see online manual AWB-C2700-1336GB). the device is uniquely identified by its IO code and ID code.Topology Configurator (Offline) When configuring non-Moeller devices (generic AS-Interface®components). PROFIBUS-DP network The PROFIBUS-DP fieldbus is one of three different versions. Depending on the device type or profile. PROFIBUS was developed for high-speed communication in applications for industrial automation and building services. and the characteristics of make and break contacts for digital inputs and outputs. all of which are compliant with EN 50170. dcf” in the “Source” folder of the current project. You must select one of the available CPU types listed. 07/01 AWB2700-1305-GB Print Configuration: Opens the standard Sucosoft print dialog. Figure 71: Creating a new configuration The PLC Type selection field shows all the installed CPU types available. Open Configuration: Loads an existing topology configuration into the configurator. Save Configuration: Saves the edited configuration in a configuration file with the extension “. 193 . New Configuration: Creates a new configuration and opens the New Configuration dialog box. You must specify the file name for the new configuration and the type of CPU to be configured.Operations Operations Toolbar functions The Topology Configurator has a toolbar with all the functions required for creating a configuration. Topology Configurator (Offline) Graphical printing is not implemented in this version. however. Local Expansion:This adds a local expansion to the selected PLC or network station. It is possible. to print out the configuration in list form.e. The device designation and the relevant technical data are displayed in the field at the bottom of the dialog. from where it can be loaded into Microsoft®PAINT and printed out. directly on the device. A selection list will appear with all possible expansion devices for the current configuration. The selected components will then be shown graphically in the configuration. i. Figure 72: Local Expansion dialog 194 07/01 AWB2700-1305-GB The Preselection drop-down list box allows you to divide the available expansions into groups to simplify the selection of the possible components. . The displayed topology can be printed out as a graphic by pressing ALT+PRINT SCREEN with the Configurator window active in order to copy the graphic to the Clipboard. A selection list will appear with all modules and devices for the current configuration.Operations Remote Expansion (in the Suconet K network): Expands a network module or a network-compatible device via Suconet K. 07/01 AWB2700-1305-GB 195 . The device designation and the relevant technical data are displayed in the field at the bottom of the dialog. Figure 73: Remote Expansion dialog box The Preselection drop-down list box allows you to divide the available expansions into groups to simplify the selection of the possible components. The selected components will then be shown graphically in the configuration. For this select the AS-Interface®master module. Open the Remote Expansion window by clicking the Remote Expansion button or choose Edit © Remote Expansion. or any device in the AS-Interface®line behind which you wish to add a new AS-Interface®network component. such as LE4-505-BS1. A list of possible expansion modules is shown: 196 07/01 AWB2700-1305-GB Figure 74: Remote expansion in the AS-Interface® network . You can then add remote expansions to the AS-Interface®network.Topology Configurator (Offline) Remote expansion (in the AS-Interface® network):To add a remote expansion to an ASInterface®line. you have to add a master module as a local expansion in the topology configuration or open a configuration already containing an ASInterface®master. When specifying a new device. you are automatically prompted with the next unused address in the Station number pop-up list. If there are unused addresses between two stations. Choose the required device from the Type list box. For generic AS-Interface® components selectable from 0 . these will be assigned first of all. choose All Profiles in the Preselection list. The names of the generic types indicate the number of inputs and output.g. e. The code 0 to F indicates the number of inputs and outputs. 07/01 AWB2700-1305-GB 197 . which can be used to describe any AS-Interface® device. Change this value if you wish to set another unused address. The Properties field shows the particular features of the selected components: Manufacturer:Manufacturer of the selected AS-Interface® component IO code:Each type is assigned a special IO code which appears automatically.F. To get a list of all so-called generic components. ID code: Identification code of a station type. “2 INP/2 OUT”. Choose a profile in the Preselection list if you want to limit your selection to devices with a particular profile.Operations Select an AS-Interface profile which corresponds to a device group with the required features in the Preselection list. The Type list box then only shows devices of the specified profile. “2” or “3” for the selected device type. Parameters:Assigns the device parameters (if appropriate). The position of the “X” determines the address of the respective input or output in the PLC program.. Confirm your entries by clicking OK. Save the topology configuration by choosing Configuration ©Save As. you must specify the ID code listed in the manufacturer’s documentation. 198 07/01 AWB2700-1305-GB . The values are set in the Parameters dialog. “1”. The file is saved with the file name extension “.. These dialogs will have a different appearance depending on the device type (see the following examples).Topology Configurator (Offline) Input/outputs:Shows the number of inputs and outputs as well as their position “0”. Delete:Deletes a selected element.DCF” as the new permanent configuration in the Source folder for the current project. Specify a name for the topology configuration in the File Name field. For generic AS-Interface devices.. Operations Examples of Parameters dialogs Figure 75: Parameters dialog for PS4-341-MM1 07/01 AWB2700-1305-GB Figure 76: Parameters dialog for PS416-AIO-400 analog I/O card 199 . 200 07/01 AWB2700-1305-GB .. The configuration will appear in the graphic window of the Configurator.Topology Configurator (Offline) Figure 77: Parameters dialog for AS-Interface Procedure for assigning parameters: Create a configuration or load an existing configuration file using the Open Configuration button or by choosing File © Open.... Click the Parameters button or choose Edit © Parameters. Save the new settings.. Left-click the device or card/module for which you wish to change the parameters.. Set the required parameters. Figure 78: Compressed display of a topology configuration 07/01 AWB2700-1305-GB 201 .Operations Change Display: Toggles between graphical and compressed display. Changing views does not affect the configuration functions available. the device names are shown abbreviated and the user descriptions of the components are not shown. In compressed mode. receive data and diagnostics data from stations. Outputs are physical outputs and send data. Clicking the button once more hides the information again.Topology Configurator (Offline) Display I/O utilisation:This displays the utilisation of the communication memory in the status line. The figure shown is a typical value for trouble-free communication. Clicking the button once more hides the information again. I O Inputs Outputs I+O Total number of inputs and outputs Inputs refer here to physical inputs. 202 07/01 AWB2700-1305-GB . Display Bus Cycle Time:This displays in the status line the theoretical bus cycle time for the selected network line. The information shown includes the number of assigned inputs and outputs and the total number of inputs and outputs available. The information shown applies to the currently selected network line. if you add a device to an empty slot. 07/01 AWB2700-1305-GB With the PS416 modular controller.. 203 . Open the Local Expansion window by clicking the Local Expansion button or choose Edit © Local Expansion. The new device is inserted to the right of the selected device. Adding new local devices Select the device directly to the left of the position where you want to insert the new device.. Changing parameter data Left-click the device or device/module for which you wish to change the parameters.Operations Changing a topology configuration Requirement: For this a configuration file must already exist. there is no need for the Configurator to update existing device numbers. whilst all other devices to the right are moved one position further to the right. Select the Parameters button or Edit © Parameters.. Change the parameters as required. Load the existing configuration file using the Open Configuration button or by choosing Configuration© Open.. A list of possible expansion modules is shown. The configuration will appear in the graphic window of the Configurator. The Configurator automatically updates the module numbers shown above the device concerned... Proceed as follows to change a topology configuration... Save the new settings. Select the required device from the list and click OK to confirm.. . Adding new remote devices Add a new remote device to the AS-Interface® network as described in Section “Remote expansion (in the AS-Interface®network):To add a remote expansion to an AS-Interface®line. Select the device directly to the left of the position where you want to insert the new device.Topology Configurator (Offline) Deleting local devices Select a device to be deleted. The new station is inserted below the selected station. If the device to be deleted is connected to other subordinate elements such as slaves or local expansion modules. With PS416 modular PLCs empty slots will be shown instead of the deleted cards. they are deleted together with the local device. Open the Remote Expansion window by clicking the Remote Expansion button or choose Edit © Remote Expansion.” on Page 196. These can be removed also by clicking the Delete button once more. you have to add a master module as a local expansion in the topology configuration or open a configuration already containing an AS-Interface® master.. whilst all other devices below are moved one position further downwards. The Configurator automatically updates the device numbers of all affected devices. 204 07/01 AWB2700-1305-GB . A warning prompt warns you that subordinate elements will be deleted and allows you to cancel deleting if required. You can then add remote expansions to the AS-Interface®network. Click the Delete button or choose Edit © Delete. A list of possible expansion modules is shown. This will delete the element. Select the required device from the list and click OK to confirm.. Replace component You can also change the type of master in an existing configuration by replacing the device concerned.Operations Deleting a remote device Select the device to be deleted. Set the master parameters if necessary. Confirm this prompt. Select the master (first device in the topology configuration). A message will appear to notify you that the set parameters are not accepted. Click the Delete button or choose Edit © Delete. Select the required device and click OK to confirm. Choose Edit © Replace. Confirm or cancel the deletion as required. This will open a selection window with a list of possible masters. A remote device is always connected directly to the line. The new master will then be added. A warning prompt will warn you that deleting the device will also delete all local expansion devices assigned to it. 07/01 AWB2700-1305-GB 205 . 206 07/01 AWB2700-1305-GB . This topology configuration is therefore the overall configuration for the entire hardware system.Topology Configurator (Offline) Topology configuration with Suconet K Topology configuration A hardware system for a special application can be made up of different network lines and stations connected to them. and may consist of several individual device configurations. An example of a displayed device configuration is shown in Fig. 83 on Page 228) defined in the topology configuration. I/O addressing and communication.e. The topology consists of all the lines and stations (see Fig. i. all the information for the Parameters dialog. It consists of a file containing all the information required by the intelligent station in order to operate its local and remote components. The Sucosoft S40 Topology Configurator cannot display several device configurations at the same time. The file is saved with the file name extension “. Device configuration The device configuration must be created for each intelligent station (station with CPU that can run a user program) separately. 87 on Page 233. In this “Single-master” system one master and up to 30 slaves are possible.DCF” in the project. in the master configuration. a slave configuration must also be created for it. Suconet K automatically selects the appropriate telegram length for these slaves and addresses the data ranges addressed in the application. In the slave configuration enter the station and any connected local components. if necessary. with connected local components. Configuring a slave with a CPU (“intelligent slave”) This kind of slave runs its own user program and therefore has its own configuration. The receive and send data lengths (RD/SD) do not have to be set. As well as being specified in the master configuration. all remote components of the master PLC (network slaves). they are later identified by line and station number 0. depending on whether they have their own CPU or not: Configuration of a slave without CPU Only enter this slave. Network slaves are configured differently. Also set the receive and send data lengths (RD/SD) from the point of view of the slave. 07/01 AWB2700-1305-GB 207 .Topology configuration with Suconet K A configuration file defines the following types of stations: the master all local components of the master PLC. Suconet K automatically selects the appropriate telegram length and addresses the data ranges addressed in the application. The master cannot access the I/O data of the “intelligent slave” directly.Topology Configurator (Offline) In the master configuration enter this slave on the line concerned. Only the basic unit is specified in the master configuration and not the local expansions. 208 07/01 AWB2700-1305-GB . This is necessary since the data to be exchanged between master and “intelligent slaves” is communication data. Also set the receive and send data lengths (RD/SD) for this slave from the point of view of the master. Setting send and receive parameters Receive and send data lengths (RD/SD) do not have to be defined in the Topology Configurator for Suconet K communication between master and slaves without their own CPU. For Suconet K communication between master and “intelligent slaves” (slaves with their own CPU). This is carried out in the Parameters dialog for the “intelligent slave” concerned. the number of receive and send data bytes (RD/SD) must be set accordingly in both the master and slave configurations. Topology configuration with Suconet K Define send and receive data in the master configuration as follows: Send data is data that the master sends to the “intelligent slave”. Receive data is data that the master receives from the “intelligent slave”. 07/01 AWB2700-1305-GB 209 . Master RD SD Line 1 Intelligent slave RD SD RD = 5 SD = 2 RD = 2 SD = 5 The data exchange is initiated with the operands “RD” (Receive Data) for reading and “SD” (Send Data) for writing. The number of send data bytes defined in the slave configuration must correspond to the number of receive data bytes defined in the master configuration and vice versa (see diagram). A name up to twelve characters in length can also be assigned to each component. see Fig.0. The three-digit number sequence appearing above each configuration component is the card or module address. a module with the number sequence 1. The number of network lines that can be connected depends on the type of master used.3. This three-digit address corresponds to the first three numbers of the variable address in the PLC program.0. For example. It is automatically generated when the component is added to the configuration. The Configurator shows the entry in the component designation (for example. station number and slot/module number. The master is always assigned line number “0”. so that the master is assigned the number “0” and the first slave the number “1” etc. Station Number: The station numbers of the slaves are assigned in ascending order from the master. 89 on Page 235). 07/01 AWB2700-1305-GB 210 .Topology Configurator (Offline) Addressing the slaves Each configuration component is displayed with a network and module address and the relevant component designation.7. Line Number: The line numbers are automatically assigned by the Topology Configurator and are numbered consecutively in ascending order from left to right.3. the first line being assigned the number “1”.7 is accessed in a PLC program with the variable address %Q1. The address consists of the three elements for line number. 07/01 AWB2700-1305-GB 211 . “intelligent” Suconet K slaves with their operating mode selector switch either in Run or Run M-Reset can be synchronised with the operating status of the master (Run or Halt). For this the Suconet master must be connected and its startup phase must have been completed. Warning! When Remote Control is active. the following special case must be taken into account in the event of a failure and subsequent restoration of the power supply due to the different times for the restart phases (see following table).Topology configuration with Suconet K Module Number: The module numbers are assigned in ascending order from left to right so that the basic unit is assigned the number “0” and the first local expansion module the number “1” etc.slave operation with Remote control All slaves that are configured as “intelligent slaves” in a Suconet K network can be set for Remote Control mode if required. Power supply units are not included in the configuration. In this mode. Master . Master_Run_Status AT %IS0.6:BOOL.0.0...longer Slave restart phase Slave restart phase Slave operating status: Run Master connection: Connected In order to prevent undefined states occurring in the sections of the installation controlled by the slave. End: 212 07/01 AWB2700-1305-GB .0. END_VAR Example instruction: LD Master _Statusbyte EQ 0 JMPCN End .1 :BYTE. ..1..0. .Topology Configurator (Offline) Master operating status Restart phase of a slave in relation to the restart phase of the master.0. Master_Net_Status AT %IS0.1:BOOL. .1.shorter Boot (during restart) “Ready” (transition state after restart) “Run” (automatically after Ready) Slave operating status: Run (when slave restart phase completed) Master connection: Disconnected Slave operating status: Ready Master connection: Connected Slave operating status: Run Master connection: Connected . the running of the slave user program should be made dependent on the secure Run state of the master.0... Example declaration VAR Master _Statusbyte AT %ISB0. The communication status byte of the master can be used to see whether the Suconet K master is connected and in Run status. When used as an active slave. This must be defined in the Topology Configurator on the master and the slave. The activation of an output byte on active slaves has no effect. which is also commonly known as “intelligent slave”. however. When configured as a passive slave. these PLCs run a user program and communicate with the master via receive and send data (RD/SD). IA/QA) information. without a user program. can only be forced on passive slaves. The physical outputs (Q).Topology configuration with Suconet K Special note with PS4-101-DD1 and PS4-111-DR1 The PS4-101-DD1 and PS4-111-DR1 compact PLCs can be run both as active slaves or passive slaves on the Suconet K line. 07/01 AWB2700-1305-GB 213 . these PLCs provide the master with remote I/O (I/Q. you can optimise access to Suconet K data by using the diagnostics bits NKD_1 to NKD_3 of the message byte (see manual “Hardware and Engineering”. only data that was previously used is available for the user program. the data in the communication buffer is not yet refreshed.e. In this way both cycles are started simultaneously. This operating mode is the same for the PS4-200. A completed data exchange is indicated by the diagnostics bits for the duration of one program cycle. PS4-300. AWB2700-1311-GB). the next Suconet K cycle will be missed until the currently running program cycle is completed. The data exchange with the Suconet K slaves is therefore slower than is possible for Suconet K.Topology Configurator (Offline) Special note with PS4-300 “Synchronous” operation of the Suconet K interface (default setting) Use Synchronous mode when you wish to synchronise the user program cycle with the Suconet K cycle. The following two cases must be noted: User program cycle > Suconet K cycle:After one Suconet K cycle has elapsed. User program cycle < Suconet K cycle:If the Suconet K cycle is longer. i. 07/01 AWB2700-1305-GB 214 . If you have selected Synchronous mode. These diagnostic bits are refreshed by the PS4-300 – according to the number of configured Suconet K network lines –and can be queried via the OS system function “PLC_Message”. Use Asynchronous mode if the program cycle and the Suconet K cycle should run independently. for example. NKD_1 = 1: data exchange with the master of line 1 has been completed.Topology configuration with Suconet K If. When using the PS4-300 as Suconet K master with synchronous Suconet K mode. Data exchange is executed as quickly as possible for each station separately. asynchronously. i. 07/01 AWB2700-1305-GB Operation as Suconet K slave If. This can be used as follows for checking: LD NKD_1 PLC_Message JCN . a 1 at NKD_* bit will indicate the following: PS4-300 is master.. the maximum cycle time should not exceed 255 ms. you have configured the PS4-341-MM1 with one Suconet K network line on its on-board SBI. for example. This has the same behaviour as the PS416.e. Depending on whether the PS4-300 is operating as Suconet K master or slave. The receive data from all slaves is in the communications buffer. a PS4-300 running as a Suconet K slave 215 . The send data to the slaves can be overwritten by the user program. has been refreshed and can be read by the user program. this will refresh the NKD_1 bit. the power supply for all the Suconet stations of an installation has failed and has been restored. NKD_1 = 1: data exchange with all slaves on line 1 has been completed.. PS4-300 is slave. The receive data in the communications buffer has been refreshed and can be read. The send data to the master in the communications buffer can be overwritten by the user program. After switching to Run the PLC will therefore set its DDK bit = 1. 216 07/01 AWB2700-1305-GB . configure at least 1 byte of send data and 1 byte of receive data anyway.Topology Configurator (Offline) will consider itself as disconnected from the network if its restart phase is shorter than that of the master. If you do not require any data exchange. In this case the DDK bit signals a temporary fault that is cleared when the Suconet K master is restarted and the connection is completed. Configuration of send and receive data For problem-free Suconet K operation with a PS4-300 (as master and/or slave) you must not set 0 bytes send/receive data. is not absolutely necessary. Slot 4/6/8/. This requires the following PS416 system configuration: Slot 2: Master CPU. For this the function block is used in the master and in the slave CPUs. PS416-CPU 07/01 AWB2700-1305-GB 217 .. Depending on which method you choose.. there are two ways of describing cards: The digital cards can be selected and displayed individually. the function block CPUDataExchange can be used to exchange data between the individual controllers. The digital I/O cards of one rack can be combined together and configured with a symbol.Topology configuration with Suconet K Special note with PS416 Input and output cards As the digital I/O cards of the PS416 modular PLC are not addressed according to their slot location. This method is useful if you wish to ensure that the actual configuration matches the visual display in the Configurator. however. This method.: Slave CPUs. you will later be able to use a group display of all digital I/O or an I/O display for each individual card when using the Force/Display I/O function in the Test and Commissioning tool. Multi-processing Multi-processing is a configuration in which several PS416 controllers are interconnected and exchange data via the local parallel bus. The following important points must be taken into account: When several PS416-CPU-200/300/400 cards are used in one rack. In a configuration with several local CPUs remember that only the master CPU (slot 2) or the first CPU slave (slot 4) fitted in the rack is able to access the I/ O cards. There is an additional restriction for the slave card fitted in slot 4.Topology Configurator (Offline) Data is exchanged via a special 2032 byte memory range. Write or read operations to this data range can be carried out via a function block call. It can only access digital I/ O cards. This must be taken into account in the configuration files for the CPU cards. The PLC fitted in slot 2 is the so-called master PLC and all other CPUs are slaves on the local bus. 218 07/01 AWB2700-1305-GB . All other CPUs are not able to access local I/O cards. 07/01 AWB2700-1305-GB 219 . The permanent configuration specifies all devices on the AS-Interface®line and allows the PLC in Run mode to access all inputs and outputs of the AS-I devices. This procedure is basically the same as for a Suconet K configuration. You can just create a basic configuration offline. Sucosoft uses this basic configuration to automatically detect online all active slaves on the AS-Interface®network. With the first method you create a topology configuration to which you add the AS-Interface® master to a network line and add the slaves as remote devices.Topology configuration with AS-Interface® Topology configuration with AS-Interface® The configuration of an AS-Interface®network is basically the same as for a Suconet K network. Once this is completed you can then address individual slaves in an AS-Interface®line transparently using the Moeller address notation. although the slaves of an AS-Interface®line can be modified as required. in which the configuration is started with the bus master. Configuration can be carried out in two ways: You can create a complete AS-Interface® configuration offline in the Topology Configurator. The second method also requires a topology configuration with a locally specified AS-Interface® master. Sucosoft will then automatically detect the AS-Interface®slaves on a line. Both approaches result in a new configuration which must then be transferred to the PLC as the so-called “Permanent configuration” together with the PLC program. The global configuration is created with Sucosoft. This card or module organises and executes the data exchange between the user program of the superordinate PLC and all connected slaves. 220 07/01 AWB2700-1305-GB . The configuration of the PROFIBUS-DP network is loaded directly on the DP master card or module with the CFG-DP Configurator. The diagnosis and monitoring of the DP network is carried out with the DP Configurator. whilst the DP network is configured with a separate configurator (CFG-DP configurator) as part of the overall configuration.Topology Configurator (Offline) Topology configuration with PROFIBUS-DP A topology configuration containing Suconet K and PROFIBUS-DP networks requires the use of two network configurators. If the DP master is an LE4-504-BS1 module you must specify in the Parameters dialog the name of the PROFIBUS configuration file created in the CFG-DP Configurator. The CFG-DP Configurator is used to define the bus parameters of the PROFIBUS-DP network. This configurator is also supplied with Sucosoft. It is also used for configuring and assigning slave parameters and defining the allocation to one or several DP master cards or modules. The Sucosoft Topology Configurator just displays the DP master that starts the DP network. With the PS416 modular PLC the syntax of PROFIBUS-DP slave access addresses is not checked until the program is started. Syntax check of access addresses for PROFIBUS-DP slaves With the PS4-300 compact PLC the syntax of DP slave access addresses is checked during program generation. The PLC will then remain in Halt status. When the PLC is restarted after the power supply is switched on.Topology configuration with PROFIBUS-DP Deviations between current and saved DP configuration When the user program is started. 07/01 AWB2700-1305-GB 221 . The user program cannot start if any differences are detected. the current DP configuration of the DP master is registered by the system and saved as the permanent configuration. to access analog I/O use IW and QW to form the access address. For example. the current configuration of the DP master is compared with the permanent configuration saved. Accessing the I/O of a PROFIBUS-DP slave PROFIBUS-DP slave I/O can be addressed via I or Q operands. for example. DP slaves The KOM diagnostics bit (PS416) and DDK diagnostics bit (PS4-341-MM1 or PS4-2xx-MM1) are not set in the slave CPU if a DP slave card/module (PS416-NET-441 or LE4-504-BT1) is disconnected. 222 07/01 AWB2700-1305-GB . due to wire breaks or a missing slave configuration. DDK signals a deviation between the actual configuration and the set configuration for one or several slaves.Topology Configurator (Offline) Maximum number of modules per slave The PS416-NET-440 and LE4-504-BS1 PROFIBUSDP masters support up to 60 DP modules per slave. In other words up to 60 I/O entries can be made in the CFG_DP Slave Configuration dialog. the NoDPCommunication diagnostics bit can be used to determine whether the slave is correctly exchanging data with the master. When the slave user program is in Run status. Behaviour of the DDK or KOM diagnostics bits DP master The KOM diagnostics bit (PS416) and DDK diagnostics bit (PS4-341-MM1) are only set in the master CPU for a PROFIBUS-DP line when the master is in Run status (for Suconet in Ready and Run status). the user program must be adapted. re-compiled and reloaded onto the CPU. Startup of a PROFIBUS-DP line of the PS416 modular PLC Depending on the number of slaves connected and the baud rate set. In this case use the PS_ClearKomBit function block to reset the KOM bit and only evaluate the KOM bit in the program from then. The user program of a PS4-341-MM1 must always be re-compiled using the Generate All function.Topology configuration with PROFIBUS-DP Changing the DP configuration with CFG-DP If the PLC is in Run status when the DP configuration is downloaded to the master using CFG-DP. 07/01 AWB2700-1305-GB 223 . In order to address the new DP I/O. This will cause the KOM bit to be set and the Error LED to light up on the PLC. Further information on the PROFIBUS-DP Configurator is available in the online documentation AWB-C2700-1336-GB. the time required to start a PROFIBUS-DP line may take longer than the start of the user program. it will automatically be switched to Halt. 0 PS4-200 1 LE 2 LE 3 LE 4 LE 5 LE Figure 79: Configuration with PS4-200 The configuration example consists of: one PS4-201-MM1 compact PLC with different local expansion modules (LE4) for I/O expansion: LE4-108-XD1: 8 digital outputs LE4-206-AA1: 4 analog inputs/2 analog outputs LE4-108-XR1: 8 relay outputs LE4-116-DX1: 16 digital inputs LE4-116-DD1: 8 digital inputs/8 digital outputs 224 07/01 AWB2700-1305-GB . Topology Module no.Configuration examples Example with a local configuration (PS4-200) The following local configuration without network expansion illustrates the procedure for creating a topology configuration. The complete configuration is shown in Fig..Configuration examples Procedure Create a new configuration file under a new file name. in this case PS4-201-MM1. Remember that the address assignment of the modules depends on the order in which they are entered (automatic address assignment). The file is saved with the configuration name “local” specified at the beginning in the Source folder for the current project. Save the completed configuration. Select from the list the PLC type to be configured. Figure 80: Creating a new configuration Use the Local Expansion button or choose Edit © Local Expansion.. here DEVICE_A. 81. 07/01 AWB2700-1305-GB 225 . to configure all the modules of the basic unit by selecting and adding them from the list. The CPU of the master PLC is usually defined as network master.4 is accessed in a PLC program with the variable address %Q0.0. 81 shows the 3-digit numbering of each configuration component.0. 226 07/01 AWB2700-1305-GB .0. which is used as card or module addresses.0. The address consists of the three elements for line number. They are automatically generated when components are placed in the overall system.. station number and slot/module number. For example. a module with the number sequence 0... This three-digit address corresponds to the first three numbers of the variable address in the PLC program.4.Topology Configurator (Offline) Figure 81: Device configuration for PS4-200 (local slaves) Fig. If required modules can be set using the Parameters button or via Edit © Parameters. left-click it and call up the Parameters dialog via the Parameters button or via Edit © Parameters.. Figure 82: Parameters dialog for PS4-201-MM1 07/01 AWB2700-1305-GB 227 ..Configuration examples To set the parameters of the master.. Change the parameters as required and save the new settings. 1 SBI 2 1 2 LE 3 LE 4 LE 5 LE Device A PS4-150 Device B 2 PS4-200 Station 1 1 SBI LE Device C EM Device E 2 EM Device F 1 PS4-200 SBI 1 1 LE LE Device D EM Device G Station 2 EM Device H 2 Figure 83: Topology for configuration example with PS4-341-MM1 (for key see opposite page) 228 07/01 AWB2700-1305-GB POW SBI INP AIO Device I .Topology Configurator (Offline) Example with PS4-300 Module no. 0 PS4-300 1 Line no. EM4-201-DX1) Local expansion module (e.g. LE4-501-BS1) and 4 local expansion modules (e.g. EM4-201-DX2.) as remote expansion modules (e.g. LE4-501-BS1.g.g. Device D: A PS 4-201-MM1 compact PLC with an integrated SBI as slave and an additional SBI as master and 2 local expansion modules. PS416-NET-400 E) Expansion module (e. Device C: PS 4-201-MM1 compact PLC with an integrated SBI as master.g.. an PS416-NET-400 E SBI card (E= expansion mode). Key to Fig. F. PS416-AIO-400) LE INP AIO 229 . Devices E. a digital input card (PS416-INP-400) and an analog I/O card (PS416-AIO-400). an additional SBI as slave and one local expansion module. G.. digital modules like LE4-116-XD1) Device B: PS4-141-MM1 compact PLC with an integrated SBI in slave mode. H: Four expansion modules (EM.Configuration examples The configuration example consists of: Device A: PS4-341-MM1 compact PLC with an integrated SBI in master mode. EM4-201-DX1) Device I: Rack without CPU with a power supply unit. LE4-116-XD1. LE4-116-DD1) Digital input card (PS416-INP-400) Analog I/O card (e. 83: PS4-300 PS4-150 PS4-200 SBI EM 07/01 AWB2700-1305-GB Compact PLC (PS4-341-MM1) Compact PLC (PS4-141-MM1) Compact PLC (PS4-201-MM1) Serial bus interface (e.g. The basic unit is locally expanded with an additional SBI as master (e. Topology Configurator (Offline) Procedure Create the configuration as described in Section “Topology configuration with Suconet K” on Page 206. Device B. B. 230 07/01 AWB2700-1305-GB . which are all the local expansion modules of device A. they should be defined in the master configuration (device A configuration) without their local expansion modules. the PLC of device D and the SBI of device C are slaves with their own CPU. C and D. First of all create a new configuration file for the master (compact PLC PS4-341-MM1) called Device A. The slaves of device A's SBI module (device B and the SBI of device C) should also be defined in the configuration file for device A. the PLC of device D (PS4-201-MM1). In this example this is necessary for devices A.e. i. This configuration should define the local and remote expansions accessible for this PLC. and device I. Ensure that a configuration file is created for each device with its own CPU. Configuration examples Configuration of device A PS4-300 SBI LE LE LE LE A PS4-150 B PS4-200 SBI LE C EM EM PS4-200 SBI LE LE D EM EM POW SBI INP AIO I Figure 84: Configuration of device A 07/01 AWB2700-1305-GB The shaded elements in the graphic should be defined in the configuration for device A. 231 . Figure 85: Creating a new configuration Use the Local Expansion button to configure all the local modules of this PLC. in this case LE4501-BS1. Figure 86: Local expansion of device A 232 07/01 AWB2700-1305-GB . 86). (see Fig.Topology Configurator (Offline) Create a new configuration file with the name “DEVICE_A” and choose the type of the CPU to be configured from the list (in this example PS4-341-MM1). LE4-116-XD1. etc. e. i. Figure 87: Device configuration of device A with view of line 1 Specify the number of send and receive data bytes to be exchanged between the CPUs of device A and D (see also Page 208 ): Select device D and open the Parameters dialog. These are the CPUs of device D (master configuration) and device I. 87). Enter the number of send and receive data bytes (in the example SD = 9 bytes. RD = 7 bytes). 07/01 AWB2700-1305-GB 233 . the CPU of device A is to send 9 bytes of data to the CPU of device D and should receive 7 bytes of data from it.Configuration examples Use the Remote Expansion function to configure all network stations that communicate with device A as slaves via Suconet K (see Fig. Topology Configurator (Offline) Figure 88: Setting send and receive data bytes These values must later correspond to the configuration of device D (see Page 242). A separate configuration file will be created later for device C since it has its own CPU. The device configuration for device A only has the SBI of device C in line 2. LE4-501-BS1) using the Remote Expansion function. 234 07/01 AWB2700-1305-GB . The topology configuration will now show a compact PLC (device B) in the master configuration and the network module LE4-501-BS1 (SBI) of device C. 89 shows the configuration of device A with the view of line 2. Select the LE4-501-BS1 module and define the slaves of line 2 (PS4-141-MM1. Fig. line 1 will be displayed whilst line 2 is shown with a short line underneath the LE4-501-BS1 module. This will be saved under the name “DEVICE_A”. the receive and send data bytes must be set in the Parameters dialog for this slave (see also Page 208). If the SBI is selected that is the master of line 2. as specified at the start. the slaves of line 2 are shown. 07/01 AWB2700-1305-GB Save the completed configuration. The remaining lines are indicated by a short line underneath the module. if you select the master PLC (PS4-341-MM1). In this example. The Topology Configurator shows the complete network line selected.Configuration examples Figure 89: Device configuration of device A with view of line 2 As the CPU of device B is a slave on the Suconet K line. 235 . Topology Configurator (Offline) Configuration of device B PS4-300 SBI LE LE LE LE PS4-150 B PS4-200 SBI LE EM EM PS4-200 SBI LE LE EM EM POW SBI INP AIO Figure 90: Device configuration of device B 07/01 AWB2700-1305-GB 236 . In the Parameters dialog set the station address on the Suconet K Slave tab to the address set in the master configuration (in example station number 1).Configuration examples The configuration of device B simply specifies the compact PLC. For this set the Bus status option to Suconet K slave on the General Settings tab. You must also set the number of send and receive data bytes (see Page 208). Save the completed configuration. The configuration indicates this with a short line above the module. 07/01 AWB2700-1305-GB 237 . This will be saved under the name “DEVICE_B”. as specified at the start. The selected compact PLC PS4-141-MMI will appear in the New Configuration dialog. Create a new configuration for device B (slave configuration). Set the PLC parameters in the Parameters dialog as a slave since it is a slave on the Suconet K line. Topology Configurator (Offline) Configuration of device C PS4-300 SBI LE LE LE LE PS4-150 PS4-200 SBI LE C EM E EM F PS4-200 SBI LE LE EM EM POW SBI INP AIO Figure 91: Device configuration of device C 07/01 AWB2700-1305-GB 238 . together with the SBI the LE4-104-XP1 local expansion module as well as remote expansion modules EM4-201-DX2 and EM4-201-DX1. as specified at the start. Save the completed configuration. For this create a new configuration for device C with the name “DEVICE_C”. In this configuration define the PS4-201-MM1 compact PLC. in this case station 2.Configuration examples The shaded elements in the graphic should be defined in the configuration for device C. This will be saved under the name “DEVICE_C”. 07/01 AWB2700-1305-GB Figure 92: Configuration of device C 239 . In the Parameters dialog for the SBI set it for slave operation and set the correct station address. Topology Configurator (Offline) Configuration of device D PS4-300 SBI LE LE LE LE PS4-150 PS4-200 SBI LE EM EM PS4-200 SBI LE LE D EM G EM H POW SBI INP AIO Figure 93: Device configuration of device D 07/01 AWB2700-1305-GB 240 . For this create a new configuration for device D with the name “DEVICE_D” (slave configuration). This configuration should define the PS4-201MM1 compact PLC. LE4-116-DD1 and remote expansion modules EM4-101-AA1W33 (device G) and EM-111-DR1 (device H). 95 indicates this with a short line above the module. The configuration indicates this with a short line above the module. Fig.Configuration examples The shaded elements in the graphic should be defined in the configuration for device D. Set the station address and the number of send and receive data bytes on the Suconet K slave tab of the Parameters dialog: 07/01 AWB2700-1305-GB 241 . the local expansion modules LE4-116-XD1. In the Parameters dialog for the PS4-201-MM1 set the CPU as slave since this is a slave on line 1. For this set the Bus Status option to Suconet K Slave on the General Settings tab. 242 07/01 AWB2700-1305-GB . Send and Receive Data: In accordance with the master configuration (see Page 234) you must set 9 bytes as receive data and 7 bytes as send data.e. Save the completed configuration. the CPU of device D is to receive 9 bytes of data from the CPU of device A and send 7 bytes of data back to it. as specified at the start. This will be saved under the name “DEVICE_D”.Topology Configurator (Offline) Figure 94: Parameters dialog for CPU of device D Station Address: The address set here must be the same as the corresponding address in the master configuration (in the example station 1). i. This information can be activated or deactivated using the Display I/O Utilisation and Display Bus Cycle Time buttons or by choosing Display © I/O Utilisation and Display © Bus Cycle Time. 07/01 AWB2700-1305-GB 243 . use the Change Display button or choose Display © Compress to switch to a more compact display form.Configuration examples Figure 95: Device configuration of device D The status line of the Configurator shows the I/O utilisation and the theoretical bus cycle time of the selected network line. If the topology is so extensive that it cannot be displayed completely. LE 2 Device E Figure 96: Topology for configuration example with PS416-CPU-400 (for key see opposite page) Key to Fig. LE 2 Device F Station 2 EM 0 LE 1 Module no.Topology Configurator (Offline) Example with PS416 Slots 0 POW 2 PS416 CPU 1 4 S B I 2 1 5 A I N 6 A I O 7 I N P 8 O U T Device A Line no. PS4-200 Device B Station 0 POW 2 0 POW 2 PS416 CPU 4 A I N 2 S B I 3 A I N 4 A I O Device C 5 A I O 6 I N P 7 O U T 8 S B I 1 1 Device D 1 EM 0 LE 1 Module no. 96: 244 07/01 AWB2700-1305-GB . (e.g.Configuration examples PS416-CPU Central processing unit. an PS416-NET-400 E SBI card (E= expansion mode). e. an SBI card in master mode (PS416-NET-400).g. two analog and two digital cards.. (e.g. as well as one SBI card in master mode Device E. (e.) each with two local expansion modules (LE. e. LE4-116-DD1 Digital input card.) 07/01 AWB2700-1305-GB 245 . PS416-CPU-400) PS4-200 SBI EM LE INP OUT AIO AIN PS4-201-MM1 compact PLC Serial Bus Interface. F: Two remote expansion modules (EM. (e.g. PS416-AIO-400) and two digital cards (PS416-INP-400. PS416-NET-400 E.. e.g.. Device D: PS416 modular PLC as slave with a power supply unit and an integrated SBI. PS416-AIN-400) The configuration example consists of: Device A: PS416 modular PLC as master with a power supply unit and an integrated SBI.g. PS416-OUT-400 Analog I/O card. PS416-NET-400 Expansion module. LE4-116-XD1. two analog (PS416-AIN-400. PS416-OUT-400) Device B: PS4-201-MM1 compact PLC Device C: Expander rack without CPU with a power supply unit..g. PS416-INP-400) Digital output card. EM4-201-DX2 Local expansion module e. and two analog cards (PS416-AIN-400).g. PS416-AIO-400) Analog input card. as well as the slaves of the SBI module on device A.Topology Configurator (Offline) Procedure Create the configuration as described in Section “Topology configuration with Suconet K” on Page 206. This should describe the local and remote expansion modules that can be seen from the line/device views from the master. these are the I/O cards of the modular PLC device A. First of all create a configuration file for the CPU of device A (PS416-CPU-400). the connected stations in the Suconet K network of the master. Configuration files must therefore be created for devices A. and D. B. These must be configured as slaves. 246 07/01 AWB2700-1305-GB . New configuration files must also be created for the PS416-CPU-400 modular PLC of device D and device B. Remember that a configuration file is created for each device with its own CPU. In this example. Configuration examples Configuration of device A POW PS416-CPU S B I A I N A I O I N P O U T A PS4-200 B POW S B I A I N A I O C POW PS416-CPU A I N A I O I N P O U T S B I D EM LE LE EM LE LE E Figure 97: Device configuration of device A The shaded elements in the graphic should be defined in the configuration for device A. 247 . 07/01 AWB2700-1305-GB Create a new configuration file and file name “DEVICE_A”. in this case PS416-CPU-400 on slot 2. Select from the list the CPU type to be configured. These are the PS416-NET-400 network card. Figure 99: Local expansion modules of device A 248 07/01 AWB2700-1305-GB Select the PS416-CPU-400 and configure the network station via Remote Expansion. Set the local expansion parameters as required. These remote cards are the CPU of device D (PS416-CPU-400) (master configuration). the PS416-AIN-400 analog input card. the EM4-201-DX2 expansion module with the . the PS416-AIO-400 analog output card. the PS416-INP-400 digital input card and the PS416-OUT-400 digital output card.Topology Configurator (Offline) Figure 98: Creating a new configuration for device A Define the local expansion of the central rack with all the relevant cards. The stations concerned are the PS4-201-MM1 compact PLC (device B. master configuration) and the SBI of device C (PS416-NET-400 E) with the local expansion modules PS416-AIN-400 and PS416-AIO-400. 07/01 AWB2700-1305-GB 249 . Now select the PS416-NET-400 and configure the network stations of the line via Remote Expansion.Configuration examples connected local expansion modules LE4-116-DD1 and LE4-116-XD1. Figure 100: Remote expansion of device A with view of line 1 The receive and send data for the CPU of device D (slave on Suconet K line) must be set in the Parameters dialog (see also Page 208). The line is automatically assigned line number 2. Topology Configurator (Offline) Figure 101: Remote expansion of device A with view of line 2 The receive and send data for the CPU of device B (slave on Suconet K line) must be set in the Parameters dialog (see also Page 208 ). Save the completed configuration. This will be saved under the name “DEVICE_A”. 250 07/01 AWB2700-1305-GB . as specified at the start. Configuration examples Configuration of device B POW PS416-CPU S B I A I N A I O I N P O U T PS4-200 B POW S B I A I N A I O POW PS416-CPU A I N A I O I N P O U T S B I EM LE LE EM LE LE Figure 102: Device configuration of device B The configuration of device B simply specifies the PS4-201-MM1 compact PLC. 07/01 AWB2700-1305-GB For this create a new configuration for device B with the name “DEVICE_B” (slave configuration). The selected compact PLC PS4-201-MMI will appear in the New Configuration dialog. 251 . 252 07/01 AWB2700-1305-GB . This will be saved under the name “DEVICE_B”. Save the completed configuration. The configuration indicates this with a short line above the module. In the Parameters dialog set the station address on the Suconet K Slave tab to the address set in the master configuration (in example station number 1). You must also set the number of send and receive data bytes (see Page 208). For this set the Bus status option to Suconet K slave on the General Settings tab. as specified at the start.Topology Configurator (Offline) Set the PLC parameters in the Parameters dialog as a slave since it is a slave on the Suconet K line. Configuration examples Configuration of device D POW PS416-CPU S B I A I N A I O I N P O U T PS4-200 POW S B I A I N A I O POW PS416-CPU A I N A I O I N P O U T S B I D EM LE LE F EM LE LE Figure 103: Configuration of device D 07/01 AWB2700-1305-GB 253 . Remember to configure the CPU of device D as a slave since it is connected to line 1 of device A.Topology Configurator (Offline) As device D has its own CPU. For this create a new configuration with the name “DEVICE_D” (slave configuration) and define all the local expansion modules (PS416-AIN-400. You must also set the number of send and receive data bytes (see Page 208). it must be defined in a separate configuration. In the Parameters dialog set the station address on the Suconet K Slave tab to the address set in the master configuration (in example station number 1). 254 07/01 AWB2700-1305-GB . PS416-NET-400) as well as the network stations of the network card (device F). 104 you will notice a short line above the CPU of device Dindicates that it is a slave. PS416-OUT-400. In Fig. PS416-AIO-400. PS416-INP-400. 07/01 AWB2700-1305-GB 255 .Configuration examples Figure 104: Configuration of device D In the configuration of device D also define the stations of device F since the expansion module EM4-201-DX2 is a network slave and does not have its own CPU. This will be saved under the name “DEVICE_D”. Save the completed configuration. as specified at the start. 0 PS4-200 1 Line no. LE 2 Device B Figure 105: Topology for the configuration example with AS-Interface®network (for key see opposite page) 256 07/01 AWB2700-1305-GB .Topology Configurator (Offline) Example with AS-Interface®network (PS4-200 ) Module no. 1 SBI 2 1 2 LE 3 LE Device A 4 INP/3 OUT Device C 2 Station ATI1 DNSASI Device D 3 EM2-105-DX1 Device E 4 RMQ-M2CASI Device F Station 1 EM 0 LE 1 Module no. Configuration examples Key to Fig.) with two local expansion modules Devices C. e.. 07/01 AWB2700-1305-GB 257 . LE4-505-BS1 Expansion module.g. EM4-201-DX2 Local expansion module e. LE4-116-XD1. 105: l PS4-200 SBI EM LE 4 INP/3 OUT ATI1-DNS-ASI EM2-105-DX1 RMQ-M2C-ASI PS4-201-MM1 compact PLC Serial Bus Interface.g... define all stations in one configuration file. Choose Configuration © New.. to insert the master module for the AS-Interface®line (LE4-505-BS1) and add the local expansion modules (LE. e. F: AS-Interface®station Procedure Create the configuration as described in Section “Topology configuration with Suconet K” on Page 206. The basic unit is provided with an additional SBI local expansion in master mode (LE4-505-BS1) and two other local expansion modules such as digital modules Device B: Expansion module (EM.... As the example only contains one CPU (master). Choose Edit © Local Expansion.). and assign a new file name (in this example “AS_INTER”) to create a configuration with the master (PS4-201-MM1). E.g. LE4-116-DD1 Generic AS-Interface®device Inductive proximity switch in the AS-Interface® Interface for connecting sensors and actuators in the AS-Interface® Interface for connecting RMQ in the AS-Interface® The configuration example consists of: Device A: PS4-201-MM1 compact PLC. D.. Select the EM and add the local digital expansion modules.Topology Configurator (Offline) Figure 106: Configuration of an AS-Interface®network Select the PS4-201-MM1 master and use the Remote Expansion function to add the EM4-201-DX2 expansion module. Select the LE4-505-BS1 AS-Interface®master and use the Remote Expansion function to define 258 07/01 AWB2700-1305-GB Figure 107: Remote expansion of the master with view of line 1 . F). E. use the Change Display button or choose Display © Compress to switch to a more compact display form. 259 . The file is saved with the file name extension “. 07/01 AWB2700-1305-GB Save the completed configuration.DCF” in your project. D. as specified at the start. This will be saved under the name AS_INTER.Configuration examples the slave stations of the network line (devices C. Figure 108: AS-Interface®network stations (line 2) If the topology is so extensive that it cannot be displayed completely. Figure 109: Setting the parameters of the AS-Interface® master Check the Enable Autoaddressing option if you want to be able to swap a faulty slave on the AS-Interface®line with the system running without having to stop the PLC. 260 07/01 AWB2700-1305-GB . If Autoaddressing is activated.... Confirm your entry with OK.Topology Configurator (Offline) Setting the parameters of the LE4-505-BS1 master module Select the LE4-505-BS1 module and use the Parameters button or choose Edit © Parameters. For the Enable Autoaddressing function to work you must ensure that the faulty slave is replaced with one of the same type that is set to the standard address 0 and has the same IO and ID code values. the LE4-505-BS1 master module will automatically set the address of the new slave to that of the faulty slave and resume data communication with it. Change the parameters as required. Assign a name up to 12 characters long in the Name box for the station concerned. Save the new settings by clicking the Accept button.. Select one of the available station numbers for the selected device from the Station Number list box. Click the Parameters button or choose Edit © Parameters. which have IO codes that are determined by the input/output configuration concerned. Refer to the relevant documentation of the device concerned as to the meaning of the four parameters.Configuration examples Changing the parameters for a device Left-click on the AS-Interface®device for which you wish to change the parameters. The Properties field shows four check boxes under Initial Parameters with which you can modify operating parameters. Select other AS-Interface®stations from the topology configuration in order to check or modify their configuration data. the ID code must be adapted to the specifications in the station's documentation. This will call up the Parameters window for the device concerned. Close the dialog with Exit when you are finished.. The window will remain open. With generic AS-Interface®stations.. 07/01 AWB2700-1305-GB 261 . PS416-AIO-400 07/01 AWB2700-1305-GB 262 .Topology Configurator (Offline) Example with PROFIBUS-DP network (PS416-CPU-300) CFG-DP configuration software Slots Slots 0 POW 2 PS416 CPU 1 Line no.g. Suconet K 2 4 S B I 6 A I O 7 I N P Device A PROFIBUS-DP PS4-300 1 SBI LE Device D Station 1 EM Device B 2 EM Device E Station 2 MI Device C 3 ZB Device F Figure 110: Topology for configuration example with PROFIBUS-DP network PS416-CPU SBI PS4-300 EM MI ZB INP AIO Modular PLC with integrated SBI Serial Bus Interface: PROFIBUS-DP master: PS416-NET-440 PROFIBUS-DP slave: LE4-504-BT1 PS4-341-MM1 compact PLC Expansion module. MI4-101-KC1 Operator unit. e. EM4-204-DX1 Display unit. EM4-101-AAB64. e. e.g. ZB4-504 IF1 Digital input card. e. e.g.g. PS416-INP-400 Analog I/O card.g. in this case PS416-CPU-300 on slot 2. DP master as SBI (PS416-NET-440). For every device with a CPU create a separate configuration file and define in it the local and remote expansions.) as remote expansions. Select from the list the CPU type to be configured.) and the text operator panel (MI4. 263 07/01 AWB2700-1305-GB ..Configuration examples The configuration example consists of: Device A: PS416 modular PLC with a power supply unit and an integrated SBI.. The PROFIBUS-DP line is ordered in the line numbering of the Suconet K lines (line 2).. the analog I/O module and the digital input card as local expansions. Configuration of device A Open the Sucosoft Topology Configurator and create a new configuration file and file name “DEVICE_A”.. Select the master and add the analog I/O module (EM. Add the PROFIBUS-DP master interface (PS416-NET-440). one analog and one digital card Device B: Analog expansion module (EM4-101-AA1B64) Device C: Text operator panel (MI4-101-KC1) as remote expansion of the master Device D: DP slave communication module (LE4-504-BT1) with compact PLC (PS4-300 CPU) and local expansion (LE4-108-XD1) Device E: IO module as DP slave (EM4-204-DX1) Device F:Operator unit ZB4-504-IF1 Procedure Create the configuration as described in Section “Topology configuration with Suconet K” on Page 206. dcf”.Topology Configurator (Offline) Save the configuration under the name “DEVICE_A. Figure 111: Device configuration of device A 264 07/01 AWB2700-1305-GB . For a detailed description of the CFG-DP Configurator and how to use it refer to the electronic manual AWB-EM 2700-1336 GB. in which the DP master (PS416-NET-440) and the connected slaves (EM4-204-DX1. assign the modules and their data to the addresses of the process data image of the master. 112).dcf”. the PROFIBUS-DP slave and the digital expansion module (see Fig. 07/01 AWB2700-1305-GB 265 . Save the configuration under the name “DEVICE_D. In this configuration.Configuration examples Configuration of device D Create a new configuration for device D with the PS4-341-MM1 compact PLC. The manual (PDF file) and the Configurator are supplied with Sucosoft S40. These addresses correspond to the addresses of the slaves in the Sucosoft user program. Use the CFG-DP Configurator for the slave configuration. ZB4-504-IF1) must be configured. Figure 112: Configuration of device D Configuring the DP line with CFG-DP Open the DP CFG-DP Configurator. instead of the PS4. When using a PS416 as the master. In this case.Topology Configurator (Offline) Save the configuration and transfer this to the PS416-NET-440 using the CFG-DP Configurator. use the LE4-504-BS1 as the DP master. The PROFIBUS-DP configuration is not compared with the user program in the PS416-CPU until the first cold start. you must specify the file names of the PROFIBUS configuration created in the CFG-DP Configurator in the S40 Parameters dialog for the LE4 -504-BS1. The configurations created in the Sucosoft Topology Configurator for devices A and D are combined with the user program during compiling and then transferred to the master PS416-CPU-300 and PS4300. You can evaluate the diagnostics data of the PS416-NET-440 and the network slaves during operation via the diagnostics bytes or the PdpStationDiag function block in the user program of the PS416. 266 07/01 AWB2700-1305-GB . Configuration examples Figure 113: Configuration in the PROFIBUS-DP Configurator CFG-DP 07/01 AWB2700-1305-GB 267 . 0 4 EM 1 LE Suconet K EM 2 EM 2 LE Device E Figure 114: Topology for complex configuration example (for key. 1 2 SBI 1 1 LE 3 LE Station Device B 2 3 EM Device G Station AS-Interface 4 OUT/3 INP PS4-300 SBI Device H 2 ATI2DNS-ASI 3 Device C 2 MI Module no. 1 0 PS4-300 Module no.Topology Configurator (Offline) Complex configuration example (PS416-CPU-400) CFG-DP configuration software Slots 0 POW 2 PS416 CPU 1 4 A I N 5 I N P 2 6 S B I 8 I N P Device A PROFIBUS-DP 1 ZB Device F Line no. see opposite page) 268 07/01 AWB2700-1305-GB . 0 3 PS4-200 1 LE KLAS44 MI4-CFG-1 configuration software Suconet K 2 SBI 1 1 Device D Station Module no. two analog cards and one digital card Device B: PS4-300 (PS4-341-MM1) compact PLC with two local expansion modules and one master module for the AS-Interface®network with connected slaves Device C: Touch panel as operator interface Device D: PS4-200 compact PLC (PS4-201-MM1) with a local expansion module and one Suconet master with connected expansion modules as slaves Device E: Digital expansion module (EM4-201-DX2) provided with two local expansion modules Device F: Operating device (ZB4-604-IF1) as PROFIBUS-DP slave 07/01 AWB2700-1305-GB 269 .g. EM4-101-AAB64 MI4-471-TC1 display element ZB4-604-IF1 operating unit Digital input card (PS416-INP-400) Analog I/O card (PS416-AIO-400) Generic AS-Interface®device Inductive proximity switch Networkable load feeder system EM MI ZB INP AIO 4OUT/3INP ATI2-DNS-ASI KLAS 44 The configuration example consists of: Device A: PS416 modular PLC as master with a power supply unit. 114: PS416-CPU PS4-200 PS4-300 SBI Modular PLC with integrated SBI PS4-201-MM1 compact PLC PS4-341-MM1 compact PLC Serial Bus Interface: PROFIBUS-DP master: PS416-NET-440 PROFIBUS-DP slave: PS416-NET-441 AS-Interface®master: LE-505-BS1 Suconet K master: LE4-501-BS1 Expansion module.Configuration examples Key to Fig. e. EM4-204-DX1. a DP master as a local expansion (PS416-NET-440). B. Load the configuration directly from the MI4-CFG-1 Configurator to the touch panel operating system. D. Suconet K. This is where the configuration files for devices A. The Sucosoft Topology Configurator will only show the master (PS416-NET-440) that opens the line and the slave (PS416-NET-441) that passes on the information from all DP network slaves to the master. PROFIBUS-DP and AS-Interface® networks. F and K. which is used to create a separate configuration file. are created since these all include a CPU. AS-Interface®: Sucosoft is used for the configuration of the Suconet K networks and the AS-Interface®networks. DP network: Create the DP network using the CFG-DP Configurator. Touch Panel: The configuration of the touch panel is carried out with the MI4-CFG-1 Configurator. In this configuration define the master with the connected slaves and save it as a separate configuration file. The configuration for the DP line is loaded to the master PLC via the CFG-DP Configurator. 07/01 AWB2700-1305-GB 270 . The separate configurators must be used for the DP network and for the MI4-471-TC1 touch panel.Topology Configurator (Offline) Device G: Expansion module (EM4-204-DX1) as PROFIBUS-DP slave Device H: DP slave as slave local expansion module with connected compact PLC Procedure The example shows a complex configuration with the Suconet K. 1 Station 2 EM LE 1 EM EM 2 EM Figure 115: Topology for configuration example with multiprocessing operation PS416-CPU CNT INP OUT LE EM PS416-CPU-300.Configuration examples Example with multi-processing operation Slots 0 POW 2 PS416 CPU 1 2 1 4 PS416 CPU 6 PS416 CPU 3 EM 8 CNT 10 I N P 12 O U T Line no. EM4-201-XD2. PS416-CPU-400 modular PLC PS416-CNT-200 counter card Digital input card (PS416-INP-400) PS416-OUT-400 digital output card LE4-116-DD1 local expansion module EM4-101-DD2/88. EM4-101-TX1 and EM4-111-DR1 expansion modules 07/01 AWB2700-1305-GB 271 . EM4-101-AA2B84. Topology Configurator (Offline) The configuration example consists of: A PS416 modular PLC as central master in multiprocessing operation. The PS416-CNT-200 counter card is addressed by the master via the local bus. PS416-OUT-400) are addressed by the second PLC. The digital output cards (PS416-INP-400. It can only access digital I/O cards. Create separate configurations for all three CPU cards. 272 . In this example the first slave CPU fitted in slot 4 is configured so that its device configuration contains the digital I/O cards. EM4-201-XD1) via Suconet K. For this the function block is used in the master and in the slave CPUs. All other CPUs are not able to access local I/O cards. The master PLC defines the counter card in its configuration file. As described in Section “Topology configuration with Suconet K” remember that in a configuration with several local CPUs only the master CPU (slot 2) or the first CPU slave (slot 4) fitted in the PS416 rack is able to access the I/O cards. There is an additional restriction for the slave card fitted in slot 4. Procedure Create the configuration as described in Section “Topology configuration with Suconet K” on Page 206. The master is connected to two remote expansion modules (EM4-101-DD2/88. 07/01 AWB2700-1305-GB The communication between several PS416-CPU-200/300/400 controllers in one rack is handled by the local bus using the CPUDataExchange function block. One expansion module is connected in turn to a digital local expansion module. Two other PLCs are connected to it via the local parallel bus. . and create a new configuration under a new file name (DEVICE_1).Configuration examples Configuration of device 1 Master CPU Slave CPU1 Slave CPU2 0 POW 2 4 6 8 CNT 10 I N P 12 O U T PS416 CPU PS416 CPU PS416 CPU EM EM LE EM EM EM Figure 116: Configuration of the master CPU The configuration of the master CPU contains all the CPU slaves and the cards of the remote Suconet K line. Choose Configuration © New. The counter card is also defined as a local expansion.. 07/01 AWB2700-1305-GB 273 . Ensure that the master CPU (PS416-CPU-400) is set for slot 2. Select the master CPU and configure the Suconet K network stations via Remote Expansion. 274 07/01 AWB2700-1305-GB . The modules of Device 1 include both the EM4-201-DX2 expansion module with LE4-116-DD1 local expansion modules.Topology Configurator (Offline) Figure 117: Creating a new configuration for device 1 Expand the master CPU with the local expansion slave CPUs (PS416-CPU-300. and the EM4-101-AA2B84 expansion module. PS416-CPU-416) and counter card (PS416-CNT-200). This will be saved under the name DEVICE_1.Configuration examples Figure 118: Configuration of device 1 Save the completed configuration. 07/01 AWB2700-1305-GB 275 . as specified at the start. and create a new configuration under a new file name (DEVICE_2).. Ensure that the first slave CPU (PS416-CPU-300) is set for slot 4..Topology Configurator (Offline) Configuration of device 2 0 POW 2 4 6 8 CNT 10 I N P 12 O U T PS416-CPU PS416-CPU PS416-CPU EM EM LE EM EM EM Figure 119: Configuration of device 2 Choose Configuration © New. Figure 120: Creating a configuration for device 2 07/01 AWB2700-1305-GB 276 . This will be saved under the name DEVICE_2. as specified at the start. Select the PS416-CPU-300 and add the EM4-201-DX2 as a remote expansion module. Figure 121: Configuration of device 2 Save the completed configuration. 07/01 AWB2700-1305-GB 277 .Configuration examples Add the digital input card (PS416-INP-400) and the digital output card (PS416-OUT-400) as local expansions of the slave CPU. . Figure 123: Creating a new configuration for device 3 07/01 AWB2700-1305-GB 278 .. Ensure that the second slave CPU (PS416-CPU-400) is set for slot 6. and create a new configuration under a new file name (DEVICE_3).Configuration of device 3 0 POW 2 4 6 8 CNT 10 I N P 12 O U T PS416-CPU PS416-CPU PS416-CPU EM EM LE EM EM EM Figure 122: Configuration of device 3 Choose Configuration © New. 07/01 AWB2700-1305-GB 279 . The remote cards of device 3 include both the EM4-101-TX1 and EM4-111-DR1 expansion modules. as specified at the start. Figure 124: Configuration of device 3 Save the completed configuration. This will be saved under the name DEVICE_3.Configuration examples Select the PS416-CPU-400 and configure the Suconet K network stations via Remote Expansion. 280 07/01 AWB2700-1305-GB . circles or rectangles incorporate standard text and bitmaps create different variable placeholders for current data such as time. date or POU name with supplementary text if required make changes to the standard cover sheets and forms supplied with Sucosoft S40. drag it to the required position. You can: specify a range or area in which the project file is to be printed out draw graphic elements such as lines. The menu bar and toolbar containing the editing buttons are shown below the title bar. cover sheets and forms that you can use for printouts of topology and POU project files. 281 . User interface Open the Form Editor via the Tools menu in the NAVIGATOR or the corresponding button on the toolbar. with the mouse button depressed. click the handle (double vertical line) of the toolbar and.4 Form Editor Overview The Form Editor allows you to create your own print forms. Both toolbars can be arranged on your desktop as required. This position will be saved when you exit the Form Editor. Form Editor 07/01 AWB2700-1305-GB This will open the application window of the Form Editor.e. To do this. i. Figure 125: Form Editor application window Figure 126: Toolbar Toolbar 07/01 AWB2700-1305-GB .282 ack to b Send ward g for Brin ent elem Edit p itma de B t Inclu d tex ndar r sta Ente e circl Draw ngle recta Draw line me Draw ct na proje tion Posi ame file n tion ber Posi num page tion Posi time tion Posi date tion e Posi rang rint ne p Defi lour ll c o ne fi r Defi olou ne c ne li ess Defi ickn ne th ne li Defi form Save m n for Ope form New óForm Editor The following pages provide a detailed explanation of the toolbar buttons in context. such as lines. They are explained in Section “Functions of the Form Editor”. Elements menu All the menu items in this menu are available via the toolbar. Options menu Line Thickness: The Line thickness option is used to define the width of the lines of drawn elements. View. Delete: Use this command or the Del button to delete an element selected in the print form. Edit menu Delete All: Use this command to delete all the entries in the print form. and Options menus are provided in addition to the standard File. The Fill colour setting applies to the background colour of graphic elements drawn and all texts. Windows and Help menus. circles or rectangles.User interface Menu bar The Edit. Font: Use the Font option to define the font type. To obtain a coloured background. This setting is also applied to standard texts and the project texts that appear at the placeholders and in the print range. Line Colour: The Line colour option is used to define the colour of the lines of drawn elements. font style and font size of the standard text. deactivate the Transparent option in the Fill Colour dialog box. 07/01 AWB2700-1305-GB 283 . Elements. which aligns all the elements inserted on the print form to the grid lines. The horizontal and vertical distance between the grid lines. 284 07/01 AWB2700-1305-GB . Deactivate the grid lines and the snap-to-grid function via the Grid lines checkbox if you wish to position the elements in the form without any restrictions. Figure 127: Grid setting Functions of the Form Editor This section describes the range of functions of the Form Editor and shows how to design a new print form. can be set at between 2 and 50 pixels using the Width numeric entry field.óForm Editor Grid Lines: Activating this option will cause the grid lines to appear on the screen. It is normally activated. edit an existing standard print form. and therefore the positioning possibility for elements. thus enabling the snap-to-grid function. use a new print form for a project printout. The standard form format is A4 portrait.Functions of the Form Editor Designing a new print form Requirement: A form must have been opened in the Form Editor either via File © New or by clicking the appropriate icon.. to select a different paper format or page layout if required.. Define print range Define the size of this range by dragging the cursor with the mouse button depressed. The font and font size of the text entries in the subsequent printout will be the same as the setting when the print range was defined. The term 'text entry' refers to the project text inside the print range and the text that will appear at 285 . Defining the print range Choose Elements © Print Range or click the appropriate icon to define the area on the form in which the contents of your project file should be printed. 07/01 AWB2700-1305-GB Refer to Section “Editing an existing standard print form” from Page 291for how to subsequently modify the text entries. All elements are printed with the settings which were in force when they were created. Page setup Choose File ©Page Setup. A print form will be saved as a form as soon as you define for it a print range in which the contents of your project file are to be printed. The Form Editor will decide on the basis of the form contents whether this should be printed out as a cover page or as a form. date. font style and size via Options © Font. Figure 128: Placeholders buttons Click the mouse at the required location in the print form and enter the supplementary text assigned for the placeholder in the entry field. or project data such as POU file name and project name. Correct any entry errors via Backspace. and undo any operator error with Alt + Backspace..g. Choose the placeholder required via the Elements menu or the placeholder buttons in the toolbar.. Close the text entry function by pressing Enter. 286 07/01 AWB2700-1305-GB .) when the print form is printed out..óForm Editor placeholders (e. You should set the required font. Entered text will then be shown with these font settings. project name etc. before inserting the placeholders and possibly adding a supplementary text. Inserting placeholders The Form Editor also provides placeholders for current data such as “Date”. “Time” and “Page Number”. You should set the required font.Functions of the Form Editor Editing standard text On every printout using this print form standard text will appear in the way it was edited. 07/01 AWB2700-1305-GB Figure 129: Changing the font of standard text 287 . before editing the standard text.. select the text element concerned and press the right mouse button. font style and font size of standard text can also be modified later: Choose Elements © Edit Element. font style and size via Options © Font. Close the text entry function by pressing Enter.. and undo any operator error with Alt + Backspace. Correct any entry errors via Backspace. Standard text Click the mouse at the required location in the print form and enter the standard text in the entry field. Choose Elements © Standard Text or click the Standard Text icon. Entered text will then be shown with these font settings. The Line colour option is also used to define the colour of the standard text in the printout. Double-click a text element to correct the standard text. The font. Press Esc to abort text entry.. . These may then be no longer selectable or visible. Define the size of this element by dragging the cursor with the mouse button depressed. In this case.óForm Editor Drawing graphic elements To draw a rectangle.. or by clicking the appropriate icon. Edit element Graphic elements. Use the mouse to define the start position of the graphic element in the print form. placeholders. Placing elements in the background/foreground Large elements such as page frames or bitmaps may cover smaller elements. the covering element must be positioned in the background or deleted. for example. and standard text fields can be provided with coloured backgrounds via Options © Fill Colour. Placing elements in the background/foreground To edit a covered element: 288 07/01 AWB2700-1305-GB . select the required element from the toolbar or via Elements © Rectangle. Choose Elements © Edit Element or click the appropriate icon to move an element with the mouse. placeholder. Delete the element via Edit © Delete or press the Del button. If required you can then choose Elements © Element To Foreground to restore the previous state. Now choose Elements © Element in Background or press the appropriate button to position the element in the background. Edit the required element. All elements of a print form can be deleted via Edit © Delete All. Load bitmap Deleting elements Choose Elements © Edit Element or click the appropriate button and then select the element to be deleted (standard text.Functions of the Form Editor Choose Elements © Edit Element or press the appropriate button and then select the covering element. graphic element or bitmap). Use the mouse cursor to locate the starting position of the bitmap in the print form and click to set it. Loading bitmaps Choose Elements © Bitmap or click the appropriate icon to copy the required bitmap to the Clipboard. 07/01 AWB2700-1305-GB 289 . The preview shows the form with all its elements. clicking the Close button or by starting a print job. Saving print forms Choose File © Save As.. Figure 130: Saving print forms 290 07/01 AWB2700-1305-GB The Form Editor saves your print form under the name specified with the file extension “wmf” and offers the standard Forms folder in your current Sucosoft S40 application. The text entries appear on the printed form.óForm Editor Print form preview Choose File © Page Preview to check whether the design of the opened print form meets your requirements. Exit the page preview by pressing the Esc button.. Save This opens the Save As dialog. . or click the appropriate icon to save the new form. has been opened in the Form Editor via File © Open or by clicking the appropriate icon. Editing an existing standard print form Requirement: A standard form. Otherwise the print form will not be available later for the printing out of a project file in the Printer Setup dialog.g.Functions of the Form Editor Only save the print form in the proposed Forms folder. The format of created standard texts is not changed in this way! 07/01 AWB2700-1305-GB 291 . an English form template. e. Changing the format of text entries Proceed as follows to change the font and font size of project text entries: Choose Elements © Edit Element or click the appropriate icon.wmf. gbform1. Double-click the mouse inside the print range and set the required format in the Font dialog box. using the Del key.óForm Editor Correcting or deleting standard text Choose Elements © Edit Element or click the appropriate icon. Select the element concerned and drag it to the new location in the print form with the mouse button depressed. Choose Elements © Edit Element or click the appropriate icon. The font. 292 07/01 AWB2700-1305-GB . Correct or delete the text. Figure 131: Changing the font of standard text Repositioning elements in the form All the elements of a form can be subsequently repositioned. for example. select the text element concerned and press the right mouse button. Double-click the standard text to be changed. font style and font size of standard text can also be modified later: Choose Elements © Edit Element. Open the Printer Setup dialog: Figure 132: Printer Setup dialog Form: Select the form on which you wish to print out your document. Choose here the required print forms from the Form and Cover Sheet drop-down list boxes. German begin with “D”. French with “F”. 07/01 AWB2700-1305-GB 293 . Cover Sheet: Select the cover sheet required.Functions of the Form Editor Using a new print form for a project printout Choose the Print Setup dialog in the NAVIGATOR before printing a project file. Standard forms and cover sheets in English forms begin with “GB”. Italian with “I” and Spanish with “E”. 294 07/01 AWB2700-1305-GB . 5 Test & Commissioning Overview You can activate the Test and Commissioning tool in the Navigator via Tools © Test and Commissioning or via the button in the toolbar. Test and Commissioning With the Test & Commissioning tool you can: Define programming connections Test wiring Test PLCs Perform network diagnostics Test programs Force variable values. 07/01 AWB2700-1305-GB Figure 133: Test & Commissioning tool with opened Connection List window 295 . The main window of the Test & Commissioning tool provides several tools for these tasks that can be accessed by means of toolbar buttons. must be connected. These functions are described on Page 379. This allows you to display the states of the variables used in the program online in IL. LD or FBD and modify the POU online if necessary. Carrying out a wiring test This step is carried out with the Topology Configurator online. This allows you to view the CPU diagnostics data of the connected PLC as well as all other network stations and devices connected to it via Suconet K or AS-Interface® For this the PLC .e. when the Status display is 296 07/01 AWB2700-1305-GB . The wiring of the connections between the controller and the production plant can be checked.Test & Commissioning Defining programming connections In this step you define the connections between the programming device and the PLCs. and the CPU must be in Halt status. ST. This is further described on Page 361. For this the PLC must be connected. The wiring test is described on Page 343. must be provided with a valid configuration. Carrying out network diagnostics This step is carried out with the Topology Configurator online. Switching between programming languages is possible offline. and the CPU must be in Run status. must be provided with a valid configuration. This is further described on Page 313. i. Carrying out a PLC test This function is accessible via the CPU Status button in the main Test and Commissioning window. Carrying out program tests A program test can be carried out online with the POU Editor. It allows you to carry out troubleshooting on the hardware components. User interface switched off. User interface The main window of the Test & Commissioning tool is bordered at the top by the title bar . A description of how to force variables is provided on Page 398. Figure 134: Main Test & Commissioning window 07/01 AWB2700-1305-GB 297 . the optional menu bar . and online when the Status display is active. and by the optional status bar at the bottom. Forcing variable values With the PS416 and PS4-300 controllers. you can also force variable values statically or dynamically in the Variables window when the PLCs are in the Run status. and the optional and user-definable toolbar with the relevant toolbar buttons . This function is further described on Page 384. The individual toolbar elements can also be removed from the toolbar and positioned as required on the user interface.Test & Commissioning You can activate the Connection List. The Variables window is opened first from the Program window. Program and Variables windows via the menu bar or toolbar in the main window of the Test & Commissioning tool. provided that variables were transferred to the Variables window in a POU that has been opened online. You have opened in your programming device the project containing the POUs and the program code file of the active process. you can move to the Topology Configurator and Program windows provided that: A device with an active process running is connected. The content of the menu bar automatically adjusts to the Test & Commissioning window that is activated. The Sucosoft S40 tool tips offer simple and quick information on the buttons of the toolbars. Topology Configurator. The Connection List window is automatically opened by Sucosoft S40. The toolbar consists of individual toolbars with different functions that are available when the relevant Test & Commissioning window is activated. For safety reasons Sucosoft S40 does not allow you to transfer a different program to the connected 298 07/01 AWB2700-1305-GB . Follow the points below in order to change between the different test and commissioning windows: Starting from the standard Connection List window which opens automatically. Disconnect.User interface device or disconnect it if other windows are opened as well as the Connection List window. File menu: The File menu is used for saving and printing the connection list. Device menu: Apart from the following descriptions... You have unrestricted access to the device once you have closed all windows apart from the Connection List window. Menu bar The Options... Descriptions of functions that are not part of the standard Windows range of functions are already explained for the Sucosoft S40 Navigator and POU Editor tools. Window and Help menus are available in all of the four Test & Commissioning windows mentioned above and offer the same functions. The following description of the menu bars therefore only refers to functions that are not explained by the toolbar buttons or are not selfexplanatory.: Use this menu item to define or modify passwords for the PS4-300 or PS416 PLCs in order 299 . the individual items of the Device menu are described in the appropriate chapters or with the descriptions of the buttons in the toolbar: 07/01 AWB2700-1305-GB Connect. The Test & Commissioning tool functions are described in this chapter primarily with reference to the toolbar buttons.: These menu items are used to establish or terminate the connection between the programming device and the controller. Menu bar for the Connection List window. Password. and for quitting the Test & Commissioning tool via File © Exit. for setting up the printer (see Page 39 and Page 40).. PLC type and interface. enter the required password. 300 07/01 AWB2700-1305-GB .Test & Commissioning to prevent unauthorised access. New: This menu item is used to add another connection to the connection list with the standard entries for name. Paste: Use this menu item to add a connection definition to the connection list from the Clipboard. Copy: Use this menu item to copy the selected connection definition for the relevant automation product to the Clipboard. Deleting is only possible for a connection definition that is not used to connect a device. Procedure: Choose Device © Password. Figure 135: Password request on PS4-300 and PS416 Delete: Use this menu item to remove the selected connection definition for the relevant automation product from the connection list. The password can consist of up to eight numbers and letters. enter it again in the Confirm Password box and click OK to confirm the entry. 07/01 AWB2700-1305-GB Only Instance Tree/Only POU Calls: Each of these functions hides the other pane. a function block instance. Display/Modify POU: Use this menu item to open the POU Editor in Online mode. Display menu: The Display menu offers the following functions: Instance Tree and POU Calls: This function displays both panes of the Program window (standard setting). e. The right window shows the names of the POUs that are subordinate to the POU selected on the left. The instance tree appears in the left window.User interface Menu bar for the Topology Configurator window The function description for the menu items of the Topology Configurator in online mode is explained with the toolbar buttons (see Page 306). Program menu: The Program menu offers the following functions: Show Next Level: This function is used to show the lower levels of the displayed program. i. as well as any additional information. 301 . with the current POU active.e. Instead of using Program © Hide Branch. Show/Hide Branch: This function is used to show/ hide all subordinate levels of the selected POU. and shows the structure of the user program starting from the resource. you can also double-click RESOURCE to hide the branch again. Menu bar for the Program window. Instead of using this function you can double-click a level to show the next level required. in the foreground.g. Display menu: The Display menu offers the following functions: Variables List and Info: This function displays both panes of the Variables window (standard setting). The right window shows the names and any additional information on the variables that are subordinate to the POU selected on the left. 302 07/01 AWB2700-1305-GB . Variables menu:The Variables menu offers the following functions: Show Next Level: This function is used to show the variables of the POU selected in the Variables list. Instead of using this function you can double-click a POU to show the next level required. These variables were entered in the Variables list beforehand in the POU Editor (online mode). Status Display: This function starts or closes the Status Display for the variables shown (see Section “Variables window” on Page 393).Test & Commissioning Menu bar in the Variables window To show variables in the Variables window. Delete: This function is used to remove the selected variables of a POU in the left or right panes from the variables list. and are not physically deleted. When you delete the last variable shown of a POU. Show/Hide Branch: This function is used to show/ hide the variables of the selected POU. the POU is also removed from the variables list. you first transfer them from a POU that you have opened online in the POU Editor (see Section “Variables window” on Page 393). Only Variables List/Only Info: Each of these functions hides the other pane (left or right). The variables are only removed from the window. The POUs are shown in the left window with the associated variables. Binary. The display of string variables can be disabled accordingly with ANSI.User interface Decimal. BCD: These functions are used to select the required display format in the right Info pane for the selected variables. 07/01 AWB2700-1305-GB 303 . ASCII. Disconnect: This button terminates the connection to the connected device (see Page 342). Connect: This button connects the device to the selected connection (see Page 341). Toolbar Buttons in the Connection List window The Connection List window shows the configured connections for the individual device types. This changes the display of the Status column of the Info pane. Hexadecimal. the different programming device interfaces or coupling types. depending on the type of PLC. 304 07/01 AWB2700-1305-GB .Test & Commissioning CPU Status: This button opens the Status and Diagnostics function in which you can check the status of the CPU (see Page 361). Here you can transfer the operating system or programs from the programmer to the PLC or memory card. you can display a program loaded in the PLC. and provides buttons for starting stopping and deleting the program (see Page 357). Program Status: This button opens the Status and Diagnostics dialog with the Program Status display. The Memory Card tab allows you to format the memory card. transfer a program from it to the PLC or delete a program on it (see Page 349). You can also compare a program in the PLC with a program on the programmer unit or memory card. This shows the operating state of the CPU. cold start it. Requirement: Only the Connection List window must be opened in the T & C. Transfer/File Manager: This button opens the Transfer/File Manager dialog with a display of the programmer unit. With the Controller tab active. and. delete it there or transfer it to the memory card. Display/Change Date/Time: Use this button to open the Display/Change Date/Time dialog. Clicking the middle button transfers the values shown on the left to the PLC's CPU.User interface Figure 136: Display/Change Date/Time dialog The left of the dialog allows you to set the date and time as required. The right of the dialog shows you the date and time of the real-time clock in the controller CPU. Sucosoft S40 will calculate the weekday on the basis of the date shown on the left. or accept the settings from the PC by clicking the button on the left. It is not possible to make settings here. 07/01 AWB2700-1305-GB 305 . Click the Close button to close the dialog. together with the calculated weekday. . optional user descriptions for the cards and devices are then displayed on the screen.. The information displayed includes operating state. In the latter case. Compressed Display: Switches between graphical and compressed display. if available. The standard Save As. switch position.Test & Commissioning Buttons in the Topology Configurator window All functions with the Topology Configurator in Online mode can be chosen using the buttons of the configurator. Figure 137: Buttons in the Topology Configurator window (Online mode) Compare Configuration: Opens a standard file dialog to allow you to choose the topology file to compare with the topology information stored in the PLC. The same information is shown when you click the CPU Status button in the main window of the Test and Commissioning tool. dialog is shown on the screen. 306 07/01 AWB2700-1305-GB . etc. If the topologies are not identical. If both topologies are identical. the following message is shown: Save: Writes to a file the topology configuration read from PLC. operating system version. the device names are shown abbreviated and the user descriptions of the devices are not shown. memory size. Display CPU Status: Shows the CPU Status if a CPU is selected in the topology configuration. diagnostic bits. In the event of a fault. This is used to display and to change values for inputs and outputs of up to 10 devices simultaneously.User interface Display Network Diagnostics: This switches on or off the monitoring of the network status in the Online display of the Topology Configurator. Display/Force I/O: This function is used for carrying out a wiring test in your system. The response of your system can also be tested by setting outputs (see Page 343). network lines with communication problems are shown as dotted lines and the master CPU which controls the line is marked with a lightning symbol. Diagnostics information is shown for the currently selected device or module. Display Diagnostics: The diagnostics status is only shown if you have enabled network diagnostics. 07/01 AWB2700-1305-GB 307 . devices with communication problems are shaded in red. The descriptions for the diagnostics bits are always shown in English. which was loaded into the PLC as part of the *. Figure 138: ASi buttons in the Topology Configurator window (Online mode) ASi Master Status: Use this button to obtain information on the status of the LE4-505-BS1 master module.pcd file. you can assign a new station number to a slave or change the current parameters. 308 07/01 AWB2700-1305-GB . ASi Actual Configuration: Use this button to view the configured and actual values of a station. the relevant menu items of the Components menu and the relevant buttons will be made available. The permanent configuration is the one created in the Topology Configurator. ASi Permanent Configuration: Use this button to view the permanent configuration. ASi Slave Status: Use this button to view the configured and actual values of a slave. If the ASI Slave status is started from the actual configuration when the PLC is in Halt.Test & Commissioning Buttons when using an ASi topology configuration If you have selected an Asi component in the Topology Configurator (Online mode). User interface Buttons in the Program window Display/Modify POU: Use this button to open the POU Editor online with the selected POU active.e. Information on how to make online modifications on the displayed POU or how to display variables is provided in Section Program test from Page 384. This button and the corresponding menu item are only available if you have selected a POU in the instance tree of the Program window. The window will remain empty if no variables have been transferred. i. 07/01 AWB2700-1305-GB 309 . Variables window: Use this button to open the Variables window and display a previously created variables list. in the foreground. Cancel Forcing: This button cancels forcing for selected variables. Enter Forced Status: Use this button to enter the forced value and the forcing mode for the selected variables (see Section “Forcing variable values” on Page 398). 310 07/01 AWB2700-1305-GB . The variables concerned must be listed beforehand in the variables list. Cancel All: This button cancels forcing for all variables.Test & Commissioning Buttons in the Variables window Status Display: This button starts or closes the Status Display for the variables shown. Force: Values that were defined beforehand with the Enter Forced Status button are forced with this button. Commissioning Commissioning When calling the Test & Commissioning tool from the Navigator for the first time with a newly created project. The steps will now be described in detail. 07/01 AWB2700-1305-GB 311 . A new connection can be created via Device © New. according to the selection in the Navigator ) and programming device interface. Once you have created a connection list. you must create a new connection list. device type (PLC type. Figure 140: Connection List window You can change the standard settings as follows: Click the Device Name field and assign a name for the PLC to be connected or click in the Interface field and select another programming device interface. You can remove an unnecessary connection via Device © Delete. proceed with commissioning according to the flow diagram given below. This connection list shows an initial connection with the standard settings for device name. Figure 139: Creating a connection list Confirming your entry with OK will open the Test & Commissioning tool with the Connection List window. PLC connection. display diagnostics bits. page 361 Yes Other tests? No Wiring test? No Exit Online mode. page 403 Modify POU offline and compile. page 62 Start program. page 350 PLC test? No Transfer to the PLC. page 313 Operating system present?* Yes No Transfer operating system or boot from memory card. page 342 Yes 312 07/01 AWB2700-1305-GB . page 396 * for PS4-300/PS416 Test other POUs? No Clear connection.Test & Commissioning Define establish PRG . page 387 No Modifications online possible? Yes Modify POU online. possible force variables. page 357 Yes Display/force inputs/outputs. page 343 Yes Other tests? No Test POU. page 352 Yes Check CPU status. click in the Interface field and select another interface from the pop-up list which is shown. 07/01 AWB2700-1305-GB 313 . Sucosoft S40 also offers three other kinds of programming connections that can be selected and assigned parameters in the Connection List window: Multidrop programming connections. see Page 315 Programming connection via modem. Click the Interface Parameters button. Point-to-point programming connection (directly to the PLC) If your serial programming cable is not connected to the default serial interface COM1.Commissioning Overview of programming connections Sucosoft S40 automatically offers a standard pointto-point programming connection for a direct connection to the PLC (see the following section). see Page 334. Interface Parameters button The Interface Settings dialog box will appear. see Page 316 Programming via Suconet K. The programming connection is made in this case via the public telephone network. see Page 315 . Otherwise the second CPU would operate with the internal data of the first. reconnect via the connection list in the Test and Commissioning window after you have replugged the cable. Detailed information on remote diagnostics is provided in Section “Programming connection via modem” on Page 316. Choose File © Save to save the connection list. With PS4-200 compact PLCs the maximum transfer rate is 9600 Baud! Activate the Connection Via Modem check box if you want to program the PLC remotely via a modem. you can then establish the connection between the 314 07/01 AWB2700-1305-GB . After you have specified the transfer parameters.Test & Commissioning Figure 141: Interface settings for PS416 Enter here the required interface parameters for your programming connection: Only when setting interface parameters for a PS416 can an address be selected in the CPU Address list box. This is necessary for multidrop programming connections. Note! When working with several CPUs and one programming device cable. 9-pole SUB-D plug. For this you require a UM 1. 9-pole SUB-D plug. For each PLC connected to an interface via a multidrop connection set the individual CPU address via the DIP switches. as well as a multidrop cable.e. 315 . connect the PLC. Multidrop cable This cable must be prepared as follows: SUB-D socket. n 3 2 1 8 6 Figure 142: Preparation of the multidrop cable 07/01 AWB2700-1305-GB Settings on CPU Push the PRG interface selector switch to the right for RS 485 bus operation. 1 3 2 1 8 6 -------------------------- Connection PS416 No. i. 9-pole 1 6 2 7 3 8 4 9 5 1 6 2 7 3 8 4 9 5 1 6 2 7 3 8 4 9 5 Connection Converter 3 4 5 7 9 -------------------------- Connection PS416 No. Multidrop programming connections A multidrop connection can be used to connect several PS416s to a serial interface on your PC.2 (RS 232 © RS 485) interface converter or a later model.Commissioning programming device and the controller by clicking the Connect button. PS4-150 or PS4-271 PLC types cannot be programmed via Suconet K. If the CPU is either the first or last station on the bus. The bus terminating resistors of all other CPUs must be set to OFF. Enter the appropriate CPU address for each connection under Interface Settings (see Fig. Programming connection via modem 07/01 AWB2700-1305-GB Data can be transferred between a PC and the PLC via the public telephone network using a modem. The CPU must be removed from the rack before it can be set. Subordinate PS4-200. Select a baud rate of 9600 baud. for 316 . This provides an unambiguous identification for each CPU. 141 on Page 314). 140 on Page 311).Test & Commissioning These switches are on the right of the CPU. The transfer rate is limited to 9600 baud. The factory setting for the programming interface is address 1. set the RS 485 bus terminating resistors to ON. Setting in the Test & Commissioning tool Specify a connection in the Connection List window for each connected PS416. A PLC that is connected to the public telephone network via a modem can be diagnosed. Restrictions Multidrop programming connections are subject to the following restrictions: No more than 31 PS416 controllers can be connected to one interface in this way. and enter a different Device Name (see Fig. Requirements: Activate the Connection Via Modem check box in the Interface Settings dialog if you want to program the PLC remotely via a modem (see Fig. 1) Recommended modems tested by Moeller in pairs: Manufacturer ke Westermo Type LOGEM LGH 28. from a PC which is located in another town or country and also connected to a PC via a modem. check the status of machines or carry out program diagnostics and remedy faults. For example you can remotely load program updates into the PLC.8D1 and LOGEM 928 TD-32 (DC) 07/01 AWB2700-1305-GB 317 .Commissioning example. To commission your modem you need the following components: Telephone connection (on PC and PLC) 2 modems (with manual)1) PC with available serial interface Connecting cables to the telephone socket and to the DTE. All functions that can be carried out locally with the Sucosoft software can also be carried out remotely via modem. 144 on Page 321). You can also remotely operate and test a PLC via modem. You can either connect the modem in parallel to an existing telephone by sharing the same telephone socket. i. they must not automatically form blocks.e. The modems must be run in Transparent mode. full-duplex) Data security from MNP4 or V42 Data compression from MNP5 or V42 Data transmission to DTE: 9600 Bit/s 8N1 (or 8E1 with an earlier hardware version of PS416-CPU-xxx than V04). Establishing a remote connection (Overview) Establish remote connection to a PLC by carrying out the following steps: Check the switch positions on the PC and PLC modem and change if necessary. Connect PC and PLC modems (Page 319) Initialise PC and PLC modem (Page 321 and Page 326) Establish the connection (Page 329). 318 07/01 AWB2700-1305-GB . Protection of PLC from unauthorized access (Page 332). Terminate the connection (Page 331).Test & Commissioning Modem requirements Data transmission on telephone line: Modulation from V32 (9600 Bit/s. In the case of a private telephone exchange (PBX) – the modem can be connected to a separate telephone extension. A telephone connection is necessary for data communication in the public telephone network. checksums or make block repetitions. asynchronous Hayes compatible modem. PS4-201/271-MM1) and the PS4-341-MM1 controller are identical but are different from those of the PS416 series (PS416-CPU-200/300/400). The following items are required: A V. 07/01 AWB2700-1305-GB More information on wiring and technical information can be found in the Appendix and in the following manuals: 319 . The PC modem is connected to the PLC modem via the telephone network (see Fig. it is necessary to connect up the PLC modem. Connect the modem to your PC and to the telephone socket as described in the modem manual. 143 on Page 320). The modem is connected to the PLC by attaching the serial cable to the PRG interface socket. Connecting up the PLC modem After installing and configuring the PC modem.Commissioning Connecting the PC modem The PC is connected with an RS 232 cable to the PC modem via an unused serial interface on the PC.24 interface cable for the PLC modem A telephone connection close to the PLC One of the following PLCs: PS4-141-MM1 PS4-151-MM1 PS4-201-MM1 from version 05 PS4-271-MM1 PS4-341-MM1 PS416-CPU-400 from version 04 PS416-CPU-200/300 An external. The socket and the pin assignments for the PS4-200 series controllers (PS4-141/151-MM1. The modem will carry out a short self-test and is then ready for operation. Connect up the PLC modem to the PLC and the telephone socket and switch on the modem. Only change the settings of a PLC – in particular during online programming and forcing outputs remotely – if you are sure it will not cause any hazardous conditions for persons or machinery. LEDs on the modem are provided to indicate the modem’s status. Figure 143: Connecting modem to PC and PLC Warning! Remote programming allows you to program a running PLC.Test & Commissioning AWB27-1208-GB (PS416) AWB27-1184-GB (PS4-200) AWB27-1311-GB (PS4-300). this can present a potential hazard for persons and machinery. 320 07/01 AWB2700-1305-GB . Since you can influence running processes and machines. 321 . Click the Interface Parameters button or choose Device © Interface Parameters. Define a connection to the required device in the connection list (see Page 303).Commissioning Initialising PC modem Start the Test & Commissioning tool. Activate the Connection Via Modem check box in the Interface Settings dialog. Enter the correct CPU address and select the appropriate baud rate. The dialog will then include the options for modem setting: Figure 144: Interface settings for PS4-201-MM1 07/01 AWB2700-1305-GB The settings in the Modem Connection section in the above dialog box are used to configure your PC modem. Further information on initialising the PLC modem is provided on Page 326. In this way you can use this entry field to transfer an initialisation string (see Appendix) to the modem before the command for establishing the connection is entered. AT commands for establishing a connection: The so-called AT commands. have been standardised to a certain extent by the Hayes company. The AT Commands for the Connection text field is used to enter the commands for establishing the modem connection. Language Elements”. The suggested value depends on the configured modem baud rate and should not be reduced. The SendATCommand function block is described in AWB2700-1306GB. The communication speed between the PC modem and the PLC modem is not configurable – the two modems negotiate the fastest possible speed automatically when the connection is initiated. which are used to issue commands to the modem. You can increase the value if you expect a poor quality connection or an existing connection is often dropped without warning. The configured interface speed between the PLC and the PLC modem must not exceed the configured interface speed between the PC and the PC modem. Timeout delay: The Timeout delay in ms entry field is used to define a standard delay time depending on the baud rate. With remotely configurable modems this can be set via the standard terminal software or by sending modem AT commands from your PLC program using the SendATCommand function block. 322 07/01 AWB2700-1305-GB . This value defines the maximum time that Sucosoft waits for a response from the PLC.Test & Commissioning Baud rate: The Baud Rate drop-down list is used to choose the transfer speed between the programming PC and the PC modem. “Sucosoft S40. respectively. If your PC modem is connected to a private telephone exchange (PBX). If pauses are necessary during the dialling process. the dial tone may differ from the standard dial tone and will then not be recognized by the modem. The standard AT command for a standard telephone connection is ATDP for pulse dial. Please refer to your modem manual for a complete list of the AT commands which are supported by your particular type of modem. this can be achieved by inserting the letter “W” within the number to be dialled. 07/01 AWB2700-1305-GB 323 .Commissioning Start the connection establishment by clicking on the Connect button or via Device © Connect. This can be remedied by changing the dialling command to ATX3DP for pulse dial and ATX3DT for tone dial. Tone dialling is activated using the ATDT command. Connect Important AT commands are summarized in the Appendix. Test & Commissioning Examples: ATDP02286021414 Dial the telephone number 02286021414 from a direct telephone connection using pulse dialling. ATDT00W02286021414 Dial the telephone number 02286021414 from a PBX using tone dialling. wait for the outside line signal after dialling 00. 324 07/01 AWB2700-1305-GB . ATX3DT1414 Dial the telephone number 0228 602 1414 from a PBX without a normal dial tone using tone dialling. ATZ0. AT commands for terminating a connection: This field is used to enter the commands that are executed via Device © Disconnect or via the Disconnect button. If the modem can store configuration parameters. save your configuration with the command AT&W0. e. The command ATZ and a number can then be used to call this saved configuration.g. It may be necessary to prefix this command with the characters +++ to ensure that the modem switches from the data communications mode back to the command mode in order to accept the command. Disconnect button The standard AT command to disconnect the line is ATH0. since otherwise you will not be informed about the connection status. Wait for connection in s: This field is used to enter the maximum time that Sucosoft should wait for the connection via the PC modem to be established. To use the Connection Check via DCD line function. the PC modem must be able to evaluate the status of the PLC modem carrier signal. the connection attempt will be aborted with an error message. If the connection has not been established within this time. 07/01 AWB2700-1305-GB 325 . you will see a detailed log of each of the modem commands and reactions while the connection is being established. If the log window is disabled. Display connection protocol: If you activate this check box. Choose File © Save to save the connection list. Programming actions can only be carried out when the connection is valid.Commissioning Connection Check via DCD line: The program will inform you if the connection to the PLC modem is established. you should check the option Connection Check via DCD line. as it keeps the DCD signal permanently set. you will only see a short message to indicate whether the connection was made successfully or not. The AT&C0 command cannot therefore be used for the PC modem. If this option is disabled. A transfer rate of 9600 baud is suitable for most conditions. Depending on the functions available on the modem and the quality of the telephone network. 326 07/01 AWB2700-1305-GB . The transfer rate for the PC and PLC modems must be the same . With the PS 4-200 compact controller. The configuration must then be stored in the modem’s non-volatile memory (Page 327 ). In this case. the transfer rate must be reduced before the modem connection is established. If remote configuration is supported by your modem. In a PS4-300 or PS416 program you can use the SendATCommand function block to address the modem and send it AT commands via the PRG interface (Page 329).Test & Commissioning Initialising the PLC modem Several options are also available for initialising the modem and assigning parameters: Set the parameters once with a standard terminal program on your PC before connecting to the PLC. you can configure the PLC modem from a remote PC through the telephone line. the baud rate should be set to 9600 baud only. the transfer rate set there must be the initial setting of the PLC for the new modem connection. This must be particularly observed when there has previously been a direct connection between the programming device and PLC. Check whether the PLC modem is ready and connected up correctly. 07/01 AWB2700-1305-GB 327 . type in the characters AT and press Enter. 1 Stop bit. They are necessary to configure the modem for use with the PLC.Commissioning Initialising with a standard terminal program: You can initialise the modem with a standard terminal program. (e. Enter the following modem AT commands in the order shown. The initialisation string shown in the Appendix for LOGEM 928 and LOGEM LGH 28. The Appendix to this manual contains a selection of common Hayes compatible AT commands. Hyperterminal or Telix). Start the terminal program and configure it to use the serial interface to which the modem is connected. compare the commands and their significance with the command list in your modem manual. Configure the serial interface as follows: Serial interface: 9 600 baud. 8 data bits. Since the necessary commands are not completely standardised for all modem types. The modem is ready and connected up correctly if it responds with the characters OK.8D1 modems (Page 423) is an example.g. no parity Flow control: disable XON/XOFF or CTS/RTS Local echo: OFF Terminal type: VT100 or similar. Connect the PLC modem temporarily to a free serial interface on your PC. switch to Terminal mode. In your terminal program. The settings are retentive even if the modem is switched off – the settings are activated again when the modem is switched on. Disconnect the modem from the PC and connect it to the programming interface of the PLC. disable the following protocols in the PLC modem with the AT commands listed below: AT Command AT%C0 AT\N0 AT&U1 AT-J0 Meaning Disable data compression Disable automatic error correction Additional error protocols with V. Modern modems usually have two or more parameter sets in non-volatile memory. If you have problems with data transmission or an existing connection is terminated without warning.32 (e.Test & Commissioning Store the configuration settings in the modem’s non-volatile memory.42 detection 328 07/01 AWB2700-1305-GB .g. Use the AT command AT&W0 to store the configuration in user setting parameter set 0. whereby the default action is to load user setting parameter set 0 following power up or reset. Trellis) Disable V. contact the supplier of the PBX. pay attention to nonstandard features. Output the AT commands in the first cycle following the cold start to ensure that the modem is always correctly initialised without further program actions.g. Setting up a modem connection Requirements: The parameters of the required PLC connection have been set and the modem is properly connected to the PC and PLC.Commissioning Initialising via the PLC program: Use the SendATCommand function block in your PLC program in order to send the appropriate AT commands. or the procedure or code necessary to get an outside line. Establish the modem connection between the programming device and the controller by clicking the Connect button. Using the modem with a private telephone exchange (PBX):When connecting up the modem to a private telephone network. a successful connection establishment will be indicated by an appropriate message (in the following picture the plain text message CONNECT): 329 07/01 AWB2700-1305-GB . If necessary. Initialising via remote configuration: An example of this is shown on Page 426. Language Elements” for information on the SendATCommand function block and an example of its usage. If you have activated the Display Connection Protocol check box. Ensure that the baud rates between the modem and the DTE (PC or PLC) are the same. enabling the telephone extension for outside calls. e. differing pin assignment of the telephone socket. See the manual AWB2700-1306-GB “Sucosoft S40. Test & Commissioning Figure 145: Connection protocol window with connection established Confirm the connection establishment log by clicking OK. Sucosoft S40 establishes the connection to the PLC in the same way as with direct point-to-point connections. 07/01 AWB2700-1305-GB Clicking the Cancel button instead of the Clear Connection button will both clear the existing connection and close the SucoTerminal dialog. Use the Clear Connection button in the SucoTerminal dialog to clear an existing connection. The SucoTerminal dialog will continue to remain open. All the options provided by the Test & Commissioning tool with a direct connection between a programming device and a PLC are also available with the modem connection. 330 . Proceed as follows to terminate the remote connection to the PLC from the main Test & Commissioning window: Click the Disconnect button or choose Device © Disconnect. the connection termination will also be displayed in the SucoTerminal dialog: 07/01 AWB2700-1305-GB 331 . Disconnect button The connection is also terminated when the T & C tool is closed.Commissioning Terminating a modem connection Requirement: Only the Connection List window must be opened in the main T & C window. If you have activated the Display Connection Protocol check box. but differs according to the controller type as follows: 332 07/01 AWB2700-1305-GB . Protection of PLC from unauthorized access Since it is possible to make a connection to the PLC modem with any other modem. you should protect the PLC and the connected machines against unauthorized access.Test & Commissioning Figure 146: Connection termination log window If the log window check box is disabled. Password protection is the same for all modems used. Several methods are available: Password protection: Sucosoft provides password protection to protect a program or the PLC from unauthorized access. you will only see a short message to indicate whether the connection termination was successful or not. Commissioning PS4-300: With these PLCs. Note that this feature is not available for all modems and needs to be explicitly activated. Access protection via automatic callback: With this method of protection. the called PLC modem automatically terminates the connection after successful connection establishment. Some modems allow several callback telephone numbers to be configured. the PLC program can be protected with a password. The password must be entered for all actions that change the program or PLC status. Note that this feature is not available for all modems and needs to be explicitly activated. and returns the call automatically to a previously specified telephone number. The PC modem must be configured for automatic call answering to use this option. PS416: A password can be assigned to the controller irrespective of the individual program or the number of simultaneously loaded programs. 07/01 AWB2700-1305-GB 333 . Access protection via the PLC modem: Modern modems provide a feature which requires a password to be entered before the connection is established. See Page 300 for information on entering the password. The password is requested each time you connect to the controller. See Page 300 for information on entering the password. Only one cable is thus required for programming.1 Programming cable PLC type PS4: ZB4-303-KB1 PS416: PS416-ZBK-210 PS4-141-MM1/PS4-151-MM1 PS4-201-MM1 from V 05 PS4-271-MM1 PS4-341-MM1 PS416-CPU-300/PS416-CPU-400 from V 04 PS416-NET-400 from V 05 07/01 AWB2700-1305-GB 334 .Test & Commissioning Programming via Suconet K PLCs that are designed for use in a Suconet network can be individually programmed just like stand-alone PLCs using a programming cable connected in turn between each PLC and the programming device (PC). Sucosoft also allows one or more subordinate PLCs to be programmed and commissioned via the Suconet network from a central master PLC which is connected to the programming device using a single programming cable. maintenance and communication and it is possible to address several PLCs from a single central programming system. Requirements: Programming via Suconet K requires the following: Programming software Sucosoft S40 from version 2. The subordinate PLCs must be stations on Suconet K lines which are directly managed by the master. Information on whether a particular PLC type can be programmed via Suconet is contained in the documentation of the respective PLC. PS416-CPU-xxx. such as PS4-300. you can only program subordinate PLCs (stations) of the same series. 335 .Commissioning a b c d e Figure 147: Programming via Suconet K (PS4) PC with Sucosoft S40 programming software ZB4-303-KB1 programming cable Master: PS4-201-MM1 from version 05 Station 1: PS4-201-MM1 from version 05 Suconet K. but not PLCs with a different programming protocol. line 1 07/01 AWB2700-1305-GB If the master PLC is a PS4-200 series compact controller. line 1 336 07/01 AWB2700-1305-GB .Test & Commissioning a b CPU NET 400 POW c POW CPU d e Figure 148: Programming via Suconet K (PS416) PC with Sucosoft S40 programming software PS416-ZBK-210 programming cable Master PLC: PS416 with PS416-NET-400 Suconet K card from version 05 Station 1: PS416 Suconet K. a small “dummy” program must be pre-loaded in the master and in all other PLCs to be programmed through Suconet K to ensure that the required.Commissioning Including networked PLCs in the connection list Requirements: In order to program PLCs via a Suconet K network. Add a new line in the connection list with Device © New. device “example” in the example below. Furthermore. Define the direct connection between the programming device and the master. the master CPU must be configured as the network master. The master PLC must also be specified in the connection list to allow the programming device to address the subordinate PLCs which are connected to it. Use the following procedure: Connect the master PLC to the subordinate PLC or PLCs via Suconet K. final topology configuration is available (it is embedded in the program code). 07/01 AWB2700-1305-GB 337 . Select the name of the master from the Interface pop-up list. Enter the number of the network line of the master and the station number (address) of the subordinate PLC. Connect the new PLC to the network and transfer a small “dummy” program containing a topology configuration with the required final station number for the new PLC.Test & Commissioning Figure 149: Including networked PLCs in the connection list Enter the required name for the subordinate PLC in the Device Name box. Line and Station boxes. new CPUs are factory set with the station number 0 (unaddressed slave). as described above. 338 07/01 AWB2700-1305-GB . To do this click the Line list box. and save the connection list. Configuring a PLC for the first time via Suconet K In order to make it easier to program a new CPU – such as a replacement for a failed device – from the central programming system via Suconet K. Choose File © Save to save the connection list. and the Station box a 0 (unaddressed slave). The first time it is clicked the Line box will automatically show a 1. Make the necessary entries in the Device Name. For this read Section “Transferring the program” from Page 352. At this stage. 07/01 AWB2700-1305-GB 339 . The following method allows you to configure an entire. the contents of the Program POUs which are used for program code generation can be small “dummy” programs which do not yet implement the assigned automation task. Establish the connection between PC and PLC and transfer the dummy program with the associated topology configuration. the programming device must already have program code with the required final topology configuration for each slave PLC. Repeat the above steps for the remaining slave PLCs. new network from a single programming device without loading the final user programs at this stage: Requirements: The master is already defined in the connection list. Connect the first slave PLC to the Suconet K network. Enter the temporary address 0 (unaddressed slave) in the connection list. In addition.Commissioning The station numbers in the connection list are updated automatically after a program has been transferred successfully and the user has confirmed the update. Save the connection list via File © Save. By using the master controller as a “gateway” between the programming cable and the Suconet K fieldbus. This is done by loading a program into each slave controller together with the associated topology configuration which specifies the required final station address before connecting the controller to the network. If the master controller is currently in the Ready state. all programming and monitoring functions can be carried out as if each slave controller connected to the fieldbus is directly connected to the programming device.Test & Commissioning You can physically connect up the next slave controller as soon as the address of the previous slave station has been updated in the connection list. In addition. Accordingly. Another method is to use a standard direct programming cable to specify the required final Suconet K station address of each slave controller in advance. 340 07/01 AWB2700-1305-GB . online services supported by the programming device are executed independently of data communications which may be taking place through the same Suconet K connection simultaneously. if the master controller is running a program (Run state). the functions are about 20 % slower than a direct connection. it is only possible to specify approximate values. functions such as loading a user program and displaying status information from a slave are about 10 % slower than with a direct connection to the programming device. Programming performance The time response when programming through a master controller and Suconet K depends on the number of connected slave stations and the quantity of program data to be transferred. In this case return to the connection list and make the connection using the new address. Example: Connect a network station on address 2 Download a program containing the station address changed to 4. Establish the connection between the programming device and the controller by clicking the Connect button. Connecting and disconnecting a PLC Connecting a PLC Requirements: The serial programming cable is fitted between the PC and the PLC. With the PS416 controller.5 interface converter A connection list is available. this may cause an error during the transfer. 07/01 AWB2700-1305-GB Connect button 341 . Select the required connection in the connection list. After the transfer the PLC can no longer be addressed under address 2. when transferring to slave PLCs If the address of a station has changed during the transfer to a slave PLC. check the correct position of the interface switch on the CPU card: RS 232 © cable PS416ZKB-210 RS 485 © UM1.Commissioning Transfer errors. If the Save Settings on Exit in the Options menu is active. Disconnect button 342 07/01 AWB2700-1305-GB . Select the required connection in the connection list. The Program and Topology Configuration windows that were active during the last session are also opened.Test & Commissioning An established connection is displayed by the symbol of a connected plug in front of the device name: “Connection established” symbol. starting the Test & Commissioning tool will automatically cause the reconnection of all devices that were connected during the previous session. Disconnecting a PLC Requirements: Only the Connection List window must be opened in the main T & C window. Terminate the connection by clicking the Disconnect button. 07/01 AWB2700-1305-GB 343 . Start the wiring test via the Online Topology Configurator. The topology configuration must have been compiled beforehand with a program POU. You can inspect the input and output values of the different modules. The contents of this POU is not important but is used to provide a loadable program code file. The wiring test can only be carried out with the CPU in Halt. no program running. set the outputs of the PLC to defined states and thereby check the reaction of the system.Commissioning Wiring test Test the correct functioning of sensors and actuators (inputs and outputs) of your system by carrying out a wiring test. cards and devices. Activate the Connection List window in the main T & C window and then click the Topology button. The load operation is described in the chapter Transferring the program from Page 352. i. The Online Topology Configurator reads from the PLC the topology configuration that was entered when the project was created and shows this in the Topology Configurator window.e. The PLC must be connected and must be provided with a valid configuration with the inputs and outputs to be tested. Requirements: An operating system must have been loaded beforehand on the PLC (see Page 350). In Run status the PS4 controller can display the current status of inputs and outputs. Accordingly. and the PS416 can display the current input states. the digital I/O cards may have different slot numbers than those shown in the Topology Configurator. 344 07/01 AWB2700-1305-GB . the inputs can be displayed and the outputs forced to defined states irrespective of the user program. If the PLC is in Halt. or they may in fact not be inserted in the controller at all. The digital I/O cards of the PS416 are not addressed through the slot number.Test & Commissioning Topology button The Online Topology Configurator will open showing the topology stored in the PLC. The optional user descriptions are shown automatically if there is a configuration that matches the one read out. The relevant buttons are made available. Commissioning Displaying I/O Requirements: The Topology Configurator window must be opened. or to change while the controller is in Halt. Click the Wiring Test button or choose Component © Display/Force I/O. 345 . You can select up to 10 components simultaneously irrespective of which line or network they belong to. hold down the Ctrl key and left-click the components required in the Online Topology Configurator. To select several components. Select the devices whose input and output values you want to inspect. 07/01 AWB2700-1305-GB Executing a wiring test A window which shows the input and output areas of the selected devices together with the current input values is opened. Figure 150: Selecting components In this example the PLC (PS4-341-MM1) and the digital expansion module (EM4) are selected. 4 of the input status byte ISB and the addresses I0. The bits which are set are shown in black.0.0. .0.0.0.2 and I0.0.0.0.0.0.3 of the input word IW0. The hex value resulting from the bit pattern is shown alongside each digital input or output word.0. The top section of the window shows the inputs and outputs of the PS4-341-MM1 master. I0. 346 07/01 AWB2700-1305-GB The example shows addresses I0.0.0.Test & Commissioning Figure 151: Display/Force Inputs/Outputs dialog The values of the analog inputs and outputs are shown in decimal format. The configured range of the PLC outputs is displayed. Deactivate button Use the Delete function to delete the selected bit position again. Warning! The outputs must only be activated under supervision otherwise this will produce uncontrolled switching states in the system controlled.Commissioning Forcing outputs Requirements: The Display/Force I/O window must be open. Delete button Set bit positions are indicated as lit LEDs. To force outputs select the appropriate bits of the output word concerned and click the Activate button to set the bits. 07/01 AWB2700-1305-GB Figure 152: Display of forced outputs 347 . The outputs are initially 0 since the PLC is now halted. The hexadecimal value resulting from the bit pattern is shown alongside the output word. Activate button Use the Deactivate function to abort the operation. The interlocks in the program have no effect since the program is not being executed at this stage. Test & Commissioning The example shows the address 0. For this select the outputs to be forced and enter the required value: Figure 153: Forcing analog outputs Accept the value entered by clicking with the mouse in the Display/Force I/O window.0. Click the Activate button to transfer the specified value to the PLC.0. to cancel the effect of the value on the machine.e. Click Deactivate if you wish to cancel the forcing. i. All forced values are automatically reset when leaving the Display/Force I/Os window.0.5 of output word QW0. 348 07/01 AWB2700-1305-GB . It is also possible to assign a particular value to analog outputs in the same way as for digital outputs. Commissioning Transferring the operating system You can only start a transfer to the connected PLC from the Connection List window. A connection list must be available. With PS4-300 or PS416 PLCs you can replace an operating system that is missing or replace an old one. Transfer/File Manager button 07/01 AWB2700-1305-GB 349 . Other requirements: The serial programming cable must be fitted between the PC and the PLC. In order to transfer an operating system you must open the Transfer/File Manager dialog: Click the Transfer/File Manager button. Only the Connection List window must be opened in the main T & C window. The PLC must be connected. Transfer to PLC button 350 07/01 AWB2700-1305-GB .Test & Commissioning Programming Device © PLC For this select the Programmer tab in the Transfer/File Manager dialog. The Transfer/File Manager window for PS4-300 and PS416 controllers looks as follows: Figure 154: Transfer/File Manager dialog Transfer the selected operating system file by clicking the Transfer to PLC button. Select for the transfer the operating system file (. The name of the relevant operating system file is shown under File Name.osf) format in the File Format list box. a transfer or formatting step. After successful transfer. depending on the baud rate of the connection. The transfer can take several minutes. you will be prompted to confirm this action before the transfer is started. Transfer To Memory Card button 07/01 AWB2700-1305-GB 351 .Commissioning An operating system can only be downloaded when the PLC is in the Ready state. When you replace an existing operating system in the controller with a new version. to run about ten times faster. The Transfer progress indicator will open to show the progress of the load operation. the green READY lamp lights on the CPU card to show that it is ready. Programming Device © Memory Card Switching the PLC to Ready instead of Run will enable every operation that affects the memory card. e. all user programs and data are deleted at the same time! Accordingly.g. Transfer the selected operating system file by clicking the Transfer to Memory Card button. For this select the Programmer tab in the Transfer/File Manager dialog. The PLC is connected.Test & Commissioning Transferring the program You can only start a transfer to the connected PLC from the Connection list. Other requirements: The serial programming cable is fitted between the programmer and the PLC.PCD) as the default setting for transferring the program code file. 352 07/01 AWB2700-1305-GB . The names of the executable PCD files are therefore shown under File Name. In order to transfer a program you must open the Transfer/File Manager dialog: Click the Transfer button. The File Format list box has the required format Program (*. Only the Connection List window must be opened in the main T & C window. Transfer button Programming Device © PLC For this select the Programmer tab in the Transfer/File Manager dialog. A connection list is available. In your programming device you have opened the project containing the POUs and the program code file. ITC”. “.GID”.PCD”.Commissioning Figure 155: Transfer/File Manager dialog Transfer the selected program code file by clicking the Transfer to PLC button. “. “RSDAT” Extensions: “. 353 .PDF”. “. Files with these extensions are not displayed in the File format list box when the All Files setting is selected. “PS416”. “BOOT”. “. Transfer to PLC button 07/01 AWB2700-1305-GB The following file names and extensions are reserved for Sucosoft and must not be used for other files: File names: “416m_” or “341_” followed by numbers.DCF”. “. “. “.LID”. “.LAB”. “Update”. “.TID”.ITB”. “.GAB”.ETC”. this dialog opens directly after the transfer and with Flash cards after closing the Transfer/File Manager dialog: Figure 156: Defining the startup behaviour of the memory card AUTOSTART: The progam is automatically started after being loaded. With SRAM cards. click the Transfer to Memory Card button. Transfer To Memory Card button Special note with PS416 Defining startup behaviour: The Startup Behaviour window is used to define how the controller starts up when booting from a memory card or when loading programs from the memory card. A program can only be started from the programming device. The startup behaviour is not set as active. LOAD: The program is loaded and not started.Test & Commissioning Programmer © Memory Card Proceed as described above. This time. 354 07/01 AWB2700-1305-GB . NOT SET: the program is not loaded after the operating system has been loaded. however. select the Controller tab in the Transfer/File Manager dialog. Transfer From Memory Card To PLC button 07/01 AWB2700-1305-GB 355 . PLC © Memory Card To transfer a program from a PS4-300 or PS416 controller to a memory card. Then transfer the selected program file by clicking the Transfer From Memory Card to PLC button. Transfer from PLC to Memory Card button Memory Card © PLC Proceed as follows to transfer a program from a memory card to a PS4-300 or PS416 controller (this operation is not possible with the PS4-200): For this select the Memory Card tab in the Transfer/File Manager dialog. Then transfer the selected program file by clicking the Transfer from PLC to Memory Card button.Commissioning Further information on this dialog is provided in the hardware description of the relevant controller. Test & Commissioning Formatting the memory card For this select the Memory Card tab in the Transfer/File Manager dialog. An executable program code file and a connection list must be available on the PC. button in the main Test and Commissioning window. Close the Transfer/File Manager window by clicking on Close. Then click the appropriate button. Click the Transfer. Format Memory Card button Comparing a program on the PC and the PLC Requirements: Only the Connection List window must be opened in the main T & C window. a message will appear indicating whether the program in the PLC matches the program in the PC or not. Program comparison between programming device and PLC After a short time. 07/01 AWB2700-1305-GB 356 .. Select the program to be compared in the selection list and click the Program Comparison button. Acknowledge the message with OK.. The programming cable must be connected (or the network connection between the PC and the PLC is present). Open the Transfer/File Manager dialog and select the Programmer tab. The connection between the PC and the PLC must be established. The CPU operating mode selector switch is in RUN or RUN M-RESET: RUN: a warm start or cold start can be carried out.Commissioning Comparing a program on the PC and the memory card Proceed as described above. Activate the Connection List window in the main T & C window and then click the Program Status button. The PLC is connected. 07/01 AWB2700-1305-GB Program Status button The Program Status tab of the following Status and Diagnostics dialog shows the operating status of the 357 . Program comparison between programming device and memory card Starting programs Starting or stopping programs from Sucosoft Use the Status and Diagnostics dialog to start a program from Sucosoft. Requirements: In your programming device you have opened the project containing the POUs and the program code file (pcd file). RUN M-RESET: A cold start is possible. but use instead the button for comparing programs on the PC and memory card. A pcd file (a user program) has already been transferred to the PLC. Only the Connection List window must be opened in the main T & C window. the same functions apply for starting and stopping a program. Although the content of this dialog depends on the PLC concerned. program information and the buttons provided for starting and stopping a program. The program is started and the Run status will be indicated on the screen and on the CPU. The Cold Start and Warm Start buttons will be activated. Click the Halt button to stop the program. These are therefore explained only using the example of PS4-300: Figure 181: Status and Diagnostics dialog Click the Warm Start or Cold Start button.Test & Commissioning CPU. 358 07/01 AWB2700-1305-GB . The CPU status changes to Ready. The Halt button will be available. If a memory card containing user programs has been inserted in the controller. the program will then start automatically as a cold start or warm start. directly on the PLC) if you have assigned the attribute “active” to the program as the startup behaviour.. Sucosoft always assigns this “active” attribute to the last transferred or last cold started program if this operation was carried out later. pressing the Set button can trigger the startup behaviour set under Behaviour after NOT READY (PS4-200) or Startup Behaviour on Warm Start (PS4-300) in Generate © Program Parameters. Depending on the position of the operating mode switch.e.Commissioning Click Close to close the window. For PS416 controllers You can only start a program without Sucosoft S40 (i. the program will then start automatically as a cold start or warm start. Starting or stopping the program without Sucosoft For PS4 controllers Depending on the position of the operating mode switch. When the operating mode selector switch is set to Run. 07/01 AWB2700-1305-GB 359 . .. Booting the controller from the memory card For PS4-200 controllers The program saved on the memory card is transferred to the PLC if the PLC contains no program or a faulty one when the PLC is switched on or started. the program startup behaviour when the controller is switched on is defined by the startup information which is stored on the memory card (see also Page 354). 360 07/01 AWB2700-1305-GB .Test & Commissioning For PS416/PS4-300 controllers If neither operating system nor program are stored in the PLC and both of these are stored on the memory card. On the PS416 you can define the startup behaviour for booting from the memory card and also define which program should be started (see Page 354). first of all the operating system and then the program are transferred to the PLC before the program is then started. This can be carried out during the program test or independently of the user program.System diagnostics System diagnostics CPU status The Test & Commissioning tool offers support in checking the status of the CPU. Requirements: The serial programming cable is fitted between the PC and the PLC.pcd file (a user program) has already been transferred to the PLC. CPU Status button The Status and Diagnostics dialog will open for the PLC type concerned with the CPU Status tab selected. The Test & Commissioning tool has been opened. This dialog provides information about the status of the connected CPU: 07/01 AWB2700-1305-GB 361 . The PLC is connected. Only the Connection List window must be opened in the main T & C window. A *. Click the CPU Status button. Test & Commissioning Figure 157: CPU Status dialog for the PS4-200 362 07/01 AWB2700-1305-GB . System diagnostics Figure 158: CPU Status dialog for the PS4-300 07/01 AWB2700-1305-GB 363 . Test & Commissioning Figure 159: CPU Status dialog for the PS416 These dialog fields display the following information about the connected CPU: 364 07/01 AWB2700-1305-GB . Only PS416: The battery on the CPU or the memory card must be fitted or exchanged. This shows information on the CPU's memory card if it is fitted. If a RUNTIME ERROR occurs. The CPU is ready for operation but the user program is not being processed. LED 4 is lit in the PLC image. This shows the available CPU memory for the user program and the capacity of the entire CPU memory. The appropriate diagnostics bit is set in the program diagnostics status word. This shows the date and time of the real-time clock in the CPU. BATTERY CHANGE ERROR BOOT Switch position Date/Time System information Memory size Memory card 07/01 AWB2700-1305-GB 365 . such as: .. the RUN or READY LEDs and the red ERROR LED are lit. RUN or RUN_M_RESET on the CPU: HALT: The operating mode selector switch is set to HLT/Halt. all LEDs flash on the PLC.Remote I/O has failed . For PS416: Click the Information. This shows the version and the identification code of the operating system in the CPU. the LED 3 (PS4) or the red Not Ready (PS416) are lit in the PLC image..System diagnostics CPU status CPU operating status RUN READY: NOT READY Information Information on the current operating status of the CPU is shown as text and also graphically in the image of the PLC. Shows the position of the operating mode selector switch HALT.Access to a parallel bus station is not possible . Only PS416: The operating system is missing from the CPU. The user program cannot be run. RUN: The operating mode selector switch is set to RUN. Only PS416: An error occurred while the user program was running. Confirming the diagnostics status word via a system cold start or a cold start of the user program will switch the PLC from the error status. LED 2 (PS4) or the green RUN LED (PS416) are lit in the PLC image. The states displayed have the following meaning: The user program is running in the PLC. The red CHANGE LED is lit in the PLC image.The specified cycle time of the user program was exceeded RUNTIME ERROR. Only PS4: The battery on the CPU or the memory card must be fitted or exchanged. LED 1 (PS4) or the green Ready LED (PS416) are lit on the PLC The running program or memory test has encountered fatal hardware or software errors. button to get further information on the memory card. RUN MARKER RESET: The operating mode selector switch is set to RUN_M_RESET. The diagnostics counter is not incremented while the bit is set. the diagnostics bit is shown in red and the value of the associated diagnostics counter is incremented. by clicking Reset Diagnostics Counter. if required. 366 07/01 AWB2700-1305-GB . After rectifying the error. The dialog shows the CPU diagnostics status word according to the type of PLC connected. In the event of an error. The CPU diagnostics status word encodes events that can be diagnosed as errors. the diagnostics bit can be acknowledged by clicking Reset Diagnostics Bits or by pressing the SET/Reset button on the CPU with the operating mode selector switch set to HLT/Halt. Select the Status and Diagnostics dialog and then the CPU Diagnostics tab. The user program can then be restarted in two ways: Via the software using the buttons in the Program Status dialog. Errors that cause the program to stop (CPU status Not Ready) have the Stop attribute in the Category column on the right.Test & Commissioning CPU diagnostics Call up CPU diagnostics as follows: Activate the Connection List window in the main T & C window and then click the CPU Status button. The diagnostics counters can be reset. taking into account the position of the operating mode selector switch and the assigned startup behaviour of the program concerned. Each diagnostics bit is assigned a counter. Diagnostics bits which are set (red) can be reset by clicking Reset Diagnostics Bits. the diagnostics bits are not reset but the program is stopped instead. After rectifying the error. They are shown with the Indication attribute in the Category column. For more information see Section “Starting programs” on Page 357. the diagnostics bit can be acknowledged by pressing the SET/Reset button on the CPU or by clicking the Reset Diagnostics Bits button. The second type of error are those that cause the assigned diagnostics bit to set but do not cause a Halt or Ready status. taking into account the assigned startup behaviour of the program concerned.System diagnostics By pressing the SET/Reset button on the CPU with the operating mode selector switch set to RUN or RUN_M_RESET. 07/01 AWB2700-1305-GB 367 . Such errors are not indicated by the LEDs on the CPU. depending on the CPU status. If the CPU is in Run and the operating mode selector switch is set to HLT/Halt when the SET/ Reset Diagnostics Bits button is pressed. CPU diagnostics status word 14 errors can be detected on the PS4-200. 368 07/01 AWB2700-1305-GB . The CPU diagnostics status word encodes 14 events that can be diagnosed as errors (see following table).Test & Commissioning CPU diagnostics (PS4) Display the CPU diagnostics status word via the Status and Diagnostics dialog and the CPU Diagnostics tab. Figure 160: PS4-200. The CPU diagnostics status word encodes 22 events that can be diagnosed as errors: 07/01 AWB2700-1305-GB 369 .System diagnostics Figure 161: PS4-300. CPU diagnostics status word 22 errors can be detected on the PS4-300. The outputs are reset by the hardware: Stop The CPU hardware watchdog signalled CPU failure (error category: Stop). and an attempt was made to warm start the CPU after a Stop category error.. 07/01 AWB2700-1305-GB PS4-300 ERT ENR EHM ECM ECL ETR EIL EOS – Error in current OS40 discovered. Safe processing cannot be ensured (error category: Stop) Application destroyed (error category: Stop) ECA DAC – Supply voltage dip.. The program must be re-loaded (error category: Stop). For example... In addition. Error in the PLC user program (error category: Stop). index for array access exceeds the array limits: Stop. Run-Time error. for No Restart under Warm Start Behaviour. This message only occurs if the PLC is configured for Halt under Startup Behaviour after NOT READY in the Navigator under Generate © Program Parameters. The supply voltage of the basic unit has failed temporarily (error category: Indication). all memory ranges are cleared and the CPU is re-initialised. restart is only possible via retentive marker reset. – – – – – Restart only possible with retentive marker reset. An attempt was made to execute an impermissible operation of the 80C167 microcontroller (error category: Stop). Timer failure: The timer on the CPU is faulty (error category: Stop). Program memory error. during run time. 370 . restart is only possible via retentive marker reset. It will also occur if an attempt was made to warm start the PLC after a Stop category error. Error found in the checksum or during plausibility check of the user program. Restart only possible with retentive marker reset.. In this situation.Test & Commissioning Table 4: PS4 diagnostics status word Event ECT EDC EWD EPM EDR PS4-200 Cycle time exceeds the maximum value: Stop DC voltage failure due to short-circuit or overload in the basic unit. This message only occurs if an attempt to warm start the PLC was made although the PLC is configured in the Navigator under Generate © Program Parameters. Checksum error of operating system (error category: Stop). CPU real-time clock is faulty (error category: Stop). Important control data of the operating system is corrupted or missing following a change of RAM or with a new PLC (error category: Stop). Error in the CPU during run time Run-time error. RAM memory in the PLC faulty (error category: Stop). Data retention of the operating system corrupted. In this situation. the controller remains in Ready status – the user program is not started. 07/01 AWB2700-1305-GB 371 . Error local status. The configuration of one or more network stations is not correct. PLC digital outputs short-circuited or overloaded: Indication Error remote configuration. The memory module is not suitable for a program backup or for saving files. It occurs if the ZB4-128-SF1 or ZB4-160-SM1 memory modules are fitted. The error can be localised by checking the diagnostics bytes of the network stations (error category: Indication) DDS Click Close to close the CPU Diagnostics dialog and return to the main Test and Commissioning window. The error category is Indication in all other cases. the PLC will stay in Not Ready. i. the specified type designation does not match the actual device present (error category: Indication). If a memory card with a valid program cannot be found during the system start. SBI or network station error Network station error detected via Suconet K. Also see Startup behaviour after Not Ready on Section “Starting or stopping the program without Sucosoft” from Page 359.e. The PLC configuration is not correct or a local expansion module fitted to the basic unit is faulty (error category: Indication). DMC DLK DLS DDK Error in the local configuration.System diagnostics DBM The CPU battery is faulty or empty: Replace the The CPU battery is faulty or empty (error battery: Indication category: Indication) If a battery error is detected during a system cold start. The backup automatically saved on the memory card is faulty or a Flash memory card is not fitted (error category: Indication). Backup not present. CPU diagnostics status word 372 07/01 AWB2700-1305-GB . The CPU diagnostics status word of the PS416 has 13 diagnostics bits for indicating events that have caused errors. Figure 162: PS416.Test & Commissioning CPU diagnostics (PS416) Display the CPU diagnostics status word via the Status and Diagnostics dialog and the System Diagnostics tab. Checksum error of operating system (error category: Stop). Supply voltage dip (error category: Indication) DC voltage failure due to short-circuit or overload in the basic unit. the controller remains in Ready status – the user program is not started. The battery on the memory card is faulty or empty: Indication.System diagnostics Table 5: PS416. The outputs are reset by the hardware (error category: Stop) Card cannot be found in the slot. 07/01 AWB2700-1305-GB Select another function or leave the Test and Commissioning tool via File © Exit. diagnostics status word DHM DCM DCL DBM RAM memory in the PLC faulty (error category: Stop). CPU real-time clock is faulty (error category: Stop). Fatal software error (error category: Stop). Faulty code (error category: Stop). Timer failure: The timer on the CPU is faulty (error category: Stop). 373 . Checksum error. the controller remains in Ready status – the user program is not started. The CPU hardware watchdog signalled CPU failure (error category: Stop). This error is indicated if the code or data is faulty in the user program before a restart (error category: Stop) DBC DAC DDC DAK DTR DWA DIL DOS ACE Click Close to close the CPU Diagnostics dialog and return to the main Test and Commissioning window. If a battery error is detected during a system cold start. The CPU battery is faulty or empty (error category: Indication) If a battery error is detected during a system cold start. No reaction of a card after addressing or addressing of a card which is not fitted (error category: Indication). Click the Program Status button. the same functions apply for starting and stopping a program. Program status button The Program Status tab of the following Status and Diagnostics dialog shows the operating status of the CPU. The CPU operating mode selector switch is in RUN or RUN_M_RESET position. A pcd file (a user program) has already been transferred to the PLC. Program Status (PS4) Although the content of this dialog depends on the PLC concerned. Only the Connection List window must be opened in the main T & C window. The PLC is connected. These are therefore explained only using the example of PS4-300: 374 07/01 AWB2700-1305-GB . program information and the buttons provided for starting and stopping a program.Test & Commissioning Program status Requirements: In your programming device you have opened the project containing the POUs and the program code file (pcd file). System diagnostics Figure 163: Program status (PS4-300) 07/01 AWB2700-1305-GB 375 . Any process data that remains in the PLC after the user program was stopped is discarded.Test & Commissioning Figure 164: Program status (PS416) Program status CPU operating status BOOT RUN READY: Information This shows the current CPU status as follows: Only PS416: A system cold start is required. the operating system needs to be loaded in the CPU RAM memory. The diagnostics status word must be acknowledged so that the Warm Start and Cold Start buttons can be activated. With a warm start the user program is resumed at the point where it was stopped.e. A fatal error has been detected. A cold start or warm start can be started depending on the setting of the operating mode selector switch: a Cold start starts the user program with the initial values of the variables. This status is reached via a cold or warm start. The user program is being processed in the CPU. i. NOT READY 376 07/01 AWB2700-1305-GB . The CPU is ready for operation but the user program is not being processed. RUN: A warm or cold start is possible. . “started”. – This indicates whether automatic program startup is possible. The attribute “active” means that the user program can be started with a system cold start using the PS416-CPU operating elements (operating mode selector switch and SET button) and without needing a programming device.g. PS416 – Program execution type: cyclical or periodic. PS416) – Forcing active or inactive (only PS4-300). i. e.e. with the associated cycle time or interval time – Startup behaviour. the standard settings or the settings which you made in the Code Generator under Generate © Program Parameters.RUN M-RESET: A cold start with marker reset is possible. – Code size: the size of the executable code of the PLC user program – The size of the data area for the user program – The date and time of the program generation – Program execution type: “cyclical” with the maximum permissible cycle time after which the PLC switches to Halt or “periodic” with the selected time interval (PS4-300.. 07/01 AWB2700-1305-GB 377 . this displays the current cycle time – Displays the minimum and maximum cycle time (PS4-300.System diagnostics Program status Switch position Information This shows the current position of the CPU operating mode switch as follows: . – Program status: program status. PS416) – Startup behaviour after NOT READY – When the PLC is in Run status. Program information These parameters correspond to the values used for the generation of the program code.HALT: PLC cannot be switched to RUN. Program list box Only PS416: The program field contains information on the user program in the controller: – Program name: Name of the user program. The current program execution parameters are shown as follows: PS4 – Name of user program in the PLC – The version number of the program as set in the Code Generation function under Generate © Program Parameters. The parameters cannot be changed here.. . Any process data that remained in the PLC after the user program was stopped is discarded. the message "started" will be shown next to the program name in the Program field. the position of the operating mode selector switch Status dialog and the chosen program startup behaviour. A cold start is possible with the operating mode selector switch set to Run or Run_M_Reset. The program is started. Only PS416: Deletes a deactivated user program from the PLC memory. 07/01 AWB2700-1305-GB 378 . the operating mode selector switch must be set to Run again before it can be warm started.. This stops a running user program. The status “started” is then displayed in the Program field. The Halt button will be available.e.. Starting and stopping Only PS416: the program via the – Select the program name in the program list box and set the operating mode programming device: switch of the CPU to Run. are retained following a cold start. by setting the operating mode selector switch to Halt and pressing the Set button or by clicking the Halt button. A warm start is only possible after an already started program has been stopped. The program will be shown to have “halted”. i. The process data is saved if the program is interrupted. Halt Delete Startup behaviour Only PS416: The status “active” means that the user program can be cold started on the memory card without a programming device (for information on the startup behaviour on the memory card also see Page 354). the CPU is requested to start the user program which is marked as “active”. – Click Close to close the window. Warm start With a warm start the user program resumes at the point where it was stopped. the following buttons may be available: Cold start With a cold start the user program is started with the initialisation values of the variables. If the program was stopped by switching to Halt. – Click the Cold Start button. – Click the Halt button to stop the program.Test & Commissioning Program status Information Buttons of the Program Depending on the CPU status. Only PS416: When the program cold start takes place for the first time. the RUN status will be indicated on the screen and on the PLC. and is still available if the program is resumed. A warm start is only possible if the operating mode selector switch is set to RUN and the user program must be in Halt status. the Cold Start and Warm Start buttons will be activated. Only PS4: The values of markers in the recipe marker range defined in the Code Generation tool under Generate © Program Parameters. The PLC must be connected. Several network lines can be diagnosed and displayed at the same time.System diagnostics Network diagnostics The Online Topology Configurator allows you to carry out network diagnostics in order to check the network status of your system. The Online Topology Configurator will open showing the topology stored in the PLC. The network diagnostics function can be used for all Suconet K and AS Interface®lines. the digital I/O cards of the PS416 are not addressed through the slot number.pcd file with the topology configuration to be tested must be provided in the PLC. Accordingly. The optional user descriptions of the individual components are shown 379 . the digital I/O cards may have different slot numbers than those shown in the Topology Configurator. or they may in fact not be inserted in the controller at all. For this a program with a topology configuration must be loaded on the PLC and the connection to the PLC must be established. Topology button 07/01 AWB2700-1305-GB The Topology Configurator window ‹ Device Name› will open and the relevant buttons are made available. Requirements: A *. Unlike the PS4. Activate the Connection List window in the main T & C window and then click the Topology button. The graphical display of the Topology Configurator now shows additional information which allows you to quickly assess the status of the network communications and provides status messages for each individual component. devices with communication problems are shaded in red.Test & Commissioning automatically if there is a configuration that matches the one read out. Start the network diagnostics by clicking the appropriate button or via Component © Diagnostics Status. The following example configuration for a PS4-300 illustrates the network diagnostics function in Sucosoft S40. Faulty network lines with communication problems are shown as dotted lines. Click the Network Diagnostics button or choose Network Diagnostics in the Display menu to show or hide the display of network diagnostics information. You can generate a diagnostics status for a network component in the following way: Select the components. and the master module which controls the line is marked with a lightning symbol. In the event of a network fault. 380 07/01 AWB2700-1305-GB . Diagnostics status button The Diagnostics Status ‹ Device Name› dialog shows the diagnostics bits of the module or device (see Page 383). Network Diagnostics button The graphical display of the topology configuration now includes additional information which indicates the status of the network communications. You can create a text printout of the topology configuration with the network examined by choosing Configuration © Print. and must be read out and displayed in the Online Topology Configurator. The topology configuration must be stored on the PLC. i. 07/01 AWB2700-1305-GB 381 .System diagnostics Example of a PS4-300 with a Suconet K network Requirements: The PS4-300 must be connected and the Test and Commissioning tool must be started. The Topology Configurator window (online) shows the topology configuration. the hardware configuration which was specified with the Topology Configurator during project development (offline). Structure of the example configuration: Below is a configuration which was read from the controller. as described above. Figure 165: Example configuration with PS4-300 Start the network diagnostics with the PLC connected.e. showing the relevant diagnostics bits in English. PS4-341-MM1) are highlighted with a red background. The network line is shown dotted and the faulty modules (EPC335.Test & Commissioning Figure 166: Network diagnostics with PS4-300 382 07/01 AWB2700-1305-GB The example shows a topology configuration that was read from the PLC for network diagnostics. This means that there is fault in the network line it manages. The master is marked with a lightning symbol. Select any device and display the diagnostics status via Component © Diagnostics Status. This will open the Diagnostics Status dialog for the selected device. .1-K. Note: The diagnostic bits of all devices in a topology configuration can be displayed even if there is no fault present.System diagnostics Figure 167: Diagnostics status of EPC335.1-K Refer to the manual of the device concerned for information on rectifying diagnosed errors. 07/01 AWB2700-1305-GB 383 . The program must have been started. A pcd file (a user program) has already been transferred to the PLC. One POU can be displayed together with the changing values of the variables. Requirements: The Test & Commissioning tool must be open. This allows you to display a POU in IL. The program running in the controller can be checked and modified online. the current project must first be selected in Sucosoft.e. The PLC must be connected. In your programming device you have opened the project containing the POUs and the program code file (pcd file) of the user program to be tested. 07/01 AWB2700-1305-GB 384 . In addition. The CPU operating mode selector switch is in RUN or RUN_M_RESET position. i.Test & Commissioning Program test Overview A program test can be carried out in Online mode with the POU Editor. An active process must be running in the PLC. Also. LD. The POU Editor is used in Online mode for modifying POUs and for displaying the status of variables. the contents of the individual POUs and the program code must match the program version in the controller. FBD or ST and change it online. while the program is running. If the program is to be edited online. selected variables from several POUs can be displayed in a Variables window. 07/01 AWB2700-1305-GB Double-click the Program POU button. they are shown as the next level. You can select the individual program components from the program structure tree (instance tree) via the menu items. If a selected program component instantiated function blocks and functions. they are marked with a plus sign next to their name. You can also select the individual branches by clicking them with the mouse. 385 . If function block POUs have been instantiated in a program POU.Program test Switching the POU Editor to online mode Activate the Connection List in the main Test & Commissioning window and click the Program button or choose Device © Program. The Program POU will appear in the left window. Program button The Program window will appear with the instance tree view. Double-click Resource in the left-hand window. Figure 168: Program window The Resource (PLC) is displayed as the highest level of the program instance tree in the left window pane and the name of the Program POU is displayed as the next lower program level in the right pane. Select the POU that you wish to check. only if the following conditions apply. When moving from offline to online mode or vice versa whilst a POU is being processed. the button for activating this change will also be made available. for example. in the foreground. If. This POU is also indicated by the entry “online” in the title bar. If you have made a modification to the POU. i.Test & Commissioning Click Display/Change POU Display/Change POU The POU Editor only opens in Online mode with the selected POU active. Other POUs that may be open in the POU offline Editor are placed in the background and can be accessed via the corresponding file card at the bottom of the editor window. by a red editor icon and a modified editor window with the possibility of displaying variables. The Online menu and the relevant buttons for displaying variable states are available. the POU is also opened with these settings when switching to online mode. however. you have created your instructions in ST for a POU and made your declarations in Syntax mode. These POUs can be further processed offline.e. 386 07/01 AWB2700-1305-GB . a POU is always opened with the settings that were saved the last time the POU was processed. Program test Figure 169: Online Editor with POU opened Test POU Depending on the task at hand you can test the POU using: the Status display the Zoom window the Variables window 07/01 AWB2700-1305-GB 387 . Choose Online © Status Display in the POU Editor or click the Status Display button to enable or disable the Status display. Status display The variable states are shown in the declaration and instruction section. The Status display in the declaration section has the advantage that related variables can be shown clearly. Figure 170: POU Editor with Online POU in IL 07/01 AWB2700-1305-GB 388 .Test & Commissioning Status display Requirement: A POU must be opened in online mode. In IL and ST the states of variables are shown in the status column of the instruction section. Program test In LD and FBD binary variable states. i. output symbols or connection lines: Figure 171: POU Editor with Online POU in LD 07/01 AWB2700-1305-GB Figure 172: POU Editor with Online POU in FBD 389 . You can set the display colours you require via Options © Settings © Font © Elements. The status of non-binary variables is shown underneath the contacts. current flow TRUE or FALSE are shown in colour.e. Unlike the Variables window display. decimal or binary. In online mode you can also set bookmarks in the same way as in offline mode. The current values are shown in the format set in the Display menu. This means that one screen page can only show this number of bytes of status data.g. reduce the size of the window or scroll to reach an area with less data. The previously shown states are “frozen” on the screen. For this position the cursor in the appropriate line and click the Set Bookmark button. If more data can be shown this is indicated by “???”. Requirements: A textual language such as IL or ST must be selected. you can only display variables of the currently active POU and cannot force any. Choose Online © Status Display again if you wish to abort the updating of the variable states.Test & Commissioning The states are updated on the screen if they change while the program is executed. The Status Display follows the jump from one bookmark to the next thus offering a simpler overview! Zoom window The Zoom window is a separate window of the status display in which you can show the states of complex variables You can also select variables in the instruction section and in the declaration section for displaying in the Zoom window. The memory of the PS 4-200 can show a maximum of 255 bytes of status data. Displaying strings or time and data variables has a particularly large memory requirement. Use this possibility for troubleshooting. In this case. e. 390 07/01 AWB2700-1305-GB . so that less status data is requested and only the area required is shown. The Zoom window is used for showing all variables in this instruction line. 07/01 AWB2700-1305-GB 391 . as function block parameters with assigned operands or in the form of several ST instructions are marked by Sucosoft with a red dot in the Bookmark column. All instruction lines containing several variables.g. within a complex data type.Program test A POU must be opened in online mode and the Status Display function must have been switched on. In the Status column only the states of the first variables in this line are shown. e. The Zoom window is automatically closed when the Status Display is closed. This shows the variables of the selected instruction line. This is only possible when the instruction section is not scrolled. This will open the Zoom window. You can use the Display menu item to change the structure of the Zoom window. The variable values are continuously refreshed. 07/01 AWB2700-1305-GB The status values will remain frozen in the Status column as long as the window is open. The right pane of the Zoom window shows the variable value in the Status column and background information such as the type of the individual variables. simply click on the red dot for this new line.Test & Commissioning Click a red dot. In order to display variables of other instruction lines in the Zoom window. The variables list will be shown in the left pane in the form of a tree structure. 392 . Figure 173: The Zoom window with array type variables In order to display variables of another instruction line in the Zoom window. simply click on the red dot for this new line with the Ctrl key depressed. The Variables window opens in the background and can then be viewed after switching to the main Test and Commissioning window.Program test Variables window The Variables window is a separate window of the Status Display in which you can show the states of complex variables You can also select variables in the instruction section and in the declaration section for displaying in the Variables window. select a variable first and then transfer it to the Variables window as described above. If you have closed the Variables window again: Activate the Connection List window and then click the Variables window button. You can thus use the Variables window to extend the variables of the POU shown online. To do this. the Variables window allows you to show all project POUs. You can also force variable values via the Variables window. Unlike the Zoom window. making the window ideal for troubleshooting tasks. 07/01 AWB2700-1305-GB 393 . Requirement: A POU must be opened in online mode. double-click a single variable in IL or ST or select one or several lines and then transfer them using the button or via Online © Transfer Variables. however. Transfer Variables button If you are working in LD or FBD. the Status Display function does not have to be active. Select the variables in the displayed program that you want to display in the Variables window. These are then displayed in the information section (right pane). 394 07/01 AWB2700-1305-GB . Activate the Status display for the variables in the window via Variables © Status Display or via the button.Test & Commissioning Variables window Figure 174: Variables window with array type variables Select an element that contains variables in the Variables list (left window). Open the Program window again via Device © Program or via the Open Instance Tree button. Program button 07/01 AWB2700-1305-GB Select another POU and repeat the steps of the variable transfer. Repeating the above step deactivates the Status Display in the Variables window. For each variable shown it is possible to set a different display format as required.Program test Status Display button The current states of the listed variables are displayed in both panes. Use the following procedure to delete selected variables from the Variables window: Select the variable to be deleted and then press the Del key or choose Variables © Delete. The activated online POU is switched to offline. decimal. 395 . first select one or several variables in the information section and then choose the required display format (binary. If you want to change the display format of one or more variables. You can use the Display menu to change the layout of the Variables window and the display format of selected variables. Proceed as follows if you wish to transfer variables from other POUs (function blocks) to the Variables window: Return to the main Test & Commissioning window and then close the Program window. hexadecimal or BCD) in the Display menu of the main Test and Commissioning window. Close the Test & Commissioning tool via File © Exit.Test & Commissioning The Variables window will open with the selected variables every time the Test & Commissioning tool is opened until it has been closed explicitly. The following modifications to a POU are possible: Modifying and adding instructions for existing variables Deleting instructions Modifying and adding comments Modifying jumps and jump targets (jump labels) Inserting and deleting jumps and jump targets (jump labels) Assigning new jump labels Modifying the parameters of function blocks Adding new invocations of existing function block instances 396 07/01 AWB2700-1305-GB . Modifying POUs online Requirement: A POU must be opened in online mode. If the online modification is too big for the program memory of PS 4-200 series controllers. Activate button Choose Online © Activate or click the corresponding button. If the message "Online modification could not be executed" is output after a modification has been activated. a dialog box will appear in which you can confirm whether the 07/01 AWB2700-1305-GB 397 . the program and in the PLC. Once you have modified the POU.) in strings. the cause may be that the program files on the PC and on the PLC are not identical. Ä. The modifications made are updated in the POU. the functions Online © Activate and the Activate button in the toolbar become available. ö.Program test The following modifications are not possible: Assigning new variable names Deleting existing variables from the declaration blocks Modifying several POUs simultaneously Deleting existing POUs Creating new POUs. ü etc. Modify the POU in the same way as in the POU Editor working offline. In this case transfer the PC program to the PLC once more. These characters will appear as $ sequences in the Status Display if ASCII format was selected. The POU Editor allows the entry of special characters (e. To display these special characters change the display format to ANSI.g. Select a new POU from the structure tree in the Program window if you wish to check or modify another POU. this can be done in the Variables window in two different ways: static forcing and dynamic forcing. Repeat the other steps.Test & Commissioning existing POUs should be rearranged online in the program memory. Forcing variable values With PS416 and PS4-300 controllers. you can assign a defined value to variables of elementary and complex data types while the controller is running (Run state). Figure 175: Variables window for PS4-300 and PS416 If you want to assign a particular value to a variable while the controller is running. To do this first create a variable list as described earlier. 398 07/01 AWB2700-1305-GB . Close the Online Editor. You can also transfer Variables of complex data types such as Array or Structure variables to the Variables window in the same way as described above (see Fig. symbolic variables and markers) or at the end of the cycle (for outputs) and the value is forced repeatedly each cycle until the forcing operation is cancelled again by the user. In contrast. The timepoint of the forcing is the same as for static forcing. When a variable is forced dynamically. variables which are assigned to physical outputs are forced with the specified value at the end of the cycle. but in this case forcing takes place once only and not repeatedly. This means that sequences with these forced variables may not be necessarily executed with the forced value within a cycle. however. in the same way as in a separate window of the status display. the respective variable is assigned the required value at the beginning of the cycle (for inputs. it is assigned a value once. Specific structure elements can be viewed by “opening” the structure or hidden by “closing” it. after the inputs have been read. This can. 07/01 AWB2700-1305-GB 399 .Program test Warning! Take care when you force the values of variables while the controller is running since you directly affect the control of the machine and can cause uncontrolled states. When you force a variable statically. Variables which are assigned to physical inputs are forced with the specified value at the beginning of the next cycle. be changed again immediately by the user program. 177 on Page 401). Data structure content will be displayed in a tree. With complex data types select the required array or structure element. . Choose Variables © Enter Forced Status or click the corresponding button. Position the cursor in the Status field and enter the value to be forced. In the right Info section of the Variables window Click the Number fields (left column) of the lines with variables to be forced. The chosen entries are shown selected. Repeat these steps for all the variables that you selected earlier. Enter Forced Status button Figure 176: Forced status 400 07/01 AWB2700-1305-GB Change the format if necessary.Test & Commissioning Requirement: There must be a Variables window with a variable in the connection list. Choose the required forcing mode in the “Mode” panel and confirm your entries with “OK”. Force button All selected variables are forced either statically or dynamically in accordance with your settings.Program test Choose Variables © Enter Forced Status or click the Force button. select the required lines in the Information section and click on the Cancel Forcing button. these variables or variable elements are shown with a red background. This makes it easy to recognise which variables are forced. In the variable list. the fields “Name”. Figure 177: Forcing variables To cancel the static forcing of particular variables. and “Status” are shown with a coloured background and the window’s status line displays the message “Variable forced statically”. With statically forced variables. 07/01 AWB2700-1305-GB Cancel Forcing button 401 . If you have made an online modification. Outputs are forced with the specified value at the end of the cycle. you will get the following warning: 402 07/01 AWB2700-1305-GB . a warning message will appear if you try to open the Variables window. Online modifications cannot be made while variables in the controller are being forced. Accordingly. In this case. Cancel All button Choose Options © Save Settings On Exit to get the variable list which you last created the next time you start the Test and Commissioning tool. If you connect to a controller which has forced variables. Do not change offline parts of a program in which variables are forced. the value of the variable can become changed by the user program during the cycle even with statically forced variables. the only way to clear the forcing is to deactivate the active process in the controller or to transfer the program to the controller again. since the Variables window can then no longer be displayed.Test & Commissioning The Cancel All button is used to cancel the static forcing of all variables in the controller. Inputs and markers are forced with the specified value at the beginning of the cycle. Activate the Connection List window in the main T & C window and then click the Topology button. 07/01 AWB2700-1305-GB 403 . you can close the online POU directly in the POU Editor. The activated online POU is switched to offline for further processing. Configuring the AS-Interface®network online This step is carried out with the Topology Configurator online. must be provided with a valid basic configuration. For this the PLC must be connected. In order switch from the POU Editor to a different T & C window you must first move to the main T & C window. and the CPU must be in Halt status. It consists of a master (PS4-201-MM1). This enables you to configure an AS-Interface®network simply. an LE slave (LE4-501-BS1) and an AS-Interface®line that is managed by the AS-Interface®master module (LE4-505-BS1). Sucosoft uses this basic dummy configuration to automatically detect online all active slaves on the AS-Interface®network. With an AS-Interface®network a complete offline configuration is not necessarily required. Alternatively. Structure of the example configuration Below is a configuration which was read from a controller.Program test Quitting the online POU Editor Return to the main Test & Commissioning window via Alt + Tab and then close the Program window. Simply a basic configuration is required that contains an AS-Interface®master device. Test & Commissioning Figure 178: Example configuration with AS-Interface® 404 07/01 AWB2700-1305-GB . This can be a basic configuration with an expandable PS4 controller and an AS-Interface®master module LE4-505-BS1 or a functioning actual configuration which you want to extend.Program test Procedure Compared to offline configuration. 07/01 AWB2700-1305-GB 405 . The new permanent configuration is needed by the PLC in RUN mode and for network diagnostics. The basic configuration can be created in the normal way with PLC disconnected using the Topology Configurator. First compile the basic configuration with any (dummy) PLC program in the Code Generation tool and transfer it to the PLC. If all slaves on the AS-Interface®line are addressed already. online configuration saves time in the following two cases: You want to create a topology configuration for an ASI line which is already configured. and ensures that all inputs and outputs of the AS-Interface®devices can be accessed. or you want to extend an existing actual configuration.the configuration currently stored in the PLC. It is transferred from the PLC to the AS-Interface®master. you can read in directly the new configuration in Configuration mode and save it. The starting point in both cases is the so-called “actual configuration” . The new stored configuration is then used as the new permanent configuration in the Code Generation tool and transferred to the PLC together with the program after recompiling. A topology which includes the AS-Interface master is already stored in the PLC. The associated AS-i line is shown as a dotted green line. Click the Topology Configurator button or choose Device © Topology in the menu to load the actual topology configuration from the PLC.Test & Commissioning Reading the actual configuration Requirements: The PS4 controller must be connected and the Test and Commissioning tool must be started. 406 07/01 AWB2700-1305-GB . The PLC is in HALT mode. Asi Actual Configuration button Sucosoft S40 will switch to Configuration mode and will show the AS-Interface®master with an exclamation mark next to it. Select the AS-Interface®master module and switch to Configuration mode by choosing Component © Actual ASI Configuration. they are shown correctly in the configuration. 07/01 AWB2700-1305-GB Only one non-configured slave with a default address “0” must be connected. If the AS-Interface®line contains slaves which have previously been assigned an AS-Interface®address with a PG2-105-AD1 addressing device.Program test Figure 179: Configuration mode of an AS-Interface® network You cannot display online diagnostics information for individual modules when the AS-i master is in Configuration mode. Since this combination is not unique. The AS-Interface®master reads the actual configuration cyclically and identifies the AS-i slave types from the combination of I/O code and ID code. all slaves are shown in Configuration mode as generic symbols together with the number of inputs and outputs. since otherwise an address conflict will occur. 407 . 408 07/01 AWB2700-1305-GB . the device is automatically removed from the online display. If a newly connected slave still has the default standard address “0”.Test & Commissioning If communication to one of the slaves is interrupted. Saving the actual configuration Requirements: The actual topology configuration with the configured AS-Interface®line is opened in the Online Topology Configurator window. Analogously. When the actual configuration has been modified as required. the required address and other parameters can be configured afterwards online. a pre-addressed slave appears in the online display shortly after it is connected to the AS-Interface line provided that no address conflicts with other slaves are present.DCF” as the new permanent configuration for the current project. Specify a directory in which you wish to save the actual configuration and enter the required filename for the topology configuration in the Filename field.. Choose Configuration © Save As. it should be stored on disk as the new permanent configuration and transferred to the PLC after recompiling the program with the Code Generation tool.. in the menu. The file is saved with the filename extension “. .Program test Editing the actual configuration Requirements: The PS4 controller must be connected and the Test and Commissioning tool must be started. The actual configuration of the AS-Interface®line is shown in the Topology window as a green dotted line.. A topology which includes the AS-Interface® master is already stored in the PLC. The Online Topology Configurator shows the actual configuration with the individual line slaves shown as generic symbols. . Click the Topology Configurator button or choose Device © Topology in the menu to start the Online Topology Configurator and load the actual topology configuration from the PLC. The PLC is in HALT mode. Select the AS-Interface®master module and switch to configuration mode by choosing Component © Actual ASi Configuration in the menu. Select the new slave displayed and click the ASi Slave Status button or choose Component © ASI Slave Status. Connect a new slave with the default address “0” to the AS-Interface®line. ASi Slave Status button 07/01 AWB2700-1305-GB 409 . If required. The Configured Values section shows parameters for the specified station number from the stored (permanent) configuration. 410 07/01 AWB2700-1305-GB . The slave parameters you have stored with the new configuration are only effective after recompiling the program in the Code Generation tool and transferring it to the PLC. The Current Values section shows the current parameters for the specified station number which have been read online from the PLC.Test & Commissioning Figure 180: AS-Interface®Slave Status You are automatically prompted with the next unused AS-i address in the New pop-up list in the Station number panel. you can choose another address for the new station. The slave will now be configured with the parameters you entered and will be shown at the corresponding place in the graphical display of the AS-Interface® line. which describes the AS-Interface®master LE4-505-BS1. Save the completed actual configuration as the new permanent configuration. Click the ASi Master Status button or choose Component © ASI Master Status. 07/01 AWB2700-1305-GB ASi Master Status button 411 . In Run mode.Program test The AS-Interface®master LE4-505-BS1 parameters are automatically transferred from the configuration currently stored in the PLC... the master LE 4-505-BS1 will automatically switch to Protected mode. ASI parameters can only be changed while the PLC is in Run mode by using the “ASI_PARAM” function block. Using the new permanent configuration In order to commission the PLC and start the communication on the AS-Interface® line. This function block is described in the manual AWB27-1314 GB. Select the other slaves in turn and set the parameters using the same procedure. you must recompile the program with the new permanent configuration using the Code Generation tool and transfer it to the PLC. Close the dialog with Exit when you are finished. The AS-i master status can be displayed in Run and Ready modes as follows: Select the AS-Interface®master in the Online Topology Configuration window. Communication in the AS-Interface® line starts when the PLC changes from “Ready” to “Run” mode. . The connection has been established to the PLC. The diagnostics covers the entire AS-Interface® configuration.Test & Commissioning Figure 181: ASi Master Status dialog The following dialog then gives information on the operating mode (protected or configuration mode) and the setting of the Autoaddressing option. To show or hide the display of network diagnostics information. Network diagnostics with a PS4-300 and AS-Interface®network. The following are required to carry out network diagnostics on an AS-Interface® line An available PLC program which was transferred with a configuration of the AS-Interface® master is loaded in the PLC. 412 07/01 AWB2700-1305-GB . click the Network Diagnostics button or choose Display © Network Diagnostics in the menu. The states of components belonging to two different networks can be diagnosed. 07/01 AWB2700-1305-GB 413 . To display diagnostics information for a particular device.Program test Figure 182: Network diagnostics The graphical display of the topology configuration now shows additional information which allows you to quickly assess the status of the network communications in the Suconet K and AS-Interface® lines. select the device and click the Diagnostics button or choose Component © Diagnostics Status. 414 07/01 AWB2700-1305-GB .Test & Commissioning Figure 183: Status indication The diagnostics status of individual modules cannot be displayed if an AS-Interface®network is configured online and Sucosoft is in Configuration mode. Diagnostics is only carried out for AS-Interface®lines if the AS-Interface® permanent configuration is displayed. In Run mode.Program test In Protected mode of the AS-i master and in the event of a network fault. Network lines with communication problems are shown dotted in red and the master CPU which controls the line is marked with a lightning symbol. devices with communication problems are shown shaded in red in the permanent configuration. the PLC program can access all devices which are correctly specified in the permanent configuration as long as no device faults are present. 07/01 AWB2700-1305-GB 415 . the Online Topology Configuration window of the Test & Commissioning tool shows the permanent configuration. Figure 184: Fault in AS-Interface®network line With the PLC in Run mode. the AS-i master will switch to protected mode if the system is switched off and on again even if a slave is present with a default address of “0”. the AS-Interface®master will only switch to protected mode automatically if no AS-i devices with the default address “ 0” are attached the line.Test & Commissioning If more AS-i slaves are connected to the AS-Interface® line than are specified in the permanent configuration. If the program is started by changing the PLC mode from “Stop” to “Run” using the Test & Commissioning Tool. the master will report a configuration error. the PLC must be stopped and the slave disconnected. data communication is still possible to the devices which are correctly specified in the permanent configuration. In contrast to the PLC mode change from “Stop”/ “Run”. If a device is present with a default address “0”. 416 07/01 AWB2700-1305-GB . the correct AS-Interface® address for the slave must be assigned in the current configuration in the Test & Commissioning tool by choosing Component © AS-i Slave Status in the menu. In this case. However. the additional slaves are not shown in the online topology. Alternatively. Make sure that the serial interface (COM Port) set in Sucosoft is the same as the one to which the modem is connected. 1 Stop (8N1) Frequently asked questions and problems relating to modems Dialing is not functioning and the modem is not accepting any AT commands. the modem is plugged in to the telephone socket. Parameter settings: 8 Data. a FAX software is using the same interface. compatible with Hayes AT commands. Make sure that the modem is switched on. suitable for asynchronous data communications Memory for a modem configuration. modem and PC are connected via a cable. Make sure that the speed set in Sucosoft is within the range in which the modem can automatically detect the baud rate. 07/01 AWB2700-1305-GB Make sure that the modem connection cable is not faulty. Check this using another communication software. and that the connection pin assignment is correct. Make sure that no other program e. 417 .Appendix Modem operation Modem requirements Approved for connection to the public telephone network in your country or region. No Parity.g. spaces and periods. If the modem is connected to a private telephone exchange. In this case use ATX3DT<Number> or ATX3DP <Number>. It is configured in Sucosoft under Interface Parameters. your dialing sequence should be ATDT0W<number> for tone dialing or ATDP0W<number> for pulse dialing. time for establishing the connection) is long enough.g. For this use the W parameter in the dial string. Ensure that the modem waits for the dial tone before dialing. Example: ATDT 0W <Nummer> This dial tone is not present with connections within a private telephone exchange (PBX). the modem returns the message “NO DIAL TONE”: In this case. The modem does not recognise the dial tone. “0”) to get an outside line. After each dialing attempt. the modem blocks redial attempts for a specified period (typically between 30 and 60 seconds) following each unsuccessful dialing 418 07/01 AWB2700-1305-GB . authorised for international or long distance calls). Most PBX’s require a prefix digit (e. g. in order to protect the telephone network from overloading. The telephone number you specify can contain hyphens. Make sure that you have entered the modem telephone number in the correct format: “<country code> (<area code>) telephone number”. After every dialing attempt the modem returns the message DELAYED CALL or DIAL LOCKED appears. your modem is probably connected to a private telephone exchange (PBX). Make sure that “Timeout in s” (the max.Appendix Dialing is interrupted before dialing is finished. In some countries and depending on the modem settings. In this case. check whether the telephone extension is authorised to make the required connection (e. g. International calls disabled If the modem is connected to a PBX. In this case. the modem incorrectly interprets the internal dial tone of the PBX as an engaged tone. parity. depending on the country and modem settings. The modem does not accept any redial attempts for this period. stop bits and baud rate are the same as those of the remote modem. Make sure that the settings for data bits. The modem is connected to a telephone extension and returns “busy” although the extension is not busy and the party you are dialing is not engaged. 07/01 AWB2700-1305-GB 419 . The modem will not dial at all for this period. Furthermore. the modem may block redial attempts for two to six hours following 12 unsuccessful attempts to dial. make sure that the telephone extension is authorised to make international or long distance telephone calls.Modem operation attempt (e. disable busy tone detection for your modem with the command ATX0. In some cases. The connection to the other modem does not function at all or does not function correctly. if the party you are dialing is currently busy). Appendix Overview of the most important Hayes compatible AT commands A &C0 &C1 D &D0 E Answer incoming call; Example: dialing the Moeller Mailbox: ATA DCD always active (carrier detect) DCD indicates when carrier is present (important if the Connection check via DCD is enabled). Dial/connection establishment Example “Dial the Moeller mailbox”: ATDT 0W0049 228 602 14 14 DTR status change is ignored by the modem (important for PLC side). Echo command to host (PC/PLC) Example: “No command echo”: ATE0 (important on PLC side) Command echo: ATE1 (important on PLC side) Abort connection Example “Abort existing connection”: ATH0 Set volume Example “Low modem volume”: ATL0 Check modem loudspeaker Example “Modem loudspeaker on with connection establishment”: ATM1 Pulse dialing Example “Dial the Moeller mailbox”: ATDP 0W0049 228 602 14 14 Output message codes No handshake for flow control Disable message code output Set and read internal modem registers Example “Read the content of register 10”: ATS10 Auto Answer Mode, i.e. calls are answered automatically (important on PLC side, here for example after 2 ring tones) DSR always active Tone dialing Example “Dial the Moeller mailbox”: ATDT 0W0049 228 602 14 14 Status signal in short form as number Dial tone handling Example “Ignore dial tone/engaged tone”: ATX0 Load modem configuration Example “Load configuration profile 1”: ATZ1 07/01 AWB2700-1305-GB H L M P Q0 \Q0 Q1 S S0=2 &S0 T V0 V1 X Z Status signal in plain text 420 Modem operation V.24 interface cable for modem operation The following table shows the pin assignments of the V.24 (RS 232 serial) interface for 9-pin and 25-pin connectors. 9-pole U* 5 3 2 6 8 9 1 4 25-pole 1 7 2 3 6 5 22 8 20 Abbrev iation GND SGND TxD RxD DSR CTS RI DCD DTR CCITT/ ITU-T 101 102 103 104 107 106 125 109 108 Function Direction Protective Ground Signal Ground Transmit Data PC/PLC –> Modem Receive Data PC/PLC <– Modem Data Set Ready PC/PLC <– Modem Clear To Send PC/PLC <– Modem Ring Indicator PC/PLC <– Modem Data Carrier Detect PC/PLC <– Modem Data Terminal Ready PC/PLC –> Modem Request to Send PC/PLC –> Modem 7 4 RTS 105 U* = Housing/Screen 07/01 AWB2700-1305-GB 421 Appendix Connecting the PLC with the PLC modem PS4 PS416 25-pole connector <-----------------------------RxD TxD SGND --------------------> ----------3 2 7 <-------------------> ----------PLC modem 9-pole connector 2 3 5 8-pole 9-pole connector connector 2 5 3 2 3 5 RTS CTS |-----> |<----- 4 5 |-----> |<----- 7 8 DTR DSR DCD |-----> |<----|<----- 20 6 8 |-----> |<----|<----- 4 6 1 Please note the following when using the cable ZB4-303-KB1 for the PS4 series and/or the cable PS416-ZBK-210 for the PS 416 series: Use a 9-pin 1:1 adapter between PRG socket and the cable. The RxD and TxD lines must be crossed over in this adapter or in a further adapter. In addition, with cable PS 416-ZBK-210, you must also interconnect (bridge) the lines RTS/CTS and the lines DTR, DSR and DCD. For the PS 416 series controllers, you can generally use the cable supplied with the modem together with an adapter. Since standard modem cables do not interconnect the lines RTS/CTS and DTR, DSR and DCD, it is essential to issue the modem AT command settings which disable modem flow control. 422 07/01 AWB2700-1305-GB Modem operation Configuration example using ke modems LOGEM 928 and LOGEM LGH 28.8D1 Switch positions The mode set is Software Mode, Basic setting 0: the configuration is set via the software, all switches are set to 0. Initialising the PC and the PLC modem The initialisation string can be transferred to both modems via a communication program with terminal operation. The PC modem can alternatively be initialised via AT commands for connection establishment via the Interface Parameters dialog in the T & C tool. The PLC modem can be initialised via the SendATCommand function block when it is connected to a PS416 or PS4-300. Initialisation string AT&F0&Y2\Q0&C0&D0&S0S50=23S51=7&W2 Meaning of AT commands: Load basic setting 0 &F0 Load basic setting 8 (user setting 2) after POWER &Y2 ON Handshake selection = No flow control Set signal M5/109/DCD (receive signal/Data Carrier Detect) Set signal M1/107/DSR (Data Set Ready) Modulation and transmission procedure V.32 (fixed 9600 Bit/s, duplex) Transmission speed of the V.24 interface, 9600 Bit/s 07/01 AWB2700-1305-GB \Q0 &C0 Ignore signal S1/108/DTR (Data Terminal Ready) &D0 &S0 S50=23 S51=7 &W2 Save user setting 2, acknowledge confirmation request -J Return- The AT&V(n) commands enable the current modem configuration to be read and checked. This should be the following for the LOGEM LGH 28.8D1: 423 Appendix Version F23 E1* &Y2 &I0 S00=001 S20=255 S60=000 S90=005 OK 4.06 D Option: No L1 M1 Q0 X4 V1 P \Q0 \G0 \A1 \C0 \L0 \N3 \X0 \K3 \B3 %C1 %E1 %M0 %R0 &L0 &X0 &G0 &M0 &C0 &D0 &H0 &R1 &S0 &T6 S01=000 S02=043 S03=013 S04=010 S05=008 S07=100 S08=002 S10=050 S12=045 S26=004 S28=000 S37=000 S39=017 S40=019 S45=000 S50=023 S51=007 S54=001 S61=000 S62=030 S63=006 S64=001 S65=004 S66=016 S67=000 S80=000 S81=000 S91=001 S100=042 S101=000 S102=000 *Enable Echo from modem to DTE with the command ATE1 on the PC modem and with ATE0 on the PLC modem. Configuration example using the Westermo modem TD-32 Switch positions The following features are set via the switch positions: Dial-up line SW2, 2 to 7 not used 2-wire line 9600 baud 8 Bit/no parity V.32 to 9600 Bit/s 424 07/01 AWB2700-1305-GB Modem operation Initialisation string AT&C1&F&Y0&K0\N5F8X3W1S00=01&W0 Meaning of AT commands: As the parity of this modem is permanently set via DIP switches, the parity in the communication software does not have to be changed after the initialisation string is sent. It is already set correctly to No Parity. Meaning of AT commands: Load factory setting Load profile 0 after POWER ON Disable flow control Select MNP data security protocol Transmission procedure V.32 to 9600 or V.32 9600 Sends busy signal to DTE The established connection is displayed (speed/error correction) Activate automatic call answering Save configuration &F &Y0 &K0 \N5 F8 X3 W1 S00=01 &W0 The current modem configuration read using AT&V commands should look as follows: at&v ACTIVE PROFILE: B0 E1 L1 M1 N0 Q0 T V1 W1 X3 Y0 &C1 &D0 &G0 &J0 &K0 &Q5 &R1 &S0 &T5 &X0 &y0 S00:001 S01:000 S02:043 S03:013 S04:010 S05:008 S06:009 S07:060 S08:002 S09:006 S10:020 S11:095 S12:050 S18:000 S25:005 S26:001 S36:004 S37:009 S38:020 S44:020 S46:138 S48:128 S95:000 ok 07/01 AWB2700-1305-GB 425 Appendix Initialise via remove configuration using a Logem 928 ke modem The remote modem can be initialised by the programmer via the local modem. For safety reasons, remote access is only possible in “reliable mode”, and register S45 = 1 must be set (see modem operating instructions) on the remote modem First start a reset, the set the local modem parameters and save this setting in the EEPROM: ATZ ATF23 E1 L1 M1 Q0 X4 V1 T\Q0 \G0 \A1 AT\C0 \L0 \N2 \X0 \K3 %C0 %E1 %R0 AT&I0 &X0 &G0 &M0 &C2 &D0 &H0 &R1 &S1 &T5 AT&W Then establish the connection to the remote modem and switch to Command mode on the local modem: ATDT 00w0228,6022099 +++ Initiate the remote configuration with AT%F, but without entering a password. Set the remote modem parameters and save this setting in the EEPROM: AT%F ATF255 S51=7 E0 L1 M1 Q1 X4 V1 T\Q0 \G0 \A1 AT\C0 \L0 \N3 \X0 \K3 %C1 %E1 %R0 AT&I0 &X0 &G0 &M0 &C2 &D0 &H0 &R1 &S1 &T5 AT&W Start a reset, switch to Command mode and clear the connection for setting parameters. ATZ +++ ATH0 Now establish the connection to the remote modem for exchanging user data. ATDT 00w0228,6022099 426 07/01 AWB2700-1305-GB Using several PS416-CPUs Using several PS416-CPUs By using several PS416-CPUs (Multi-processing) in one rack, the PS416-CPU can be used as a platform for additional technology applications. In this way, for example, a CPU can control the process whilst at the same time another CPU handles complex closed-loop control or positioning tasks. This ensures a faster and more efficient execution of the process. The data exchange between the CPU cards is organised by the CPUDataExchange function block. When several CPUs are used, the multi-drop connection is recommended (see Page 315). Configuring a PS416 system The controller CPU or master CPU is fitted in slot 2/3. Additional technology cards or slave CPUs are fitted in slots 4/5, 6/7, 8/9 etc. This slot assignment must be observed. The CPU cards must be fitted in the rack without any gaps. Before commissioning carry out a current requirements calculation for all the cards fitted in the rack in order to ensure that the power supply unit is not overloaded. The current requirements of each card are provided in the relevant manual. 07/01 AWB2700-1305-GB 427 Appendix Assigning local inputs and outputs Word processing cards, such as analog input/output cards, counter cards and network cards can be addressed exclusively and controlled by the master CPU. The local (central) digital I/O can either be addressed by the master or by the slave CPU on slots 4/5. The allocation of CPU access to the local digital I/O is defined in the topology configuration created in Sucosoft S40 for every PLC. If the master CPU has access to the local digital I/O, the following configuration variations are possible: Configuration of the master CPU on Configuration of the slave CPU on slot Configuration of the slave CPU on slot slot 2/3 4/5 6/7 Line 0 0 0 0 0 0 Rack 0 0 0 0 0 0 Slot 0 2 4 6 12 16 Type PS416INP/OUT PS416CPU PS416CPU PS416CPU PS416COM-200*) PS416NET-220*) Line 0 Rack 0 Slot 4 Type PS416CPU-400 Line 0 Rack 0 Slot 6 Type PS416CPU-400 *) Example of word-processing cards 07/01 AWB2700-1305-GB 428 and switching off the PLC. 07/01 AWB2700-1305-GB 429 . the following configuration variations are possible: Configuration of the master CPU on Configuration of the slave CPU on slot Configuration of the slave CPU on slot slot 2/3 4/5 6/7 Line 0 0 0 0 0 Rack 0 0 0 0 0 Slot 2 4 6 12 16 Type PS416CPU PS416CPU PS416CPU PS416COM-200*) PS416NET-220*) Line 0 0 Rack 0 0 Slot 0 4 Type PS416INP/OUT PS416CPU-400 Line 0 Rack 0 Slot 6 Type PS416CPU-400 *) Example of word-processing cards All other system configurations.Using several PS416-CPUs If the slave CPU has access to the local digital I/O. especially the inclusion of word-processing cards in the topology configuration of a slave CPU or the simultaneous allocation of the digital I/O to the master and to the slave CPU can lead to undefined system states that can only be switched off by removing the battery. In this data exchange.Appendix Addressing remote I/O via Suconet K Both the master CPU and the slave CPU can be connected to a Suconet K line via the on-board SBI interface and can thus access the remote I/O independently of each other. An application example of the CPUDataExchange function block is provided in the function block description in the manual AWB2700-1306-GB “Sucosoft S40. this has no effect on other CPUs. The data exchange is not synchronised so that a handshake procedure for the exchange must be written in the program. One master CPU must always be present for the data exchange. Their programs run asynchronously to each other. one side writes a defined data range whilst the other side reads it. Language Elements”. Programming master and slave CPU Master and slave CPUs are programmed separately. 430 07/01 AWB2700-1305-GB . If a master CPU or slave CPU switches to Ready. The data between the master and slave CPUs is exchanged via a special memory module which is programmed with the CPUDataExchange function block. Data exchange between slave CPUs is not possible. ). Constant Value that is directly defined and processed during program execution without being assigned to an identifier (e. Default value Value that is automatically assigned a variable at the start of the program if no explicit initialisation is specified.1.g. Can be used in conjunction with local and global variables (e. ARRAY © Keyword for declaring an © Array.: Start AT %I0. Unlike a structure. CONSTANT © Keyword for declaring a data element with a data content that cannot be changed. 431 . AT © Keyword for declaring © Directly represented variables (e.Glossary Glossary Array Variable consisting of several data elements of the same data type.: LD 100). Derived data type that is declared with the © Keyword ARRAY. Current result 07/01 AWB2700-1305-GB Result of an operation.: VAR_GLOBAL CONSTANT). Corresponds to the contents of the working register.2 : BOOL.g.0.g. that can also be calculated whilst the application is running. the individual elements of an array are addressed by an integer index (subscript).0. 0. Is identified in the declaration with the © Keyword AT (e. Function block Program organisation unit.e.g.: INT.0.g.Appendix Derived data types Manufacturer and user-defined data types that are derived from © Elementary Data Types and are assigned a new name. Function Program organisation unit. They are declared between the © Keywords TYPE .. A function therefore always supplies identical return values if the same input values are used. Only one return value is supplied as a result. A function is a POU without a memory. END_TYPE (e.: Start AT %I0.1.g. that can be used for recurring control task elements. that can be used for recurring control task elements. arrays). the status values of the last call are not retained. A function block can process several input parameters and supply several output values as a result. structures.). 432 07/01 AWB2700-1305-GB . The processed values are saved by the function block until the next call. WORD). A function can process several input parameters.2 : BOOL. Elementary data types Predefined data types identified by © Keywords (e. Directly represented variable Variable for representing a physical PLC address. i. BOOL.. and output under the same name. Variables can be initialised in the declaration section of a POU (e. Each instance is then assigned its own data range. 433 . It is declared between the © Keywords VAR_INPUT .. END_VAR.)..: Value:INT:=100. Several instances of a function block can be defined. processed.Glossary Global variable Variable. It must be declared in the function blocks that use this global variable as VAR_EXTERNAL.. that is declared in the Program © POU as VAR_GLOBAL and is available in all function blocks called in this POU. Input/output variable Variable that is read in a function block. Input variable Variable for transferring a value to functions or function blocks. The creation of an instance reserves a data range for processing the function block. data type. Identifier The name of a variable. Input/Output variables are declared in the function blocks between the © Keywords VAR_IN_OUT ..g. Initialisation value Status value automatically assumed by a variable when the PLC is started. END_VAR. The change of an input/output variable value in a function block automatically affects the variable of the invoking POU assigned to the Input/Output variable. also known as a passing parameter. POU or jump label. Instance 07/01 AWB2700-1305-GB Use of a function block in a program or a function block. VAR_GLOBAL.Appendix Keyword Unique combinations of characters (LD. The value can be processed by other POUs. Instructions can be executed within the program.. Output variable Variable declared in the function block between the © Keywords VAR_OUTPUT .. . The meaning of a keyword cannot therefore be changed by a user definition. END_VAR. The output variable is the return value of the function block. CAL. or branches made to functions and function blocks.) that have a special. In the case of data transmission over the digital telephone network so-called ISDN terminal adapters are used instead of analog modems.. POU © Program Organisation Unit 07/01 AWB2700-1305-GB Program Higher-order structure level.. The Program program organisation unit defines the starting point of the PLC application.. A modem modulates the digital signals from a computer converting them into analog signals for transmission over the telephone line. END_VAR. Local variables Variable which is only valid within the © POU in which it was declared between the © Keywords VAR . 434 . converting them into digital signals. predefined meaning in a programming language and can only be used for this purpose.. A modem also demodulates the analog signals received along the telephone line. This type of variable is not accessible outside of the POU and cannot therefore be overwritten accidentally. Modem Word formed from MOdulator and DEModulator. There are three types of POU: © Program. VAR_EXTERNAL © Keyword for declaring external variables. VAR_IN_OUT © Keyword for declaring © Input/output variables. The declaration of a retentive variable uses the © Keyword VAR or VAR_GLOBAL with the © Keyword RETAIN (e. © Function and © Function block.Glossary Program organisation unit (POU) Self-contained program section for structuring an application. 435 . RETAIN © Keyword for declaring a © Retentive variable Retentive variable Local or global variables that retain their status value in the event of a restart after a voltage failure.: VAR_GLOBAL RETAIN). Consists of a declaration section and an instruction section. Is used for declaring ©Global Variables within a function block.g. VAR_GLOBAL © Keyword for declaring © Global variables. TYPE © Keyword for declaring © derived data types. VAR_OUTPUT ©Keyword for declaring © Output variables. VAR © Keyword for declaring local variables. VAR_INPUT 07/01 AWB2700-1305-GB © Keyword for declaring © Input variables. Variables declaration In the variables declaration a data element is assigned a name. This saves the results of arithmetic. The variable declaration is made in the declaration section of a POU. Variable initialisation Specification of an initial value of a variable in its declaration. 436 07/01 AWB2700-1305-GB . Working register Register in the central unit of a PLC. It is declared and possibly initialised in the declaration section of a POU. a data type and possibly a physical address and an initialisation value. If the variables have no explicitly assigned initialisation values. the ©Default value is used. logical and I/O operations. A variable is addressed by its name (© Identifier).Appendix Variable A data element of a specific data type for which the appropriate memory is reserved. Shortcuts Shortcuts The POU Editor supports the following standard Windows shortcuts: Shortcut Ctrl+O Ctrl+S Ctrl+Shift+S Ctrl+T Ctrl+P F10 Ctrl+Q Ctrl+Z Ctrl+Y Ctrl+X or Ctrl+Del Ctrl+C or Ctrl+Ins Ctrl+V or Shift+Ins Del Ctrl+A Ctrl+F Ctrl+H Ctrl+G Ctrl +I Ctrl+B Description File/Open POU File/Save POU File/Save All POU Files File/Open Global Types File/Print File/Syntax Check File/Cross-reference File Edit/Undo Edit/Restore Edit/Cut Edit/Copy Edit/Paste Edit/Delete Edit/Select All Edit/Find Edit/Replace Edit/Go To Help/Info Jumps between the associated parentheses ( ) or [ ] (only for declaration and instruction section). Switch between Free and Syntax mode Activate or open the Output window Delete Line Insert Line Moves the separator between the declaration section and instruction section alternately. Ctrl+M Alt+2 Alt+Delete Alt+Ins Ctrl+Shift+Tab 07/01 AWB2700-1305-GB 437 . so that one window half is reduced to the minimum width. Moves the cursor to the start of the active window. Shows or hides the bookmark for the current line. Activates the next MDI window. Code Generation Moves the cursor to the start of the next word. Tiles the windows horizontally. Activates the context Help Moves to the line with the next bookmark. Moves between the instruction and declaration section. Deletes all bookmarks in the window. The context-sensitive Help is activated if the cursor is in a POU or a Global Data Types window. Tiles the windows vertically. Moves to the line with the previous bookmark. Moves the cursor to the start of the current line Moves the cursor to the end of the current line. Cascades the windows. 07/01 AWB2700-1305-GB Shift+F1 F2 Shift+F2 Ctrl+F2 Ctrl+Shift+F2 Shift+F4 Ctrl+F4 Alt+F4 F5 Shift+F5 F6 and Ctrl + Tab Shift+F6 Ctrl+F6 F7 Ctrl+Arrow right Ctrl+Arrow left Home End Ctrl+Home Ctrl+End Moves the cursor to the end of the active window 438 .Appendix Shortcut F1 Description Calls the S40 Help with the POU Editor topic (Overview). Closes the POU Editor. Closes the current POU. Moves the cursor to the start of the previous word. Calls the Insert/Variables Declaration dialog. ............................................... 197 Alternative statements ........................................................................... 96 All profiles ...................... 376 Booting... 217....... Entry cells ................... 131 AS-Interface®network .......... 114 Addressing AS-Interface®stations ............................ 322 Attribute ............................................................. 359 Bus status .................................................................................... 373 BATTERY operating status ... 306 07/01 AWB2700-1305-GB 439 ............................. 103......................... 204 Address ............................................ 252 Bus terminating resistors ......................Index A About .... 354 B Basic settings ................................................................................................................ 113.................................................................................................................................................. 403 Asynchronous operation with PS4-300 ........... 113................... indication .................. 322 Bookmarks Online mode ..... 210 Adjusting column width....................................................................... PLC from memory card ........................................ 260 AUTOSTART ............................................... 365.. 365 Battery error ........... 104.............................. 191 Configuring online ............................................................................................. 90 Battery change..................... 316 Buttons ASi Configurator . 365 Baud rate................................................................ Modem .. 182 Adding Local components ................................... 98 BOOT ........ 215 AT command sequences ..................................... 344 Suconet K stations ............................................................................ 390 POU Editor .............................................................. 203 Remote components ...... 371.................... 197 Digital I/O cards ............................................. 114 Autoaddressing of ASi slaves ............................. 308 Topology Configurator ...................................................................... .............................................. 396 Programming language ...................................................................... 365 Change display.................................................................................................. 142 Configuration Compare .................................................................................................................................................... 116 Comments............................................................ configuration .... 193 Configuration example Complex configuration ......... 370.......................................................................................................................... 306 Comparing programs On PC and PLC . 259 Changing Parameters .......................... 97 Comment ............................................................... 268 Configuration with PS416 ...................................................... Topology Configurator ................................................................ 224 440 07/01 AWB2700-1305-GB ... 203 PROFIBUS-DP configuration ..............Index C CFG-DP ...................................................... 175 Changing windows in the T & C tool .... 144 Cold Start ................................................................ 357 Complex data types ............................... 373 Coil Negating ..... 180 Commissioning ...................... 311 Flow diagram .............................................. to offline mode ........ 203 Changing display Topology configuration .................. 223 Program .................... line-oriented ........................................................... 193 Print ...................................... 306 Changing display mode Topology configuration .......................... 391 Compressed display (topology configuration) ....................... 201 Changing parameters ......................................................................... 193 Save .............................. 311 Compare............... 306 Open ............................ 175 Suconet K configuration ......................................................................................................................................................................... 220 CHANGE ... 403 Checksum error ... 306 Conditional network output ... 203 Changing programming language .......................................... 99.................................................... 99..................................................................... 223 CFG-DP Configurator ..... 244 Local configuration .................................................................... 298 Changing.............................................................. 378 Colour setting ............... ......................... 306 Operating status ........... 119 Declaration of function blocks .................................... 362.................................... 311 Via modem .................................................... 363 Cross-reference file .............. 373 Declaration blocks Sequence .......... 376 Status................................................................................................................................................ 183 Converting the return value of a function ......... 366 Display Status ....... overview ............................................................................................................ 322 Log ....................................... 315 Diagnostics .............. 188 Connecting................................... 100 D Data exchange............................ 262 With PS4-300 ....... 324 Modem ................................................................... 329 AT commands ........................................................... PS416 ............................................................................ 365............................................. 300 Removing ......................................................Index With PROFIBUS-DP network ....................... 114 Conventions............................................................... writing variable names .............. 102 Convert function type ........................................... 370..................................... 311 Connection termination AT commands ........................................................................................................................................ 209 Data retention destroyed ..... 325 Connection list Create ............................................. 184 Converting the sequence type ............... 331 CONSTANT .................................. 325 Connection establishment . 228 Configurators................................... 341 Connection Aborted .................................................... 186 Current POU ..... 365 DC voltage failure ..... PLC ...... display on the CPU ...................................... 370 Data types..... 364 Status.......... PS4-200 ............................ 314 Connection Check via DCD line ... 143 CPU Address setting.............................................. derived ..................................... command .................... 325 Add .................................................................................................. 102 07/01 AWB2700-1305-GB 441 ................................................................................................................................................................................................ 184 Convert POU type ..... 105 Date.............. on the device .................. ........................................... 331 Display Faulty modules ....... 87.............. 354 Defining the print range (Form editor) ............................................................... 399 442 07/01 AWB2700-1305-GB ........................... 118 Syntax mode ..... 366 Diagnostics counter ............................. 198 Elements in the Form editor ......................................................... 117 Declaration Wizard ............ 109 Starting .................................... 322 Delete User program ........................................................ 139 Outputs .............. 118 Defining startup behaviour........................ 380 Faulty network lines ............. 366 Diagnostics...................... 378 Deleting Elements .................................................................................... 90 Free mode .................................................... 202 Display I/O utilisation ............................................................................................................................................... 206 Device name ..................................................................................... 204 Network in FBD ............ 342 Disconnection ... 222 Diagnostics bit ........................... 205 Derived data types ......................................................................................................... 289 Empty slot ................................................................................................. 412 Dialling tone....... 165 Local components ...... 323 Disconnect.................................................. 331..................... 89....................................................................... PLC ............................................................................. not detected ......... 169 Remote components .............................. after program transfer .......................................................................... 285 Delay time ....Index Declaration section .................................... 366 Diagnostics status word ........................ 163 Inputs ............................... 109 Declaring variables in Free mode ........ 159 Network in LD . AS-Interface® ................................................................................ 380 Display bus cycle time ....................................... 204 Graphical symbols .......... 145 Elements from the topology ................................................................................... Definition ............................................................ output window .............................................................................. 202 Display mode......... 311 Diagnostics Bit.......... PROFIBUS-DP stations ..... 105 Device configuration.................. 101 Dynamic forcing ........................................................................................................ ... 93 Find undeclared variables ..................................................................................... 370 Faulty code .............................. 271 Network diagnostics ......................... 371 Network station .......... 318 Establishment.............. 256 Configuration with multi-processing .......... 373 FBD programming ................................. structure .............................................................. 113 Element Deleting ...................................................................... 195 Expanding the topology Local ........................................................................................................................................ 145 Naming ............................................................................................. 371 Error message .......................................................................................................................................... modem connection ............................................................... 100 Establishing a remote connection........................................................................................................... impermissible ......... 172 Entry cells......................................................................... remote ........ 283 Find ............................................... 96 ERROR ....................................................................... Overview ......................................................... 136......................... 348 07/01 AWB2700-1305-GB 443 ............. CPU ............................... 353 Fill Colour .............................. 149 File card tabs ....................................................................... 97 Forcing Analog outputs ..................... 283 Font setting ...................... 329 Example Configuration with AS-Interface®network ................ 153 Expand topology Remote ..................................... 365 Error Local configuration ........................................................... 104 F Failure......... 371 SBI ................ column adjustment ......... 125 Error report . 371 Remote configuration ............................................................ 203 Remote .. 146........................................ 381 Example configuration....... 89 File names................................................................ 195 External variable ........................................................... 93 Font ........... 403 Execution control ......................................... 204 Expansion............. extensions...............................................Index E Editing line .......................................... .. 104 Global data types ........................................ 137 Inserting in ST ........... 307 Formatting....................... 378 I ID code ................................................................................ 281 Free mode ......................................................................................................... memory card ................................................ 407 Generic components ..................................................................... 288 Graphical symbols Deleting .......................................... 356 Formular-Editor ......... 197 IL programming ..................... 121 Inserting in LD ....................................................... 367 Initial value ................................................................... 185 Go to ....................... 121 Indication........... 93 Graphic elements ........................................................ 86 Function blocks POU type .. 161 Grid Lines .............................................. 347 Special feature of PS4-100 ................................................. 213 Variable ................................................................................... 155 Inserting in IL ........ 86 G Generic Types ........................................................ 398 Forcing outputs ....... 281 Drawing ............................................................... 118 Function Creating in LD ......... 114 Initialise PLC modem via remote configuration ......................................................................................................................................................... 191................................. 284 H Halt............................ 307..................................................................................................... 163 Inserting ....................... 197 Global Variable ............................ 128 POU .............................................................................................................................. error category .......................................................................................................................................................................................................... 401 Outputs ......................................................... 149 Inserting in FBD ....................................................................... 329 444 07/01 AWB2700-1305-GB ..................................................Index Cancel . user program .................................. 155 Functions in IL .................. 141 Inserting control statements ............ 141 Instance ........................................................................ 121 Functions in ST .. FBD .......... 154 07/01 AWB2700-1305-GB 445 ........ 137 Variables in ST .................................................................................................................................................................................................................. 141 Control statements . 166 Variables in FBD ............... 104 Insert Conditional network output .................................................................................................................................................................................................................................................................. 162 Inserting AND sequence............................................................... 165 Display ................................................................................... 326 PLC modem via remote configuration ...... 142 Network in LD ..................Index Initialising PC modem ............. in IL ................................................................ 130 Inserting AND function.................................. 321 PLC modem ................ 141 Output .......................... 221 Specifying for AS-Interface®components .................................................................. 128 OR sequence in LD .... 123 Variables in LD ............................................................................................................................... FBD ........................ 128 Inserting OR sequence .................................................. 426 Input Deleting .......................................................................................................... 307..... LD .................. 159 Operators in IL ...... 121 Operators in ST ................................................................. 128 Graphical symbols .............. 164 Network in FBD .... 345 Inserting ...................................... 121 ST ............. 110.................................................................................... 154 Variables in IL .................................................. 164 Negating ......................... 139 Inserting AND function................................ 161 Inputs ...................................................................................... 198 Variable ....................................................................................................................... 170 Variable ................................. 131 Inserting operators.. 131 Functions in FBD ............................... 103 Input/Output Access to PROFIBUS-DP slaves ......................... 162 AND sequence in LD .......................................................................................... .......... 147............... 289 Loading the configuration file ............ 99 Language selection ....................... 132 Jumps ......... 99 LD programming ........................... POU Editor ............................................................................................................. 105 Logical sequence .... 55 Master ................................................................... 173 Jump statements ....................................................................................................................................................................................... 132 Lightning symbol ...................................................................................... 194............................................. 203 Local expansion .................. data types .......................... 283 LOAD ............................................................................. data types ......................................... 153 L Language element toolbar ... 122 Manufacturer-defined function blocks. 134 Language elements toolbar ............................. 160 Jump operations ........................................................................................ 356 Information on ............................................................................................................ 334 Memory card Formatting ........................ 91 IO code ................... 87....................................... 152 LD ........ 111 Markers ................................................... 140 M Manufacturer AS-Interface®component . 92 Modem 446 07/01 AWB2700-1305-GB ................... 89 Language element toolbar buttons FBD ........... 197 Iteration statements ........................ 102 Instruction section ..................................................................................................................................................................................... 365 Menu bar...................... 197 Function blocks.................................... 140........... 210 Line thickness ...................... 49...................................................................................... 191............................................................................................................................Index Instantiating ............................................................................ 380 Line colour ......... 111 Functions ............... 203 Local variable .................. 354 Loading bitmaps (Form editor) ...... 132 J Jump destination ........................ 89.............................. 283 Line number ..................................... ............... 217.........................................................................................Index Connecting ...................................... 114 Negating Contact or coil in LD ..................................................... 187 Online Mode...................................................................................................................... 376 NOT SET ...................... 139 Inserting in FBD ..... not possible .................................................. 397 Online POU FBD display ......................................... 190 New program POU ........................................... Switching in the POU Editor .............................................................................................................. 382 Display ............................. 159 Inserting in LD .... 150........ 307 Example ........... 354 O Offline mode ......................................................... 211 Multidrop connection ................. 144 Inputs ............................... 147.................................................................. 365............... 388 07/01 AWB2700-1305-GB 447 ................................... 402 Online mode ........................................... 191 Suconet K ................. 187 Online modification........... 107 Not Ready ..................................................... 190 AS-Interface® . 144 Network Deleting in FBD .......................................................................... 379.................................................. 427 N Name ........................ 381 Example with AS-Interface network® ..... 150 Network types ........................................................................ 170 Outputs ........................................................................ 385 Modification...................................................... 380 Network diagnostics .......................... 389 IL display ......................... 316 Module number ............................................. 315 Multi-processing ................................................................................................. 412 Network graphics ................. not possible ......................................................................................................................................... 319 Modem connection .... 151 Network label .............................................................. 174 Network communications........ 159 Deleting in LD ................. indicating status ..................... 139 Network comment ........................ 171 Negating a contact ................................................................................................................................. ............................................... 365 Transferring .............. 188 PLC Local expansion ...................................................................................................................................... 114 Placeholders ............. indication of setting .............................................................. 200 Send and receive data ........... 365....... 260 Device ..................................... 198 Procedure ............... 329 Physical address .........................................................................Index LD display .... examples .. 194 Remote Expansion .......... 313 448 07/01 AWB2700-1305-GB ......................... 373 P Page Preview (Form editor) ............... 103 Output window ........................ 370.............................................................................................................................................................................. 307................ 166 Negating ............................................ 290 Page setup (Form editor) .............. 313 Point-to-point connection ............................................... 347 Inserting ................................................................................. 345 Forcing ............................................................................................................ 208 Parameters dialog....................... 285 Parameters AS-Interface®master ......................................................... 100 Output window............................................... configuration ........................................ 171 Reset ................... 323 PBX system ....................................... 193 Point-to-point ............................................... 377 Operating system Display of version and identification code .. 332 Pauses........................................ 389 Open............................................................. Topology Configurator ..................................................................... 193 Operating mode selector switch.................... 370 Variable ...... 349 Output Deleting ................................................................................................................................. display mode .......................... 365 Not present (indication) .................................................. 195 Selecting a type ... 101 Overload ......................... 169 Display .......................................... 199 Password Define ...................................................................................... 281 Plausibility check.......................................... during dialling process ............................................... 299 PLC access ................................... 371.. ............................................ 128 Online modification .................................................... 285 Editing ..................... 299 Print form Designing ........................................................................................................... 126 Structure ..................... 220 Network .......................................................... 86 Protecting ................................... 47... 89 POU Info .................... 291 Save ..... 60 Window ...... 86 Print Configuration ........ via programming device ..................................................................... 290 PROFIBUS-DP Configurator ........................................................................................................... 54.................................................. 86 Program ...................................... 193 Connection list ............................................................................. 378 Transfer .......... 220 Program Changing .................... 88 Start .............................. 153 Creating in IL .................................................................................................................... 86 Function block ......................................................................... 385 Testing ...................................................................................................................................... 135 Creating in ST ......................................................... 192 Topology configuration ...... 119............................................................. 182 POU type Function .............................. 121 Creating in LD .......................................................................................... 357 Starting and stopping............................................................................................................................ 396 Saving ......................................................................................................... 88 User interface .................... 352 Version number ................................................................................................................................................................................................................................................. 48 POU type .................. 385 Program information 07/01 AWB2700-1305-GB 449 ................................................................................ 387 POU Editor Primary functions .... 87 Test ......................... 396 Comparing Programming device and PLC .......... 356 Cycle time ..................................................... 47 Starting ......................................Index POU Creating in FBD ................. ............................................................... 357................ 211 Remote diagnostics ............... 373 Receive data Parameters ........ .............................. 376 Real-time clock faulty ............................................ 93 RETAIN ............................................ 320 Remote expansion ............................................. 316 Via Suconet K ... 149 In IL ............... 315 Via modem ................................................................ 121 in LD .... 114 Retentive marker reset ........ 377 Program memory.. 50..............................................Index PS4 ..................................................... 323 R RAM memory faulty ........................................................................................................................................................... with Suconet K programming ............................................................................................. 182 Pulse dial . 316 Replace ........................... error ......... components ............. 204 AS-Interface®line .......................................... 373 Ready ........................... 205 Restore ......................................................................................................... 196 Suconet K line ......................................... 376 Program test ..................................................................................... 377 PS4 ...................................................................................................................................................... 365................. 334 Programming performance............................................................. 426 Remote control ............................... 365........................................................................................................................................ 340 Prototype .................. 195 Remote operation ................ 370 Run ...................................... 376 RUNTIME ERROR .............................................................. 370 450 07/01 AWB2700-1305-GB .............................................................. 132 In ST ............................................................................................. 208 Recipe range ............................................................ 370................................................................................................ 93 Replacing................................................................................................................. 365... 56 Remote configuration ................................................................................................... 377 Program status ............................ 127 Programming connection Multidrop.. 384 Programming in FBD ................................................................... 377 Program startup ..... 375 PS416 ......................................... 370................................................... 370 Program name .. .............................. 210 Local expansion ...................................................................................................................................... 373 Single master system ............. PROFIBUS-DP line .......................................................................... 208 SendATCommand ......................... 290 Save settings on exit ..................... 397 ST .................................................. 371....................................... 98 Standard terminal program..................... 189 User program ......................................................................................... 194 07/01 AWB2700-1305-GB 451 ...................... 377 Static forcing ................... 281 Forms .....Index S Save Configuration .............. Configuration for PS4-300 ............................. 138 Selection statements ....... 223 Startup......... 366 Startup phase.......................... 135 Starting Topology Configurator ................................................................................................................................................................... 327 Start FBD network .... 329 Settings Dialog ... 373 Special characters...................................................................... 153 Start LD network .................. 216 Send data Parameters .. 127 Standard Cover sheets .................................................................................................................. 370......... 284 Software error ................................................................................................................................................... 158 POU elements in LD ...................... for initialising PLC modems ................................................................................................................. 402 Saving Connection list ................... 252 Addressing ............................................... 299 POU ......................................... 96 Saving during online/offline change ............ in Status display .................... 126 Select POU elements in FBD .... 386 Short-circuit ...... program .................................................................................. 193 Print form ............ 119..................... 191 Snap-to-grid function ................................... 399 Station Address setting ..................................................................... 322............................................................................................ 131 Send and receive data.............. 281 Toolbar .............................. ........ 337 Network........................................................ operating mode for PS4-300 . 322 Timer failure .................................. Overview .. 125 Access addresses with PROFIBUS-DP stations .................. 285 Time...................................... 224 Example with PROFIBUS-DP ....... 244 452 07/01 AWB2700-1305-GB .................................................................... 97 POU Editor ....................... 90 Synchronous operation with PS4-300 ........................... 365 T Text entries .... 268 Example with AS-Interface®network .............................................................. 190 Slave.......................................................... 337 Supply voltage dip ..... 373 Tool tip ................................................... 303 Topology configuration Change .................................. error category ................................................................................. 195 Status display ............................................................................................................. 97 Customize ................ 388 Variables in the Variables window ........ 366 Structured text ..........................Index Number .................................................... 203 Complex example ......................................................................................... 256 Example with local configuration ...................................................... 394 Variables in the Zoom window ....... 370............................................................................................................................................................ 214 Syntax check ............................................ 91 ST in LD and FBD .................... 373 Switching Instruction section and declaration section ........................................................... 127 Suconet K Network .............. display on CPU ....................................................... 215 Suconet K network ................................................ 89 Test & Commissioning ................. 361 System information ................. 221 Syntax mode ........... 392 Stop....................................................... 91 Toolbar .......... 370........... 365 Timeout delay ....................................... 112 System diagnostics ............ 220 Example with PROFIBUS-DP network ..................................................................... 210 Remote expansion ............................................................................................................... 262 Example with PS416 ...................................................................... 127 Switching modes Syntax mode and Free mode ............................................................................... ....................................................................................... 228 Procedure ..................... display ................................................................................................................................... 271 Topology Configurator Adding components ............................................................................................................................................................................................................. 206............................................... 102 Examples for Free mode ....... 366 User program memory....................................................... 103 VAR_OUTPUT ................................... 246 Procedure with AS-Interface® ......Index Example with PS4-300 ....... 104 VAR_IN_OUT .. 185 User-defined function blocks and data types .................................................................................. 93 User program Faulty...................... 103 Variable declaration ..................... 114 Variable ......... 189 Structure ...... 187 Starting ................ 326 Transferring new variables ................. 102 Elements .............................................. indication .............................................................................. 105 U Undo ........ 122 V VAR . 202 Overview .... 257 Topology configuration with multi-processing .................................................................................................... 341 Transfer problems.................................. 365 User-defined data types ............................................................... 120 Free mode entry .................................................................................................................................... when transferring to slave PLCs ................................... 118 User-guided entry ........ 111 User-defined functions ......................................................... 352 Transfer errors....................... 104 VAR_INPUT ........................................................ 328 Transfer rate ..... 349 Program ........ 204 Display ........................................ 365 Starting ...... 203.......... 104 VAR_GLOBAL ............................ 112 07/01 AWB2700-1305-GB 453 ................ 201 I/O utilisation ..................... 225.................................. 95.................................. 110 Type ........................................ 105 VAR_EXTERNAL ................................. with modem connection ......................................... 314........................ 187 Transfer Operating system ....................................................................................................................................................... .............................. 390 Forcing ..... 109 Displaying complex (Zoom window) ................ 124 Declaring with Declaration Wizard ... 402 Variables ....... 393 No display ........................................................ 130 Voltage supply failed ......................................... 325 Warm start ....................................... 154 Inserting in IL ....................... 378 Watchdog ........................................................................................................................................................................ conventions ........................................................................ 210 Changing .......... 106 Declaring in Syntax mode ....................................................................... 137 Inserting in ST ........... 373 Wiring test ................... 102 Variable states.............................. 370 W Wait for connection in s ........................................................................................................................................................ 113 Declaring later ............................................................... 118 Address .................. 343 Z Zoom window ....Index Variable editor ........................ 120 Changing the declaration ...................... 388 Variable window Displaying complex variables .................................. display in the POU Editor ....... 370............................................ 401 Inserting in FBD .......... 112 Variable name....... 124 Declaring from topology ............................................................................................................................................................................................................................ 123 Inserting in LD ................................................................ 390 454 07/01 AWB2700-1305-GB ................................................................ List of revisions to manual AWB 2700-1305GB Publication Date 06/98 Page 31 208–209 211–212 214/227 223 234 286 Subject Note Master Slave Operation with Remote Control Upper figure. 3. 2.0 New Change X X X X X X Deleted 07/99 Entire manual 07/99 (reprint) 70 78 92 160 178 204 282 298 321 X X X X X X X X X X 05/00 07/01 Chap. T Revision for version 4. 5 – Incorporation of AWB2700-1337GB Table.0. P. Button description displayed NOT_READY Note second to last paragraph D. – Chapters 1. 5 Entire manual 07/01 AWB2700-1305-GB . top 3rd note 2nd paragraph 4th paragraph Complete revision Revision for version 5. VAR_IN_OUT Output Note Figure Note first two paragraphs after list.
Copyright © 2024 DOKUMEN.SITE Inc.