#Job queue syntax

62 messages · Page 1 of 1 (latest)

patent siren
#

Im trying to figure out the syntax for the job queue functions. Ive already sey my job queue to automatic transition. But what value to enter on job_transition_delay:? Is it in secs or mins? Next is job_transition_gcode:. What do you enter here? Tried entering a filename of my gcode scripts but it doesnt work. Tried entering gcode commands but also gives error. How do you make it do your bed clearing scripts/command?

unkempt sail
#

both settings are only for automatical transition. if you have to clean your bed manual, you cannot use both settings

patent siren
#

I have it set to auto

unkempt sail
#

why?

patent siren
#

coming from octoprint, i print 24/7 of the same file. the printer prints and clears the bed to load the next print.

#

Im trying to do that on job queue where human interaction is not needed to finish the queue

unkempt sail
#

so your printer have a automatical cleaning function?

patent siren
#

It is done by gcode

unkempt sail
#

just extract this gcode from your gcode file and write it in the job_transition_gcode attribute

patent siren
unkempt sail
#

you dont have to add this gcode in the gcode file

patent siren
#

I mean what is the format?

unkempt sail
#

just gcode

patent siren
#

how do you enter the gcode commands? separate lines?

unkempt sail
#

like every other klipper gcode option...

#
job_transition_gcode:
    G28
    G0 X10
    ...
patent siren
#

there. thats what im looking for.

#

how about the delay

#

is it in seconds?

unkempt sail
#

it should be seconds (not 100% sure..). but jsut test it with 10 seconds and you will see it

patent siren
#

ob_transition_delay: 1000

#

is that the correct format?

unkempt sail
#

yes, but with j at first char

#

do you need 1000 seconds to wait?

patent siren
#

you need to cool bed to clear prints otherwise you will ruin your printer. hehe

#

so is this about right?

unkempt sail
#

you have to remove the # in front of job_transition_delay

#

and i think you have to use # for the comments

patent siren
#

oh right. il just remove the comments

unkempt sail
patent siren
#

time for some testing.

unkempt sail
#

i dont know the gcode M190 R45

#

is this a marlin specific gcode?

patent siren
#

its wait for temp

unkempt sail
#

yea... but the R45

#

klipper only use the S attribute

#

(for both directions)

patent siren
#

its like if you have 50c you wait for it to get 45. but if you have below it will not wait anymore.

#

or i got it in reverse. where the other is it will wait for it to cool or heat up

unkempt sail
#

let me check my config. i use something like this for my probe

patent siren
#

oh S is wait for heating. R is for heating and cooling.

unkempt sail
#

i use TEMPERATURE_WAIT for this

unkempt sail
patent siren
#

oh. so i replace that with
TEMPERATURE_WAIT SENSOR=heater_bed MAXIMUM=45

#

is that correct? sorry just moved in to klipper

unkempt sail
#

looks right to me

patent siren
#

ok. finger crossed. haha

unkempt sail
#

but you dont have to cooldown your extruder or heaterbed at the end

#

this gcode will run between 2 jobs. so the first job should already turn of the heaters in the end gcode and the second job should heatup

patent siren
#

oh right. I think i use that when plugins are not a thing yet. where you copy paste the whole gcode x how many times you want to print it. haha

patent siren
#

ok that failed

#

Im having this error. But the printer still moves to that position, then bypasses my temperature wait then do the next line then nothing.

unkempt sail
#

F is missing

patent siren
#

OMG. the effect of no sleep. Its 5:39am here.

patent siren
#

Now after printing a file i got this

patent siren
#

I think i finaly got it to work. I have to remove the disbale stepper motor on my end_print. But how does octoprint does the continuous print with all the files having M84 at the end gcode and not homing before the bed clear script?

unkempt sail
#

You wrote, that you have this in your gcode file. I think it was just in the right order. First the remove and then end gcode.

#

But I have no glass bowl to look in your gcode files....

patent siren
#

Im using the standard end_print macro where after the print ends it disable the motors. What happens is when the motor are disabled, the printer doesnt know the exact location of the nozzle. So when moonraker performs the transition gcode, it will tell you that you need to home first to know its exact position. By removing the disable motor at the end of the print, it can continue to perform the next operation without having to home first.