Closed truglodite closed 2 years ago
Connect with FluidTerm and show the complete startup messages.
i have the same issue but in may motors, they don't move, has no power troug them, i'm flshing again with 3.4.4 they have same no moving
It is important to show us the startup messages. Here is a link to the wiki on that.
It loaded your file and got an error. In your laser config you have speeds:
it should be speed_map:
. I think it will load a default, I fixed that and my startup messages look like this.
[MSG:INFO: FluidNC v3.6.0]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.1-1-gb8050b365e]
[MSG:INFO: Local filesystem type is SPIFFS]
[MSG:INFO: Configuration file:trug.yaml]
[MSG:INFO: Machine TrugMPCNC]
[MSG:INFO: Board 6-pack]
[MSG:INFO: I2SO BCK:gpio.22 WS:gpio.17 DATA:gpio.21]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cs_pin:gpio.5 detect:NO_PIN]
[MSG:INFO: Stepping:I2S_static Pulse:4us Dsbl Delay:0us Dir Delay:0us Idle Delay:255ms]
[MSG:INFO: User Digital Output:0 on Pin:I2SO.25]
[MSG:INFO: User Digital Output:1 on Pin:gpio.14]
[MSG:INFO: Axis count 3]
[MSG:INFO: Axis X (-562.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:I2SO.2 Dir:I2SO.1:low Disable:I2SO.0]
[MSG:INFO: Neg Limit gpio.33]
[MSG:INFO: Motor1]
[MSG:INFO: stepstick Step:I2SO.5 Dir:I2SO.4 Disable:I2SO.7]
[MSG:INFO: Neg Limit gpio.32]
[MSG:INFO: Axis Y (-562.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:I2SO.10 Dir:I2SO.9 Disable:I2SO.8]
[MSG:INFO: Neg Limit gpio.35]
[MSG:INFO: Motor1]
[MSG:INFO: stepstick Step:I2SO.13 Dir:I2SO.12:low Disable:I2SO.15]
[MSG:INFO: Neg Limit gpio.34]
[MSG:INFO: Axis Z (-150.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:I2SO.18 Dir:I2SO.17 Disable:I2SO.16]
[MSG:INFO: Neg Limit gpio.25]
[MSG:INFO: Motor1]
[MSG:INFO: feed_hold_pin gpio.36]
[MSG:INFO: cycle_start_pin gpio.2:pu]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: Huanyang Spindle Uart Tx:gpio.26 Rx:gpio.16 RTS:gpio.4 Baud:9600]
[MSG:INFO: Laser Ena:NO_PIN Out:gpio.13 Freq:5000Hz Period:8191]
[MSG:INFO: Using spindle Huanyang]
[MSG:INFO: Flood coolant I2SO.24]
[MSG:INFO: Mist coolant gpio.15]
[MSG:INFO: Probe Pin: gpio.39]
[MSG:INFO: WiFi is disabled]
[MSG:INFO: VFD setState:0 SpindleSpeed:0]
Here is the session showing the code I used to test it.
Grbl 3.6 [FluidNC v3.6.0 (wifi) '$' for help]
[MSG:INFO: '$H'|'$X' to unlock]
$X ; clear the alarm. I don't have switches to home it.
[MSG:INFO: Caution: Unlocked]
ok
M6T1 ;change to the laser tool
[MSG:INFO: Tool No: 1]
[MSG:INFO: Using spindle Laser]
ok
M4S500 ;set the power in M4 mode
ok
G1 X-10 F100 ; do a G1 move to turn on the laser.
ok
It worked for me. The laser turned on for the duration of the move.
Hmm, not sure how I missed that, or why it worked with 344. I fixed that to speed_map and it works, but with a quirk that wasn't there before. First, Here is the boot message:
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2022.09.18 11:25:14 =~=~=~=~=~=~=~=~=~=~=~=
[MSG:INFO: FluidNC v3.6.0]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.1-1-gb8050b365e]
[MSG:INFO: Local filesystem type is SPIFFS]
[MSG:INFO: Configuration file:config.yaml]
[MSG:INFO: Machine TrugMPCNC]
[MSG:INFO: Board 6-pack]
[MSG:INFO: I2SO BCK:gpio.22 WS:gpio.17 DATA:gpio.21]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cs_pin:gpio.5 detect:NO_PIN]
[MSG:INFO: Stepping:I2S_static Pulse:4us Dsbl Delay:0us Dir Delay:0us Idle Delay:255ms]
[MSG:INFO: User Digital Output:0 on Pin:I2SO.25]
[MSG:INFO: User Digital Output:1 on Pin:gpio.14]
[MSG:INFO: Axis count 3]
[MSG:INFO: Axis X (-562.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:I2SO.2 Dir:I2SO.1:low Disable:I2SO.0]
[MSG:INFO: Neg Limit gpio.33]
[MSG:INFO: Motor1]
[MSG:INFO: stepstick Step:I2SO.5 Dir:I2SO.4 Disable:I2SO.7]
[MSG:INFO: Neg Limit gpio.32]
[MSG:INFO: Axis Y (-562.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:I2SO.10 Dir:I2SO.9 Disable:I2SO.8]
[MSG:INFO: Neg Limit gpio.35]
[MSG:INFO: Motor1]
[MSG:INFO: stepstick Step:I2SO.13 Dir:I2SO.12:low Disable:I2SO.15]
[MSG:INFO: Neg Limit gpio.34]
[MSG:INFO: Axis Z (-150.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:I2SO.18 Dir:I2SO.17 Disable:I2SO.16]
[MSG:INFO: Neg Limit gpio.25]
[MSG:INFO: Motor1]
[MSG:INFO: feed_hold_pin gpio.36]
[MSG:INFO: cycle_start_pin gpio.2:pu]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: Huanyang Spindle Uart Tx:gpio.26 Rx:gpio.16 RTS:gpio.4 Baud:9600]
[MSG:INFO: Laser Ena:NO_PIN Out:gpio.13 Freq:5000Hz Period:8191]
[MSG:INFO: Using spindle Huanyang]
[MSG:INFO: Flood coolant I2SO.24]
[MSG:INFO: Mist coolant gpio.15]
[MSG:INFO: Probe Pin: gpio.39]
[MSG:INFO: Connecting to STA SSID:xxx]
[MSG:INFO: Connecting.]
[MSG:INFO: Connecting..]
[MSG:INFO: Connected - IP is xxx]
[MSG:INFO: WiFi on]
[MSG:INFO: Start mDNS with hostname:http://xxx.local/]
[MSG:INFO: SSDP Started]
[MSG:INFO: HTTP started on port 80]
[MSG:INFO: Telnet started on port 23]
ok
To explain the quirk... I have a macro button in bCNC that runs this gcode script to help me align the laser without burning stuff:
G91
M6 T1
M62 P0
M62 P1
M3S5
G1X0Y0
G90
With 344, just hitting the macro button the laser would turn on. Now with 360, after running that script, I have to actually move first before the laser lights up. Incidentally, moving would not get it to light with 360 when I had the "speeds" error in my config. I'm OK with this, as I understand it is a feature to prevent the laser making fire sitting in one spot for a long time. I can just add X-0.1 like Bart to get that macro working the way I want.
So that I think explains this issue... a config error as well as a minor change in behavior. Also Bart, thanks for spotting that silly error in my config... I was wondering why the boot messages had that line about "speeds" but figured I could ignore it since it was working, lol.
[edit: Also fwiw, I initially posted without the bootup output because it was getting late and bCNC was giving me guff about grabbing boot messages from terminal. Not sure why $ss won't show in bCNC. Anyways, I didn't feel like sorting out fluidterm on the cnc pi at 1am. Today I woke up with a fresh mind, and realized I could have just used putty lol. IMHO the fluidterm wiki maybe should have in bold, "if you are comfy with putty or whatever, just use that to read serial messages from fluidnc". The wiki more or less already says that, but it left me feeling like I was hacking it the hard way using putty lol.
There is no way to write documentation that someone will not misunderstand.
We are trying to be consistent with Grbl 1.1 laser mode. In particular:
Note that you do not actually have to move; it suffices to simply say "G1" (if a feedrate has already been established) or "G1 F1000" (if not).
I tried running fluidterm.sh from the posix installer package fluidnc-v3.5.1-pre-FS-posix.zip on a Pi Zero W. The only problem is that you have to point it at the USB serial port, as in
./fluidterm.sh /dev/ttyUSB0
Otherwise it tends to pick /dev/ttyAMA0, the onboard serial port that is rarely used.
I tried modifying my script and this line does not work despite having a feedrate:
‘G1 X0Y0 F1000’
… but a movement does work:
‘G1 X0.1’
Also, I appreciate that writing manuals for such a broad audience is always going to leave a few to have their moments if you will. You do a boat load of work around here as is… last thing I want is to add stress about a moment I was having getting a new setup to work. I just spent countless hours the past couple weeks cutting metal, wiring, etc to rebuild my Cnc, and was a bit short on energy when this hiccup came along. Grand scheme of things, the experience was great and you guys deserve an applause (and tips).
G0 ?
…typo, now fixed
I just tried this test on my laser, after a fresh reset:
m3s7 (laser did not turn on)
g1f1 (laser turned on)
g0 (laser turned off)
Also tried replacing g1f1 with g1x0y0f100 and that worked too, although the gantry moved because the initial position was not 0 0 due to a work coordinate offset.
It works in g91 mode too.
Hmm, what are your “s0 with disable” and “disable with s0” settings? Just noticed my laser off script (uses M5) left pwm on… didn’t notice before opening my box and seeing the led lit up, because I also use the m62/63 p0 to turn on/off a 12v relay that feeds the laser. I had to add ‘g1x0.1’ to get pwm to turn off as well.
edit… yeah the g91 and g90 is there in case I space out setting the origin first.
They are defaulted. My complete laser section is
laser:
output_pin: gpio.2
speed_map: 0=0% 1000=100%
So false for disable_with_s0 and true for s0_with_disable
Controller Board
6-pack v1p5, 2x quad inputs, 1x rs485, 1x 5V out, and 1x fet out, in that order.
Help From Board Vendor
Machine Description
MPCNC Primo w/ 5x DM542 drivers @48V
Input Circuits
No response
Configuration file
Startup Messages
User Interface Software
bCNC
What happened?
The exact same setup and config file worked fine with 3.4.4. I tested 3.6.0 and everything else works but laser pwm (stays 0V on the scope), and terminal reports no errors. Then I flashed 3.4.4, and it works again.
Other Information
Sorry I can't think of any other helpful info to share about this problem.