Hello Guest it is April 19, 2024, 03:34:37 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Peta

Pages: 1
1
General Mach Discussion / Re: How to create a plugin for Mach3
« on: July 18, 2016, 04:07:38 PM »
Hello J-Steel, in the plugin sdk I used a timer to verify the axis index (in motor steps, NOT in inch or millimiters) every 50 milliseconds, if any axis changes the plugin sends the difference to the arduino board. You can read the axis index by reading the value in Engine->Axis[ x ].index (you should replace x with the axle you want to read, starting from 0 to 5. For example, 0 for X axis, 1 for Y axis and so on).

2
Mach SDK plugin questions and answers. / Re: Write a plugin for USB
« on: November 12, 2015, 11:33:56 AM »
Thank you Tweakie.CNC

I forgot to mention an important thing:

The controller is just for servo motors (DC motor with encoder) but I do think it's not too hard to adapt it for stepper motors.

3
General Mach Discussion / Re: How to create a plugin for Mach3
« on: November 12, 2015, 11:26:20 AM »
Hi again,

I know it is a really long time since I started this topic and I'm back to show the resolts of my efforts on making the plugin.

After some months working on it on my free time I moved from PIC to arduino as it is less time consuming and some days ago I finally got my CNC working with the system I created. You can see the first test here: https://www.youtube.com/watch?v=O385I6P_o8o

As you can see the motors do not move perfectly because I used DC motors with low resolution encoders (16 steps per revolution) and the control is based on a PID algorithm so it will always have some error between desired position and current position (about 5 steps) but it has an advantage: it will never lose steps permanently as the PID algorithm is constantly correcting the error.

I am working on some improvements now. Shortly I will post another video milling something and if there is sufficient interest I will release the pluging.

Please note that the controller is not for stepper motor, it is just for servo motors but I do think it's not too hard to adapt it for steppers.

4
Mach SDK plugin questions and answers. / Re: Write a plugin for USB
« on: November 12, 2015, 08:10:50 AM »
Hi
I am also looking for plugin for usb.
Has any one made it?
Please guide me with this.

About a year ago I was also interested in finding a USB plugin for Mach3 and had no success in my search so I decided to make one myself using VS2013 and PIC microcontroller. After some months working on it on my free time I moved from PIC to arduino as it is less time consuming and some days ago I finally got my CNC working with the system I created. You can see the first test here: https://www.youtube.com/watch?v=O385I6P_o8o

As you can see the motors do not move perfectly because I used DC motors with low resolution encoders (16 steps per revolution) and the control is based on a PID algorithm so it will always have some error between desired position and current position (about 5 steps) but it has an advantage: it will never lose steps permanently as the PID algorithm is constantly correcting the error.

As I said here http://www.machsupport.com/forum/index.php/topic,27232.0.html I have the intention to share the plugin and the firmware as it would be helpful for some hobbyst who is not ready to buy a commercial motion controller.

I am working on some improvements now. Shortly I will post another video milling something and if there is sufficient interest I will release the pluging.

5
Hi,

The tutorial was really helpful for me but now I want to make a plugin to control my controller board via the serial port.
My main question is: how do I get a function to get called every time the Mach3 sends a pulse to some axis? This function should be able to know which axis is changing, so it can send a certain character via rs232 to the controller board which will control the proper motor.

I described the plugin here: http://www.machsupport.com/forum/index.php?topic=27232.new;topicseen#new

I've read the posts in this thread but I'm not sure how to do this. should I use myNotify() or what?

Any help will be appreciated!!

6
General Mach Discussion / Re: How to create a plugin for Mach3
« on: May 18, 2014, 11:00:36 PM »
Thanks for your help CNC-AL, I'll take a look at this, but for now I prefer something for my own controller board!
ger21, thank you very much, soon I'll start learning it and if I get any result I'll post it here, so others who want a cheaper system will benefit with it.

7
General Mach Discussion / How to create a plugin for Mach3
« on: May 12, 2014, 07:37:43 PM »
About two years ago I built a CNC and a PIC based controller board. The controller is connected to an old computer through a parallel port, but now I realy would like to use my leptop to control it through the serial port (USB to Serial adapter). I've searched it on google but did not found what I want. I know that it's possible to create a plugin and instal it on Mach3.

My question is: is it possible to create a plugin that makes Mach3 send a certain character to the serial port each time it sends a pulse to the parallel port? for example: each time it sends a pulse to the parallel port to rotate clockwise the motor X, it sends also a character (for example "a") to the serial port, so the controller board connected to the serial port can get that character and rotate the motor. This way I can control my CNC from my leptop which has no parallel port.

If it's posible, what should I learn and what softwares should I use to make it? I have C programming knowledge and use Code::Blocks.
Any tutorial or guide would be appreciated.

I'm not sure if my English is understandable, but sorry for any mistake!

Thanks in advance!!!

Pages: 1