Step 18: Preparing Software

posted in: Construction CNC DIY | 9

It’s all ready to begin generating dust, Just need software, and learn it, of course.

I usually work with CATIA V5R20, student license as I’m still doing some jobs at the university. There are some steps, i’m not going to describe all, because it would be too much extensive, and maybe lacking of interest. Anyway, if anyone is interested in this procedure, please put in contact with me.

First, Catia needs a CAD model of the machine structure, in order to set up the machine simulation. This will be usefull to simulate the machining movements, and check if there is any intersection that we have not taken into account

Second, we must to model the desired part, or the movement we want to do with the CNC. This part is opened with the machining modulus of CATIA, and then proceeds to program the different operations. The program is a bit complicated, if you have not done a course before, it’s dificult to learn it by oneself. However, once known the main steps, it’s easy to program the movements, tool changing, etc…

The CATIA’s simulation, with all the machining, stock, machined material, and finished surfaces, is very good

CATIA generates the G-Code, that is the text file, which must be opened by the control CNC program. Here I had a little problem

G-Code sample:

N1 G49 G64 G17 G80 G0 G90 G40 G99
N2 G21
( TOOL: T1 END MILL D 10 )
N3 T0002 M6
( OPERATION: ROUGHING.1 )
N4 X84.818 Y60.1 S70 M3
N5 G43 Z35. H2
N6 Z32.5
N7 G1 G94 Z22.5 F1000.
N8 Y52.
N9 X165. F500.
N10 Y2.
N11 X0
N12 Y52.
N13 X84.818
N14 Y50.
N15 Y48.
N16 X160.

The company that sold me the electronics, gave me a copy of MACH3, to control the CNC. This is a kind of control program, which controls the motor movements, through the G-code generated. The main problem was discover that I had a demo version, and I only could execute the first 500 code lines (what is of course pretty insufficient)

04e5b-vor-mach3

Browsing Internet, I discovered the EMC2, or LinuxCNC. Its a control program similar to MACH3, but as it’s Linux, is open source, that means, totally free and without limitations. After install Ubuntu in mi PC, I installed LinuxCNC. I must to say that it was my first time in Linux, but I get it to work. Set up LinuxCNC in order to move the motors was also complicated, but finally I could resolve it. As I said before, the configuration details are very specific, if someone is interested, just put incontact with me

2be78-axis_2-3

Continue with Step 19: CNC Finished?

9 Responses

  1. ñacañaca

    Hola Oscar tu proyecto me parese buenisimo te felicito. Soy ingeniero en mecatronica y la verdad me intereso mucho hacer mi cnc, todavia no tengo nada fisico pero el problema que me surge al analizar todo el proyecto es el como Configurar LinuxCNC para el control de los motores, te agradeceria mucho si me brindaras informacion o hicieras un blog respecto a este tema. mi correo es jairo8y4@hotmail.com

  2. Oscar Terrer

    Hola ñacañaca, te contesto al correo, pero te adelanto que es realmente sencillo, te paso unas capturas de pantalla con la configuracion de mis motores, los valores de pins, velocidades y aceleraciones.

  3. ñacañaca

    hola oscar muchas gracias por la informacion y la rapida respuesta, mas tarde instalare cnc linux y checare la configuracion, muchas gracias esto me sera de gran ayuda te lo agradesco.:D

  4. solid rey

    Que bien oscar me parece excelente tu trabajo
    sabes ya me cocmpre un juego por internet de la targeta azul y motores pero tengo una duda los motores tienen 6 cables los comunes donde se conenctan en la targeta… sabes yo soy programador cnc y diseno pero en electronica soy novato e estado buscando la conexion electronica en la web y tengo esa duda para continuar..saludos de reynosa

  5. franko

    hola oscar..esta fresadora me parece muy interesante y me gustaria que me ayudes para programar los motores y todo eso de linux y eso

  6. Oscar Terrer

    Hola Solid Rey.
    no me llego la notificacion de tu comentario, y acabo de verlo ahora. Perdona por la tardanza en contestar. Si aun estas interesado en que te eche una mano, mandame un email a mi correo personal, y planteame todas tus dudas. Intentare solucionarlas en la medida que me sea posible.

    Perdona otra vez por la tardanza!

    ostervi.ozono@gmail.com

  7. Oscar Terrer

    Hola Carlos.
    El Software lo consigo directamente de la universidad, no te puedo darte un enlace de descarga porque sencillamente no lo tenemos. Tampoco se (aunque no creo) si existen versiones estudiante de Catia que te puedas descargar con licencias de estudiante, como tiene por ejemplo Autodesk. Tendras que buscar otros medios para conseguirlo.

    Lo siento.