Hello Guest it is June 14, 2025, 05:51:44 PM

Author Topic: LABEL WITH TOOL DESCRIPTION  (Read 15479 times)

0 Members and 1 Guest are viewing this topic.

LABEL WITH TOOL DESCRIPTION
« on: February 28, 2025, 04:26:25 AM »
Hi everyone, is it possible to create a label on the computer screen and populate it with the description of the tool in use?

Offline TPS

*
  •  2,592 2,592
Re: LABEL WITH TOOL DESCRIPTION
« Reply #1 on: February 28, 2025, 05:50:37 AM »
not directly you can make a workarround via macropump macro

code for Userlabel 123 would be:
Code: [Select]
SetUserLabel(123, GetToolDesc(GetDRO(24)))


!not tested
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: LABEL WITH TOOL DESCRIPTION
« Reply #2 on: March 04, 2025, 12:40:25 PM »
thanks for the reply.
How do I apply this variable to the label in mach screen? I see that it is not possible to put functions in labels

Offline TPS

*
  •  2,592 2,592
Re: LABEL WITH TOOL DESCRIPTION
« Reply #3 on: March 04, 2025, 12:54:44 PM »
you have to make a userlabel in your screen, for example Userlabel123

and the code needs to be in macropump.m1s macro. make sure macropump is enabled in general config.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: LABEL WITH TOOL DESCRIPTION
« Reply #4 on: March 04, 2025, 03:09:08 PM »
this way?
because i tried but it doesn't work...

Offline TPS

*
  •  2,592 2,592
Re: LABEL WITH TOOL DESCRIPTION
« Reply #5 on: March 05, 2025, 01:14:56 AM »
yes this way.

for a quick test open Menu:

Operator -> VB Script Editor

then copy and paste this code into Editor

Code: [Select]
SetUserLabel(123, GetToolDesc(GetDRO(24)))
and use the green start button to run it
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: LABEL WITH TOOL DESCRIPTION
« Reply #6 on: March 05, 2025, 07:50:18 AM »
I tried to do as you say but the label doesn't change it stays like this
Am I doing something wrong?

Offline TPS

*
  •  2,592 2,592
Re: LABEL WITH TOOL DESCRIPTION
« Reply #7 on: March 05, 2025, 12:05:43 PM »
not sure, but i think it needs to be UserLabel123 insteed of Userlabel123

made a quick test here and it works
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: LABEL WITH TOOL DESCRIPTION
« Reply #8 on: March 05, 2025, 12:58:39 PM »
but are you using machscreen?
I tried to insert the text but it doesn't work for me, it takes the instruction as text

Offline TPS

*
  •  2,592 2,592
Re: LABEL WITH TOOL DESCRIPTION
« Reply #9 on: March 05, 2025, 01:04:11 PM »
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.