Login  Register

Re: LibreCAD modified for the interface of a laser machine

Posted by anders.e.e.wallin on Jan 03, 2012; 8:16am
URL: https://forum.librecad.org/LibreCAD-modified-for-the-interface-of-a-laser-machine-tp5113327p5116376.html

> 6. When you click a button "Start" LibreCAD placed in a position of  memory
> all modified primitives with its information. It is ilustrade with the
> following example:
> If we have a line from 0, 0 to 10, 1 and a circle of center in 15, 1 and 10
> radius we want to cut respectively 20W and 50W, memory information will be
> placed in the following
> line 0 0 10 1 20
> circle 15 1 10 50
> 7. Below LibreCAD open another application developed in C language This
> application has the characteristic of being developed as a real-time
> application which took control from now on.
> 8. This will read the data from the machine specifications and data for each
> of the primitives located in memory, will make the process of generation of
> trajectories (interpolation) of the current primitive and will result in the
> number of steps to be taken each step-motor the next millisecond.
> 9. The numbers of steps of each step-motor and the power of the laser is
> sent via USB to a card of control that read the data received and
> transformed into pulses to send drivers for stepper motors each axle and
> Power Controller laser.
> 10. 8 and 9 will be repeated until it is finished cutting all the
> primitives.
> This is what the system should do. As you said LibreCAD actually be only one
> user interface. Hard work will the application developed in C.

I would strongly suggest you start with the conventional way. Use
LibreCAD or another CAD package to draw your geometry. Use existing
CAM-functionality in LibreCAD (or write your own) to generate G-code.
Then use emc2 to drive your machine.
If and when this toolchain works for what you want to do, you can
start to bind programs tighter to each other (if you perceive this to
be a problem currently?). On a lower-level than G-code emc2 can be
controlled by NML-commands (this is what the various GUIs for emc2
do). You could write an emc2-GUI which is a LibreCAD plugin.

Anders