0% found this document useful (0 votes)
45 views

HIMA Training Creating A New Project

The document provides steps for creating a new automation project in HIMA software, including defining a project structure with libraries, function blocks, programs, and configurations; designing program logic; assigning variables to hardware channels; simulating programs offline; generating code; and downloading programs to programmable logic controllers. Key steps involve creating libraries and objects, declaring variables, drawing function block diagrams, configuring hardware racks and communication, and using the code generator to create executable files for controllers.

Uploaded by

mbid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

HIMA Training Creating A New Project

The document provides steps for creating a new automation project in HIMA software, including defining a project structure with libraries, function blocks, programs, and configurations; designing program logic; assigning variables to hardware channels; simulating programs offline; generating code; and downloading programs to programmable logic controllers. Key steps involve creating libraries and objects, declaring variables, drawing function block diagrams, configuring hardware racks and communication, and using the code generator to create executable files for controllers.

Uploaded by

mbid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

HIMA Training Creating a new project

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 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 program Context menu library
in the library new Program Type
NewProgramType to be renamed
6 Definition of the function of Open program
the 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.
See also 4.3.

Create-Project.doc (0029) ELOP II-NT V3.0 Page 1/5


HIMA Training Creating a new project

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 Context menu resource
(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 Context menu Ressource
program 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 Modification of values of variables type BOOLE:
variables during the Press key ALT and make a mouse-click on the variable field
OFFLINE-Simulation of the Common modification of values:
program 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 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 Display of the channels by a double click on the module in the rack
of the program to the Choose the Variable out of the list of all defined Variables in the PROG.
channels of the hardware 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


HIMA Training Creating a new project

No. Action Activity


12 Bus connection to the PES
12.1 Definition of the bus Context menu configuration
subscribers 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 Context menu resource
bus 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 Contect menu resource
program Select codegenerator and start it
After having generated en error free code close the information window.
14 Download the program into Context menu resource.
the PES Select control panel.
Display changes to control panel
Select download
After successfull download start the PES operation (red arrow)
15 ONLINE-Test of the Context menu resource
program 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.
15.1 Leaving the ONLINE-Test Click arrow upwards

Create-Project.doc (0029) ELOP II-NT V3.0 Page 3/5


HIMA Training Creating a new project

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 Context menu resource
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 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 Open program instance
exported (read) or imported Open definition of the variable by a double click in the list or context
(write) 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 Context menu resource
code Start code generator
4 Show list of the imported Context menu resource
and exported variables 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.

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


HIMA Training Creating a new project

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 Context menu resource
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 Context menu resource
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 Open program instance
for export (read) and import Open definition of the variable by a double click in the list or context
(write) 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 Context menu resource
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

You might also like