Commit Graph

363 Commits

Author SHA1 Message Date
Terje Io
b0322fd72c Merge pull request #593 from Dietz0r/master
Jerk Acceleration Settings and HAAS G187 Acceleration Profiles
2024-12-30 20:35:58 +01:00
Dietz0r
84657b4f69 Cleaned up the Switchcase coder after the debugging mess (thanks terje!) added the line for initilizing the acceleration_factor, renamed acceleration_profiles variable to acceleration_factor to match the rest of the code 2024-12-27 17:44:54 +01:00
Dietz0r
719017bff9 Adjusted lookup function for array counting (start from 0) and added input checking 2024-12-27 15:25:45 +01:00
Dietz0r
9d48143edf Fixed the Unused Values error, removed stray comma, removed settings.h conditional 2024-12-27 12:58:21 +01:00
Dietz0r
c47e6a356e Debugging and Compiling 2024-12-27 02:45:34 +01:00
Dietz0r
ce60b8ff7d adjusted the limit by axis maximum functions to not require the block data 2024-12-26 22:49:34 +01:00
Dietz0r
efcdf3f6da Update gcode.h 2024-12-26 22:09:07 +01:00
Dietz0r
254a3d1212 Update settings.c
Cleaned up out of sync functions. Most likely a remnant from resolving the merge conflict.
2024-12-26 21:23:06 +01:00
Terje Io
0e55491ff8 Updated changelog. 2024-12-26 19:55:21 +01:00
Dietz0r
df6aec3e3a Merge branch 'grblHAL:master' into master 2024-12-26 17:03:56 +01:00
Terje Io
c608a1cd29 Updated changelog. 2024-12-23 17:00:38 +01:00
Terje Io
8dc30ad89c Improved handling of real-time clock (RTC). 2024-12-23 10:37:14 +01:00
Terje Io
2952a3eeb9 Added directory (mounts) listing capabilities to the default root file system when no real root file system (SD card) is mounted. 2024-12-19 11:34:11 +01:00
Terje Io
50a7507f6f Added preprocessor support for moving coolant outputs to auxiliary pool. Some minor bug fixes and code cleanup.
Those who have custom board maps must update pin assignments accordingly when updating to this or later versions.
2024-12-17 16:10:20 +01:00
Terje Io
c7c5b63447 Added suppression of door open signal when in manual or semi-automatic tool change mode. 2024-12-14 15:08:07 +01:00
Terje Io
24d6d984c4 Updated changelog 2024-12-12 12:43:44 +01:00
Dietz0r
33795245fe file didnt want to push. found a typo 2024-12-10 23:05:45 +01:00
Dietz0r
c4969f1dc0 missed 2 variable names 2024-12-10 22:24:39 +01:00
Dietz0r
e504964dae moved acceleration factor to plan_block_t structure, moved lookup function to plan_data_init, renamed lookup fuction and adjusted the acceleration limit functions to new structure 2024-12-10 22:15:25 +01:00
Terje Io
ac93c81590 Increased preprocessor support for up to 16 auxiliary input pins, used by STM32* drivers. 2024-12-10 21:34:47 +01:00
Dietz0r
075d5cec57 Merge branch 'master' into master 2024-12-10 21:28:16 +01:00
Dietz0r
a6ae08ea97 Resolve merge conflict for new setting structure 2024-12-10 21:10:16 +01:00
Terje Io
a41790dada Revised core setting structures, changed from 8-bit to 16-bit CRC checksums for improved detection of corruption/version mismatches.
Added option to homing enable setting ($22) for per axis homing feedrates.

!! Backup and restore settings over an update is recommended since all settings will be reset to default. Any odometer data will also be lost.
2024-12-09 19:24:20 +01:00
Terje Io
795ced52f7 Updated changelog. 2024-12-05 10:59:10 +01:00
Terje Io
acfd473fce Changed deprecated calls to isinff() and isnanf() to new (C99) versions. 2024-12-04 09:29:23 +01:00
Terje Io
8fee2930f5 Added (or rather repurposed) field for build date to settings structure in preparation for coming changes.
Added code guards in order to free some memory for STM32F103 variants with 128K flash.
Changed Stop (0x19) real-time command behaviour, active tool offset and coordinate system will now be kept. Ref. issue #610.
2024-11-29 18:17:26 +01:00
Terje Io
f8f10aecdf Fixed bug in setting home position to 0 when CoreXY kinematics is enabled. Ref. ESP32 issue 77. 2024-11-21 15:27:57 +01:00
Terje Io
7e40bf2402 A bit of refactoring related to spindles as a first step for a coming settings structure revision, "hardened" some code. 2024-11-20 19:03:27 +01:00
Terje Io
0b8bce16c6 Added support for named o-sub/o-call to flow control, for calling gcode subroutines stored on SD card or in littlefs.
Sub name matches filename with extension .macro.
Added core event for handling special gcode comments used by expressions and flow control: DEBUG, PRINT and ABORT.
Added overrideable default $-setting values for second PWM spindle to grbl/config.c.
2024-11-16 22:02:00 +01:00
Terje Io
43d694917c Added basic core support for toolsetter probe, changes $6 (probe input inversion) and $19
(probe input pullup disable) settings from boolean to bitfield when driver support is available.
Added a few default values for settings in config.h, overridable from the compiler command line.
Added core support for per axis pulloff distance, needs plugin for configuring them.
Added HAL flags for disabling settings for MCU input pins pullup disable, may be set by
drivers/boards that has buffered (optocoupled) inputs that is not possible to change.
2024-11-13 17:32:36 +01:00
Terje Io
1444c08997 Added generic passthru support for programming external MCU via USB > UART bridge.
Requires driver support if to be used. Adds $PTRGH system command when available.
2024-11-10 11:39:21 +01:00
Terje Io
7054af825b Updated changelog 2024-11-07 21:04:25 +01:00
Terje Io
81fe93adb8 Removed deprecated stream flags, added stream event for line state (RTS, DTR) changes - initially for USB streams. 2024-11-07 20:44:16 +01:00
Dietz0r
88cf48a5a1 adjusted settings.h to last commit too 2024-10-31 21:36:39 +01:00
Dietz0r
b7d54d75ee added acceleration profiles to gc_state, adjusted g187 and m2/30 handling accordingly 2024-10-31 21:22:09 +01:00
Terje Io
f35d14a901 Added init call for new ESP-AT plugin. 2024-10-30 13:34:44 +07:00
Terje Io
9a98243fd3 Changed _vminor named parameter to contain build date in YYMMDD format, previously value was 0.
Added support for LinuxCNC style (ABORT,<msg>) comment, requires expressions enabled. Terminates gcode program, outputs message and returns error 253.
Added PRM[<setting>] and PRM[<setting>,<bit>] functions to expressions, returns $-setting value or value of bit in integer type setting.
"hardened" flow control code, fixed bug in repeat...continue handling.
Changed signature of grbl.on_gcode_comment event, now returns status code.
2024-10-27 07:27:25 +07:00
Terje Io
99681254f1 Merge pull request #615 from dresco/neopixel
Shift neopixel bit pattern
2024-10-25 20:55:27 +07:00
Jon Escombe
15a4e2ab24 Shift neopixel bit pattern
On some processors, MOSI can be driven to the output level before
the clock is enabled. If the first bit is a 1, this can result in
a longer pulse that is interpreted as a high level by neopixels.

This fix maintains the same inter-bit timings, but ensures the
first bit is always 0. (The last bit is already always zero due
to padding for reset timing requirements).
2024-10-25 12:08:16 +01:00
Terje Io
ee8eb2c1eb Fixed some odd bugs in NGC flow control, prepared for file based named O-call subroutines.
Fixed incorrect comment string passed to passed to grbl.on_gcode_comment event.
Added generic redirector for temporarily changing input stream to read from a file. Supports nesting.
2024-10-23 20:18:34 +07:00
Terje Io
c07d63198e Moved message substitution code from gcode.c to ngc_expr.c. 2024-10-19 18:45:13 +07:00
Terje Io
236a40c100 Improved parameter handling some more, now allows indirected O-calls and line numbers with O-word.
Fix for issue #609, homing may cause a controller crash.
2024-10-16 14:13:04 +07:00
Terje Io
a7b82c8041 Removed misplaced code guard 2024-10-14 20:09:56 +07:00
Terje Io
f0eac9d0aa Improved expression and parameter handling, simplified gcode parser related to this. Fixed typo in OR statement decode.
Added clear of return value on CALL statement and added optional return value expression support to ENDSUB.
Improved handling of multiple simultaneous spindles. Still work in progress.
For developers: moved user M-code entry point hooks from the HAL structure to the core handlers and changed signature of the check() function to better support valueless words (letters) when parameter support is enabled. Removed deprecated parameter from the validate() call signature.
2024-10-14 19:02:30 +07:00
Terje Io
5825b36ef6 Fix for M62 - M68 regression. Ref. issue #600.
Fixed incorrect handling of G65 call parameters, axis words had offsets added. Ref. issue #594.
Refactored handling of multiple spindles. There are still some limitations but should work better now. Disabled override delays for now, needs investigation. Ref. issue #598.
NOTE: Please report any erratic behaviour after installing this version since it is a rather major change.
2024-10-06 20:24:34 +07:00
Dietz0r
e17d78293f Merge branch 'grblHAL:master' into master 2024-09-29 21:03:31 +02:00
Terje Io
323dd84b79 Added (PRINT, <msg>) support and parameter formatting for DEBUG and PRINT commands.
Added named parameters for getting absolute (G53) position: _abs_x, abs_y, ...
Available when expression support is enabled.

Changed stepper enable HAL signature to allow current reduction when idle.
Added reference id to spindle registration in order to allow configuring default spindle, and possibly additional spindles, at compile time.
2024-09-29 12:38:49 +07:00
Terje Io
5d6a99c583 Merge pull request #587 from skasti/master
Enable parameter substitution in MSG comments
2024-09-25 20:05:43 +07:00
skasti
94d15b45d0 Put functionality in NGC_EXPRESSIONS_ENABLE block 2024-09-25 10:54:01 +02:00
skasti
9d6f09bf72 Extract substitution code to a function 2024-09-25 06:58:08 +02:00