up to a working PES 1 Project new Selection of the directory of the new project Input of the new name of the object 2 New library Context menu project title new library NewLib to be renamed 3 Generation of a new function Context menu library block in the library new Funktion Block Type NewFB to be renamed 4 Definition of the function and Open the function block the graphical image in the drawing field: Functionality (logic) of the function block in the variable declaration editor: List of VAR INPUT, VAR OUTPUT, VAR, etc. in the interface declaration editor: Graphical image of the function block 4.1 Declaration of the variables Select type of variable context menu in the variable declaration editor new name of the variable, type, (initial value), position no. at the function block 4.2 Graphical image of the function Context menu in window graphical image, properties: block Graphic: Module text (escription in the middle) Instance name: Change to description of the function block show instance name (to be marked on left up) Representation: VAR INPUT and VAR OUTPUT in 8 pt Arial 4.3 Function Open StandardLibs Open IEC1131-3 Open Functions Open Bitstr (example) Needed functions with drag & drop into the drawing field. Recommendation: Functions, function blocks only once in the drawing field, same elements should be copied in the drawing field. Extend elements to required no. of inputs, arrange and copy them, etc. Draw internal signal lines Drag and drop variables into the drawing field and position them. Connect the variables to the input and outputs of the elements. Close the function block and store. 5 Generation of a new Context menu library in the library new Program Type NewProgramType to be renamed 6 Definition of the function of Open the in the drawing field: Functionality in the variable declaration editor: only list VAR, evtl. ACTION, VAR GLOBAL 6.1 Declaration of the variables Select type of the variable context menu in the window variables new name of the variable, type, (initial value) 6.2 Function Self defined functions or function blocks as well as standard functions out of library IEC1131-3 by drag&drop into the drawing field. See also 4.3. Create-Project.doc (0029) ELOP II-NT V3.0 Page 1/5
7 New configuration Context menu project name new Cofiguration NewConf to be renamed 8 New PES (Resource) Context menu configuration new resource NewResource to be renamed 9 Program into the PES (Resource) new Program instance Structure of the project is shown Mark the needed in the library and take it over Program in the resource is marked as I (Instance). Modifications of the can be made in the or in its instance but the information depending on hardware (HW- or Buscomadresses) will only be shown in the instance. 10 OFFLINE-Simulation of the Context menu Ressource new Task Context menu New_Task Properties Intervall 1000ms / Priority 1 Context menu Instance Properties Task-Assignment, choose New_Task Context menu Resource Select OFF-LINE-Simulation When the is free of errors, automatic run of: - Creating code Creating binary file Initialisation communication Loading Automatic change into display OLS (OFF-LINE-Simulation) Starting OLS with the blue arrow. Open with a double mouse click. 10.1 Modification of values of variables during the OFFLINE-Simulation of the Modification of values of variables type BOOLE: Press key ALT and make a mouse-click on the variable field Common modification of values: Generate an OLT-Field (ONLINE-Test-Field) and after a double click enter the required value. 10.2 Leaving the OFFLINE- Click arrow upwards Simulation 11 Hardware of the PES 11.1 Assignement resource type RT Assignement Select resource type, e. g. H41q-HS 11.2 Placing the racks Select Edit cabinet layout Display of the rack with the common modules 11.3 Assignation of the variables of the to the channels of the hardware Place the required modules by drag&drop into the free slots of the rack Display of the channels by a double click on the module in the rack Choose the Variable out of the list of all defined Variables in the PROG. Assign the variable with Drag&Drop to the channel. After having allocated all variables terminate with OK or all the current changes will be lost! Create-Project.doc (0029) ELOP II-NT V3.0 Page 2/5
12 Bus connection to the PES 12.1 Definition of the bus subscribers Context menu configuration Select buses Add define any bus name Add Slave (PES), description is according to no. of the hardware Add PC (PADT), description and no. 31! 12.2 Definition of the parameters Define Baud rate, Parity-, Start- and Stop-Bit 12.3 Connection of the PES to the bus 13 Code generation of the 14 Download the into the PES 15 ONLINE-Test of the 15.1 Leaving the ONLINE-Test Click arrow upwards (usually it is not necessary to change the standard parameters) Select PADT (PC) Select bus Select the bus name for the PES (defined in 12.1) Select the name for the PADT (PC), then BSN no. 31 is shown. Contect menu resource Select codegenerator and start it After having generated en error free code close the information window.. Select control panel. Display changes to control panel Select download After successfull download start the PES operation (red arrow) Select ONLINE test Display changes into OLT Open the by a double click Test of the by operating switches or input of values in OLTfields. In the OLT-fields additional FORCE information (lower value) and the position of the force switch. Create-Project.doc (0029) ELOP II-NT V3.0 Page 3/5
Communication via MODBUS The communication via MODBUS is a property of the resource (hardware) and can only be defined in the instance of the resource. In the operating system of all PES of HIMA the slave function of MODBUS is implemented. Using the software building block HK-MMT-3 each PES of HIMA can operate as MODBUS master. In the following table it is assumed that a configuration with resources already exists and in the resource a instance exists. A definition of a bus for the MODBUS slave function is not necessary. Setting of the slave address by the DIP switches on the CPU of the PES. Slave-System 1 Setting the communication parameter of the interface Edit cabinet layout Edit central unit. Select SIO 1 or SIO 2 In the CU properties: Parameter selection (HW settings recommended) 1.1 Define base addresses Properties Select BUSCOM Define base address for import, export, import/export of variables type Digital (BOOL) or Analog (Word) if base address 0 shall not be used. 2 Allocation of variables to be exported (read) or imported (write) 3 Generation of the machine code 4 Show list of the imported and exported variables Open instance Open definition of the variable by a double click in the list or context menu on the value field. Select hardware assignement. Select BUSCOM. Define export, import or import/export of the variable. Enter relative address of the variable. If not entered then automatic numbering of the addresses in alphabetic order of the import and export variables. Start code generator Documentation Select RES docu (generated) List of variables will be shown and can be printed out Master-System Same procedure as in the slave system. Additionally a software building block HK-MMT-3 has to be implemented in the. See description in the HELP page or printout of the manual. The import variables of the slave system are the export variables of the master system and vice versa. Create-Project.doc (0029) ELOP II-NT V3.0 Page 4/5
Communication via HIBUS The communication via HIBUS (not safety-related HIPRO-N and safety-related HIPRO-S) is a property of the resource (hardware) and can only be defined in the instance of the resource. This type of data transmission requires a PES master in a coprocessor module in the system H51 or H51q which has to be implemented in the central rack of the PES. In the following table it is assumed that a configuration with resources already exists and in the resource a instance exists. Safety-related data transfer (HIPRO-S) 1 Definition of the bus Context menu configuration Select communication bus Add communication bus Enter name of the communication bus 1.1 Define subscribers at the bus Select communication bus Edit communication bus and add subscriber Select name of the resource, define slave and BSN Name of the PC (any), BSN of PC (31) and define PC. 1.2 PES-Master Name, BSN, PES-Master, define parameters of CU and CM 2 Configuration of the resource RT assignement Select the desired resource type 3 Properties of the CU and CM Edit cabinet layout Double click on the CU, select parameters of the CU Double click on the CM, select parameters of the CM 4 Definition of the resource at the bus Properties Register PADT (PC) Select bus Select name of the PC. BSN like the definition in 1.1. must be shown. 4.1 Allocation of the PES master Register HIPRO-S Add resource Define PES-Master, monitoring time and evtl. imported variables to be reset after monitoring time. System informations will be generated to monitor the interfaces 5 Allocations of the variables for export (read) and import (write) Open instance Open definition of the variable by a double click in the list or context menu on the value field. Select hardware assignement. Select HIPRO-S Import of resource (only once) Export to resource (evtl. multiple) 6 Generation of the machine code Start code generator 7 Generate PES-Master Project Context menu configuration PES-Master After selection master: Execute (Compile) Execute Download after having selected the master Not safety-related data transmission (HIPRO-N) Same procedure as in HIPRO-S: The imported and exported variables do not come from or do not go to a resource but via a PES master. Create-Project.doc (0029) ELOP II-NT V3.0 Page 5/5