![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Coding Post your Coding for opensource projects here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| Hi everybody, I'm planning to write a program that imports 2D DXF & drives two stepper motors for a kind of simple printer... the printer will have a cylinder that feeds the paper(1st axis) & i need the cylinder to turn in only one direction to feed the paper while the print head (2nd axis) goes from left to right (or right to left, i don't think it matters). Driving the print head will be as easy as to drive a relay. So, cylinder position + print head position + close the relay, would be the basic program routine. My problems : 1) I don't know the DXF format so, i have no idea on how to interpret or convert it. 2) I don't know how to implement printing speed, does it need some multi threading programming skills ? 3) I have an idea on how to drive a stepper from LPT port (with ULN2003 & INPOUT32.DLL under WIN XP) , but don't know anything about step/dir, Is it the same concept ? My questions: 1) Is the DXF format (vector) the right choice for this kind of machine ? (because some told me bitmap would be more apropriate for a cylinder going in only one direction) 2) What programming language should be the more apropriate for such a program ? (i'm a biginner in the C language but have an idea about OOP & JAVA) 3) Do you think i'm all wrong about the way this program should work & Why ? 4) Is it in my reach & how long should it take to dev it ? 5) Did i forget something ? I'm waiting for your help... Thanks ! cnc2. |
|
#2
| ||||
| ||||
| Just to make things more complicated Have you considered using HPGL format ? import DXF ===> export HPGL This is usually a format for plotters ie using vectors, pen up, pen down, pen colour, etc your 1st axis is bi-directional as well as your 2nd axis http://www.sxlist.com/techref/langua...l/commands.htm |
|
#3
| |||
| |||
Man i need the 1st axis (the cylinder) to be uni-directional & the second axis to be bi-directional, it's a must for me because i don't need the paper going in&out the printer. Just imagine the printer's area is only the cylinder (cylinder_width*cylinder_length) so the paper gets printed as it passes the cylinder. If HPGL makes it possible it will be worth the effort of DXF=>HPGL & i'll still have to convert HPGL to step/dir because i'm planning to use common steppermotor step/dir driver boards. Thanks ! cnc2. |
|
#5
| |||
| |||
| As english isn't my mother tongue i didn't know the true name of the machine i want to make... & thanks a lot you gave it to me... yea it's a drum plotter that i want to build & control with my own program. Looking for "Drum type plotter" on Google i found this picture that looks pretty much like what i want to do ![]() About the driver you're talking about, what will it drive ? will i still have to convert HPGL to step/dir ? Thanks ! cnc2. |
| Sponsored Links |
|
#6
| ||||
| ||||
| Try "Roland" plotters as a suggestion I am sure they use a "HPGL" format These may well only roll the drum in 1 direction you would have to configure the driver to your application to use it :- you would only have to "print/plot" what you have on screen straight to the plotter, same as you would print a drawing ( you would also be able to control the scale of the drawing ) This is about the limit of my knowledge |
|
#7
| |||
| |||
the basic principle.I also found this When you say try Roland plotters, do you want me to use Roland driver ? What does the driver do & don't do ? is it a ready made program to configure or it is a code library to use in my program ? (newbie here) At first i wasn't planning to print the drawing to the screen, i just wanted my program to browse for the file to print & print it or plott it. Thakns ! cnc2. |
|
#8
| ||||
| ||||
| The problem of going from DXF or HPGL to step and direction signals at the parallel port is not a trivial task. Took me a few months to get the HPGL conversion working, it is easier because it works with integers for amounts of movement. But that was in the DOS era. After fifteen years I think I pretty much got it the way I originally wanted. The timing part of creating the step signals is very difficult and with an Windows host computer it's almost always subject to being messed with by the operating system. You should look into the EMC program. It's open source and has a motion engine you could adapt to. It works with Linux. Dennis www.super-tech.com |
|
#9
| ||||
| ||||
| Sorry, from here I am not much help The "roland" was only a suggestion as a step forward as an example not knowing what your application is to be used for, drawing size, etc. I have used "roland" plotters on flat beds and drum in a previous job for accurate plots for customer samples and cutting "ruby" sheets for photographic purposes I thought it may be of use to you. My application required the bed and drum to be bi-directional for speed and accuracy of the plot ( ie accuracy to 1/2 the line thickness to overlay onto photo negatives and die-lines to suit the customer requirements ) |
|
#10
| ||||
| ||||
You mean it took you fifteen years to achive it ? (wow man, i don't have that time) I'm thinking about using the inpout32.dll for "talking" to the parallel port under Win Xp & i'm not planning to go over 2000Hz on a 200step motor so i think & hope it'll be ok, what do you think ? I'm stuck with windows because a lot of people are using it including my "school" & have no linux programming skills (not yet). My first concept was to represent the paper as an array or matrix of dots (dot/nodot) and to get the head to print dots on each line. The cylinder feeds(changes) the lines to be printed by the pen, but no turning back, what HPGL doesn't permit(from what i understood a few minuts ago). Anyone has an idea on how to do it & about the aproriate file format to use ? Thanks !
My machine doesn't need much accuracy, +-1mm would be enough. the paper size is approx 600mm wide by n millimeters long that's why i need the cylinder to turn in only one direction imagine the time it would take to draw a 500mm square with a 400mm dia circle inside the square or a 1000mm*550mm rectangle instead of the square ...etc HPGL provides "high" accuracy & i need "speed". Thanks ! cnc2. |
| Sponsored Links |
|
#11
| ||||
| ||||
do not be surprised about the speed of bi-directional drum plotter to draw a 1000mm * 500mm rectangle = perimeter is 3000mm speeds range from 25mm-500mm per second so to draw a 1000 * 500 rectangle = 6.0 seconds reference is http://easyaid.en.ecplaza.net/1.asp MODEL:HX720 720mm 630X unlimited length note! you can use a pen instead of a vinyl cutter Time to plot uni-directional will be unbeleivable ( 2 dots per across pass @ 500mm apart - to give a dot pitch of 0.25mm then 1000mm= 250 passes * 500mm travel @ 500mm per second = 250 seconds = 4.17 minutes Time will increase if you want dots closer together if you want a "line or arc" |
![]() |
| 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 |
| Need Help!- Import/Convert DXF or PLT files to Mach3.... | Mikael | Mach Mill | 3 | 12-25-2008 04:33 AM |
| Full step and half step hybrid driver? | rkremser | Stepper Motors and Drives | 4 | 11-20-2008 11:22 AM |
| Need Help!- How to edit MPFAN post file step by step | m_bhui | Post Processors for MC | 2 | 10-04-2008 06:42 AM |
| Convert +- Analog to Step & Direction ??? | Argofanatic | Servo Motors and Drives | 1 | 01-20-2007 04:47 PM |
| Convert Step/direction to phase drive | jderou | Stepper Motors and Drives | 18 | 08-05-2005 09:52 AM |