Hello Guest it is September 26, 2024, 07:33:23 PM

Author Topic: macro for homing  (Read 25807 times)

0 Members and 4 Guests are viewing this topic.

Re: macro for homing
« Reply #30 on: February 21, 2015, 02:19:58 AM »
h iTthomas
I tried to enter the values it says syntax error
you can give me an example how to insert the number? example 166 ...


Get/SetParam()

"VelocitiesX" = X MaxVel from motor tuning page


thanks regards

Offline TPS

*
  •  2,528 2,528
Re: macro for homing
« Reply #31 on: February 21, 2015, 03:00:42 AM »
Hi,

for Example

Sub main()

   SetParam("VelocitiesX",66.66) 'Value in units/sec
   msgbox GetParam("VelocitiesX")


End Sub

Thomas
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: macro for homing
« Reply #32 on: February 21, 2015, 01:57:27 PM »
hi Thomas
everything works perfectly.
I thank you very much for helping me.
congratulations, you are very smart.
Now I write all the code for the three axes.
regards
moreno
Re: macro for homing
« Reply #33 on: March 03, 2015, 03:06:58 PM »
hi
I implemented the macro cycle reset.
It works very well.
I put a relay 'which disables the signal of the limits and diverts the signal on another input so that when you open the swith, the axis back and look for the zero index.
To avoid putting the relay could compile a command to disable the limits?
then I enable them to macro
in this way would avoid using an output.
thank you
regards

moreno

https://www.youtube.com/watch?v=J_UZcuZjX68
Re: macro for homing
« Reply #34 on: September 14, 2024, 06:55:36 PM »
Is it possible to modify the homing script to use two switches?

I want to use Metrol precise microswitches for the homing, but since they're fragile and they have only 0.7mm travel they need to be approached slowly.

My idea is to use three proximity and three precise microswitches, to allow fast approaching until the proximity is activated, and then slowly approaching the mechanical fragile one.

I don't know even where the script is, but I have nerdy programmers between my friends, so I know they can manage it if it is possible.
Someone can help me? 🙏