Meta Variables Fogotton in Scope of Trigger File?
-
I'm trying to modify my trigger file so that it does not call pause when the machine is running a file:
var trigger3_paused = false if state.status = "processing" M25 set trigger3_paused = true ;M291 P"Machine paused!" R"Machine Status" S1 T3 M300 M98 P"set_primary_syringe.g" M98 P"home_b_syringe.g" ;M98 P"set_primary_syringe.g" M98 P"set_syringe_settings.g" M300 if trigger3_paused = true M24 ;else ; M291 P"Machine wasn't paused!" R"Machine Status" S1 T3
I'm getting the error:
M98 P"trigger3.g" Error: in file macro line 12 column 4: meta command: unknown value 'trigger3_paused'
-
i think your name is wrong.
From the meta gcode page
(which must be of the form var.name or global.name)
so change it toset var.trigger3_paused = true
-
@jay_s_uk that was it thanks.