Hello Guest it is June 28, 2026, 02:23:53 PM

Author Topic: edit macro line  (Read 101040 times)

0 Members and 1 Guest are viewing this topic.

edit macro line
« on: April 15, 2025, 02:30:09 AM »
good morning
I have a macro that I would like to correct a line, the line in question
is this:

  message "Z iniziale CP " & zzero & "  X= " & xzero & "  Y= " & yzero

the problem is that after the comma it gives me many numbers
(es: z12,123456789 x123,123456789 etc)
is it possible to modify it so as to see 3/4 numbers after the comma?
I ask if someone can help me since I do not have the skills and
competences to do it.
I thank those who can help me

Offline TPS

*
  •  2,627 2,627
Re: edit macro line
« Reply #1 on: April 15, 2025, 03:31:26 AM »
Code: [Select]
message "Z iniziale CP " & Format(zzero, "###0.000") & "  X= " & Format(xzero, "###0.000") & "  Y= " & Format(yzero, "###0.000")

anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: edit macro line
« Reply #2 on: April 15, 2025, 04:18:27 AM »
ok TPS
everything works perfectly!!!!
once again you solved my problem!!
thanks for the help offered
Re: edit macro line
« Reply #3 on: June 28, 2026, 01:25:14 AM »
I'd also check the machine configuration and make sure all the axis settings and motor tuning values are actually being saved. I've seen odd behavior before just because a profile didn't save correctly. Sometimes creating a fresh profile and testing with simple G-code can help narrow down whether it's a configuration issue or something hardware-related.

Offline ZASto

*
  •  435 435
Re: edit macro line
« Reply #4 on: June 28, 2026, 10:45:49 AM »
@LaxieHong
Your reply is irrelevant, it is all about number formatting. Nothing to do with motor tuning etc, (unless you are a kind of AI bot :) )
Make no mistake between my personality and my attitude.
My personality is who I am.
My attitude depends on who you are.