Closed ArghyaDas3301 closed 4 years ago
My bad, default value for CNC_BOOSTERPACK should be 0.
This should perhaps be set to 0 when CNC_BOOSTERPACK is 0...
Some senders don't like the grblHAL extensions - UGS is one of them. You may try my sender if you are using Windows.
grblHAL defaults to normally closed (NC) switches and if the Reset input is asserted (not shorted to ground) error 18 is issued for safety reasons. Set $14=15 to invert most control pins or better connect the Reset pin to ground (P2.4). The default inversion can also be set by uncommenting (and possibly changing) the INVERT_CONTROL_PIN_MASK
in grbl\defaults.h.
Default value for $10 is dependent on the compatibility mode. grblHAL has a lot of additional $-settings options over vanilla grbl.
Note that I have not added saving of settings to flash for this driver so settings will be reverted to default on a cold start or hard reset if an EEPROM is not present. You can edit grbl/defaults.h to match your machine in order to avoid issuing a bunch of $-commands on startup.
Thank you so much! That was the issue indeed. I ended up uncommenting the invert option for reset and safety door bits and it solved the issue as well.
I have tried to use the Gcode sender you developed but Vector3 library is missing on Nuget and I'm unable to build the project without it. I'm not sure how to import the library manually by downloading it from GitHub and adding it on Visual Studio. I'm very new to using Visual Studio. I would love to use the Gcode sender you developed if I could get some help with successfully building/ running it.
Lastly, I have one more question. I can see that GrblHAL has support for G96 command for constant surface speed and MSP432 seems to be the only driver that supports CSS right now which is why I choose to use it. However, I've been trying to find the code snippet in the source files to see how the Spindle rpm is varied to maintain Constant surface speed but I couldn't find it. Could you direct me to the file where I can find the implementation for CSS? Also, Do I need any extra hardware like an encoder on my spindle and enable the Spindle PID to properly implement CSS?
I need G96 for facing operations using a lathe that I'm building. It needs to perform roughing & finishing operations on the front face of a large circular disk.
... I could get some help with successfully building/ running it.
No need to build it yourself unless you want to modify it, binaries are available here.
I can see that GrblHAL has support for G96 command for constant surface speed and MSP432 seems to be the only driver that supports CSS ...
CSS is not dependent on encoder input or spindle PID so G96 should work with all drivers. Set $32=2 to enable lathe mode for G96 to become available. You may want to add spindle linearization if actual speed deviates too much from the programmed speed.
Could you direct me to the file where I can find the implementation for CSS?
Search for is_rpm_pos_adjusted
and SpindleSpeedMode_CSS
in the source tree to find more.
Thank you once again! This was extremely helpful. Really appreciate the quick response.
I'm using an MSP432P401R LaunchPad to run GrblHAL without anything connected to its GPIO pins. (No CNC_Boosterpack nor any limit switches etc.). And I'm using Universal G-code Sender to communicate with the MSP432.
I have come across a few problems which I'd really like some help with. The code compiles fine and I'm able to upload it to the MCU when I set #define CNC_BOOSTERPACK to 0 instead of 1 in driver.h. Because the problem seems to arise from the eeprom files when Boosterpack is enabled.
After that I've observed that I also had to set #define ESTOP_ENABLE to 0 instead of 1 in driver.h or UGS starts throwing an Alarm code 10 at me.
I've also had to set #define COMPATIBILITY_LEVEL to 1 instead of 0 in config.h otherwise UGS doesn't even connect with the MSP432 and throws a "Grbl has not finished booting." when I try to send any commands.
4.after making the above changes the MSP is able to talk to UGS but is still always in Active Alarm mode and so G codes do not work but the '$' sign parameters can still be changed. This is where I'm stuck at right now. I also tried using GrblPanel and Openbuilds Controller and its the same story. It's always in a state of alarm and is locked out.
5.I've also noticed something strange about the $10 parameter. It shows a 510 by default which is odd because I believe in the documentation for grblHAL it says the default is supposed to be 1 . Here is the status log that I get rn after making the previously mentioned changes.
Connected to COM7 @ 115200 baud Grbl 1.1f ['$' for help]
I have tried a bunch of things but can't seem to get out of the alarm state. Any help will be greatly appreciated.