584.833 aktive Mitglieder*
5.497 Besucher online*
Kostenfrei registrieren
Anmelden Registrieren
HEIDENHAIN Forum

Creating custom soft keys - python

Beitrag 19.08.2020, 18:32 Uhr
pa3c
pa3c
Neuer Benutzer
*
Gruppe: Mitglied
Mitglied seit: 15.01.2013
Beiträge: 2

Hello

Sorry about the language, but I've decided to post here as it looks like people on this forum know Heidenhain very well.

I'm trying to create an extra menu in the machine to gather data about machine utilisation.
Operators would press those buttons to explain why the machine is not running.

As you can see in the picture I've managed to create those buttons but I'm struggling to link them to the python script.

I've got the script in folder PLC:\Python\test.py

In file SK_PROJ.SPJ I've added the command below:
ACTION PN_SetupProg PyName:test.py PYSCRIPT:PLC:\Python\test.py

At the moment I just try to run the script

print ("test")

just to test if the script is being executed but nothing is happening.

Any ideas on what am I doing wrong?

Thanks
Pat

Der Beitrag wurde von pa3c bearbeitet: 19.08.2020, 18:32 Uhr
Angehängte Datei(en)
Angehängte Datei  Buttons.jpg ( 107.43KB ) Anzahl der Downloads: 38
 
TOP    
Beitrag 20.08.2020, 15:18 Uhr
pa3c
pa3c
Neuer Benutzer
*
Gruppe: Mitglied
Mitglied seit: 15.01.2013
Beiträge: 2

I've just realised that there is an option 46 on the control (Python OEM Process) which I don't have active. That's probably why I was struggling to get it to work.
TOP    
Beitrag 27.08.2020, 18:51 Uhr
TobFleischi
TobFleischi
Level 1 = Community-Lehrling
*
Gruppe: Mitglied
Mitglied seit: 15.10.2019
Beiträge: 2

I'm sorry for the late respond, but if u want to test it out on ur computer, u need to download the "iTNC 530 Programming Station 340494 005 0 06" Version of the Programming station. (the link to the downloading website: https://www.heidenhain.de/de_EN/software/). In this version the python option is already unlocked and u can test it freely.

I hope you don't mind my bad english and that this respond will help you.
best regards
Tobfleischi
TOP    



1 Besucher lesen dieses Thema (Gäste: 1)
0 Mitglieder: