Help neaded - homming

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

Help neaded - homming

Postby Marty » Fri Nov 02, 2018 11:29 am

Hello,
I am new user of UCCNC and therefore I nead some litle help :)
My controler electronics requires folowing to work ok:
-while homming, before start of homming procedure I nead to set one output pin high. This output is high whole time during homming of axes. After homming is finished, output goes again low (sopsouse it can be easely made with macro - please an example of it)

-for security reason, I nead to implement pull of (backing of) from limit switches after hitting the limit switch while homming (lets say 2mm back from actual homme position and from this new point is working / absolute 0 for CNC system).

Do anyone have example codes how to do this?
Thank you.
BR
Marty
 
Posts: 1
Joined: Fri Nov 02, 2018 11:20 am

Re: Help neaded - homming

Postby dezsoe » Fri Nov 02, 2018 4:02 pm

LED 23 indicates homing (on when machine is homing), you just need to connect it to an output. Go to Configuration - I/O trigger - Output trigger, set LED to 23, set the output port and pin, click Apply and/or Save. Ready.

Homing backoff is implemented in the test version 1.2101. The latest stable release is 1.2049, it needs a macro to do this job: you can find it here.
dezsoe
 
Posts: 573
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Help neaded - homming

Postby Robertspark » Fri Nov 02, 2018 4:04 pm

May I ask how are you homing?

Are you just clicking the onscreen button?
___________________________________-

I would suggest creating a macro,

Within which the macro sets your pin high
triggers buttoncode 113 (home all)
monitors LED23 (Homing active)
Once LED23 drops out
Resets your pin low
____________________

What is the port / pin that you want to toggle high and low?

__________________
With regards to Backoff, this is set on the Configuration >> Axis Setup >> X,Y,Z,A,B,C axis (about mid page)
Attachments
2018-11-02 16_03_14-UCCNC software _ Running in demo mode....png
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 1008
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: Help neaded - homming

Postby Robertspark » Fri Nov 02, 2018 4:05 pm

..... or do what Dezsoe said .... ^^^^
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 1008
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England


Return to Macros

Who is online

Users browsing this forum: Bing [Bot] and 7 guests