Creating a new project up to a working PES
No. Action Activity
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
block in the library
Context menu library
new Funktion Block Type NewFB to be renamed 4 Definition of the function and
the graphical image of the function block
Open the function block
in the drawing field: Functionality (logic) 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
block
Context menu in window graphical image, properties:
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 program in the library
Context menu library
new Program Type NewProgramType to be renamed 6 Definition of the function of
the program
Open program
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.
No. Action Activity
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)
Context menu resource
new Program instance Structure of the project is shown
Mark the needed program in the library and take it over Program in the resource is marked as ”I” (Instance).
Modifications of the program can be made in the program or in its instance but the information depending on hardware (HW- or Buscom-adresses) will only be shown in the instance.
10 OFFLINE-Simulation of the program
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 program is free of errors, automatic run of: - Creating code
– Creating binary file
– Initialisation communication – Loading program
Automatic change into display OLS (OFF-LINE-Simulation) Starting OLS with the blue arrow.
Open program with a double mouse click. 10.1 Modification of values of
variables during the
OFFLINE-Simulation of the program
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-Simulation
Click arrow upwards
11 Hardware of the PES
11.1 Assignement resource type Context menu resource RT Assignement
Select resource type, e. g. H41q-HS 11.2 Placing the racks Context menu resource
Select Edit cabinet layout
Display of the rack with the common modules
Place the required modules by drag&drop into the free slots of the rack 11.3 Assignation of the variables
of the program to the channels of the hardware
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!
No. Action Activity
12 Bus connection to the PES
12.1 Definition of the bus subscribers
Context menu configuration Select properties
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
(usually it is not necessary to change the standard parameters) 12.3 Connection of the PES to the
bus
Context menu resource Select properties 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. 13 Code generation of the
program
Contect menu resource
Select codegenerator and start it
After having generated en error free code close the information window. 14 Download the program into
the PES
Context menu resource. Select control panel.
Display changes to control panel Select download
After successfull download start the PES operation (red arrow) 15 ONLINE-Test of the
program
Context menu resource Select ONLINE test Display changes into OLT
Open the program by a double click
Test of the program by operating switches or input of values in OLT-fields.
In the OLT-fields additional FORCE information (lower value) and the position of the force switch.
Communication via MODBUS
The communication via MODBUS is a property of the resource (hardware) and can only be defined in the program 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 program 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
No. Action Activity
1 Setting the communication parameter of the interface
Context menu resource 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 Context menu resource
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)
Open program 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.
3 Generation of the machine code
Context menu resource Start code generator 4 Show list of the imported
and exported variables
Context menu resource 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 program. See description in the HELP page or printout of the manual.
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 program 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 program instance exists.
Safety-related data transfer (HIPRO-S)
No. Action Activity
1 Definition of the bus Context menu configuration Select properties
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
Context menu resource RT assignement
Select the desired resource type 3 Properties of the CU and CM Context menu resource
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
Context menu resource 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 program 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
Context menu resource Start code generator 7 Generate PES-Master Project Context menu configuration