Interface screenshot

Create MyHMI /3GL can be used to create HMI extensions for the SINUMERIK 840D sl and SINUMERIK ONE or stand-alone user interfaces for SINUMERIK 840D sl, SINUMERIK ONE, and SINUMERIK MC.

Create MyHMI /3GL allows high-level language applications to be developed in the C++ programming language in conjunction with Qt for SINUMERIK Operate on SINUMERIK PCU 50.5, SIMATIC IPC427E or IPC477E, and on SINUMERIK NCU 7x0 or SINUMERIK ONE NCUs.

Here are some small code samples used to monitor variables (using a dynamic graph) or to log alarms...

Identify target Sinumerik system

The HMI (Human Machine Interface) on the Sinumerik system may be based on the native Linux system, running from the CF card of the NCU unit, or on a Windows system installed on a distinct PC unit, connected to the NC via network.

In order to install a new app is necessary to identify the operating system (Linux or Windows), the computer running the HMI interface (NCU or an external computer such as PCU [PC Unit] or IPC [Industrial PC]) and the correct install path of the HMI software.

The type of system may be identified on Operating Area 'Setup', 'System data' menu...

Menu Select Setup Sys Data

...by checking where the system data are located.

If a 'System CF card' is present, SINUMERIK Operate runs under Linux from NCU unit.

If a 'System HDD' is present, SINUMERIK Operate runs under Windows from a PCU or IPC unit.

TCU System PCU System

For a system running on Linux, from the CF Card of the NCU Unit, Sinumerik Operate path is:
/card/oem/sinumerik/hmi

For a system running on Windows, from the HDD of the PCU or IPC Unit, Sinumerik Operate path should be identified from Windows settings:
... for a system running Windows XP the path may be:
F:/hmisl/oem/sinumerik/hmi
... while for a system running Windows7 or Windows10 the path may be:
C:/Program Files (x86)/Siemens/MotionControl /oem/sinumerik/hmi

Identify Version

The version of the MyHMI/3GL used in application should match the Sinumerik Operate version.

The version of the HMI system (Sinumerik Operate) may be identified on Operating Area 'Diagnosis', 'Version' menu...

Menu Select Diagnosis Version
Version

Download Apps

The app version must match the version of the target system, identified as above...

Test MyHMI/3GL App on a Sinumerik Simulator...[optional]

It may be a good idea to test the app before installing on a real Sinumerik system.

Create MyHMI/3GL Apps (compiled for Windows) may be tested on Sinutrain, a Sinumerik simulator.
Starting with version 4.5, Sinutrain has also a Basic version (free use without license), available for download.

According to the version of the real Sinumerik system, a similar version of Sinutrain may be downloaded and installed.
After the start of Sinutrain software, a new machine must be created. Without a license, for test purposes, one of the BASIC machines may be used to test the MyHMI/3GL App.
Another option is to use the Trial licence and create a machine similar with the real Sinumerik CNC machine.

Install App

The app version must match the version of the target system, identified as above...

1. Backup system before install

Backup the system according to OEM/Siemens manuals.

2. Check Sinumerik Operate path on the target system

For a system running on Linux, from the CF Card of the NCU Unit, Sinumerik Operate path is:
/card/oem/sinumerik/hmi

For a system running on Windows, from the HDD of the PCU or IPC Unit, Sinumerik Operate path should be identified from Windows settings.
... for a system running Windows XP the path may be:
F:/hmisl/oem/sinumerik/hmi
... while for a system running Windows7 or Windows10 the path may be:
C:/Program Files (x86)/Siemens/MotionControl/oem/sinumerik/hmi

For a simulated system running in Sinutrain the path may be:
C:/Siemens/Sinutrain/SINUMERIK CNC-SW 840D sl'version'/hmi/oem/sinumerik/hmi
[the path is available only after a machine is started]

3. Copy app files in 'appl' folder

Go to Operating Area 'Setup', 'System data' menu...

Menu Select Setup Sys Data

Go to HMI data / Applications / Manufacturer

Settings

The content of the 'appl' folder [files: cam840a.dll, libcam840a.so and cam840adialog.hmi] from the application archive should be copied here.

On the file system, this folder is located at 'Sinumerik Operate path'/appl (e.g. /card/oem/sinumerik/hmi/appl for a Linux system)

4.a Check systemconfiguration .ini (or systemconfiguration .xml) file

Go to Operating Area 'Setup', 'System data' menu...

Menu Select Setup System data

Go to HMI data / Settings and check in 'Manufacturer' and 'User' folders the presence of a file named 'systemconfiguration.ini' or 'systemconfiguration.xml'

Settings

If 'systemconfiguration.ini' file exists in 'Manufacturer' or 'User' folder, open the file in editor and search for the section [areas]
In section [areas] check for AREA0547. If is not used it can be used for our application. If it is check for a free area (between AREA0500 and AREA0599).

If 'systemconfiguration.xml' file exists in 'Manufacturer' or 'User' folder, open the file in editor and search for the section <areas>
In section <areas> check for AREA0547. If is not used it can be used for our application. If it is check for a free area (between AREA0500 and AREA0599).

4.b If systemconfiguration.ini was found, update the file

Add in section [areas] the following line: (use a free number if AREA0547 is used)

AREA0547= name:= cam840, dialog:= cam840adialog, panel:= SlHdStdHeaderPanel

Add in section [dialogs] the following line: (use the same number as for AREA)

DLG0547= name:= cam840adialog, implementation := slgfw.SlGfwHmiDialog, process := SlHmiHost1, preload := true, terminate := false, cmdline := "-conf cam840adialog.hmi "

systemconfiguration.ini
...
[areas]
AREA0547= name:= cam840, dialog:= cam840adialog, panel:= SlHdStdHeaderPanel
[dialogs]
DLG0547= name := cam840adialog, implementation := slgfw.SlGfwHmiDialog, process := SlHmiHost1, preload := true, terminate := false, cmdline := "-conf cam840adialog.hmi "
...

4.c If systemconfiguration .xml was found...

Check for AREA0547 in file. If is not used it can be used for our application. If it is check for a free area (between AREA0500 and AREA0599)
Use this area to create a new systemconfiguration.ini file as explained at 4.d

4.d If neither systemconfiguration .ini or systemconfiguration .xml were found...

Create a new systemconfiguration.ini in Manufacturer folder:

systemconfiguration.ini
[areas]
AREA0547= name := cam840, dialog := cam840adialog, panel := SlHdStdHeaderPanel
[dialogs]
DLG0547= name := cam840adialog, implementation := slgfw.SlGfwHmiDialog, process := SlHmiHost1, preload := true, terminate := false, cmdline := "-conf cam840adialog.hmi "

5.a Check slamconfig.ini (or slamconfig.xls) file (optional)

Go to Operating Area 'Setup', 'System data' menu and create a new slamconfig.ini file (or update if already exists).

slamconfig.ini
[cam840]
Visible=True
TextId=Cam840 ;a text to be display on the softkey
Picture=logo_tasta.png ;a logo, saved in ico folder, to be display on the softkey
SoftkeyPosition=7 ;position of the key in menu