Just place these in the controls section of config.yaml.
Bed Calibration:
Code: Select all
- children:
  - commands:
    - G28
    - G0 Z%(height)s F1500
    input:
    - default: 5
      name: Height
      parameter: height
    name: Move Z
    type: parametric_commands
  - commands:
    - G28
    - G0 X0 Y90 Z%(height)s F1500
    input:
    - default: 5
      name: G0 X0 Y90 Z
      parameter: height
    name: Zero Z axis
    type: parametric_commands
  - commands:
    - G28
    - G0 X77.94 Y-45 Z%(height)s F1500
    input:
    - default: 5
      name: G0 X77.94 Y-45 Z
      parameter: height
    name: Zero Y Axis
    type: parametric_commands
  - commands:
    - G28
    - G0 X-77.94 Y-45 Z%(height)s F1500
    input:
    - default: 5
      name: G0 X-77.94 Y-45 Z
      parameter: height
    name: Zero X Axis
    type: parametric_commands
  name: Calibrate
  type: section
Basically, enter a value into the box and it will lower the nozzle to that height at which ever calibration point you want. From there use the LCD to lower it step by step.
EEPROM Updater
Code: Select all
- children:
  - commands:
    - M206 T3 P145 X%(maxLength)s
    - M206 T3 P149 X%(maxLength)s
    - M206 T3 P153 X%(maxLength)s
    - M500
    - G28
    input:
    - default: null
      name: Max Z height
      parameter: maxLength
    name: Set XYZ max length
    type: parametric_commands
  - commands:
    - M206 T%(type)s P%(location)s X%(value)s
    - M500
    - G28
    input:
    - default: null
      name: Type
      parameter: type
    - defualt: null
      name: Location
      parameter: location
    - default: null
      name: Value
      parameter: value
    name: EEPROM
    type: parametric_commands
  - commands:
    - M206 T3 P218 X%(pgain)s
    - M206 T3 P222 X%(igain)s
    - M206 T3 P226 X%(dgain)s
    - M500
    input:
    - default: null
      name: P-gain
      parameter: pgain
    - default: null
      name: I-gain
      parameter: igain
    - default: null
      name: D-gain
      parameter: dgain
    name: Update PID
    type: parametric_commands
  name: Set EEPROM
  type: section
- children:
  - command: M114
    name: Get Position
    regex: X:([0-9.-]+) Y:([0-9.-]+) Z:([0-9.-]+) E:([0-9.-]+)
    template: 'Position: X={0}, Y={1}, Z={2}, E={3}'
    type: feedback_command
  - command: M503
    name: Get EEPROM
    type: command
  - name: Z Height
    regex: EPR:([0-9.-]+) ([0-9.-]+) ([0-9.-]+) X max length
    template: ' {2} |Type: {1}  | Location: {0}'
    type: feedback
  - command: M503
    name: P-Gain
    regex: EPR:([0-9.-]+) ([0-9.-]+) ([0-9.-]+) Extr.1 PID P-gain
    template: ' {2} |Type: {1}  | Location: {0}'
    type: feedback
  - command: M503
    name: I-Gain
    regex: EPR:([0-9.-]+) ([0-9.-]+) ([0-9.-]+) Extr.1 PID I-gain
    template: ' {2} |Type: {1}  | Location: {0}'
    type: feedback
  - command: M503
    name: D-Gain
    regex: EPR:([0-9.-]+) ([0-9.-]+) ([0-9.-]+) Extr.1 PID D-gain
    template: '{2}  |Type: {1}  | Location: {0}'
    type: feedback
  - name: Printer Radius
    regex: EPR:([0-9.-]+) ([0-9.-]+) ([0-9.-]+) Horizontal radius
    template: '{2}  |Type: {1}  | Location: {0}'
    type: feedback
  name: Reporting
  type: section