Questions tagged [cnc]

CNC stands for Computer Numerical Control. It converts the design produced by Computer Aided Design software (CAD) into numbers.

Definition

CNC means Computer Numerical Control. This means a computer converts the design produced by Computer Aided Design software (CAD), into numbers. The numbers can be considered to be the coordinates of a graph and they control the movement of the cutter. In this way the computer controls the cutting and shaping of the material.

Useful Links

96 questions
37
votes
3 answers

Python SVG parser

I want to parse an SVG file using python to extract coordinates/paths (I believe this is listed under the "path" ID, specifically the d="..."/>). This data will eventually be used to drive a 2 axis CNC. I've searched on SO and Google for libraries…
user2253513
7
votes
2 answers

Looking for G Code syntax specification, trying to make simple G Code parser

I'm trying to find a definitive G Code syntax specification, NOT the individual G Codes meaning, specification for this i everywhere, i mean detailed syntax specification, for the purpose of writing a parser. I have no problem writing a parser, i'm…
staviq
  • 71
  • 1
  • 3
7
votes
5 answers

How can I learn CAD/CAM/CNC programming?

I've always enjoyed programming and I always enjoy learning new langauges (anything e.g. Java/C#/Erlang/F#/Clojure/Ruby etc), but something's never seemed to enjoy it as much as I want. One thing I'm curious about which I'm wondering if I might…
Goody
  • 381
  • 1
  • 2
  • 10
5
votes
1 answer

G code M code CNC syntax for VI & EMACS

I want to use Vim and EMACS for CNC, G codes & M codes. Is there any syntax or modes for Vim or EMACS for working with this type of code?
zeitue
  • 1,674
  • 2
  • 20
  • 45
4
votes
1 answer

c# Point Cloud to Mesh

Is it possible to reconstruct a 2.5D surface from X,Y,Z points (unstructured point cloud) to triangle mesh? Is there a library available that can do this for me that I can use with C#? I can't find anything open source out of the box that has this…
user3478586
  • 307
  • 4
  • 15
3
votes
1 answer

How to access an API running on a remote machine via network

I want to connect to an OKUMA Windows based control from external PC (i.e. Other than OKUMA controller) and utilize the OKUMA Open API on that machine. Is it possible? (If yes then How?) Below is my code which I want to run from my laptop to check…
3
votes
1 answer

VBA binary file - cnc program

I'm using a macro to create a CNC program. To create the ".spf" file the machine is using I use: Dim m2_path as string m2_path = T:\Production\Cavity-Line\Eric R\Excel\PARAMETER.spf Dim text as string text = 'my data Dim fso As Object Dim Fileout…
rosi97
  • 243
  • 3
  • 18
3
votes
3 answers

Real-time processing with machines

I will be writing an interface in C++ that controls a large CNC machine and it will run on Windows. For safety reasons, I would like this process to run on it's own core so that it can run the process in real-time. If it shares a core with Windows,…
TheBlindSpring
  • 631
  • 5
  • 22
3
votes
1 answer

Needed tutorial on FANUC GCODE

G-code is a language for controlling CNC machines (lathes, mills). I have a university assignment that I need conceptual help with. The part of the job that I am having problems with is writing two short programs in G-code (Fanuc corporation…
Vorac
  • 8,726
  • 11
  • 58
  • 101
2
votes
1 answer

generate G-code | decompose b-spline to circular sections

I'm trying to decompose a b-spline to a set of circle definitions. I'm trying to generate G-code; the idea here is to segment a b-spline into a number of circular interpolations [ G02 ]. Using PythonOCC I can break up the b-spline into a number of…
Jelle
  • 690
  • 4
  • 13
2
votes
1 answer

My client program is accepting only one byte from the server using python socket api

I'm trying to get the machine data from a CNC HAAS controller. It has a built-in software called MDC, which acts as a server. I need to write a client program to send a request to the MDC's IP and port number. when I send a request and receive it…
2
votes
1 answer

Executing g-code from file within a ST-program in the software Automation Studio from B&R

I have a 3-axis system, which resembles the CNC-axis, and a PowerPanel from B&R. Now I plan to execute the g-code, which I read from a file, which is fe located in the Downloads folder. This will be done with fbs from B&R Automation Studio. I got…
Andreas
  • 89
  • 1
  • 11
2
votes
1 answer

Streaming python to GRBL

I have found a script to send a g-code to GRBL but, i would like this script to repeat 30 times. how do i write this into the code? The code i am trying to repeat is G91Y-20X15F500 G90Y3.00F250 I have research on while and loops but i do not…
2
votes
4 answers

Algorithm for evenly arranging steps in 2 directions

I am currently programming the controller for a CNC machine, and therefore I need to get the amount of stepper motor steps in each direction when I get from point A to B. For example point A's coordinates are x=0 and y=0 and B's coordinates are x=15…
luca
  • 23
  • 6
2
votes
2 answers

Converting CNC drillings from old to new system (using Python)

I have this kind of file (part): H DX=615 DY=425 DZ=22.15 -AB C=0 T=0 R=999 *MM /"def" BX=2.5 BY=452.5 BZ=25 ;M20150710. XBO X=100 Y=50 Z=5 V=1000 R=0 x=0 y=0 D=10 N="P" F=1 ;Test F1/10P. ... which I want to convert to a new programming system.…
Michel Storms
  • 336
  • 3
  • 10
1
2 3 4 5 6 7