Spark-Concepts / xPro-V5

xPro-V5 CNC Motion Control System Documentation and User Information
42 stars 19 forks source link

All attempts to Change or view $ settings result in Error: 3 Invalid Statement #221

Open xProNewb opened 1 year ago

xProNewb commented 1 year ago

Bulkman Ultimate Bee, connected using CNCjs via USB. CNC_xPRO_V5_XYYZ_NC.bin firmware. Despite the firmware version and definitely having a normally closed E-stop switch, CNCjs requires the E-stop to be in the open position in order to jog any axes. The xPro unit shows a red led for the E-stop when open (depressed) but the jog controls still function. All axes can be moved successfully using the CNCjs or WebUI (using Wifi connection) controls when the E-stop button is depressed

Another issue is that any attempt to view or change any settings results in Error 3: Invalid statement.

VFD and Spindle aren't connected yet.

I tried a full reset using the procedure in issue #51

config.yaml

board: XPro V5 name: xPro V5 Ondrej stepping: engine: RMT idle_ms: 255 pulse_us: 4 dir_delay_us: 1 disable_delay_us: 0

axes: shared_stepper_disable_pin: NO_PIN x: steps_per_mm: 159.600 max_rate_mm_per_min: 2500.000 acceleration_mm_per_sec2: 100.000 max_travel_mm: 722.00 soft_limits: false homing: cycle: 2 positive_direction: false mpos_mm: 150.000 feed_mm_per_min: 100.000 seek_mm_per_min: 2000.000 settle_ms: 500 seek_scaler: 1.100 feed_scaler: 1.100

motor0:
  limit_neg_pin: gpio.35:low
  limit_pos_pin: NO_PIN
  limit_all_pin: NO_PIN
  hard_limits: false
  pulloff_mm: 2.500
  tmc_5160:
    step_pin: gpio.12
    direction_pin: gpio.14:low
    use_enable: true
    cs_pin: gpio.17
    spi_index: 1
    r_sense_ohms: 0.050
    run_amps: 1.800
    hold_amps: 0.250
    microsteps: 8
    toff_disable: 0
    toff_stealthchop: 5
    run_mode: CoolStep
    homing_mode: CoolStep
    stallguard: 16
    stallguard_debug: false
    toff_coolstep: 3
    tpfd: 4

y: steps_per_mm: 160.100 max_rate_mm_per_min: 2500.000 acceleration_mm_per_sec2: 100.000 max_travel_mm: 1252.000 soft_limits: false homing: cycle: 2 positive_direction: false mpos_mm: 150.000 feed_mm_per_min: 100.000 seek_mm_per_min: 2000.000 settle_ms: 500 seek_scaler: 1.100 feed_scaler: 1.100

motor0:
  limit_neg_pin: gpio.34:low
  limit_pos_pin: NO_PIN
  limit_all_pin: NO_PIN
  hard_limits: false
  pulloff_mm: 2.500
  tmc_5160:
    step_pin: gpio.27
    direction_pin: gpio.26
    use_enable: true
    cs_pin: NO_PIN
    spi_index: 2
    r_sense_ohms: 0.050
    run_amps: 1.800
    hold_amps: 0.250
    microsteps: 8
    toff_disable: 0
    toff_stealthchop: 5
    run_mode: CoolStep
    homing_mode: CoolStep
    stallguard: 16
    stallguard_debug: false
    toff_coolstep: 3
    tpfd: 4

motor1:
  limit_neg_pin: NO_PIN
  limit_pos_pin: NO_PIN
  limit_all_pin: NO_PIN
  hard_limits: false
  pulloff_mm: 2.5000
  tmc_5160:
    step_pin: gpio.33
    direction_pin: gpio.32
    use_enable: true
    cs_pin: NO_PIN
    spi_index: 3
    r_sense_ohms: 0.050
    run_amps: 1.800
    hold_amps: 0.250
    microsteps: 8
    toff_disable: 0
    toff_stealthchop: 5
    run_mode: CoolStep
    homing_mode: CoolStep
    stallguard: 16
    stallguard_debug: false
    toff_coolstep: 3
    tpfd: 4

z: steps_per_mm: 400.000 max_rate_mm_per_min: 1500.000 acceleration_mm_per_sec2: 50.000 max_travel_mm: 300.000 soft_limits: false homing: cycle: 1 positive_direction: true mpos_mm: 150.000 feed_mm_per_min: 100.000 seek_mm_per_min: 500.000 settle_ms: 500 seek_scaler: 1.100 feed_scaler: 1.100

motor0:
  limit_neg_pin: gpio.39:low
  limit_pos_pin: NO_PIN
  limit_all_pin: NO_PIN
  hard_limits: false
  pulloff_mm: 2.500
  tmc_5160:
    step_pin: gpio.15
    direction_pin: gpio.2:low
    use_enable: true
    cs_pin: NO_PIN
    spi_index: 4
    r_sense_ohms: 0.050
    run_amps: 1.800
    hold_amps: 0.250
    microsteps: 8
    toff_disable: 0
    toff_stealthchop: 5
    run_mode: CoolStep
    homing_mode: CoolStep
    stallguard: 16
    stallguard_debug: false
    toff_coolstep: 3
    tpfd: 4

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

sdcard: card_detect_pin: NO_PIN cs_pin: gpio.5 frequency_hz: 10000000

probe: pin: gpio.22:low check_mode_start: true

control: safety_door_pin: gpio.16:low macro0_pin: gpio.13:low macro1_pin: gpio.0:low

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

start: must_home: false

coolant: mist_pin: gpio.21 delay_ms: 0

For spindle configuration remove the "#" preceding your spindle type BELOW...

pwm:

pwm_hz: 5000

direction_pin: NO_PIN

output_pin: gpio.25

enable_pin: gpio.4

disable_with_s0: false

s0_with_disable: true

spinup_ms: 0

spindown_ms: 0

tool_num: 0

speed_map: 0=0.000% 100=100.000%

Huanyang: uart: txd_pin: gpio.25 rxd_pin: gpio.4 rts_pin: NO_PIN baud: 9600 mode: 8N1 modbus_id: 1 tool_num: 0 speed_map: 0=0% 0=25% 6000=25% 24000=100% off_on_alarm: false

YL620:

uart:

txd_pin: gpio.25

rxd_pin: gpio.4

rts_pin: NO_PIN

baud: 9600

mode: 8N1

modbus_id: 1

tool_num: 0

speed_map: 0=0% 0=25% 6000=25% 24000=100%

off_on_alarm: false

Screenshot 2023-07-02 230702 Screenshot 2023-07-02 231933 Screenshot 2023-07-02 232049 Screenshot 2023-07-02 232325 Screenshot 2023-07-02 232437 Screenshot 2023-07-02 232534

xProNewb commented 1 year ago

In addition, I've tried both NO and NC firmware as well as CNC_xPRO_V5_XYYZ_485_NC.bin. Using the newest NC firmware the internal door stop jumper needs to be set to "disabled" in order for the machine to jog. If it is set to "enabled" no movement occurs. $RST=* has been tried as well.