145 Commits

Author SHA1 Message Date
a434592f2d Remove printout 2023-09-14 14:17:36 +02:00
2adb2e8cfe WIP 2023-09-12 17:11:03 +02:00
424ee71b63 Remove not allowed MUTEX unlocks 2023-09-12 13:21:27 +02:00
Anders Sandstrom
5a7616d26f Allow also start when epics state is 29 2023-03-08 10:53:31 +01:00
Anders Sandstrom
9e373084b0 WORKS but need cleanup 2023-03-07 15:32:35 +01:00
Anders Sandstrom
49a97f6291 Fix compile error in grbl_serial 2023-03-06 09:01:49 +01:00
Anders Sandstrom
89da9ee7f0 Remove some printouts in grbl 2022-02-08 15:44:06 +01:00
Anders Sandstrom
f92506ed21 WIP 2022-02-02 12:07:02 +01:00
Anders Sandstrom
770c1b4362 work related to spindle 2022-02-01 11:21:38 +01:00
Anders Sandstrom
33898dd058 Remove rt block 2022-01-31 14:40:02 +01:00
Anders Sandstrom
5462f2ad5e WIP 2022-01-30 14:25:22 +01:00
Anders Sandstrom
227e03adf5 Add mutexes to grbl rx and tx buffer. 2022-01-28 09:57:12 +01:00
Anders Sandstrom
b924c44ae7 Add some delay_ms to not block cores 2022-01-28 08:56:29 +01:00
Anders Sandstrom
b1791d8fb0 Add some delays in protocol suspen loop to avoid main thread using 100% cpu. 2022-01-27 16:44:30 +01:00
Anders Sandstrom
35880fe838 WIP 2022-01-27 16:16:59 +01:00
Anders Sandstrom
5593772b71 Add busy bit 2022-01-26 16:43:09 +01:00
Anders Sandstrom
55ce426476 Add plc-commands WIOP 2022-01-26 15:08:24 +01:00
Anders Sandstrom
fc194a029b WIP 2022-01-25 15:04:56 +01:00
Anders Sandstrom
fa957a8bec WIP 2022-01-25 14:31:11 +01:00
Anders Sandstrom
11c3e5c5b5 WIP 2022-01-25 08:44:51 +01:00
Anders Sandstrom
5ff7e7fcd8 Add sync ecmc and grbl positions before enable. Comment out some printfs 2022-01-24 16:05:52 +01:00
Anders Sandstrom
438d9cf5a1 Comment out some printouts! 2022-01-24 11:41:58 +01:00
Anders Sandstrom
56c588690b Do not execute if exe time<0 2022-01-24 11:17:40 +01:00
Anders Sandstrom
02cb9cd6e4 Simulate grbl intreupt rate (WIP) 2022-01-24 11:10:20 +01:00
Anders Sandstrom
a889eb0e8c WIP 2022-01-21 11:36:18 +01:00
Anders Sandstrom
9c97d44b02 WIP 2022-01-21 08:20:22 +01:00
Anders Sandstrom
08053a9896 WIP 2022-01-20 17:34:45 +01:00
Anders Sandstrom
0b33512ffd Increase serial buffers.. 2022-01-20 17:29:06 +01:00
Anders Sandstrom
e2de2fb0a8 WIP 2022-01-20 16:55:06 +01:00
Anders Sandstrom
002221ccf1 WIP 2022-01-20 16:32:18 +01:00
Anders Sandstrom
aa5b5f8267 Prefix all grbl files with grbl to avoid conflicts.. 2022-01-20 13:45:18 +01:00
Anders Sandstrom
84ff286e0b Rename limits.h to avoid conflict 2022-01-20 13:33:21 +01:00
Anders Sandstrom
d78e8ef9f6 Integrate as a normal plugin.. WIP 2022-01-20 13:08:08 +01:00
Anders Sandstrom
406b66d020 WIP: tested G0,G1,G2,G4.. 2022-01-19 21:14:47 +01:00
Anders Sandstrom
972f29ec19 WIP 2022-01-19 20:06:00 +01:00
Anders Sandstrom
3f9eb4ea85 add client thread. Fix delay_ms bug ... 2022-01-19 18:05:16 +01:00
Anders Sandstrom
450f553699 Test x,y movement 2022-01-18 15:37:22 +01:00
Anders Sandstrom
6e4bd2410f First parsed G-code commandgit add .! 2022-01-18 15:28:28 +01:00
Anders Sandstrom
6ce6b78ebe WIP: settings to file (eeprom) seems to work 2022-01-18 11:25:10 +01:00
Anders Sandstrom
6ece50c491 First execute as ecmc plugin.. 2022-01-18 10:25:21 +01:00
Anders Sandstrom
4143351780 WIP 2022-01-17 17:13:38 +01:00
Anders Sandstrom
952c0d4cf5 WIP 2022-01-17 16:04:51 +01:00
Anders Sandstrom
e907604e26 WIP: need to check print again.. Maybe keep serial interface.. 2022-01-17 14:04:24 +01:00
Sonny Jeon
bdc2da9b59 Fixed typo bug effecting dual-axis build with Y. 2019-08-30 07:13:21 -04:00
Sonny Jeon
40eb439bf2 Update grbl.h 2019-08-25 21:13:03 -04:00
Sonny Jeon
cc4c0ffebc Update system.c 2019-08-25 21:04:09 -04:00
Sonny Jeon
b75e5571ee Dual motor support for self-squaring gantry homing.
- New dual motor support feature for gantry CNC machines. An axis motor is  efficiently mirrored to a dedicated set of step and direction pins (D12/D13 or A3/A4) with no detectable loss of performance. Primarily used to independently home both sides of a dual-motor gantry with a pair of limit switches (second shared with Z-axis limit pin). When the limit switches are setup correctly, Grbl will self-square the gantry (and stay square if $1=255 is programmed). Beware use at your own risk! Grbl is not responsible for any damage to any machines.

- Dual axis motors is only supported on the X-axis or Y-axis. And deletes the spindle direction(D13) and optional coolant mist (A4) features to make room for the dual motor step and direction pins.

- Dual axis homing will automatically abort homing if one limit switch triggers and travels more than 5% (default) of the non-dual axis max travel setting. For example, if the X-axis has dual motors and one X-axis triggers during homing, Grbl will abort 5% of the Y-axis max travel and the other X-axis limit fails to trigger. This will help keep any misconfigurations or failed limit switches from damaging the machine, but not completely eliminate this risk. Please take all precautions and test thouroughly before using this.

- Dual axis motors supports two configurations:

- Support for Arduino CNC shield clones. For these, step/dir on pins D12/D13, and spindle enable is moved to A3 (old coolant enable), while coolant enable is moved to A4 (SDA pin). Variable spindle/laser mode option is NOT supported for this shield.

- Support for Protoneer CNC Shield v3.51. Step/dir on pins A3/A4, and  coolant enable is moved to D13 (old spindle direction pin). Variable spindle/laser mode option IS supported for this shield.

- Added Bob's CNC E3 and E4 CNC machine defaults.
2019-07-30 21:51:49 -04:00
Sonny Jeon
bb25d2f97e Update grbl.h 2018-11-12 08:25:57 -07:00
Sonny Jeon
addb1a9813 Update system.c
Correct control pin state checking within pin change interrupt. Improper if-else statements could lead to missed signal.
2018-11-12 08:25:32 -07:00
Sonny Jeon
0b5604bd7b Update gcode.c
If statement bug fix related to jog motion modal group error checking.
2018-11-12 08:20:45 -07:00