You are not logged in.
Pages: 1
How to use conditional in nanodlp?
Like if, else , while, etc...
for exemple;
if Z current position < 0
set Z = 0
Thanks
Offline
[[PositionSet {([[CurrentPosition]]>0)*[[CurrentPosition]]}]]
It changes all negative positions to zero.
Offline
I need this for movements less than 0 and I need for movements more than 128
if Z current position < 0
set Z = 0
and
if Z current position > 128
set Z = 128
How to do it?
Offline
[[PositionSet {([[CurrentPosition]]>0)*[[CurrentPosition]]}]]
[[PositionSet {([[CurrentPosition]]<128)*[[CurrentPosition]]+([[CurrentPosition]]>128)*128}]]
Offline
Thanks
Offline
Another question, I don't want to make another thread
Whats the placeholder for Pinter Name, last Plate Name, last Print Time and last Resin Usage?
Offline
There is no access to named fields from gcode box. It will slow done gcode box processing so only limited number of fields are accessible from gcode boxes.
Workaround is to call external script from gcode box and from there you can have access to all variables by sending requests to different URL on nanodlp such as /status
Offline
I want this placeholders to use on Execute at end. to send notifications via pushbullet.
Offline
how can I get this formula to work?
(
(([[LayerNumber]] <= 5) * ([[SupportCureTime]] * 1) )
+
(([[LayerNumber]] <= 10) * ([[SupportCureTime]] * 0.75))
+
(([[LayerNumber]] <= 15) * ([[SupportCureTime]] * 0.50))
+
(([[LayerNumber]] <= 20) * ([[SupportCureTime]] * 0.25))
)
but if [[SupportCureTime]] < [[CureTime]] use [[CureTime]]
Offline
You can use [[Net]] keyword to send pushbullet.
You should use {} to cover whole section which contains conditional or math to make it works.
Offline
You can use [[Net]] keyword to send pushbullet.
You should use {} to cover whole section which contains conditional or math to make it works.
Thanks
how about the part ;
if [[SupportCureTime]] < [[CureTime]] use [[CureTime]]
Offline
{ ([[CureTime]] < [[SupportCureTime]]) * [[CureTime]] }
Offline
I tried this didnt work
{( (([[LayerNumber]] <= 5) * ([[SupportCureTime]] * 1) )+(([[LayerNumber]] <= 10) * ([[SupportCureTime]] * 0.75))+(([[LayerNumber]]<= 15) * ([[SupportCureTime]] * 0.50))+(([[LayerNumber]] <= 20) * ([[SupportCureTime]] * 0.25)))+ ([[CureTime]] <= [[SupportCureTime]]) * [[CureTime]] )}
Error
Math issue ((14 <= 5) * ([[SupportCureTime]] * 1) )+((14 <= 10) * ([[SupportCureTime]] * 0.75))+((14 <= 15) * ([[SupportCureTime]] * 0.50))+((14 <= 20) * ([[SupportCureTime]] * 0.25)) + ([[CureTime]] < [[SupportCureTime]]) * [[CureTime]]) -1 Invalid token ‘[’
Offline
As you see, [[CureTime]] and [[SupportCureTime]] are not replaced. I have checked out code. We do not support neither keywords.
Offline
What you suppose to use in dynamic cure times?
Offline
Mostly current layer, largest/smallest area and etc.
Offline
Pages: 1