Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

PixelCNC Has Moved: deftware.org

CAM software developed by artists for artists to create unique and original works on a 3-axis CNC router or mill. · By Deftware

Running a test carve. Uni-directional

A topic by Donnie created Feb 17, 2018 Views: 432 Replies: 5
Viewing posts 1 to 6
(+1)

I'm running a test carve of a the eagle file we worked on last week.  I'm using the "pink" foam so I can cut fairly fast.  I noticed that the carve is only cutting in one direction.  I'm attaching a video so you can see what I mean.  It cuts then lifts, returns to the left then cuts left to right again.  It may be that I did not setup the gcode properly but how do I get it to cut in both directions?


Donnie

Developer (2 edits)

In the operation you can specify whether it does Conventional/Climb/Mixed.. If you want it to zig-zag and not lift-up between cuts then used Mixed.

EDIT: The setting in the operation says "Dir", as in "Direction". Cuts can come out better/worse depending on the direction the tool is moving when cutting, but in most cases for the parallel/contouring type operations you can just use mixed to get an optimal run time. Happy cutting!


Thanks bud!  I figured it was something I had not setup correctly.

Donnie

When I changed to Mixed direction, I started to get weird results.  First I got a cut path that was one single line going from the bottom left to the top right.  Then I started to get error messages no matter what I chose.  I've attached a screen shot of the the error and I'm going to include the log file.



0.127 
0.133  [ PixelCNC v1.13a - Feb 14 2018 ]
0.154  [ Charles Van Noland - deftware.itch.io/pixelcnc ]
0.163 
0.168 --- initializing ---
0.175 configuration...
0.181 ...loaded configuration
0.188 system...
0.313 4 logical cpus detected
0.317 >> starting thread00...
0.322 >> starting thread01...
0.326 >> starting thread02...
0.331 >> starting thread03...
0.336 >> starting thread04...
0.344 >> starting thread05...
0.349 >> created mutex #0
0.353 >> created mutex #1
0.357 image...
0.361 >> created mutex #2
0.365 input...
0.369 render...
0.373 vertex size: 26
0.385 >> r_begin: allocated 416.0mb vertex buffers
0.398 GL_VENDOR: Intel
0.402 GL_VERSION: 3.0.0 - Build 20.19.15.4549
0.407 font drawing...
0.414 loaded ".\fonts\system.png" (256x128@4)
0.420 ...loaded font "system"
0.426 loaded ".\fonts\fixedsys.png" (256x128@4)
0.431 ...loaded font "fixedsys"
0.437 loaded ".\fonts\source_code.png" (256x128@4)
0.442 ...loaded font "source_code"
0.447 loaded ".\fonts\latha.png" (256x128@4)
0.453 ...loaded font "latha"
0.462 loaded ".\fonts\latha_big.png" (512x256@4)
0.468 ...loaded font "latha_big"
0.473 loaded ".\fonts\tahoma.png" (256x128@4)
0.479 ...loaded font "tahoma"
0.487 loaded ".\fonts\tahoma_big.png" (512x256@4)
0.493 ...loaded font "tahoma_big"
0.499 loaded ".\fonts\verdana.png" (256x128@4)
0.504 ...loaded font "verdana"
0.512 loaded ".\fonts\verdana_big.png" (512x256@4)
0.518 ...loaded font "verdana_big"
0.524 loaded ".\fonts\ocr_a.png" (256x128@4)
0.529 ...loaded font "ocr_a"
0.536 loaded ".\fonts\ocr_a_big.png" (512x256@4)
0.543 ...loaded font "ocr_a_big"
0.550 loaded ".\fonts\icons.png" (256x128@4)
0.556 ...loaded font "icons"
0.564 loaded ".\fonts\icons_big.png" (512x256@4)
0.570 ...loaded font "icons_big"
0.575 view...
0.579 mesh...
0.583 >> mesh_init: allocated 1.44KB meshes array
0.588 >> mesh_init: allocated 36.00mb polyline verts array
0.592 toolpath...
0.613 cam...
0.617 >> created mutex #3
0.621 project...
0.626 tools to inch defaults
0.630 gui...
0.634 ...program initialized
0.638  ( 452.0mb currently allocated )
0.642 --- entering main loop ---
1.058 >> unts:1 scale:1.000000,0.250000 subdiv:1.000000
1.063 >> r_modelnew 0
1.068 >> copying 400 verts to model buffer
1.072 >> ...done
1.078 created model: 1 draws, 400 verts
1.166 >> axis regen 1.000000
1.171 >> r_modelnew 1
1.175 >> copying 6 verts to model buffer
1.180 >> ...done
1.187 created model: 1 draws, 6 verts
7.905 loaded "...ith flag - charlie.png" (1667x1132@3)
7.935 >> setting project input...
7.940 >> simulation depthmap size: 1242x843
8.104 >> laplace
8.781 >> img_scalarblend: 1667x1132, 1667x1132, 1.000000x1.000000
9.026 >> project_updatetexture done
9.150 >> img_scalarblend: 1667x1132, 1667x1132, 1.000000x1.000000
9.292 project pixels/inch = 104.2
9.386 >> r_modelnew 2
9.390 >> generating input image mesh...
9.395 >> copying 4 verts to model buffer
9.400 >> ...done
9.403 >> getting corner verts...
9.408 >> downscaling input image... 416x283
9.412 >> copying 4 verts to model buffer
9.418 >> ...done
9.422 >> copying 4 verts to model buffer
9.427 >> ...done
9.528 >> copying 4 verts to model buffer
9.533 >> ...done
9.542 >> copying 4 verts to model buffer
9.546 >> ...done
9.550 >> copying 4 verts to model buffer
9.554 >> ...done
9.561 created model: 6 draws, 24 verts
9.565 >> project_setinput done
9.701 >> blending downscaled image...
9.708 >> img_scalarblend: 1667x1132, 1667x1132, 1.000000x1.000000
9.848 >> dividing up mesh...
10.730 >> setting triangle apex verts...
10.821 mesh_fromimage: created bitree mesh, 788574 nodes (1.425000 elapsed)
10.857 >> r_modelnew 3
11.051 >> r_end: reallocated 42.1mb model vertex buffer
11.056 >> copying 1182864 verts to model buffer
11.071 >> ...done
11.188 created model: 1 draws, 1182864 verts
38.445  [ 1 ] = T1 F60 S16000 D0 SO0.040000 ZDOC0.063000 ZBOT0.500000 ZTOP0.001000 SAFE0.100000 AUX[ 0.000000 0.000000 0.000000 ]
38.453 - - - - - - - - - CAMOP_PARALLEL - - - - - - - - -
38.458 >> convolving input image with tool[1].surface...
38.913 >> ...done (0.28s)
38.924 >> getting corner verts...
38.940 >> downscaling input image... 416x283
39.222 >> blending downscaled image...
39.241 >> img_scalarblend: 1667x1132, 1667x1132, 1.000000x1.000000
39.378 >> dividing up mesh...
39.993 >> setting triangle apex verts...
40.046 mesh_fromimage: created bitree mesh, 528762 nodes (1.123000 elapsed)
40.055 [ ERROR ] con_append: src contour has no polylines!
44.016 >> toolpath_compilepaths: 0 0.100000 all
44.062 toolpath[0]: generated 1 moves from 0 paths and 0 vertices
44.122 op generate sim image, simimgjob(0)
44.130 >> r_modelnew 4
44.136 >> job_projgenopsimimage begin...
44.141 >> copying 1 verts to model buffer
44.156 >> cam_rasteroperation: rasterizing 0 paths (0 verts)
44.163 >> ...done
44.167 >> ...rasterization complete
44.172 >> copying 1 verts to model buffer
44.177 >> ...done
44.181 >> convolving toolpath with tool profile...
44.187 created model: 2 draws, 2 verts
44.297 >> ...convolution complete
44.303 >> ...job_projgenopsimimage done
207.558 >> freeing camop[0]
207.571 >> freeing pathmodel[4]
207.577  [ 1 ] = T1 F60 S16000 D0 SO0.040000 ZDOC0.063000 ZBOT0.500000 ZTOP0.001000 SAFE0.100000 AUX[ 0.000000 0.000000 0.000000 ]
207.598 - - - - - - - - - CAMOP_PARALLEL - - - - - - - - -
207.608 >> convolving input image with tool[1].surface...
208.085 >> ...done (0.27s)
208.112 >> getting corner verts...
208.117 >> downscaling input image... 416x283
208.388 >> blending downscaled image...
208.406 >> img_scalarblend: 1667x1132, 1667x1132, 1.000000x1.000000
208.534 >> dividing up mesh...
209.155 >> setting triangle apex verts...
209.212 mesh_fromimage: created bitree mesh, 528762 nodes (1.101008 elapsed)
209.234 [ ERROR ] con_append: src contour has no polylines!
222.428 >> toolpath_compilepaths: 0 0.100000 all
222.463 toolpath[0]: generated 1 moves from 0 paths and 0 vertices
222.516 >> r_modelnew 4
222.521 >> copying 1 verts to model buffer
222.526 >> ...done
222.534 >> copying 1 verts to model buffer
222.544 >> ...done
222.551 created model: 2 draws, 2 verts
222.565 op generate sim image, simimgjob(0)
222.570 >> job_projgenopsimimage begin...
222.579 >> cam_rasteroperation: rasterizing 0 paths (0 verts)
222.594 >> ...rasterization complete
222.601 >> convolving toolpath with tool profile...
222.737 >> ...convolution complete
222.747 >> ...job_projgenopsimimage done

I did some additional testing.  The PCNC seems to start acting flakey whenever I lower the flute diameter to .063 (or below .125).  When I do that with direction "Mixed" I get a toolpath like this screenshot.  If I change it back to :"Conventional" then I get the error message shown in the previous reply.


Developer (1 edit)

Hi Donnie, apologies for taking so long getting back to you. I determined that the problem is caused by the origin being set to the bottom left corner with a parallel cut angle of 0 degrees. Thanks for pointing it out, I'll have it fixed in the next version which should be out by the end of the week at the latest.

EDIT: The problem seems to arise specifically if the origin is anywhere below X:50% Y:50%, if it's at 50%,50% or above it still seems to work with 0-deg parallel cutting operation.