Solved Multiple motion system homing malfunction
-
daemon.g and macro files
;daemon.g while (true) M596 P1 G91 while (global.weldtorchstate == 1) G1 H4 U99999 F1000 ;selects the U axis & sets the feedrate G4 S0.2
; Weld Torch ON M42 P3 S0 ; turns on the relay to start welder M42 P4 S1 ; set U axis endstop to high ; set weldtorchstate to ON set global.weldtorchstate = 1
; Weld Torch OFF M42 P3 S1 ; turns off the relay M42 P4 S0 ; set U axis to low end ; set weldtorchstate to OFF set global.weldtorchstate = 0
-
@T3P3Tony said in Multiple motion system homing malfunction:
@SANJR please post your config.g, the homing files, daemon.g and the macros you refer to.
Hi Tony pasted the filesplz take a look .......
-
@o_lampe said in Multiple motion system homing malfunction:
@SANJR I believe you have to rethink the daemon.g code or the macros. They should only be active after x,y,z-axes are homed.
You can check for homed axes in the object model.I'm not sure where the variables for homed axis can be found, maybe someone else can chime in?
Hi
Yes you are correct. The daemon and the macros needs to be active after homing the first motion X,Y,Z axis. I have pasted all the files plz take a look......
And about checking for the homed axes in the object model? Sorry not able to understand where and how to check the object model.... Apologies i am not able to understand.......
-
@SANJR said in Multiple motion system homing malfunction:
;daemon.g while (true) M596 P1 G91 while (global.weldtorchstate == 1) ; maybe an if-condition would be better here? G1 H4 U99999 F1000 ;selects the U axis & sets the feedrate G4 S0.2 ; this delay should be related to the while(true) loop
-
-
You have no indentation in your second while statement.
-
@OwenD said in Multiple motion system homing malfunction:
You have no indentation in your second while statement.
Hi Owen,
Is it the while (global.weldtorchstate == 1) refereing to?
And indentation meaning.....could u plz show it in the code plz -
daemon.g while (true) M596 P1 G91 while (global.weldtorchstate == 1) ; maybe an if-condition would be better here? G1 H4 U99999 F1000 ;selects the U axis & sets the feedrate G4 S0.2 ; this delay should be related to the while(true) loop
-
-
@OwenD said in Multiple motion system homing malfunction:
You have no indentation in your second while statement.
Thanks Owen
By changing the indentation was able to get it right
-
@oliof said in Multiple motion system homing malfunction:
daemon.g while (true) M596 P1 G91 while (global.weldtorchstate == 1) ; maybe an if-condition would be better here? G1 H4 U99999 F1000 ;selects the U axis & sets the feedrate G4 S0.2 ; this delay should be related to the while(true) loop
Thanks Oliof
Its good now
-