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: 2049
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
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Help neaded - homming

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

..... or do what Dezsoe said .... ^^^^
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm


Return to Macros

Who is online

Users browsing this forum: No registered users and 4 guests