Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical Raster feature needed #34

Open
BCChad opened this issue Nov 14, 2021 · 8 comments
Open

Vertical Raster feature needed #34

BCChad opened this issue Nov 14, 2021 · 8 comments

Comments

@BCChad
Copy link

BCChad commented Nov 14, 2021

Thank you for your code, which gives me good results. My suggestion - the raster lines run horizontally in the x-direction. When a piece requires me to rotate it 90 degrees in the machine, the raster lines now are vertical which is not always a pleasing look. It would be good to have a feature option to run the raster lines in the y-direction.
Thank you.

@rktech-de
Copy link

Hi, because of other changes I need, I did the GCode generator completely new, but it now is also possible to change also the scan direction (tab: G-Code, config: Scan image lines ...). If you like you could be my first external tester of this new code.
Take a look here: https://github.com/rktech-de/Inkscape

@BCChad
Copy link
Author

BCChad commented Jan 9, 2022 via email

@BCChad
Copy link
Author

BCChad commented Jan 9, 2022 via email

@rktech-de
Copy link

it is for inkscape 0.9x, that's the version I'm currently using, I'm sure currently it will not work with 1.x but I will do this if later on, when I know the new GCode generator is working fine.
Waiting for your response...
Rainer

@rktech-de
Copy link

if I get you right, the dwell time should be awaited after each scanline.

Then this could be added to the "Start of line code" configuration. For example this G-Code configuration:
"Init code" = G90 G21{NL}F{FEED}
"Post code" = G4 P400{NL}M2
"Start of line code" = G4 P400{NL}G0 X{XPOS} Y{YPOS}
"Power level change code"= G1 X{XPOS} Y{YPOS} S{POWT}
"Minimum laser power value" = 0.00
"Maximum laser power value" = 10000.00

this will create the GCode like this (for a 2mm thick vertical line):

G90 G21
F800
G4 P400
G0 X-10 Y0
G1 X0 Y0 S0
G1 X2 Y0 S10000
G1 X12 Y0 S0
G4 P400
G0 X-10 Y-0.2
G1 X0 Y-0.2 S0
G1 X2 Y-0.2 S10000
G1 X12 Y-0.2 S0
... (and so on)
G4 P400
M2

Or maybe the "distance for acceleration" setting will help you. This will generate a (short) distance at the beginning and the end of a scan line in the same direction while the laser is switched off. this will allow the machine to accelerate to the Engraving speed, so the energy (gray level) for each dot is constant. It will also prevent the laser be switched on when the g-code parser of your machine already calculate some deceleration and curves when going to the next line. So maybe the G4 is not needed any more with a sufficient distance setting.

BR
Rainer

@BCChad
Copy link
Author

BCChad commented Jan 9, 2022 via email

@rktech-de
Copy link

Hi Bruce,
Now we are talking here about my fork in this foreign repository, could you please put your comments as separate issues in my fork-repository? THX

@BCChad
Copy link
Author

BCChad commented Jan 10, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants