0% found this document useful (0 votes)
43 views3 pages

Example PDF

This document provides a quick introduction to starting and debugging an HMI example (CPP) using the SINUMERIK Operate programming package. It outlines five steps: establishing a connection to the NC by modifying the 'mmc.ini' file, opening the example project in Visual Studio, compiling the example, starting SINUMERIK Operate, and debugging the example. The instructions are applicable to all HMI examples (CPP) within the specified directory.

Uploaded by

1101596349
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views3 pages

Example PDF

This document provides a quick introduction to starting and debugging an HMI example (CPP) using the SINUMERIK Operate programming package. It outlines five steps: establishing a connection to the NC by modifying the 'mmc.ini' file, opening the example project in Visual Studio, compiling the example, starting SINUMERIK Operate, and debugging the example. The instructions are applicable to all HMI examples (CPP) within the specified directory.

Uploaded by

1101596349
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

03/2017 Quick introduction HMI example (CPP)

HMI example quick introduction (CPP)


In just a few steps, this document shows how an HMI example (CPP) from the folder
"[Installation directory]\examples.CPP" can be started and debugged. This is demonstrated
using the "SlDataSvcReadWriteChange" example; however, it functions in the same way for
all other HMI examples (CPP).

The SINUMERIK Operate programming package must have been successfully installed on
the development PC or laptop. All path data in this document refers to the substituted
installation directory of the SINUMERIK Operate programming package.

Step 1 – Establish the connection to the NC


In order that the SINUMERIK Operate programming package can
communicate with the NC, the entries in the "mmc.ini" must be adapted. To do
this, you copy the file "hmisl\siemens\sinumerik\hmi\cfg\mmc.ini" to
"hmisl\oem\sinumerik\hmi\cfg\". In the copied file
"hmisl\oem\sinumerik\hmi\cfg\mmc.ini", you enter the IP address of the NC in
the entries highlighted in Fig. 1.

Fig. 1 – mmc.ini

Comment:
The original file "hmisl\siemens\sinumerik\hmi\cfg\mmc.ini", should not be
changed, as this change will be lost when updating the software.

Step 2 – Open the example


After opening Visual Studio 2008:

Start à Programs à Siemens Automation à Sinumerik à SINUMERIK


Integrate Create MyHMI -3GL à Tools à Visual Studio

…you open the project file "SlDataSvcReadWriteChange.vcproj" in the


directory "examples.CPP\SlDataSvc\SlDataSvcReadWriteChange\".

Step 3 – Compile the example


The example can now be compiled:
Menu Build à Rebuild Solution.

Confirm the following prompt with "Save".

© Siemens AG 2017 All Rights Reserved


SINUMERIK Operate Programming Package - Edition 03/2017 1/3
03/2017 Quick introduction HMI example (CPP)

Step 4 – Start SINUMERIK Operate


SINUMERIK Operate can now be started from the Windows start menu:

Start à Programs à Siemens Automation à SINUMERIK à SINUMERIK


Integrate Create MyHMI -3GL à HMI

This is necessary so that the example started in the next step has a connection
to the NC/PLC.

Step 5 – Debug the example


You can now start the example in Visual Studio 2008 by pressing F5 (or menu
Debug à Start Debugging). The example is now interrupted at the set
"Breakpoints".

After exiting (Shift+F5 or menu Debug à Stop Debugging), do not shut down
SINUMERIK Operate, but rather start it again with F5 immediately after the
required code adaptations.

© Siemens AG 2017 All Rights Reserved


SINUMERIK Operate Programming Package - Edition 03/2017 2/3
03/2017 Quick introduction HMI example (CPP)

Fig. 2 - Debugging with SINUMERIK Operate in the background

© Siemens AG 2017 All Rights Reserved


SINUMERIK Operate Programming Package - Edition 03/2017 3/3

You might also like