Application Builder Guide by Sielco Sistemi Srl Winlog Pro can automatically create SCADA applications by using Application Builder, a powerful tool that allows a drastic reduction of development time. Any application can be built by simply taking up from a library and putting together objects that refer to various automation devices (PID controllers, indicators, data acquisition modules, motor drives, ...). Objects include tags, protocols, templates and all information required for device supervision and programming (eg. device front view, configuration templates, ...). Events and alarms that can be managed by Winlog Pro are also included. Objects can be built using Multilanguage option, to allow automatic creation of Multilanguage applications. 3 Contents 2009 Sielco Sistemi Srl Table of Contents Foreword 0 Part I Introduction 5 Part II Creating an application 7 Part III Channels Configuration 11 Part IV Creation of New Devices 13 Index 14 Part I 5 Introduction 2009 Sielco Sistemi Srl 1 Introduction With this tool it is possible to create a working application in a few seconds, by using devices already present in library. You can select which and how many devices will compound your application and Application Builder will automatically create all the gates and templates list of your final application, using the devices present in the library as source. You can build your own devices as standard applications and copy them in the Devices subdirectory of the program. Part II 7 Creating an application 2009 Sielco Sistemi Srl 2 Creating an application Picture 1 Follow these steps to create a new application: 1) Set the application name (picture 1). 2) Add new devices to the list. 3) Configure "Options" page. 4) Push "Build" Button. More in details: Pressing the button Add (picture 1) you can choose a type of device, the channel to use, the address and the number of devices to add (picture 2). 8 Application Builder Guide 2009 Sielco Sistemi Srl Picture 2 Edit and Delete (Picture 1) allow to modify and remove the selected device. Sort (Picture 1) sorts the device list by channel and device number. Picture 3 With Base language (picture 3) it is possible to specify which language must be used as the 9 Creating an application 2009 Sielco Sistemi Srl application's base language. The available languages are only the languages that are defined in all the devices used. The application will be created with templates and gates in the language specified as base language, while all other languages will be selectable in RunTime. Parameters of functions called from Templates (picture 3): if this flag is activated, during the creation of the application, the keys $Device,$Channel and $Prefix used as parameters in function calls associated to the objects in the Templates, will be substituted with the number of channel,device and prefix (like 101 for channel 1 device 1, 102 for channel 1 device 2 and so on...) relative to the template that is in elaboration. Use decimal address (maximum 99 devices for channel) (picture 3): if this checkbox is selected then the gates and templates prefix are encoded following decimal conversion: will be used 1 char for the channel number (1..9) and two chars for device number (01..99) . In this mode you can build an application that use till to 9 communication channels and 99 devices for channel. Use Hex address (maximum 255 devices for channel) (picture 3): if this checkbox is selected then the gates and templates prefix are encoded following hexadecimal conversion: will be used 1 char for the channel number (1..F) and two chars for device number (01..FF) . In this mode you can build an application that use till to 15 communication channels and 255 devices for channel. Part III 11 Channels Configuration 2009 Sielco Sistemi Srl 3 Channels Configuration The page in figure shows the channels used by the selected devices and the communication protocol associated to it. Part IV 13 Creation of New Devices 2009 Sielco Sistemi Srl 4 Creation of New Devices To create a new device you have to follow these steps: Create a project, using Project Manager, with the name you want to give to the device (e.g. PLC Series 2001). The project must comply with certain rules concerning the creation of the gates: Gate_ID (name) of at most seven letters so as to have three letters left Name of the sampling blocks, different for each device Name of the block of the first gate different from the name of the block of the last gate 1. Configure gates, communication channel, template and if necessary even recipes, reports and all that characterizes the device. 2. Copy, using for example the Resources Management of Windows, the directory of the project that can be found in <Installation dir>\Projects\<Name of the Project> in the directory <Installation dir>\Devices> For each type of device it is also possible to create some variations (e.g. "PLC Series 2001 without alarms" and "PLC Series 2001 with alarms"). This is the procedure to follow: Follow the steps1 and 2 for each variation. Create the directory<installation dir>\Devices\<Name of the Device> Copy the directories of the projects of each variation that are in <Installation dir>\Projects in the directory <Installation dir>\Devices\<Name of the Device Rename the directories of each variation so that they are preceded by the character '_' (underscore) Device with 3 variations in figure below. At this point, when, with Application Builder, you want to add a device with variations, you will have to specify, along with the other data, also the type of device (variation), as shown in figure. Application Builder Guide 14 2009 Sielco Sistemi Srl Index - C - Channels Configuration 11 Creation of New Devices 13 - I - Introduction 5 Endnotes 2... (after index) 15 2009 Sielco Sistemi Srl