On 03/03/18 16:17, Aurelien wrote:
Many thanks for reply

yes this is your code but modified by Mike Ross for 6 tool turret

For the Axis i have set as you says LINEAR and with trial and error have found the good SCALE for turn 360° exactly


i don't understand "You simply home axis A" because with this this component this is impossible without following error from classic setting,

You just set the homing values to 0, then A will show as homed with no movement.
(read www.machinekit.io/docs/config/ini_homing/)

If you have connected up properly, when homed the relevant pin will be true and allow the M6TN command without movement to initialise.

also impossible to move the motor by GUI. (hijack stepgen) (i think you know that lol)

It is not impossible, just load a config without the toolchanger component and A connected as normal to work out moves required


There is so much commented out in your component, including the tool number setting on homing provision, I am not going to get into trouble shooting something that seriously diverges from the component I wrote.

I would get the original component working by reducing the tool numbers to 6 and changing the angles / steps between stations accordingly.

Even if you managed to get the ATC seeking the home switch, you have to update machinekit with the current tool number.

The method my component uses is simple, because it sets the number via M6, whilst not attempting to process the command.

It could be adapted to rotate the ATC until the home switch is triggered when A is homed, then trigger a halui MDI command to set the tool number.

What you need to be wary of is un-commanded movement and whether it will always be safe or if it is possible to foul a workpiece or injure the operator when the ATC suddenly starts rotating during a homing procedure.


--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to