Probing material hight for WaterJet

Post anything you want to discuss with others about the software.

Probing material hight for WaterJet

Postby Daniel » Wed Mar 27, 2024 6:23 pm

I need help creating a macro to probe the material on a water jet cutting machine.
The software is UCCNC and the controller is UC300ETH-5LPT.
The problem is that the Z axis has a direct current motor and the material thickness measurement is done analogically through a linear potentiometer.
I think the speed of the motor and the direction are controlled with -10V 0V +10V, and a contact activates the motor.
The linear potentiometer is powered by 10V and has values between 0V and 9.3V.
I understand that the Z Axis must stop when it reaches a certain value of the potentiometer (Ex: 1.5V), and even follow that value if continuous probing is necessary, but how can this be achieved through a macro, I have never worked with analog signals in macros before.
Can someone show me a macro model that would be close to what I need.

Thanks in advance
Attachments
IMG_20240228_1520062.jpg
IMG_20240228_1457462.jpg
IMG_20240228_1457392.jpg
Daniel
 
Posts: 9
Joined: Thu Sep 24, 2020 6:50 am

Re: Probing material hight for WaterJet

Postby cncdrive » Wed Mar 27, 2024 8:02 pm

You could attach the analog input value to a #var variable, e.g. #100 and then you could call the macro with parameter, like M300 P#100, then in the macro you can use the Pvar variable, it holds the #10 variable value now.
cncdrive
Site Admin
 
Posts: 4901
Joined: Tue Aug 12, 2014 11:17 pm

Re: Probing material hight for WaterJet

Postby Daniel » Thu Mar 28, 2024 5:34 am

Hi
I understand the part with the variable and the macro ;) , my problem is how to control the motor from the macro, it being controlled -10V 0V +10V. I don't think the analog port of UC300ETH-5LPT can output -10V.
And how could I make the ratio between the analog input and the analog output to the motor.
Can you help me with an example?
I'm not very good with programming :oops:
Thanks!
Daniel
 
Posts: 9
Joined: Thu Sep 24, 2020 6:50 am


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 6 guests