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
1
vote
0 answers

SVG - Export of Points / Coordinates in Python

I am developing a robotic controlled drawing system and currently are looking for some input regarding the extraction of plain coordinates out of exisitng SVG-files. My question is very similar to this one, which did not get much feedback so far. ->…
1
vote
0 answers

C Optimize numeric output for FANUC G Code (truncate trailing zeroes, leave decimal)

Is there a format specifier in C that will output a numeric value with the decimal point left on a number, but with trailing zeroes AFTER the decimal point truncated? The values being calculated are floats, and using %.4g gets close to the desired…
C Troyer
  • 11
  • 2
1
vote
3 answers

Python : simplify try / except code?

Sorry if the title is not explanatory enough, but it's the best I could come up with. This is a part of my code, a python script that translates files from Xilog3 to woodWOP format (cnc programs). try: print >>woodWOPfile, 'YA="%s"'…
Michel Storms
  • 336
  • 3
  • 10
1
vote
1 answer

how to send pdf data to a microcontroller

I am making a CNC laser pcb making machine and i want to use the pdf file of the layout and send it to the microcontroller(avr) serially so that it can control two steppers and the laser diode. I am not sure how to send the pdf data or how to decode…
ironstein
  • 421
  • 5
  • 16
1
vote
1 answer

Two possible paths for G-code circles

In G-codes a clockwise arc can be specified by e.g. G02 X2 Y0 R2 This code should give an arc between the current position and (2,0) with radius=2. According to several sources (And Math) eg. There will always be two circles/arcs that satisfies…
Sigurd V
  • 5,077
  • 4
  • 18
  • 27
1
vote
2 answers

CNC Milling Tool material representation

I'm writting CNC simulator for 3-axis milling tool. At first attempt I have represented the material as WxHxD box (W - width, H- height, D - depth) with W and D divisor parameters. So for example W = D = 120, H = 50, W-div = 20, D-div = 20: At each…
Krzysztof
  • 61
  • 4
1
vote
2 answers

Reading all data from serial port, but incoming stream doesn't have a consistent end of stream

I'm trying to reverse engineer an old DOS CNC program and I've had limited success. I sniffed the Rx/Tx stream from the DOS program and saw this... Tx from DOS: "OUTPUT TEST" 0D Rx from machine: "OUTPUT TEST" 0D 0D 0A 0D 0A "TEST" 0D 0A "0001> …
1
vote
1 answer

Need to rewrite CNC file to shift absolute position

This question is really in two parts. To briefly introduce the issue, we have a requirement to take a CNC file (used with a Roland milling machine) that has been produced using a tool called ArtCam, and modify it to shift the absolute position of…
Jonathan Potter
  • 36,172
  • 4
  • 64
  • 79
0
votes
0 answers

basic Siemens CNC parser in python not detecting syntax errors

Hi I'm trying to build a parser in python that parses siemens cnc for a project and i have got it to detect some syntax errors but others it just ignores this is my code: from pyparsing import Word, alphas, nums, Suppress, Group, LineEnd, OneOrMore,…
0
votes
0 answers

Build linuxcnc on fedora 37

I am trying to build linuxcnc on fedora iot 37 aarch64 following this link I installed dependencies using rpm-ostree rpm-ostree install autoconf \ automake \ gcc \ gcc-c++ \ tcl-devel \ python-Yapps2 \ python3-devel \ python3-tkinter…
9me
  • 1,078
  • 10
  • 36
0
votes
0 answers

How to install firmware for Arduino Mega 2560

I want to run cnc_ctrl_v1 file to install firmware for Arduino Mega 2560 to control a Maslow CNC wood cutting device, but compiling and running this firmware gives the error with the following output (partially in Spanish): El Sketch usa 57294 bytes…
0
votes
1 answer

Join / merge / combine a DWG / DXF files into single DWG / DXF file in such way that it will fit into a steel plate

Generally the goal is to get a pre-processed file that can be used to import into a cnc plasma cutter to get the time needed for evaluation. So we ned to join / merge / combine a DWG / DXF files into single DWG / DXF file in such way that it will…
Szelek
  • 2,629
  • 5
  • 17
  • 25
0
votes
0 answers

C# macro for a CNC machine to write co-ordinates to a CSV file

I am using a webacm attached to a CNC machine to provide the user a view of the part to be machined. As they jog around the area I want to allow them to record the X & Y co-ordinates of points of interest. These points are read from internal system…
0
votes
1 answer

DXF file is not being imported correctly due to arcs & lines not connecting

Our application generates a custom DXF file for glass CNC machines. We have an issue with some of our DXF files not importing correctly into certain program such as AutoCAD, DWG Fastview and others. It does import correctly into other programs. The…
Rick Wheeler
  • 1,142
  • 10
  • 22
0
votes
0 answers

Reading Program Comment Fanuc Focas 30i

I am trying to read a comment of the main program on fanuc 30i. Unfortunately I cant do this because the program name is e.g. 5420.NC and this is a string and by that the program number is 0. I do find a way to read it when the program name is…