You are not logged in.

#1 2019-10-17 01:42:27

sikolenski
Member
Registered: 2019-10-17
Posts: 3

need help to understand laser code

Hi,
Sorry for my poor english. I come here to ask some help about the Gcode configuration for galvo control with nanoDLP. I would like to know if somewhere there's place who help to understand the formula to get back Gcode for galvo from the sliced plates. I look in the help on nanoDLP but i didn't found anything... just Gcode variables, but nothing about the way to use them... Thanks for your help, and your great work about this beautifull software.

Offline

#2 2019-10-17 04:47:10

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: need help to understand laser code

Lets say below code is valid galvo controller gcode.
G1 LaserStatus [[IsFilled]] X[[PosX]] Y[[PosY]]

NanoDLP process layer and start move laser to first position need to be filled for example 10,10:
G1 LaserStatus 0 X10 Y10

There are area need to be cured large as 10 unit in X axis.
G1 LaserStatus 1 X20 Y10

Lots of gcode for each layer will be generated.

Offline

#3 2019-10-17 21:09:28

sikolenski
Member
Registered: 2019-10-17
Posts: 3

Re: need help to understand laser code

So if i understand i just have to set G1 X[[PosX]] Y[[PosY]] into lasergcode box, and something like that "M3 S{([[IsFilled]]==1)*255+0} " (but it's not working)  to control the laser trough TTL?

Offline

#4 2019-10-18 05:32:02

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: need help to understand laser code

M3 S{[[IsFilled]]*255}
What is the output during printing? You can check from activity panel.

Offline

#5 2019-10-18 09:03:24

sikolenski
Member
Registered: 2019-10-17
Posts: 3

Re: need help to understand laser code

hum... the formula's output is

Transferring Data M3 S{1*255}
G1 X440.96 Y4.6530000000000005 F250
G4 P0.1

but when i try send M3 S{1*255} or M3 S{0*255} in the serial terminal it's working fine, showing M3 S255 or M3 S0

Offline

#6 2019-10-24 18:58:22

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: need help to understand laser code

I have double checked the source code. As large number of gcode will be generated for galvo. Some functionality such as math support for laser gcode has been disabled to prevent slowdown.

Offline

Board footer

Powered by FluxBB