Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4th axis support #63

Closed
robomechs opened this issue Jul 16, 2018 · 25 comments
Closed

4th axis support #63

robomechs opened this issue Jul 16, 2018 · 25 comments

Comments

@robomechs
Copy link

I've added 4th axis for STM32F103 (usbcnc), and tested it for a long time.
Now it's work.
usbcnc/grbl#51
Сan I expect to support the additional axis in the future in your software?
(without visualization of course)

@martin2250
Copy link
Owner

Hi, this is amazing work!
As far as I see it, OpenCNCPilot doesn't need to modify any code that contains the 4th axis, so you can use it right now, only the preview won't work.
I can add an option to ignore A/B/C axis commands for the preview, that means that the file will only get sent exactly as it is.

@robomechs
Copy link
Author

robomechs commented Jul 17, 2018

Ok, the program is really running.
But in 4 axis mode there is no visualization for three axes.
Error always runs.
2018-07-17_19-09-06
2018-07-17_19-09-50
2018-07-17_19-18-40

@robomechs
Copy link
Author

Running messages with status "Received Bad Status" make the work unbearable.
Can't close issue.

@martin2250
Copy link
Owner

I can add this as an option when I have some spare time, for now you could modify the source code and quickly compile a custom version.
The relevant lines are here and here, you'd only need to cut the string m.Groups[2].Value before the third comma.
You can compile the project wihtout VisualStudio, there is a good answer on stackoverflow on how to do it.

@martin2250
Copy link
Owner

martin2250 commented Jul 30, 2018

I created the fix in a separate branch: https://github.com/martin2250/OpenCNCPilot/tree/fourthaxis
Please try it out as I don't have a machine to test this on:
OpenCNCPilot-4th-axis.zip

@klembaris
Copy link

klembaris commented Jul 30, 2018

Hello,
works!

errrok
Thanks.
PS. Do not forget to check box in settings!

@martin2250
Copy link
Owner

Hi,

great! I'll test if it interferes with normal 3-axis operation, then I'll merge it with the master branch and it will be included in the normal version of OCP.

@klembaris
Copy link

Hi,
very nice!.

@robomechs
Copy link
Author

GREAT!
Thanks.
2018-07-31_12-55-56

@robomechs
Copy link
Author

2018-07-31_12-57-46

@robomechs
Copy link
Author

@klembaris right! Do not forget to check box in settings!

@martin2250
Copy link
Owner

right, I forgot the probe parser. I'll fix this before I merge with the master branch. Thanks!

@robomechs
Copy link
Author

ok. it's work fine with 5 axis too)))

@martin2250
Copy link
Owner

Did you post any videos of your machine online? I'd love to see your 5-axis setup :)

@robomechs
Copy link
Author

robomechs commented Jul 31, 2018

@martin2250 unfortunately I have only 6 axis test bench and 4 axis machine.

@martin2250
Copy link
Owner

please don't close this issue, this feature isn't fully implemented yet

@martin2250 martin2250 reopened this Jul 31, 2018
@klembaris
Copy link

Hi Martin2250,

It is very complicated to make visualization like, left side x1y1(XYaxis) and right side x2y2(AZaxis)? Thanks.

@martin2250
Copy link
Owner

Hi,
yeah, that would require a lot of changes to the communication and UI subsystems. Anyways, that's outside the scope of this program anyways. I mainly wrote OpenCNCPilot for making circuit boards and 'normal' machining.
You could, however, also change only some of the code so it has one single view and XY and AZ are drawn in two fixed planes (aka XY at 'regular Z'=0 and AZ at 'regular Z'=200) and connect the points with lines. That way you could even have a 3D preview of what you're cutting. Feel free to fork OpenCNCPilot, this should be relatively easy to implement.

@klembaris
Copy link

Thanks for info :)

@S2000Stefan
Copy link

Hi Martin,
can you please fix the issue for the "Received Bad Probe"
I use a blue pill (stm32) with GRBL four axis control. Thanks yaroslavVI for your work.
If I want to create a hight map for PCB comes the error Received Bad Probe and the machine stands after one probe.
And by the way, in the window New HeightMap and manual input you have to enter a point twice. The first time it is not accepted. Example X: 100.5 - 50.5 = X: 1005 - 50.5
Editing works.

Great Icon :)

Stefan

@martin2250
Copy link
Owner

Hi Stefan,

wait, this isn't fixed? Can you use UGS and copy/paste a few lines of probe responses here? I added some logic to ignore additional axes in probe responses a while back, so I'm a bit surprised.
Can you open a short issue for the "New HeightMap" window? I don't know when I can work on OCP again, so I probably won't remember this by myself.
The icon isn't my work, all the praise goes to @A-J-Bauer :)

Cheers!
Martin

@S2000Stefan
Copy link

Hi Martin,
here are some screenshots:
ocp programmstart
Startup of OCP
probe fail ocp
Probe Fail making height map
ugs start
UGS Startup
ugs probe
UGS Probe
In ugs, no error message comes, only by startup
Hope this helps?
The short issue for New HeigtMap comes soon

Greetings
Stefan

@martin2250 martin2250 mentioned this issue Mar 14, 2019
@martin2250
Copy link
Owner

sorry, did not mean to close this. I'll upload a new release now, please test if the error still occurs.
(also please excuse that this took so long, I never remembered to check this issue again)

@martin2250 martin2250 reopened this Mar 26, 2019
@S2000Stefan
Copy link

Hi Martin,
sorry for the late Response. The issue for the "Received Bad Probe" are fixed.
The issue can be Closed.
Now I can start building my Rotary Axis. :)

@martin2250
Copy link
Owner

Hi Stefan,
I hope this wasn't the only reason holding you back so far, I'm looking forward to seeing some pics 😉

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants