Hello Guest it is April 20, 2024, 02:24:31 AM

Author Topic: macro for homing  (Read 19755 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 ...


Get/SetParam()

"VelocitiesX" = X MaxVel from motor tuning page


thanks regards

Offline TPS

*
  •  2,505 2,505
    • View Profile
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