Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate Machine.h for CNC_xPRO_V5_XYYZ_NC #1324

Open
synman opened this issue Nov 26, 2022 · 3 comments
Open

Translate Machine.h for CNC_xPRO_V5_XYYZ_NC #1324

synman opened this issue Nov 26, 2022 · 3 comments

Comments

@synman
Copy link

synman commented Nov 26, 2022

This issue will automatically convert a Grbl_Esp32 machine definition file to FluidNC YAML format.

Change YOUR NAME in the title to some string that identifies your machine configuration.

IMPORTANT: Change only the YOUR NAME part of the title, not the entire title. If you change the entire title, GitHub will not run the converter program.

Attach your machine definition file here - but first change the .h extension to .txt because GitHub will not allow you to attach a file with a .h extension. Submit the issue, and after a few minutes, a new comment will appear with the FluidNC YAML file.

IMPORTANT: Attach the file - do not paste the file text into the issue. If you paste, the converter will not work.
CNC_xPRO_V5_XYYZ_NC.txt

@github-actions
Copy link

Dear synman,
we converted your machine header-file CNC_xPRO_V5_XYYZ_NC.txt into a corresponding fluidNc yaml-file.
Please copy the following content into your config.yaml file and upload the file to your esp32.

name: CNC_xPRO_V5_XYYZ_NC
board: unknown

kinematics:
  Cartesian:

stepping:
  engine: RMT
  idle_ms: 255
  dir_delay_us: 0
  pulse_us: 4
  disable_delay_us: 0

axes:
  x:
    steps_per_mm: 200.000
    max_rate_mm_per_min: 2500.000
    acceleration_mm_per_sec2: 50.000
    max_travel_mm: 300.000
    soft_limits: false
    homing:
      cycle: 2
      mpos_mm: 0.000
      positive_direction: true
      settle_ms: 250.000
      seek_mm_per_min: 2000.000
      feed_mm_per_min: 200.000
      seek_scaler: 1.100
      feed_scaler: 5.000
    motor0:
      limit_all_pin: gpio.35:low
      hard_limits: false
      tmc_5160:
        direction_pin: gpio.14
        step_pin: gpio.12
        run_amps: 1.800
        hold_amps: 0.250
        microsteps: 8
        stallguard: 16
        stallguard_debug: false
        run_mode: CoolStep
        homing_mode: CoolStep
        use_enable: true
        toff_disable: 0
        toff_stealthchop: 5
        toff_coolstep: 3
        r_sense_ohms: 0.050
        cs_pin: gpio.17:low
        spi_index: 1
    motor1:
      null_motor:
  y:
    steps_per_mm: 200.000
    max_rate_mm_per_min: 2500.000
    acceleration_mm_per_sec2: 50.000
    max_travel_mm: 300.000
    soft_limits: false
    homing:
      cycle: 2
      mpos_mm: 0.000
      positive_direction: true
      settle_ms: 250.000
      seek_mm_per_min: 2000.000
      feed_mm_per_min: 200.000
      seek_scaler: 1.100
      feed_scaler: 5.000
    motor0:
      limit_all_pin: gpio.34:low
      hard_limits: false
      tmc_5160:
        direction_pin: gpio.26
        step_pin: gpio.27
        run_amps: 1.800
        hold_amps: 0.250
        microsteps: 8
        stallguard: 16
        stallguard_debug: false
        run_mode: CoolStep
        homing_mode: CoolStep
        use_enable: true
        toff_disable: 0
        toff_stealthchop: 5
        toff_coolstep: 3
        r_sense_ohms: 0.050
        spi_index: 2
    motor1:
      tmc_5160:
        direction_pin: gpio.32
        step_pin: gpio.33
        run_amps: 1.800
        hold_amps: 0.250
        microsteps: 8
        stallguard: 16
        stallguard_debug: false
        run_mode: CoolStep
        homing_mode: CoolStep
        use_enable: true
        toff_disable: 0
        toff_stealthchop: 5
        toff_coolstep: 3
        r_sense_ohms: 0.050
        spi_index: 3
  z:
    steps_per_mm: 200.000
    max_rate_mm_per_min: 2500.000
    acceleration_mm_per_sec2: 50.000
    max_travel_mm: 300.000
    soft_limits: false
    homing:
      cycle: 1
      mpos_mm: 0.000
      positive_direction: false
      settle_ms: 250.000
      seek_mm_per_min: 2000.000
      feed_mm_per_min: 200.000
      seek_scaler: 1.100
      feed_scaler: 5.000
    motor0:
      limit_all_pin: gpio.39:low
      hard_limits: false
      tmc_5160:
        direction_pin: gpio.2
        step_pin: gpio.15
        run_amps: 1.800
        hold_amps: 0.250
        microsteps: 8
        stallguard: 16
        stallguard_debug: false
        run_mode: CoolStep
        homing_mode: CoolStep
        use_enable: true
        toff_disable: 0
        toff_stealthchop: 5
        toff_coolstep: 3
        r_sense_ohms: 0.050
        spi_index: 4
    motor1:
      null_motor:

spi:
  miso_pin: gpio.19
  mosi_pin: gpio.23
  sck_pin: gpio.18

sdcard:
  cs_pin: gpio.5

control:
  safety_door_pin: gpio.16:pu
  macro1_pin: gpio.13:low:pu
  macro2_pin: gpio.0:low:pu

coolant:
  mist_pin: gpio.21
  delay_ms: 1000.000

probe:
  pin: gpio.22:low:pu
  check_mode_start: false

macros:
  startup_line0: 
  startup_line1: 
  macro0: 
  macro1: 
  macro2: 
  macro3: 

start:
  must_home: true
  check_limits: true
  deactivate_parking: false

user_outputs:
arc_tolerance_mm: 0.002
junction_deviation_mm: 0.010
verbose_errors: false
report_inches: false
enable_parking_override_control: false
use_line_numbers: false 

@synman
Copy link
Author

synman commented Nov 27, 2022

This did not go well. I had to adapt the config.yaml for the xPro provided in the wiki and had to fall back a couple versions in fluidnc to get it to recognize my stepper drivers.

@MitchBradley
Copy link
Collaborator

Report such issues on the FluidNC github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants