Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. johonline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 1
    • Controversial 0
    • Groups 0

    johonline

    @johonline

    2
    Reputation
    3
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location AT

    johonline Unfollow Follow

    Best posts made by johonline

    • RE: save tooloffsets on SD

      @johonline
      My solution to measure the nozzle tip on the tool changer with a 2nd micro switch on the edge of the print bed (in series in the micro switch on the tool carrier). --> I no longer need to adjust the microsteps! (the nozzle and the bed should be hot!)

      T-1
      M98 P"homez.g"			; Home Z
      G90
      G1 Z10
      G1 X309.5 Y205 Z10 F50000
      G30 S-1
      var null_Z = move.axes[2].machinePosition 0.03;   0.1 eng   -0.6 weit
      
      G1 Y190 Z10
      
      T0
      G90
      G1 Z10
      G1 X309.5 Y200 Z10 F50000
      G1 X309.5 Y205 Z10 F50000
      G30 S-1
      var tool_Z0 = var.null_Z - move.axes[2].machinePosition
      G10 P0 Z{var.tool_Z0}
      G1 Y190 Z10
      
      
      T1
      G90
      G1 Z10
      G1 X309.5 Y200 Z10 F50000
      G1 X309.5 Y205 Z10 F50000
      G30 S-1
      var tool_Z1 = var.null_Z - move.axes[2].machinePosition
      G10 P1 Z{var.tool_Z1}
      G1 Y190 Z10
      
      
      T2
      G90
      G1 Z10
      G1 X309.5 Y200 Z10 F50000
      G1 X309.5 Y205 Z10 F50000
      G30 S-1
      var tool_Z2 = var.null_Z - move.axes[2].machinePosition
      G10 P2 Z{var.tool_Z2}
      G1 Y190 Z10
      
      
      T3
      G90
      G1 Z10
      G1 X309.5 Y200 Z10 F50000
      G1 X309.5 Y205 Z10 F50000
      G30 S-1
      var tool_Z3 = var.null_Z - move.axes[2].machinePosition
      G10 P3 Z{var.tool_Z3}
      
      G1 Y190 Z10
      
      T-1
      
      M500 P10
      
      
      
      

      DSC_2135.JPG

      posted in Gcode meta commands
      johonlineundefined
      johonline

    Latest posts made by johonline

    • Duet 2 and Duex5 different temperature (Toolchanger)

      If I connect the same temperature sensor to the Duet 2, it shows a temperature that is 15° higher than the temperature connected to the Duex 5.

      config.g

      ;....
      
      M308 S1 P"e0temp" Y"thermistor" A"T0" T100000 B4725 C7.06e-8 	; Set thermistor
      M950 H1 C"e0heat" T1						; Extruder 0 heater
      M143 H1 S355 							; Set temperature limit for heater 1 
      
      M308 S2 P"e1temp" Y"thermistor" A"T1" T100000 B4725 C7.06e-8 	; Set thermistor
      M950 H2 C"e1heat" T2						; Extruder 0 heater
      M143 H2 S355 							; Set temperature limit for heater 2
      
      M308 S3 P"e2temp" Y"thermistor" A"T2" T100000 B4725 C7.06e-8	; Set thermistor
      M950 H3 C"duex.e2heat" T3					; Extruder 0 heater
      M143 H3 S355 							; Set temperature limit for heater 3 
      
      M308 S4 P"e3temp" Y"thermistor" A"T3" T100000 B4725 C7.06e-8	; Set thermistor
      M950 H4 C"duex.e3heat" T4					; Extruder 0 heater
      M143 H4 S355 							; Set temperature limit for heater 4 
      
      ;......
      
      posted in Duet Hardware and wiring
      johonlineundefined
      johonline
    • RE: save tooloffsets on SD

      @johonline
      My solution to measure the nozzle tip on the tool changer with a 2nd micro switch on the edge of the print bed (in series in the micro switch on the tool carrier). --> I no longer need to adjust the microsteps! (the nozzle and the bed should be hot!)

      T-1
      M98 P"homez.g"			; Home Z
      G90
      G1 Z10
      G1 X309.5 Y205 Z10 F50000
      G30 S-1
      var null_Z = move.axes[2].machinePosition 0.03;   0.1 eng   -0.6 weit
      
      G1 Y190 Z10
      
      T0
      G90
      G1 Z10
      G1 X309.5 Y200 Z10 F50000
      G1 X309.5 Y205 Z10 F50000
      G30 S-1
      var tool_Z0 = var.null_Z - move.axes[2].machinePosition
      G10 P0 Z{var.tool_Z0}
      G1 Y190 Z10
      
      
      T1
      G90
      G1 Z10
      G1 X309.5 Y200 Z10 F50000
      G1 X309.5 Y205 Z10 F50000
      G30 S-1
      var tool_Z1 = var.null_Z - move.axes[2].machinePosition
      G10 P1 Z{var.tool_Z1}
      G1 Y190 Z10
      
      
      T2
      G90
      G1 Z10
      G1 X309.5 Y200 Z10 F50000
      G1 X309.5 Y205 Z10 F50000
      G30 S-1
      var tool_Z2 = var.null_Z - move.axes[2].machinePosition
      G10 P2 Z{var.tool_Z2}
      G1 Y190 Z10
      
      
      T3
      G90
      G1 Z10
      G1 X309.5 Y200 Z10 F50000
      G1 X309.5 Y205 Z10 F50000
      G30 S-1
      var tool_Z3 = var.null_Z - move.axes[2].machinePosition
      G10 P3 Z{var.tool_Z3}
      
      G1 Y190 Z10
      
      T-1
      
      M500 P10
      
      
      
      

      DSC_2135.JPG

      posted in Gcode meta commands
      johonlineundefined
      johonline
    • RE: save tooloffsets on SD

      Thanks
      I can use both solutions in my project.

      posted in Gcode meta commands
      johonlineundefined
      johonline
    • save tooloffsets on SD

      I wrote a macro that takes the offset position from the current position (over a permanently installed camera) using G10.

      ;_Cam_XYset.g
      ;setze Offset X, Y für das aktive Tool
      
      var curX = 310 - move.axes[0].machinePosition
      var curY = -3 - move.axes[1].machinePosition
      
      if !(state.currentTool == -1)
      	G10 P{state.currentTool} X{var.curX} Y{var.curY} 
      

      it works fine.

      now I would like to automatically write the values to a file (e.g.:XYZ_offsete.g). But my attempt does not resolve the variables.

      ;save_offsets.g
      
      M28 "0:/sys/xyz_offset.g"
      
      G10 P0 X{tools[0].offsets[0]} Y{tools[0].offsets[1]} Z{tools[0].offsets[2]}        ; T0
      G10 P1 X{tools[1].offsets[0]} Y{tools[1].offsets[1]} Z{tools[1].offsets[2]}        ; T1
      G10 P2 X{tools[2].offsets[0]} Y{tools[2].offsets[1]} Z{tools[2].offsets[2]}        ; T2
      G10 P3 X{tools[3].offsets[0]} Y{tools[3].offsets[1]} Z{tools[3].offsets[2]}        ; T3
      
      
      M29 "0:/sys/xyz_offset.g"
      

      returns

      ;xyz_offset.g"
      
      G10 P0 X{tools[0].offsets[0]} Y{tools[0].offsets[1]} Z{tools[0].offsets[2]}
      G10 P1 X{tools[1].offsets[0]} Y{tools[1].offsets[1]} Z{tools[1].offsets[2]} 
      G10 P2 X{tools[2].offsets[0]} Y{tools[2].offsets[1]} Z{tools[2].offsets[2]}  
      G10 P3 X{tools[3].offsets[0]} Y{tools[3].offsets[1]} Z{tools[3].offsets[2]} 
      

      but it should return like that

      G10 P0 X19.85 Y43.7 Z-7.68	     
      G10 P1 X20.45 Y44 Z-6.71	
      G10 P2 X20.15 Y44 Z-7.46	
      G10 P3 X21.25 Y43.7 Z-6.99		
      
      
      posted in Gcode meta commands
      johonlineundefined
      johonline