Hello Guest it is April 19, 2024, 06:09:04 AM

Author Topic: macro for homing  (Read 19749 times)

0 Members and 1 Guest are viewing this topic.

macro for homing
« on: January 07, 2015, 05:24:12 AM »
hello everyone
I'm looking for a macro to do the 'homing as in professional machines. (with encoder)
I'll explain ...
the axis moves then when he hears the micro mechanical (input 1) reverses direction until it finds the zero mark on the encoder (imput2)
has anyone ever used this system?
thank you

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: macro for homing
« Reply #1 on: January 07, 2015, 06:34:11 AM »
hi riporeno,

as fas i know the CS-Lab controler is the only one witch
can reference on a zero mark of the encoder.

http://www.cs-lab.eu/en/artykul-47-Precise_homing_on_INDEX.html

regards 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 #2 on: January 07, 2015, 08:30:50 AM »
ok thanks Thomas
I look if I can be helpful
regards

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: macro for homing
« Reply #3 on: January 07, 2015, 11:30:41 AM »
Use the standard RefHome feature to find the switch then use a MACRO to inch the drive in the direction of the index mark Use a Do While LOOP to inch the drive untill it sees the index signal.

While Index SIGNAL <> 1
Code"G91"
Code"X.001"
Loop
End
Re: macro for homing
« Reply #4 on: January 07, 2015, 02:53:31 PM »
hello
This could be interesting.
how do I set it?
I should do the zero standard then call this macro?
I understand that he goes up to the signal received in the input 1?
when it arrives on zero writes dro?
sorry but I have never done anything like this.
if you help me thank you.

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: macro for homing
« Reply #5 on: January 07, 2015, 03:47:19 PM »
Hi,

Use the standard RefHome feature to find the switch then use a MACRO to inch the drive in the direction of the index mark Use a Do While LOOP to inch the drive untill it sees the index signal.

While Index SIGNAL <> 1
Code"G91"
Code"X.001"
Loop
End

and you think this macro is fast enough to see a zero mark of  a resolver ?

Thomas


 
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: macro for homing
« Reply #6 on: January 07, 2015, 08:57:28 PM »
Within the resolution of the Move value, yes.

(;- TP
Re: macro for homing
« Reply #7 on: January 08, 2015, 03:41:28 AM »
this would be the procedure that I would do.
move the axis on microswith.
as soon as I see the signal (input1) change the direction and when I find the encoder signal (input2) stops and makes the zero reference
I just understand the procedure for an axis ..then I arrange for others.
thank you
Re: macro for homing
« Reply #8 on: February 07, 2015, 03:09:06 AM »
hello
I have done the macro to do home with encoder.
Now I should add that I disable instruction limits axes xyz
someone can help me and tell me what the function necessary?
I will not disable the input but the function (axis limits)
thank you

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: macro for homing
« Reply #9 on: February 07, 2015, 03:15:35 AM »
hello,

have a look for oembutton(150).

Thomas
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.