axis movement until sensor is reached

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

axis movement until sensor is reached

Postby PowerCube » Mon May 27, 2024 12:32 pm

Hi everyone,

Does somebody have an elegant solution for the following:

I need a modified G31 that:

- if the state of the LED is true: moves the axis in the negative direction until the state of an LED changes from true to false
or
- if the state of the LED is false: moves the axis in the positive direction until the state of an LED changes from false to true.
PowerCube
 
Posts: 7
Joined: Wed Aug 23, 2023 7:21 am

Re: axis movement until sensor is reached

Postby Battwell » Thu Jun 20, 2024 10:17 am

the homing function would be the same as this?
explain what axis and its reason?
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk


Return to Macros

Who is online

Users browsing this forum: No registered users and 3 guests