Hello Guest it is March 28, 2024, 12:01:26 PM

Author Topic: help with simple code  (Read 1617 times)

0 Members and 1 Guest are viewing this topic.

help with simple code
« on: June 21, 2020, 01:08:41 AM »
i'm getting syntax error while tryng to compile this code. please help!
Quote
If GetVar(Param1()) <> Param2() Then
   Code("M98 P") & Param3()
End If   

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: help with simple code
« Reply #1 on: June 21, 2020, 01:50:19 AM »
Perhaps

Code: [Select]
If GetVar(Param1()) <> Param2() Then
   Code ("M98 P" & Param3())
End If
PEACE

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: help with simple code
« Reply #2 on: June 21, 2020, 03:23:05 AM »
you do not Need the Getvar

Quote
If Param1() <> Param2() Then
   Code ("M98 P" & Param3())
End If
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: help with simple code
« Reply #3 on: June 21, 2020, 09:29:54 AM »
you do not Need the Getvar

Quote
If Param1() <> Param2() Then
   Code ("M98 P" & Param3())
End If
That does it, thank you  ;D
Re: help with simple code
« Reply #4 on: November 28, 2020, 04:19:07 PM »
I would like the machine to automatically move to the x500 y500 position after pressing REF.  What should my script look like?

sorry for my English.  I hope you understand what's going on

Offline ZASto

*
  •  423 423
    • View Profile
Re: help with simple code
« Reply #5 on: November 28, 2020, 05:11:13 PM »
Do you mean, after referencing machine clicking on Ref All Home, to move to 500, 500?
Make no mistake between my personality and my attitude.
My personality is who I am.
My attitude depends on who you are.