area515 / Photonic3D

Control software for resin 3D printers
http://photonic3d.com
GNU General Public License v3.0
131 stars 115 forks source link

Does photonics respect the layer setting in CWS gcode? #351

Open eminarcissus opened 5 years ago

eminarcissus commented 5 years ago

I'm trying to change a CWS file to modify the delay of some specific layers, in gcode they normally follows with

;<Slice> N
M106 S255
;<Delay> X

where X is the exposure time of current layer, but looks like no matter how did I change that it just won't work somehow. Since I'm using a third party(close source one) device which using photonic3d as the controller, I'm trying to bushing around the source of CWS file processor and found looks like the handler does not respect delayPatter at all.

So I'm guess no matter how long time is settling in the cws file, it just going to be overwritten by ink config of a layer time, including bottom layer time, which is not modifiable in a programming manner(like to specific or change layer time for some specific layers, 50-100 5s,100-150 2s etc.)

Is that correct? Or am I miss something here.

Any hints would be real appreciated :) Thx very much

WesGilster commented 5 years ago

We commented out all of the delay for CWS files long ago in commit: 843fc8efab26817aeace922ec50f4dd9cd11e4c8. You can use javascript to set the delay times using whatever variables you'd like. It's actually quite a bit more sophisticated than CWS. image