Hello Guest it is July 01, 2022, 02:59:40 AM

Author Topic: macro for homing  (Read 16591 times)

0 Members and 1 Guest 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 ...


"VelocitiesX" = X MaxVel from motor tuning page

thanks regards

Offline TPS

  •  2,303 2,303
    • View Profile
Re: macro for homing
« Reply #31 on: February 21, 2015, 03:00:42 AM »

for Example

Sub main()

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

End Sub

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.
Re: macro for homing
« Reply #33 on: March 03, 2015, 03:06:58 PM »
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