![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| PIC Programing / Design Discuss programing of PIC chips here and design of electronics using PIC chips. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#2
| ||||
| ||||
| Well it depends on many factors such as how many axis to move, how far... etc. If it is for single axis or rapid movement, then around 25khz. If you want multi axis movement, you will probably end up at around 15-20khz. It also depends on how you program the thing. I'm doing it with assembly all the way. PS. forgot to mention that this estimate is for a PIC18. PIC16 would use much longer time as it doesn't have a multiplication instruction. Last edited by The Blight; 12-01-2010 at 04:34 PM. |
|
#3
| |||
| |||
| You can do a steprate at 39062 Hz on a PIC 18 with the interrupt every 256 instructions. If you are good enough to do 3axis acceleration math *and* control everything with an int of 256 instructions... Well that's a different matter. |
|
#5
| |||
| |||
| Is that with all the linear acceleration ramps running? I did it with full 3 axis and receiving serial comms on a 18F2221 but it was tight as heck, I had to use some inline assembler and some clever old-school tricks too. It's not for the faint hearted. |
| Sponsored Links |
|
#7
| ||||
| ||||
| With acceleration on all axis at the same time. And feedrate adjustments (10-100%). Because I'm writing everything in assembly, I can tailer the routines for a specific task. I'm using a SD card for programs with FAT16 support. I have been working on this project for several years now. About 2 times a year I get really inspired and work 8+ hours per day on it for a couple weeks. After that I'm pretty exhausted (it keeps me awake at night), and I end up getting so tired of it that I have to find something else to do for the next 6 months or so. One day it will get done! Roman, did you post your project here on the zone? I believe I have seen 2 or 3 projects of that kind. |
|
#8
| |||
| |||
| Hi Khalid! I've seen your web pages, you have lots of specialist skills too! ![]() The_Blight- Doing SD and FAT16 in assembler is pretty hardcore. And I hear you re the getting burnt out thing, I'm sure we've all done that on some jobs when after a few days you just can't stand to look at it! These days I mainly do embedded in C with some inline assembler of the speed critical parts.Here's the link to my machine build, there's not a huge amount of info on the electronics but you may find it interesting; http://www.cnczone.com/forums/cnc_wo...ll_router.html I threw the PIC18 3 axis controller together in a couple of afternoons work, but then I didn't have to do SD and FAT16 with it, just some serial comms and safety routines. ![]() I'm curious what your 2-axis controller is for? If it's for a PNP machine I have recently started a build for one myself; http://www.cnczone.com/forums/rc_rob...p_machine.html |
|
#9
| ||||
| ||||
| Saved your link for later reading Never seen your build before, so I will enjoy it.About SD and FAT16, it takes quite a bit of reading to get it to work properly, but it was quite fun too. The sad thing is that I don't make many comments the first time through. So the second time I opened the thing, I had no idea what I had done. After that I made a lot of comments and files explaining whats going on. That takes as much time as the programming itself, and so this is moving along quite slowly. I'm not a programmer at all, and so everything that I know, I have thought myself. I'm pretty sure that if someone doing this for a living saw my code, they would be scratching their head and wondering what the hell I have been thinking. Hehe. Now I'm done with all the math routines I will be using except 64-bit square root (did 24-bit but found out that it was not good enough, and had to be expanded for 64-bit and I just got tired of the thing). It is actually a 4 axis cnc controller, with 2 spindle controllers. Its for my lathe and mill. Nice pick'n'place project! I'm going to be following that one with great interest! I have an engraving machine for PCBs which I had an idea of using as a PNP machine, but never really got anywhere with it. Do you still use your controller? |
|
#12
| |||
| |||
| I use an Actel FPGA for the actual step pulse generation. A PIC24F generates 16-bit velocity commands and an SPI interface feeds them to the FPGA. The FPGA generates interrupt timing back to the PIC to have it update the FPGA with new velocity words every millisecond. This allows for a comfortable 16,000 instructions between ISR updates. The velocities (32K CW and 32K CCW) are evenly spaced because the FPGA produces a frequency directly proportional to the velocity command word. Mariss |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Corner Step Acceleration | flash319 | LinuxCNC (formerly EMC2) | 3 | 05-07-2010 06:16 PM |
| Need Help!- Loosing step more and more on X axis only after reducing the accl/velocity step motor | Calico | DIY-CNC Router Table Machines | 3 | 04-09-2010 07:23 PM |
| Need Help!- Step/Direction pins should be Step FWD and Step BACK | rayscott | Mach Software (ArtSoft software) | 6 | 02-09-2010 05:57 PM |
| Just IN- MRS Sigma: the Next Generation Miniature Linear Guide | Pacific Bearing | Product Announcements & Manufacturer News | 0 | 01-20-2009 10:21 AM |
| Step by step cnc plasma with parts list and links. | massajamesb | CNC Plasma and Waterjet Machines | 8 | 07-08-2007 10:22 PM |