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

UGS wont connect under FluidNC drop down #2604

Open
itsnotlevel1 opened this issue Sep 8, 2024 · 8 comments
Open

UGS wont connect under FluidNC drop down #2604

itsnotlevel1 opened this issue Sep 8, 2024 · 8 comments

Comments

@itsnotlevel1
Copy link

Version

2.1.8

Hardware / Firmware

FluidNC

What happened

UGS Wont connect to machine using the FluidNC drop down, it keeps telling me...
*** Fetching device settings
*** Could not establish connection with the controller
*** Connection closed
*** Could not establish connection with the controller

But when I choose grbl esp32 from the drop down, it connects and runs fine. Runs a job if I load it.
I tried everything thinking it was a hardware issue, its not a hardware issue that I can see.

How to reproduce

If I choose FluidNC from drop down, it will not connect and gives the same response. But grbl esp32 connects every time and works with the machine.

Operating System

Windows 11 Pro

Anything else

Every time.

@breiler
Copy link
Collaborator

breiler commented Sep 9, 2024

What is the output of $I?

@itsnotlevel1
Copy link
Author

[VER:3.8 FluidNC v3.8.2:]
[OPT:MPHS]
[MSG:Machine: xPro V5 ]
[MSG:Mode=STA:SSID=Garage3_EXT:Status=Connected:IP=10.0.0.122:MAC=8C-4B-14-BB-D6-6C]
ok

@breiler
Copy link
Collaborator

breiler commented Sep 10, 2024

Worked just fine for me:
image

What is the controller state after you connected using the GRBL_ESP32 profile?

Can you disconnect, enable verbose logging (right click in console and select "Enable verbose logging") and connect again with the FluidNC profile and paste the messages here.

Can you attach your config.yaml.

@itsnotlevel1
Copy link
Author

After Connecting to grblesp32 profile, the machine and controller are ready to be used. Ive run a program with it.

Heres the output of Fluidnc connection profile:
*** Connecting to jserialcomm://COM3:115200
Other: ets Jun 8 2016 00:22:57
Other:
Other: rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
Other: configsip: 0, SPIWP:0xee
Other: clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
Other: mode:DIO, clock div:1
Other: load:0x3fff0030,len:1184
Other: load:0x40078000,len:13260
Other: load:0x40080400,len:3028
Other: entry 0x400805e4
INFO: uart_channel0 created
RST
INFO: FluidNC v3.8.2 https://github.com/bdring/FluidNC
INFO: Compiled with ESP32 SDK:v4.4.7-dirty
INFO: Local filesystem type is littlefs
INFO: Configuration file:config.yaml
INFO: Machine xPro V5
INFO: Board XPro V5
INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19
INFO: SD Card cs_pin:gpio.5 detect:NO_PIN freq:10000000
INFO: Stepping:RMT Pulse:4us Dsbl Delay:0us Dir Delay:1us Idle Delay:255ms
INFO: Axis count 3
INFO: Axis X (-1264.000,0.000)
INFO: Motor0
INFO: tmc_5160 Step:gpio.12 Dir:gpio.14 CS:gpio.17 Disable:NO_PIN Index:1 R:0.050
INFO: X Neg Limit gpio.35
INFO: Axis Y (-1289.000,0.000)
INFO: Motor0
INFO: tmc_5160 Step:gpio.27 Dir:gpio.26:low CS:NO_PIN Disable:NO_PIN Index:2 R:0.050
INFO: Y Neg Limit gpio.34
INFO: Motor1
INFO: tmc_5160 Step:gpio.33 Dir:gpio.32:low CS:NO_PIN Disable:NO_PIN Index:3 R:0.050
INFO: Axis Z (-127.000,0.000)
INFO: Motor0
INFO: tmc_5160 Step:gpio.15 Dir:gpio.2 CS:NO_PIN Disable:NO_PIN Index:4 R:0.050
INFO: Z Neg Limit gpio.39
INFO: X Axis driver test passed
INFO: Y Axis driver test passed
INFO: Y2 Axis driver test passed
INFO: Z Axis driver test passed
INFO: safety_door_pin gpio.16
INFO: macro0_pin gpio.13:low
INFO: macro1_pin gpio.0:low
INFO: Kinematic system: Cartesian
INFO: Connecting to STA SSID:Garage3_EXT
INFO: Connecting.
*** Fetching device status

?
[MSG:INFO: Connecting..]
INFO: Connected - IP is 10.0.0.122
INFO: WiFi on
INFO: Start mDNS with hostname:http://fluidnc.local/
INFO: HTTP started on port 80
*** Fetching device status (2 of 10)...
?
[MSG:INFO: Telnet started on port 23]
INFO: UART1 Tx:gpio.4 Rx:gpio.25 RTS:NO_PIN Baud:9600
INFO: Huanyang Spindle Tx:gpio.4 Rx:gpio.25 RTS:NO_PIN Baud:9600
INFO: Mist coolant gpio.21
INFO: Probe gpio.22:low
Other:
Grbl 3.8 [FluidNC v3.8.2 (noradio) '$' for help]
*** Fetching device status
?
<Idle|MPos:0.000,0.000,0.000|FS:0,0|WCO:-1238.600,-1250.900,-76.200>
Other: ok

ok
*** Fetching device firmware version

$I
[VER:3.8 FluidNC v3.8.2:]
[OPT:MPHS]
[MSG:Machine: xPro V5 ]
[MSG:Mode=STA:SSID=Garage3_EXT:Status=Connected:IP=10.0.0.122:MAC=8C-4B-14-BB-D6-6C]
ok
Other: [OPT:MPHS]
Machine: xPro V5
Mode=STA:SSID=Garage3_EXT:Status=Connected:IP=10.0.0.122:MAC=8C-4B-14-BB-D6-6C
Other: ok
INFO: Huanyang PD0011, PD005 Freq range (100,400) Hz (6000,24000) RPM
$Startup/Show
[MSG:INFO: FluidNC v3.8.2 https://github.com/bdring/FluidNC]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.7-dirty]
[MSG:INFO: Local filesystem type is littlefs]
[MSG:INFO: Configuration file:config.yaml]
[MSG:INFO: Machine xPro V5 ]
[MSG:INFO: Board XPro V5]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cs_pin:gpio.5 detect:NO_PIN freq:10000000]
[MSG:INFO: Stepping:RMT Pulse:4us Dsbl Delay:0us Dir Delay:1us Idle Delay:255ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Axis X (-1264.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: tmc_5160 Step:gpio.12 Dir:gpio.14 CS:gpio.17 Disable:NO_PIN Index:1 R:0.050]
[MSG:INFO: X Neg Limit gpio.35]
[MSG:INFO: Axis Y (-1289.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: tmc_5160 Step:gpio.27 Dir:gpio.26:low CS:NO_PIN Disable:NO_PIN Index:2 R:0.050]
[MSG:INFO: Y Neg Limit gpio.34]
[MSG:INFO: Motor1]
[MSG:INFO: tmc_5160 Step:gpio.33 Dir:gpio.32:low CS:NO_PIN Disable:NO_PIN Index:3 R:0.050]
[MSG:INFO: Axis Z (-127.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: tmc_5160 Step:gpio.15 Dir:gpio.2 CS:NO_PIN Disable:NO_PIN Index:4 R:0.050]
[MSG:INFO: Z Neg Limit gpio.39]
[MSG:INFO: X Axis driver test passed]
[MSG:INFO: Y Axis driver test passed]
[MSG:INFO: Y2 Axis driver test passed]
[MSG:INFO: Z Axis driver test passed]
[MSG:INFO: safety_door_pin gpio.16]
[MSG:INFO: macro0_pin gpio.13:low]
[MSG:INFO: macro1_pin gpio.0:low]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: Connecting to STA SSID:Garage3_EXT]
[MSG:INFO: Connecting.]
[MSG:INFO: Connecting..]
[MSG:INFO: Connected - IP is 10.0.0.122]
[MSG:INFO: WiFi on]
[MSG:INFO: Start mDNS with hostname:http://fluidnc.local/]
[MSG:INFO: HTTP started on port 80]
[MSG:INFO: Telnet started on port 23]
[MSG:INFO: UART1 Tx:gpio.4 Rx:gpio.25 RTS:NO_PIN Baud:9600]
[MSG:INFO: Huanyang Spindle Tx:gpio.4 Rx:gpio.25 RTS:NO_PIN Baud:9600]
[MSG:INFO: Mist coolant gpio.21]
[MSG:INFO: Probe gpio.22:low]
ok
INFO: Probe gpio.22:low
Other: ok
*** Fetching device status codes
$Errors/List
0: No error
1: Expected GCodecommand letter
2: Bad GCode number format
3: Invalid $ statement
4: Negative value
5: Setting disabled
6: Step pulse too short
7: Failed to read settings
8: Command requires idle state
9: GCode cannot be executed in lock or alarm state
10: Soft limit error
11: Line too long
12: Max step rate exceeded
13: Check door
14: Startup line too long
15: Max travel exceeded during jog
16: Invalid jog command
17: Laser mode requires PWM output
18: No Homing/Cycle defined in settings
19: Single axis homing not allowed
20: Unsupported GCode command
21: Gcode modal group violation
22: Gcode undefined feed rate
23: Gcode command value not integer
24: Gcode axis command conflict
25: Gcode word repeated
26: Gcode no axis words
27: Gcode invalid line number
28: Gcode value word missing
29: Gcode unsupported coordinate system
30: Gcode G53 invalid motion mode
[MSG:INFO: Huanyang PD144 Rated RPM @ 50Hz:3000]
31: Gcode extra axis words
32: Gcode no axis words in plane
33: Gcode invalid target
34: Gcode arc radius error
35: Gcode no offsets in plane
36: Gcode unused words
37: Gcode G43 dynamic axis error
38: Gcode max value exceeded
39: P param max exceeded
40: Check control pins
60: Failed to mount device
61: Read failed
62: Failed to open directory
63: Directory not found
64: File empty
65: File not found
66: Failed to open file
67: Device is busy
68: Failed to delete directory
69: Failed to delete file
70: Failed to rename file
80: Number out of range for setting
81: Invalid value for setting
82: Failed to create file
83: Failed to format filesystem
90: Failed to send message
100: Failed to store setting
101: Failed to get setting status
110: Authentication failed!
111: End of line
112: End of file
113: System Reset
114: No Data
120: Another interface is busy
130: Jog Cancelled
150: Bad Pin Specification
151: Bad Runtime Config Setting
152: Configuration is invalid. Check boot messages for ERR's.
160: File Upload Failed
161: File Download Failed
162: Read-only setting
170: Expression Divide By Zero
171: Expression Invalid Argument
173: Expression Unknown Operator
174: Expression Argument Out of Range
175: Expression Syntax Error
176: Flow Control Syntax Error
177: Flow Control Not Executing Macro
178: Flow Control Out of Memory
179: Flow Control Stack Overflow
180: Parameter Assignment Failed
ok
Other: 180: Parameter Assignment Failed
Other: ok
$Alarms/List
0: None
1: Hard Limit
2: Soft Limit
3: Abort Cycle
4: Probe Fail Initial
5: Probe Fail Contact
6: Homing Fail Reset
7: Homing Fail Door
8: Homing Fail Pulloff
9: Homing Fail Approach
10: Spindle Control
11: Control Pin Initially On
12: Ambiguous Switch
13: Hard Stop
14: Unhomed
15: Init
ok
Other: 13: Hard Stop
Other: 14: Unhomed
Other: 15: Init
Other: ok
INFO: Huanyang PD143 Poles:2
*** Fetching device state
$GCode/Modes
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]
ok
Other: ok
$verbose_errors=true
ok
*** Fetching device settings
$Config/Dump
board: XPro V5
name: xPro V5
meta:
stepping:
engine: RMT
idle_ms: 255
pulse_us: 4
dir_delay_us: 1
disable_delay_us: 0
segments: 12

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

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

kinematics:
Cartesian:

axes:
shared_stepper_disable_pin: NO_PIN
shared_stepper_reset_pin: NO_PIN
homing_runs: 2
x:
steps_per_mm: 160.000000
max_rate_mm_per_min: 4000.000000
acceleration_mm_per_sec2: 250.000000
max_travel_mm: 1264.000000
soft_limits: true
homing:
cycle: 2
allow_single_axis: true
positive_direction: true
[MSG:INFO: Huanyang PD014 Accel:5.000]
mpos_mm: 0.000000
feed_mm_per_min: 300.000000
seek_mm_per_min: 3000.000000
settle_ms: 500
seek_scaler: 1.100000
feed_scaler: 1.100000

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

y:
steps_per_mm: 160.000000
max_rate_mm_per_min: 4000.000000
acceleration_mm_per_sec2: 250.000000
max_travel_mm: 1289.000000
soft_limits: true
homing:
cycle: 2
allow_single_axis: true
positive_direction: true
mpos_mm: 0.000000
feed_mm_per_min: 300.000000
seek_mm_per_min: 3000.000000
settle_ms: 500
seek_scaler: 1.100000
feed_scaler: 1.100000

motor0: 
  limit_neg_pin: gpio.34
  limit_pos_pin: NO_PIN
  limit_all_pin: NO_PIN
  hard_limits: false
  pulloff_mm: 3.175000
  tmc_5160: 
    step_pin: gpio.27
    direction_pin: 'gpio.26:low'
    disable_pin: NO_PIN
    r_sense_ohms: 0.050000
    run_amps: 2.120000
    hold_amps: 0.250000
    microsteps: 8
    toff_disable: 0
    toff_stealthchop: 5
    use_enable: true
    cs_pin: NO_PIN
    spi_index: 2
    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: 3.175000
  tmc_5160: 
    step_pin: gpio.33
    direction_pin: 'gpio.32:low'
    disable_pin: NO_PIN
    r_sense_ohms: 0.050000
    run_amps: 2.120000
    hold_amps: 0.250000
    microsteps: 8
    toff_disable: 0
    toff_stealthchop: 5
    use_enable: true
    cs_pin: NO_PIN
    spi_index: 3
    run_mode: CoolStep
    homing_mode: CoolStep
    stallguard: 16
    stallguard_debug: false
    toff_coolstep: 3
    tpfd: 4

z:
steps_per_mm: 400.000000
max_rate_mm_per_min: 2000.000000
acceleration_mm_per_sec2: 250.000000
max_travel_mm: 127.000000
soft_limits: false
homing:
cycle: 1
allow_single_axis: true
positive_direction: true
mpos_mm: 0.000000
feed_mm_per_min: 100.000000
seek_mm_per_min: 1000.000000
settle_ms: 500
seek_scaler: 1.100000
feed_scaler: 1.100000

motor0: 
  limit_neg_pin: gpio.39
  limit_pos_pin: NO_PIN
  limit_all_pin: NO_PIN
  hard_limits: false
  pulloff_mm: 3.175000
  tmc_5160: 
    step_pin: gpio.15
    direction_pin: gpio.2
    disable_pin: NO_PIN

[MSG:INFO: Huanyang PD015 Decel:5.000]
r_sense_ohms: 0.050000
run_amps: 2.120000
hold_amps: 0.250000
microsteps: 8
toff_disable: 0
toff_stealthchop: 5
use_enable: true
cs_pin: NO_PIN
spi_index: 4
run_mode: CoolStep
homing_mode: CoolStep
stallguard: 16
stallguard_debug: false
toff_coolstep: 3
tpfd: 4

control:
safety_door_pin: gpio.16
reset_pin: NO_PIN
feed_hold_pin: NO_PIN
cycle_start_pin: NO_PIN
macro0_pin: 'gpio.13:low'
macro1_pin: 'gpio.0:low'
macro2_pin: NO_PIN
macro3_pin: NO_PIN
fault_pin: NO_PIN

estop_pin: NO_PIN

coolant:
flood_pin: NO_PIN
mist_pin: gpio.21
delay_ms: 0

probe:
pin: 'gpio.22:low'
toolsetter_pin: NO_PIN
check_mode_start: true
hard_stop: false

macros:
startup_line0:
startup_line1:
Macro0:
Macro1:
Macro2:
Macro3:
after_homing:
after_reset:
after_unlock:

start:
must_home: false
deactivate_parking: false
check_limits: true

parking:
enable: false
axis: Z
target_mpos_mm: -5.000000
rate_mm_per_min: 800.000000
pullout_distance_mm: 5.000000
pullout_rate_mm_per_min: 250.000000

user_outputs:
analog0_pin: NO_PIN
analog1_pin: NO_PIN
analog2_pin: NO_PIN
analog3_pin: NO_PIN
analog0_hz: 5000
analog1_hz: 5000
analog2_hz: 5000
analog3_hz: 5000
digital0_pin: NO_PIN
digital1_pin: NO_PIN
digital2_pin: NO_PIN
digital3_pin: NO_PIN
digital4_pin: NO_PIN
digital5_pin: NO_PIN
digital6_pin: NO_PIN
digital7_pin: NO_PIN

web_commands:

wifi:

ota:

mdns:

wifi:

telnet_server:

notifications:

Huanyang:
uart:
txd_pin: gpio.4
rxd_pin: gpio.25
rts_pin: NO_PIN
cts_pin: NO_PIN
baud: 9600
mode: 8N1

modbus_id: 1
spinup_ms: 0
spindown_ms: 0
tool_num: 0
speed_map: 0=0.00% 0=25.00% 6000=25.00% 24000=100.00%
off_on_alarm: false
atc:
m6_macro:

arc_tolerance_mm: 0.002000
junction_deviation_mm: 0.010000
verbose_errors: true
report_inches: false
enable_parking_override_control: false
use_line_numbers: false
planner_blocks: 16
ok
Other: use_line_numbers: false
Other: planner_blocks: 16
Other: ok
*** Could not establish connection with the controller
*** Connection closed
*** Could not establish connection with the controller

This is the output and state of controller after connecting to grblesp32 profile:
*** Connecting to jserialcomm://COM3:115200
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x40080400,len:3028
entry 0x400805e4
[MSG:INFO: uart_channel0 created]
[MSG:RST]
[MSG:INFO: FluidNC v3.8.2 https://github.com/bdring/FluidNC]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.7-dirty]
[MSG:INFO: Local filesystem type is littlefs]
[MSG:INFO: Configuration file:config.yaml]
[MSG:INFO: Machine xPro V5 ]
[MSG:INFO: Board XPro V5]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cs_pin:gpio.5 detect:NO_PIN freq:10000000]
[MSG:INFO: Stepping:RMT Pulse:4us Dsbl Delay:0us Dir Delay:1us Idle Delay:255ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Axis X (-1264.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: tmc_5160 Step:gpio.12 Dir:gpio.14 CS:gpio.17 Disable:NO_PIN Index:1 R:0.050]
[MSG:INFO: X Neg Limit gpio.35]
[MSG:INFO: Axis Y (-1289.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: tmc_5160 Step:gpio.27 Dir:gpio.26:low CS:NO_PIN Disable:NO_PIN Index:2 R:0.050]
[MSG:INFO: Y Neg Limit gpio.34]
[MSG:INFO: Motor1]
[MSG:INFO: tmc_5160 Step:gpio.33 Dir:gpio.32:low CS:NO_PIN Disable:NO_PIN Index:3 R:0.050]
[MSG:INFO: Axis Z (-127.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: tmc_5160 Step:gpio.15 Dir:gpio.2 CS:NO_PIN Disable:NO_PIN Index:4 R:0.050]
[MSG:INFO: Z Neg Limit gpio.39]
[MSG:INFO: X Axis driver test passed]
[MSG:INFO: Y Axis driver test passed]
[MSG:INFO: Y2 Axis driver test passed]
[MSG:INFO: Z Axis driver test passed]
[MSG:INFO: safety_door_pin gpio.16]
[MSG:INFO: macro0_pin gpio.13:low]
[MSG:INFO: macro1_pin gpio.0:low]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: Connecting to STA SSID:Garage3_EXT]
[MSG:INFO: Connecting.]
*** Fetching device status

?
[MSG:INFO: Connecting..]
*** Fetching device status (2 of 10)...
?
*** Fetching device status (3 of 10)...
?
**** The communicator has been paused ****
[MSG:INFO: Connected - IP is 10.0.0.122]
[MSG:INFO: WiFi on]
[MSG:INFO: Start mDNS with hostname:http://fluidnc.local/]
[MSG:INFO: HTTP started on port 80]
*** Fetching device status (4 of 10)...
?
[MSG:INFO: Telnet started on port 23]
[MSG:INFO: UART1 Tx:gpio.4 Rx:gpio.25 RTS:NO_PIN Baud:9600]
[MSG:INFO: Huanyang Spindle Tx:gpio.4 Rx:gpio.25 RTS:NO_PIN Baud:9600]
[MSG:INFO: Mist coolant gpio.21]
[MSG:INFO: Probe gpio.22:low]
Grbl 3.8 [FluidNC v3.8.2 (noradio) '$' for help]
Grbl 3.8 [FluidNC v3.8.2 (noradio) '$' for help]
<Idle|MPos:0.000,0.000,0.000|FS:0,0|WCO:-1238.600,-1250.900,-76.200>
<Idle|MPos:0.000,0.000,0.000|FS:0,0|Ov:100,100,100>
[MSG:INFO: Huanyang PD0011, PD005 Freq range (100,400) Hz (6000,24000) RPM]
[MSG:INFO: Huanyang PD144 Rated RPM @ 50Hz:3000]
[MSG:INFO: Huanyang PD143 Poles:2]
*** Fetching device status (5 of 10)...
?
<Idle|MPos:0.000,0.000,0.000|FS:0,0>
ok
$I
[VER:3.8 FluidNC v3.8.2:]
[OPT:MPHS]
[MSG:Machine: xPro V5 ]
[MSG:Mode=STA:SSID=Garage3_EXT:Status=Connected:IP=10.0.0.122:MAC=8C-4B-14-BB-D6-6C]
ok
$$
$22 = 1 (Homing cycle enable, boolean)
$21 = 0 (Hard limits enable, boolean)
$20 = 1 (Soft limits enable, boolean)
$102 = 400.000 (Z-axis travel resolution, step/mm)
$101 = 160.000 (Y-axis travel resolution, step/mm)
$100 = 160.000 (X-axis travel resolution, step/mm)
$112 = 2000.000 (Z-axis maximum rate, mm/min)
$111 = 4000.000 (Y-axis maximum rate, mm/min)
$110 = 4000.000 (X-axis maximum rate, mm/min)
$122 = 250.000 (Z-axis acceleration, mm/sec^2)
$121 = 250.000 (Y-axis acceleration, mm/sec^2)
$120 = 250.000 (X-axis acceleration, mm/sec^2)
$132 = 127.000 (Z-axis maximum travel, millimeters)
$131 = 1289.000 (Y-axis maximum travel, millimeters)
$130 = 1264.000 (X-axis maximum travel, millimeters)
$10 = 1 (Status report options, mask)
$30 = 24000 (Maximum spindle speed, RPM)
ok
$G
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]
ok
*** Connected to GRBL 3.8
[MSG:INFO: Huanyang PD014 Accel:5.000]
[MSG:INFO: Huanyang PD015 Decel:5.000]
<Idle|MPos:0.000,0.000,0.000|FS:0,0>
<Idle|MPos:0.000,0.000,0.000|FS:0,0>
<Idle|MPos:0.000,0.000,0.000|FS:0,0>

Yaml file:
config.yaml.txt

@breiler
Copy link
Collaborator

breiler commented Sep 11, 2024

I loaded up your config to a controller and tried it. I don't have TMC drivers or the Huangyang spindle so I am not able to simulate your scenario fully.

But I think that this is a clue:

INFO: Connecting.
*** Fetching device status

?
[MSG:INFO: Connecting..]
INFO: Connected - IP is 10.0.0.122
INFO: WiFi on
INFO: Start mDNS with hostname:http://fluidnc.local/
INFO: HTTP started on port 80
*** Fetching device status (2 of 10)...
?
[MSG:INFO: Telnet started on port 23]
INFO: UART1 Tx:gpio.4 Rx:gpio.25 RTS:NO_PIN Baud:9600
INFO: Huanyang Spindle Tx:gpio.4 Rx:gpio.25 RTS:NO_PIN Baud:9600
INFO: Mist coolant gpio.21
INFO: Probe gpio.22:low
Other:
Grbl 3.8 [FluidNC v3.8.2 (noradio) '$' for help]
*** Fetching device status
?
<Idle|MPos:0.000,0.000,0.000|FS:0,0|WCO:-1238.600,-1250.900,-76.200>
Other: ok

It looks like the controller has not completed the boot before UGS starts quering the controller. Can you connect and power up your controller and wait a minute before connecting to the controller through UGS. This should not be a problem, but looking through the lines after there are some wierd things happening.

The reason it fails to connect later on looks to be caused by it either getting duplicated messages from the controller . Here is an example, it receives the line with 180: Parameter Assignment Failed and then an ok. But these two lines is later repeated.

175: Expression Syntax Error
176: Flow Control Syntax Error
177: Flow Control Not Executing Macro
178: Flow Control Out of Memory
179: Flow Control Stack Overflow
180: Parameter Assignment Failed
ok
Other: 180: Parameter Assignment Failed
Other: ok

@itsnotlevel1
Copy link
Author

So, I did what you asked and still nothing. Then I unplugged my vfd and it connected but nothing has changed unless for some reason theres a variable in the huanyang vfd I need to change? I havent changed anything. I unplugged and reconnected several times....it works now. But if I plug the spindle in, it wont connect.
And as it should, when spindle unplugged it gives me this: INFO: VFD RS485 Unresponsive but thats typical.

@breiler
Copy link
Collaborator

breiler commented Sep 12, 2024

I noticed these two lines though when you connected to it using the GRBL profile and remember that there was another issue where UGS would try to initiate the connection twice on certain device setups (think it was when connecting to it via WiFi):

Grbl 3.8 [FluidNC v3.8.2 (noradio) '$' for help]
Grbl 3.8 [FluidNC v3.8.2 (noradio) '$' for help]

I fixed that particular issue in version 2.1.9, you could give that version a try:
https://github.com/winder/Universal-G-Code-Sender/releases/tag/v2.1.9

Other than that this will be really hard for me to debug and fix as I don't have a controller equipped with RS485 and VFD supporting it.

@breiler
Copy link
Collaborator

breiler commented Oct 25, 2024

Sorry for the late reply, another user had the same problem and I think that I've fixed it.

Please try the latest nightly build from here:
https://github.com/winder/Universal-G-Code-Sender#downloads

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