You are not logged in.

#1 2019-07-02 18:05:23

amac26
Member
Registered: 2019-07-02
Posts: 6

Question: Using Conditionals for Delay

Shahin,

Is it possible to use a conditional within the Delay command?

For example:

[[Delay {([[LayerNumber]]=1)*10)}]]

Thanks for your help!!

Offline

#2 2019-07-04 16:26:20

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

Re: Question: Using Conditionals for Delay

Yes

Offline

#3 2019-07-08 19:38:18

amac26
Member
Registered: 2019-07-02
Posts: 6

Re: Question: Using Conditionals for Delay

I am using Build 2227, and I have tried printing using the following code within "Code after each layer" and my printer fails to read the delay code:

[[Delay {([[LayerNumber]]==25)*30}]]

When checking the formula, it shows that the conditional is being translated into the correct value, but my printer skips the delay command while printing.

Any suggestions on how to fix this issue? Thanks!

Offline

#4 2019-07-09 10:01:12

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

Re: Question: Using Conditionals for Delay

Please, share a debug file.

Offline

#5 2019-07-11 16:05:46

amac26
Member
Registered: 2019-07-02
Posts: 6

Re: Question: Using Conditionals for Delay

Offline

#6 2019-07-11 18:13:02

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

Re: Question: Using Conditionals for Delay

You have extra space after delay, also your formula will generate zero for all layers except layer 25 which will apply 30s delay.

Offline

#7 2019-07-11 19:18:28

amac26
Member
Registered: 2019-07-02
Posts: 6

Re: Question: Using Conditionals for Delay

I hadn't realized I had such a small typo! Thank you for your help.

Offline

Board footer

Powered by FluxBB