CamBam

Resources => Scripts and Plugins => Topic started by: karst.drenth on March 14, 2017, 21:38:46 pm



Title: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 14, 2017, 21:38:46 pm
Hi Guys,

I am Karst Drenth, pretty new on this forum. As a matter of fact my very first post ;)

While being a professional electronics engineer, I nowadays do a fair amount of programming professionally, that is.. since 35 years now.

So what does an electronics engineer do on a machinists forum ? Well, my big passion and hobby is modelrailroading. For that I design and build pretty much all of my own rolling stock and buildings.
Used to do that by means of the old handcraft of cutting styrene sheet in pieces and then glueing them back together again ;)

Until a week ago my machine-parc existed of a Silhouette Cuttingplotter and a 60W Lasercutter... For working on metal parts I own a mini-lathe and a small mill, both from Proxxon.

Then for a week or two I stumbled into EleksMaker's EleksMill, bought it from Banggood , assembled it and started playing with it :)

(http://www.sleutelspoor.nl/img/CamBam/IMG_4284.JPG)

To play really nice I had to find some good software, since the EleksMaker soft is real crap.

As I also want to use the little baby for milling PCBs, I looked and found a Plugin for CadSoft's Eagle which produces nice clean GCODE. For operating the machine I used the Universal GCODE Sender...

After that, since I design all my stuff in AutoCad, I looked for good DXF to GCODE converters... alas... all free stuff looks crap to me.
Then I found CamBam...  ;D ;D  Took the 40x run free trial, and immediately was impressed with it. I made some train-window-glazing from clear 1.5mm acryllic... just using CamBam's GCODE uploaded by UGS.

(http://www.sleutelspoor.nl/img/CamBam/IMG_4285.JPG)

Then I started to look around in the CamBam doc's ( pretty impressive also btw ;) )and...

Found this board ! About Plugins for CamBam. Immediately the idea of having an integrated GCODE sender inside CamBam kept my mind busy for a day or two. Then I sat down and wrote the plugin which I would like to share here with you guys :) Of course in the meanwhile buying The CamBam full Licence ;)

The Plugin installs a 3rd tab in CamBam's tabpanel. Inside the tab you'll find a couple of expanders:

Display      --> Shows an LCD display with the most important, realtime, data directly from the machine
Production --> This will be the actual GCODE sender. It's filename is integrated with CamBam's generated CGCODE file
Jogging      --> Lets you run around the machine, set it's working origin etc.
Console      --> Shows a commandline, from which you can enter and send GCODE directly to the machine and a log window for the commununication between the Plugin and the machine.
Connection --> Lets you select a comport and connect really to the machine. It has an auto USB recognition feature
About         --> Some words about the Plugin ;)

In addition to all those screens, I implemented the whole $?? properties to show in the CamBam Propertygrid. From where you can view and (!!) change the machine's settings.

https://www.youtube.com/v/iBq3JN3S3mY
https://youtu.be/iBq3JN3S3mY

So... feel free to try it out and please give me your opinion, tipos, tricks, bugs, etc :)

Grtzz,

Karst

P.S. The Plugin is far from ready. The Production Expander does not yet send anything to GRBL... ;) That's up for the next preview ( when and if you guys like my work ;) ) The plugin is ready as software can be ;)

[History]

15th Mar 2017: Attached v0.9.0 (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51815#msg51815)
16th Mar 2017: Attached v0.9.2 (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51826#msg51826)
19th Mar 2017: Attached v0.9.3 (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51898#msg51898)
20th Mar 2017: Attached v0.9.4 and v0.9.4 source (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51923#msg51923)
20th Mar 2017: Re-uploaded v0.9.4 source (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51923#msg51923)
21st Mar 2017: Attached v0.9.5 and v0.9.5 source (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51964#msg51964)
24th Mar 2017: Attached v0.9.6 and v0.9.6 source (http://www.cambam.co.uk/forum/index.php?topic=6482.msg52012#msg52012)
26th Mar 2017: Attached v0.9.7 and v0.9.7 source (http://www.cambam.co.uk/forum/index.php?topic=6482.msg52075#msg52075)
30th Mar 2017: Attached v1.0.0 and v1.0.0 source, including CamBam.CAD.Solids (http://www.cambam.co.uk/forum/index.php?topic=6482.msg52255#msg52255)

[/History]


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: lloydsp on March 14, 2017, 22:16:41 pm
Karst,
Welcome to the forum from a 'semi-retired' old EE.  I now make tools for the manufacture of fireworks... but since I've seen a bit of "fireworks" in my electronics background, it wasn't too great a leap.

Thank you for coming into the group with an offering!  It looks interesting (and looks like you did your homework!).

Lloyd


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dh42 on March 15, 2017, 00:21:22 am
Hello

Welcome to the forum, and thanks for this nice plugin  :D ; I think it will be of interest for a lot of people.

++
David


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: Bubba on March 15, 2017, 00:23:40 am
Karst,
Welcome to the CamBam family.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dh42 on March 15, 2017, 00:32:05 am
Re

I do not know if it is because I run it on Win XP (and CB 1.0), but after the plugin is installed, the Cambam colors are changed and the small icons for drawing objects, machining operations, layer, etc .. have disappeared from the tree at the left side (picture)

++
David

Edit: same with CB 0.98


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 15, 2017, 00:36:13 am
Hi,

Must be XP.

I switch CamBam into 'UseVisualStyles' to get nicer graphics.

But I'll make that configurable and off by default on XP ;)


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dh42 on March 15, 2017, 00:42:03 am
Re

Ok, no pb on W7 all the icons are present ;)

Quote
I switch CamBam into 'UseVisualStyles' to get nicer graphics.

how did you do that ?

++
David


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 15, 2017, 00:52:04 am
Since 'InstallPlugin' is called with still no UI elements active, it is still timely enough to call Application.EnableVisualStyles. That's possible in all Windows Forms applications .


 https://msdn.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles(v=vs.110).aspx


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: lloydsp on March 15, 2017, 02:13:19 am
Oh, Karth!  You're going to be a treasure around here!   :)

Lloyd


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: Dragonfly on March 15, 2017, 08:48:25 am
I am impressed. Nothing more to add.
And I think the forum got a valuable new member.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: jk on March 15, 2017, 11:41:31 am
It's the most radical integration in cambam I've seen )

I'm not in grbl, but think grbl users must be very interested.

IMHO machine control plugin shouldn't touch the visual style of host, it's the machine control plugin, not
a gui tweaker after all ) Better to hand off this job to another small and self-sufficient plugin.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 15, 2017, 12:19:00 pm
Hi All,

Thanks for the warm welcome :) 8)

@jk,

Agree, maybe it should in a separate plugin... although the machine control needs some UI tweaks by itsself. Anyway, in the version that will be here tonight, it's configurable ;)

I'll consider releasing the EnableVisualStyles plugin also separately  ;D



Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: Garyhlucas on March 15, 2017, 13:33:44 pm
A question a Grbl. I understand it is motion control software for the Arduino? I am guessing it doesn't have a user interface as such, hence your desire to build one in CamBam?


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 15, 2017, 13:54:04 pm
Hi Gary,

Yep, that is correct. GRBL is motion firmware for Arduino based CNC-controller boards. It's only interface to the outside world is a serial connection, usually via USB.

So no (G)UI whatsoever.  Of course, one could build another Arduino sketch which has a display, buttons etc. This sketch would then talk to the GRBL Arduino trough their serial interfaces.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: BR52 on March 15, 2017, 16:22:31 pm
Hi Karst,

Excellent idea, very radical!
Please see here: http://www.cambam.co.uk/forum/index.php?topic=3675.msg31647#msg31647

   Armando


Title: [UPDATE] GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 15, 2017, 21:47:41 pm
Hi All,

I posted a new version at the bottom of this post: GRBL v1.1 Machine Control and GCODE sender Plugin (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51798#msg51798)

-- The VisualStyles option is now configurable by an advanced property in (General) and is by default turned off on Linux and XP.

-- The complete UI is ( should be :P ) fully functional now
-- Most work was done on the Display Expander. There are a lot of tooltips and context menu's now

Next job is to make the GCODE-streamer, so that we can also really machine some stuff ;)

@Armando

Thnx :) Yes, I've seen that one. Not bad at all on first sight. Although I would never program in VB ;) But it still is an external program... and as quoted here: "...We've got a lot of real programming 'gurus' here, but not everyone is even comfortable with downloading software, much less copying and renaming files by hand..." (http://www.cambam.co.uk/forum/index.php?topic=6368.msg50958#msg50958)

@David

To start from 'clean' on your XP box, please remove GRBLMachine.config from the %ProgData% directory ;)


@All

Happy trying out to you all  ;D


Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 16, 2017, 21:24:09 pm
Hi All,

I've seen 15 downloads so far :)  8) 8) great !

So then for all of you downloaders ( and of course others ;) ) .....

Version 0.9.2 is there !

I posted this new version at the bottom of this post: GRBL v1.1 Machine Control and GCODE sender Plugin (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51798#msg51798)

The GCODE streamer is in ! ( and working ) As far as I could test it with my little EleksMill, it seems to run quite nicely  8)

So if anyone has a machine with GRBL v1.1 sitting around and could do some tests on it... I would be really gratefull.
Using the 'default' postprocessor, I needed to filter out all officially documented unsupported GCODEs (https://www.shapeoko.com/wiki/index.php/G-Code#G-code_Not_supported_by_Grbl) from the stream.
Further more, comments are also filtered out. This feature although is not yet 100% bulletproof --> ( comment ) comments are taken away, but also any following valid GCODE :(
Finally all white-space is removed from a code line, to maximize throughput and keep GRBL's path-planner busy.

Toolchange M6 is intercepted and skipped. Toolchange will be something I will very probably implement in GRBLMachine, since I gonna need it for PCB drilling... ;) ( any suggestions how to do it are welcome )

The GCODE sender is fully multi-threaded and runs completely in the background. While machining, CamBam can be fully used ! You might even open other files/projects. Until the job is finished, GRBLMachine latches the original file in memory.
Note that while the machine is NOT IDLE, some of the UI options are disabled ( since e.g. $ codes are not permitted on a rinnung machine ).
The Commandline however stays open... commands entered and sent from there will be inserted in the currently executing job !!!


Well, that's it for now, here is a little movie:
https://www.youtube.com/v/AlxNpKsV2qI
https://youtu.be/AlxNpKsV2qI

Grtzz and please keep me informed about what you think of GRBLMachine,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: lloydsp on March 16, 2017, 22:12:32 pm
Karst,
We VERY much appreciate your contributions.  It is amazing that you've delved so-deeply into the inner-workings of CB.

IF it does not conflict with your professional relationships, it is usual (but not demanded) that you eventually also publish your source-code.  That, because so many folks can learn from it.

We're a 'close' community here, and anything anyone ever has written has become the basis for other, more imaginative creations.  Heck!  I'm an electronics tech, not a 'programmer', per se (although I must do it to make my projects work)... and even I have written a handful of useful - if primitive - additions to CB.

We are both amazed by your first contribution here, and (for me) humbled.  PLEASE consider what I've said as only constructive, and not any sort of demand.

Lloyd


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 16, 2017, 22:20:44 pm
Hi LLoyd,

Will do :) No problem nor offence at all ;) But first need some feedback from here... with 'buggy' source-code nobody is helped ;)

Question: Would it be appreciated if I would put a 'Donate' button on my 'About-Expander' ? :P

And yeah... delving into 'foreign' software is kinda my job  ::) But I really have to make compliments to the creators of CamBam. Although scarcely documented (API), all the names and classes speak for them selves ;) It was not hard to find out where and how to intercept and install stuff ;) Very cool indeed !!

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: lloydsp on March 16, 2017, 22:35:40 pm
<Big Smile>!

I agree, buggy software will only serve to confuse future perusers of the code!

Give kudos to Andy for his marvelous work on this project.

Lloyd


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: gerritv on March 16, 2017, 23:31:05 pm
Very slick integration into CamBam.

To save you some effort, there is not supposed to be any gcode after a comment. Grbl happily discards it anyway but removing them in the GUI will of course save transmission time.

Also I would think it best to not allow MDI/gcode entry while the job is running. I can't imagine how that would be predictable as to where the line comes into the stream. Most or all of the GUI's block direct input when running a file.

Gerrit



Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dh42 on March 17, 2017, 11:27:33 am
Hello

Yes, as say Lloyd, very amazing job  :o

Quote
So if anyone has a machine with GRBL v1.1 sitting around and could do some tests on it... I would be really gratefull.

My CNc don't work with GRBL, but I wonder if, maybe, my 3D printer can be used to test ? (Melzi Ardentissimo motherboard)

I'm not sure to understand the workflow  :-[ ; It's the plugin that do the Gcode ? or the workflow is the same than with other machine, so we must do the Gcode as usual with a GRBL post pro then run it with your plugin ?

++
David


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: Dragonfly on March 17, 2017, 11:54:12 am
At least one person here uses GRBL. I remember someone asked about a GRLB post in the PP section.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dh42 on March 17, 2017, 12:09:19 pm
onekk (carlo) have a GRBL machine

++
David


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 17, 2017, 12:09:51 pm
Hi,

Thnx for the credits ;)

You can try to connect to any device. Before connecting, open the console. If the device is GRBL driven, it will display a welcome message in the Console Window. GRBLMachine scans for that and will recognize that message and then start operating.

Workflow:

-Create/import a drawing,
-Add MOPs
-Generate Toolpath
-Generate GCODE

uptil here, just normal CamBam workflow. ;)

The last item (Generate GCODE) is monitored by GRBLMachine and will show the just generated file in it's Production-Expander.

then cont'd worflow:

- Select Machine Tab,
(optional)
- Open Jogging-Expander
- Setup Machine origin
(/optional)
- Open Production-Expander
- Press the Play button
- Wait until ready / Do something else with CamBam  8) ( exept closing it ;) )

... that's all ;)

In the meanwhile you can enjoy looking at the Display-Expander and/or the Console-Expander where all kind of info is displayed.

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 17, 2017, 12:15:22 pm
Quote from: dh42
... my 3D printer can be used to test ? (Melzi Ardentissimo motherboard)

AFAICS that board runs Marlin, not GRBL.

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dh42 on March 17, 2017, 12:29:51 pm
Quote from: dh42
... my 3D printer can be used to test ? (Melzi Ardentissimo motherboard)

AFAICS that board runs Marlin, not GRBL.

Grtzz,

Karst

Ah OK, so I can't test ..

++
David


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: lloydsp on March 17, 2017, 12:50:27 pm
I'm tempted to buy something GRBL-driven, just to test this module.  IIRC, I think SparkFun has some little GRBL robotics devices.

Lloyd


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 17, 2017, 13:13:50 pm
Quote from: dh42
Ah OK, so I can't test ..

Quote from: lloydsp
I'm tempted to buy something GRBL-driven, just to test this module.  IIRC, I think SparkFun has some little GRBL robotics devices.

@both

Simplest thing is to hook-up an Arduino-Nano ( clones are available for a couple of bucks from Banggood  (http://www.banggood.com/ATmega328P-Nano-V3-Controller-Board-Compatible-Arduino-p-940937.html?rmmds=search)) and load it with GRBL v1.1 (https://github.com/gnea/grbl/releases)

That will let you test the majority of the functionality. All normal stuff works, except Hard- and Soft Limits wich depend on Limit Switches as does the Homing-cycle. Of course you won't see anything moving ;)


Grtzz,

Karst

P.S. for a bit more, you can have a complete CNC board with Stepper drivers etc. (http://www.banggood.com/CNC-Shield-V4-Expansion-Board-With-Nano-A4988-For-Arduino-3D-Printer-p-970335.html?rmmds=search)


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: lloydsp on March 17, 2017, 14:47:19 pm
Bingo, Karst.  If I purchase the steppers, too, I'll have the beginnings of a small desktop multi-axis machine of my choice!

Thanks again.

Lloyd


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 17, 2017, 21:12:32 pm
Hi Lloyd,

take care with the one I mention in the link.  It seems to be not 100% compatible with GRBL. It's only possible when you hack the GRBL distribution. ( which is not rocket science ;) )

On the same site ( Banggood ) there are more which are really 100% compatible. And... include a power PWM for the spindle speed. ( or laser intensity )

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: onekk on March 18, 2017, 08:22:22 am
Very nice addition, I want to see the code as your integration is great, many of the plugins writers I suppose will want to take inspirations of your code.

I use GRBL 0.9, but I'm running it on a Stand alone machine equipped with and SOM running debian for arm so no luck on running cambam on it (few horsepower and i doubt Mono don't work on Arm).

But indeed the concept is very interesting, with an "old" laptop and a GRBL you can run a semi professional machine with cambam that control the cnc directly, very promising approach.

About the "buggy" code, it's better to have a buggy source code than nothing, expecially when the API is not well documented.

CamBam is a great piece of code even if it is not developed by a great company (I think the company is composed only by Andy), but has the great advantage to bring a decent CAM software that work both on Windows and Linux (I think the it is the only "serious" Linux CAM software available).

Regards


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: BR52 on March 18, 2017, 13:13:36 pm
@Carlo (onekk)

Very nice addition, I want to see the code as your integration is great, many of the plugins writers
I suppose will want to take inspirations of your code.
--------------------------------------------------------------------------
+ 1  ;)

   Armando


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 19, 2017, 17:05:08 pm
Hi All,

I've seen 13 downloads of v0.9.2 so far :)  8) 8) great !

So then for all of you downloaders ( and of course others ;) ) .....

Version 0.9.3 is there !

I posted this new version at the bottom of this post: GRBL v1.1 Machine Control and GCODE sender Plugin (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51798#msg51798)

Next to some enhancement/fixes in the main part of the plugin, I added ( I think :P ) an awesome cool feature...

(http://www.sleutelspoor.nl/img/CamBam/screenshot-2.png) (http://www.sleutelspoor.nl/img/CamBam/screenshot-2.png)
(click for the full picture)

The plugin can now, in realtime, track the movement of the machine's tool in the CAD-View :) 8)
In addition it is able to show the machine's bounding-box ( that is Maximum Axis Travels ).

Of course you can enable/disable all these features from the property inspector ;) (Tip: Press the 'Advanced' button and walk through them ... )

I use this feature with the steppers off, but the Arduino powered to check my GCODE.

Workflow:

- Load a drawing,
- Switch to ISO view-mode
- Press ^T ( Generate and display Toolpaths )
- Press ^W ( Generate GCODE )
- Turn on 'Track Machine Tool in Drawing' in GRBLMachine
- Turn on 'Draw Machine Bounds in Drawing' in GRBLMachine
- Jog to your origin with GRBLMAchine
- Set your 0,0,0 point
- press 'Play' in the production-Expander

Known Issue: The bounding-box is still always in Millimeters ( GRBL defines them that way ;) ) so when you have a drawing in Inches, your displayed bounding box will be off by a factor of 25.4 too large ;)

Suspected Issue: With Homing Cycle enabled, it might be that the boundingbox is not in the correct position. As soon as I have my limit switches installed, I will know ;)

Well, that's it for now, here is a little movie how it shows up:
https://www.youtube.com/v/jYw22HQvBY8
https://youtu.be/jYw22HQvBY8

@David

Thnx for putting it on the Plug-in site !  8)


Grtzz and please keep me informed about what you think of GRBLMachine,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dh42 on March 19, 2017, 18:37:22 pm
Whooo  :o

++
David


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: EddyCurrent on March 19, 2017, 20:22:07 pm
Though the control and interface is very good, I'm not a fan of the integration into CamBam and agree with jk's comments on that subject.
This simulation part though is very impressive and I like it a lot, but GRBL is not something I'll be using.
With the arduino and simulation it could be adapted to work as a mini SCADA system.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: tau on March 19, 2017, 20:51:52 pm
Hallo Karst(en)?!

auch wenn ich nichts mit GRBL anfangen kann...

Die Integration deines PlugIns in CamBam ist eindrucksvoll!  ;)


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: Bubba on March 19, 2017, 21:38:30 pm
Though the control and interface is very good, I'm not a fan of the integration into CamBam and agree with jk's comments on that subject.
**********************
+1  ;)


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dave benson on March 19, 2017, 21:43:38 pm
Without doubt the most sophisticated plugin I've seen. mmm..... you seem to have "raised the bar" quite a bit.
Kudos to you.  :)
Dave


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 19, 2017, 22:47:19 pm
Hi All,

Thnx for all the Kudos :)

@Eddy & Bubba

I already agreed upon JK's remark. That is I think he only meant the VisualStyles ;)

I myself like to work from integrated environments. By now, CamBam is for milling what my LaserCutter software is for lasering :) So I am happy  ;D

But soon I'll release the source-code, so whomever may want to use, parts of it, for his own plugin(s) is welcome.

@tau

Ja, es ist Karst. Danke fuer das Kompliment  8)

@dave

That was not intentional, but I hope I gave some idea's to other Pluginners  ;)

@david

I guess you liked it ? :)


Grtzz,

Karst

P.S. In 0.9.3  long diagonal tool moves are still a bit jerky, I already solved that. Comes with 0.9.4 :P


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: lloydsp on March 19, 2017, 23:34:41 pm
"I myself like to work from integrated environments. By now, CamBam if foor miling what my LaserCutter software is for lasering Smiley So I am happy  Grin

But soon I'll release the source-code, so whomever may want to use, parts of it, for his own plugin(s) is welcome."
---------------------

For me, the mere idea that one CAN 'integrate' into CB is a revealing thing, and although I could not say whether I prefer it or not, I am certain that your code will be a wonderful addition to our art.

Thanks for your work!

Lloyd


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dh42 on March 20, 2017, 13:02:53 pm
Hello

Quote
@david
I guess you liked it ?

Yes, I can't use it ... but I like  ;D

very nice job !

Quote
With the arduino and simulation it could be adapted to work as a mini SCADA system.

some time ago, Andy say me that He was able to run CB (linux version) on a rasberry Pi

++
David


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 20, 2017, 15:12:22 pm
Hi All,

As promised,

Version 0.9.4 is there, now including sources  !

I posted this new version at the bottom of this post: GRBL v1.1 Machine Control and GCODE sender Plugin (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51798#msg51798)

Only one small fix: Smoother movement of the tool in case of non-quadrature moves...

And of course the complete sources, project and solution files. Just unpack into an empty directory.
Note that the project was made with Visual Studio 2015. So you might need to upgrade your environment to be able to open and build the solution.

Grtzz and please keep me informed about what you think of GRBLMachine,

Karst

Note: Probably due to my code re-organization, GRBLMachinePage cannot be opened anymore in the designer... it let's VS crash :'(
I am looking into it ;)


It's fixed now, uploaded a new zip ;)


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: tau on March 20, 2017, 17:32:56 pm
Karst,

thanks for publishing the sources as well!

I think this will be of great value to all 'Pseudo'-Programmers like myself!   :D

Cheers,  Tunc


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: lloydsp on March 20, 2017, 18:25:57 pm
Karst,
I've downloaded your code, and in the next few days I'll begin to explore it.

Again, I think what you've done is amazing.  We, as a group, will get great benefit from some features you've uncovered that (I think) no one -except maybe Andy- actually knew existed!

Lloyd


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: atwooddon on March 20, 2017, 20:37:05 pm
Karst,

Thank you so much for your efforts and contribution to the CamBam 'family'.  Your plugin will allow me to test GRBL along side my Mach3/HobbyCNC setup using the same base program.  While my Mach3 setup was/is working ok, I am venturing into the Marlin/GRBL/Smoothie world and this will definitely help.

Don


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: BR52 on March 21, 2017, 01:32:39 am
Hi Karst,

I've downloaded your source code, and compiled in my Visual Studio 2013
I added a few things, that was missing!

I have two 3D printer, I will install: CNC Shield + Arduino Uno + https://github.com/grbl/grbl

   Armando


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 21, 2017, 06:46:33 am
Hi Armando,

COOL !  ;D 8)

I am curious what was missing... ;)

But better take GRBL frome here: https://github.com/gnea/grbl/releases ( that's v1.1f )

Grtzz and have fun with it,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: BR52 on March 21, 2017, 15:35:26 pm
Karst,

Maybe it's my compiler that does not recognize the "using static GRBLMachine.GRBLMachinePlugin".

For example the "ConnectionExpander.cs" file, I had to manually put the class "GRBLMachinePlugin"
that was missing.

See image above.  8)

   Armando


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 21, 2017, 19:24:08 pm
Hi All,

And still going strong,

Version 0.9.5 is there, as usual also including sources  !

I posted this new version at the bottom of this post: GRBL v1.1 Machine Control and GCODE sender Plugin (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51798#msg51798)

Fixes this time:

- Re-did the sources to remove "using static". Pre 2015 Visual Studio's compilers do not understand that...
- Animation is again smoother than before. It proved that the Windows timer is not always
     ticking at the same rate ( +15, - 0 ms  :o ) so compensation is built in for that
- When the tool does not move, refreshrate is 10 times slower than while moving. Saves precious CPU cycles
- When switching away from the 'Machine' tab, the tool tracking is hidden ( so one can work on the drawing )
- Since I started testing and using plain, elsewhere generated GCODE files ( Eagle in this case )
     I saw that these imports do not contain any elements, only toolpaths. The plugin however is
     tracing them perfectly, there is no problem. And I can use them. However CamBam also does
     not fill it's 'Outfile'. GRBLMachine is adapted to now see also the GCODE file that was imported.
     Maybe some might consider it as 'CamBam-mis-use' but it's very handy for me. Working in this
     mode CamBam is for me THE GCODE Sender DeLuxe :) :P  8)
- As while tracking the machine, it is very nice to see the drawing in 3D, now when pressing
     the 'Play' button, the View is set to 3D and 'Zoomed to Fit'
- But... 'Zoom To Fit' does not take toolpaths into account... So, I wrote an extension
     called 'GetScreenExtentsEx', which in addition to the standard call also measures toolpaths
     when present. 'ZoomToFitEx' is the logical consequence... this has also been written ;)
- Some namespaces have been renamed, so that they may also be used by other pluginners ;)

@Armando

I hope your problem is solved by the changes in this release.


Grtzz and please keep me informed about what you think of GRBLMachine,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: Garyhlucas on March 21, 2017, 22:18:12 pm
You know Karst if you don't stop showing off we are going to have to throw some really tough coding tasks your way!  But please finish what you've started first.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 21, 2017, 22:29:19 pm
Hi Gary,

Willing to do so ;) :P

Albeit that I prefer some UI stuff ;) Doing all those Matrix Math is not really my kinda thing... ( allthough I manage, the knowledge about it is/was burried 35 years in the back of my memory ;) )

But indeed, first finish this project, the Tool Change is on schedule right now ;) Basically it's already working, just have to do some GCODE parsing to give the user a clue about the tool CamBam wants him to put ;)

Once again I must give many, many Kudos to Andy !! It's a breeze to program to the CamBam-API !!  8) 8)


Grtzz,

Karst


[edit]

(http://www.sleutelspoor.nl/img/CamBam/screenshot-3.png) (http://www.sleutelspoor.nl/img/CamBam/screenshot-3.png)
(click for the full picture)

That's the message right now... note the tool moved to the tool change position ( lower left in the propinspector )

[/edit]


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 23, 2017, 23:33:14 pm
Hi All,

Just to show ( off :P ) my proceedings on the toolchanger :)

https://www.youtube.com/v/iBq3JN3S3mY
https://youtu.be/iBq3JN3S3mY

As you can see in the video, there are quite some new features in this version.
Figuring out how the ToolDefinitions, MOPs, Parts and Machining options work, was quite a job ;)
But.... I managed.

V0.9.6 will come with it's own Post Processor, which will be automatically installed by GRBLMachine ( and eventually updated when a new version is there ) This processor generates some special comment for the tool changes which can be picked up by GRBLMachine. There is also an option to ignore any tool changes or to pass them just on to Grbl.

For the rest there has been some smoothing on the UX part (a.o. enabling disabling buttons in the right moment, error and alarm messages in the display Expander)
Code-wise the number of CamBam-Extension have grown considerably ;)

I'll post the update soon, including source.

Grtzz and please keep me informed about what you think of GRBLMachine,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: lloydsp on March 23, 2017, 23:48:18 pm
Karst,

You may just go ahead and "show off" all you want!  Your contributions are much more than just 'appreciated', they're very valuable to our collective efforts.

Thanks!
Lloyd


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: BR52 on March 24, 2017, 01:07:08 am
I installed GRBL https://github.com/gnea/grbl/releases ( that's v1.1f ) on Arduino Uno already tested.

Hope the next version works!

   Armando


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 24, 2017, 05:52:54 am
Hi All,

@Lloyd

Thanks ! :)

@Armando

Does v1.1f not work ? I have it here on a Nano, works like a charm  :-\

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 24, 2017, 07:37:48 am
Hi All,

Looks like we are changing tools now,

Version 0.9.6 is there, as usual also including sources  !

I posted this new version at the bottom of this post: GRBL v1.1 Machine Control and GCODE sender Plugin (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51798#msg51798)

Mods: see above (http://www.cambam.co.uk/forum/index.php?topic=6482.msg52005#msg52005) + parsing of grbl-data is now done with en_US culture, might solve problems if you don't have your PC set to see '.' as decimal point.

Grtzz and please keep me informed about what you think of GRBLMachine,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: michel on March 24, 2017, 22:53:02 pm
Hi Karst,

I tied the plugin but was not useable for me and i removed the dll file from the pluginfolder. I have since that plugin now an error message in cb when I use the zoom to drawing button ??

how can this be fixed ?

regrads
Michel






Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 24, 2017, 23:09:04 pm
Hi,

It seems you have V1.0 running ?

And have the Zoom To Drawing plug in for v0.9.8

In v0.9.8 LineColor is a field, in 1.0 LineColor is a property.

To me it seems that it has nothing to do withyou removing the GRLBMachine dll

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: llamatrails on March 24, 2017, 23:38:58 pm

First off, thanks for this fantastic plugin!

Not to be picky, but I just loaded the version 0.9.6 and can't find the grbl Machine tab 'About' dropdown anymore.  Is there another way to verify the installed version of the plugin?

TIA,
Rick

CamBam plus [1.0] Rel 12 on Windoze 10


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 24, 2017, 23:47:32 pm
Hi,

Maybe it's hidden under the PropertyEditor ? ( close some of the other dropdowns )

But I just saw that the interal version number has not been bumped... :'( Even if you see it, it will show 0.9.5

When however you right-click the GRBLMachine.dll in your plugins folder, you'll see 'FileVersion' under 'Details', there it says 0.9.6.0 ;)

Oh... by the way.. If you have the Tool Change button in the Production Tab, you have 0.9.6 ;)

Grtzz & thnx for the feedback !

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: llamatrails on March 25, 2017, 00:46:38 am
Yep, there it is, buried under the Property Editor.   Agghhh, hate when that happens ...

Rick


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 25, 2017, 10:37:04 am
 ;D

btw, there should have been a scrollbar on the right of the 'grb Machine' Tab...  :-\

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: atwooddon on March 25, 2017, 18:45:33 pm
Michel

Yes, you could do that, or you could use the CAMotics plug in to feed your gcode (and tools) directly to the CAMotics simulator.  Works great.  There is also an interface to Cutviewer (another CNC simulator) in CamBam.

Don


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 25, 2017, 19:22:54 pm
just buy yourself a Arduino Nano clone from Banggood, load it with GRBL v1.1f and plug it in.

see a post from BR52 some pages back in this topic.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 26, 2017, 15:40:36 pm
Hi All,

Getting to finalize the product... :) ( no more feature wishes left on my list ;) )

Version 0.9.7 is there, as usual also including sources  !

I posted this new version at the bottom of this post: GRBL v1.1 Machine Control and GCODE sender Plugin (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51798#msg51798)

Mods:

All the mods involve the visuals of the tool. For that I wrote a couple of new CamBam Extensions as well as some 'Surface' derived primitives like Cylinder, Rod, Disc and Sphere. I needed them all to construct the tool visuals, but I guess they might also be usefull for some 3D-CAD stuff... So anybody ever wanted to add a 3D SPhere, Cylinder, Rod, Cone or Disc to a drawing ?? ( I could make a separate Plugin, which would allow them to put in the drawing ;) ) In addition to all that I needed an Extrude function where 'taper' is working. So I also wrote that in a CamBam Extension.


Some pics of the various tools:

(http://www.sleutelspoor.nl/img/CamBam/Endmill.png) (http://www.sleutelspoor.nl/img/CamBam/Endmill.png)
(click for the full picture)

The Endmill.  Note the Cone between Shank and Flute ;)


(http://www.sleutelspoor.nl/img/CamBam/BallNosemill.png) (http://www.sleutelspoor.nl/img/CamBam/BallNosemill.png)
(click for the full picture)

The BullNose mill.  Note the ball ... :P


(http://www.sleutelspoor.nl/img/CamBam/vcutter.png) (http://www.sleutelspoor.nl/img/CamBam/vcutter.png)
(click for the full picture)

A V-Cutter.  Note the ring around the cone...


(http://www.sleutelspoor.nl/img/CamBam/drill.png) (http://www.sleutelspoor.nl/img/CamBam/drill.png)
(click for the full picture)

And a drill...


Then some Lasers...

(http://www.sleutelspoor.nl/img/CamBam/laser-off.png) (http://www.sleutelspoor.nl/img/CamBam/laser-off.png)
(click for the full picture)

GRBL has a special Laser Mode with which it can control Laser Intensity. Here the intensity (settable) for 'off'


(http://www.sleutelspoor.nl/img/CamBam/laser-on.png) (http://www.sleutelspoor.nl/img/CamBam/laser-on.png)
(click for the full picture)

... and here it's full on  8)

GRBLMachine recognizes wat GRBL is doing to the laser and shows it in the tool.



So... have fun with the plugin and/or the sources !


Grtzz and please keep me informed about what you think of GRBLMachine,

Karst

P.S. Did anybody ever find the 'Subtract' function for Surfaces ? The 'Join' exists and I used it extensively ;)


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dh42 on March 26, 2017, 16:08:58 pm
Hello,

Amazing job as usual  :o

Quote
P.S. Did anybody ever find the 'Subtract' function for Surfaces ? The 'Join' exists and I used it extensively

I do not think there are any subtract function for Surfaces. Only join and explode works on surfaces.

++
David


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: lloydsp on March 26, 2017, 16:18:37 pm
DAMN, Karst!  That's absolutely amazing!

Lloyd


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: Garyhlucas on March 26, 2017, 16:56:18 pm
Karst,
For those that don't have 3d cad what you have done would be huge.  Three things missing that I see. Extrude Polygon, especially with taper.  Revolve to create a round shape from a polygon. Difference so you can subtract the solid from another solid to create a cavity.

Nice job!


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: Bubba on March 26, 2017, 18:30:28 pm
Karst,
Even tho I don't care about the CB merger to CnC Controll I must say, this is impressive piece of work. 8)


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 27, 2017, 15:29:23 pm
Hi,

Quote from: Garyhlucas
Karst,
For those that don't have 3d cad what you have done would be huge.  Three things missing that I see. Extrude Polygon, especially with taper.  Revolve to create a round shape from a polygon. Difference so you can subtract the solid from another solid to create a cavity.

See the pictures below for what I meant :)  And yes, revolve would be n.t.h., but subtract and union is a must !

For the pictures:

- the first one shows 4 'Shapes' constructed from code. Of course it should come with an UI to create the shape
- the second one is how the resulting .cb looks like. 

Code:
public class Shape : Surface
  {
    public static void AddExtraTypes()
    {
      CADFile.ExtraTypes.Add(typeof(Cylinder));
      CADFile.ExtraTypes.Add(typeof(Rod));
      CADFile.ExtraTypes.Add(typeof(Disc));
      CADFile.ExtraTypes.Add(typeof(Sphere));
    }

    [XmlAttribute(AttributeName = "type", Namespace = "http://www.w3.org/2001/XMLSchema-instance")]
    public virtual string TypeName
    {
      get { return GetType().Name; }
      set {                        }
    }
  }

  [Serializable]
  [XmlRoot("cylinder")]
  public class Cylinder : Shape
  {
     ...
     ...
     ...
  }

... and this is the way it is done in the shape's code. Needed only some XML annotation and CamBam did the rest ;) :P

Cool thing of course is, that CB can also read-back it's own file ;)

Another approach could be:

Code:
  [Serializable]
  [XmlRoot("surface")]
  public class Cylinder : Surface
  {
     ...
     ...
     ...
  }

... which will return all shapes as surfaces upon reading the .cb file.

For me the first approach would be the preferent one. The Shape class could then carry more of it's own attributes



Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: BR52 on March 28, 2017, 19:19:40 pm
Hello

Arduino UNO or Arduino NANO are similar, works well with GRBL with other applications.
It does not work with GRBLMachinePlugin, see the two screenshot below.

Please, for the person who worked, manifest here!

   Armando


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 28, 2017, 19:31:29 pm
hi Armando,

 it looks like you do not have Grbl v 1.1f on the Arduino. GRBLMachine does not work with Grbl versions below 1.1

please right-click on the console and select 'Verbose' to see more detail.


grtzz,

karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: BR52 on March 28, 2017, 20:41:34 pm
Hi Karst,

I selected 'verbose' on the console.
Okay, except the g-code run very fast on the console and did not move tool on the Cambam screen.

Does not work!  :'(

   Armando


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 28, 2017, 21:36:24 pm
Armando,

Quote from: karst.drenth
... it looks like you do not have Grbl v 1.1f on the Arduino. GRBLMachine does not work with Grbl versions below 1.1...


To verify this,

- Start CamBam with GRBLMachine enabled
- Close 'Production'
- Close 'Jogging'
- Open 'Console'
- Open Connection
- Connect
- Scroll console up to the beginning
- Please post a picture of what you see.

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: gerritv on March 28, 2017, 21:58:04 pm
The current version of GrblPanel shows the Grbl version in Settings page. Also if running Grbl 1.x then the Overrides controls show on right hand size of display, since those are not showing dh52 is Grbl 0.9x

Gerrit


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: BR52 on March 29, 2017, 00:21:38 am
Karst,

Sorry the error was mine, I changed the folders by mistake, I had the old one.
I confirmed the version with GeblPanel, thank you very much Gerrit.

Works perfectly, Karst you are a very valuable jewel.

   Armando


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 29, 2017, 07:04:31 am
Hi Armando,

Good to see it works there for you.

But I still see some exceptions... and... no Speed and Feed readout.

I will check if it's possible to make GRBLMachine (partially) compatible with lower versions of Grbl.

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 29, 2017, 12:04:54 pm
Hi All & Armando,

Good news !

I just completed making GRBLMachine compatible with versions from 0.8a upwards :D

Version 0.8x and 0.9x have limited functionality, since they do not send speed and feed data. This makes the animation a bit more jerky/shaky. For full functionality it is still advised to have Grbl 1.1f on your machine.

I will post the update later on this day.


Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on March 30, 2017, 22:23:56 pm
Hi All,

Well, AFAIC it's done :P ...

Version 1.0.0 is there, as usual also including sources  !

I posted this new version at the bottom of this post: GRBL v1.1 Machine Control and GCODE sender Plugin (http://www.cambam.co.uk/forum/index.php?topic=6482.msg51798#msg51798)

Mods:

- Solids have been separated from GRBLMachine
- CamBam.CAD.Solids.dll MUST also be installed in 'plugins' ( since GRBLMachine uses it ! )
- GRBLMachine has been made 'tolerant' for Grbl versions from 0.8c ( reduced functionality )

Note: CamBam.CAD.Solids.dll installs the Solids plugin, you can switch off the menu's to create the solids by simply disabling them from the 'Plugins' Menu ;)


So... have fun with the plugin and/or the sources !


Grtzz and please keep me informed about what you think of GRBLMachine,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: BR52 on April 01, 2017, 02:51:02 am

Ladies and Gentlemen, I would like to inform you that GRBLMachinePlugin works perfectly.
I did several tests gave OK.

Many thanks Karst.
Muito obrigado Karst. <-- Brazil

   Armando


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: Dragonfly on April 01, 2017, 09:01:54 am
I've been following the thread with my mouth open, figuratively speaking :)  Amazing what a man who's deep into the internals of programming can do in short time.
Time to give a try to the solids since I don't have GRBL control.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: sraney on April 03, 2017, 16:40:41 pm
Amazing work and I was surprised it just worked once I dropped the files in the plugin folder. No magic needed. I've been using CamBam for my ShapeOko for ages and I was glad to see I can get even more use out of it.

 I was hoping I could scrape a bit of information from you about the EleksMill, would you be so kind to export your EleksMill machine definitions for it? XML or text would be great. 

Also, the VBits they include, are they 45 or 60 deg? 





Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on April 04, 2017, 07:23:23 am
Hi,

Thnx for the compliment !  8)


Well, in the meanwhile I 'extended' my EleksMill a little bit ...

(http://www.sleutelspoor.nl/img/CamBam/IMG_4296.JPG)

(http://www.sleutelspoor.nl/img/CamBam/IMG_4297.JPG)

... I replaced the complete Y-axis with 400mm long parts from AliExpress. Rendering a lot more travel in that direction.
However rigidity suffered from that and therefore the milling capabilities degraded even further. I also tried the laser.

(http://www.sleutelspoor.nl/img/CamBam/IMG_4300.JPG)

... that one is really nice, used it to cut sticky foil. Somewhere this or next week I'll post that work in 'Member Projects' ;)


But... a 3040Z-DQ is on it's way into my workshop. ETA tomorrow afternoon  ;D ;D Then I can do some real milling. But not before I have made a GRBL-to-Parallelport converter ( No parallel port present on my laptop...) In that way I can continue using CamBam + GRBLMachine instead of Mach-3 :P :P

Anyway,

(http://www.sleutelspoor.nl/img/CamBam/IMG_4298.JPG)

... the V-Bit are about 20 degrees and merely engraving bits.


My Eleksmill settings:

(http://www.sleutelspoor.nl/img/CamBam/EleksMill-Settings.png)

... aside from the Axis parameters and dome direction bits, it is still default as Grbl v1.1 comes out of the box.

In text:

Code:
**** Connected to COM170 @ 115200 baud ****

Grbl 1.1e ['$' for help]
>G21F100:ok
>>> $$
$0=10
$1=25
$2=0
$3=6
$4=0
$5=0
$6=0
$10=1
$11=0.010
$12=0.002
$13=0
$20=0
$21=0
$22=0
$23=0
$24=25.000
$25=500.000
$26=250
$27=1.000
$30=1000
$31=70
$32=0
$100=400.000
$101=400.000
$102=400.000
$110=3000.000
$111=5000.000
$112=4000.000
$120=100.000
$121=100.000
$122=200.000
$130=132.000
$131=93.000
$132=35.000
ok

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: atwooddon on April 04, 2017, 23:42:26 pm
Well, I have run into a couple problems.  The first may be plugin related, the second is probably my fault not understanding how GRBL works. 

#1 is a problem that seems to be associated with the GRBL Machine Control and GCODE Plugin.  This problem occurs with version 9.6 and V1.0 of the plug in. And this occurs with both latest releases of CamBam 9.8P and Version 1.0.  As soon as I install the plugin from either version of the GRBL plugin I start getting a WMI Provider Host task running (shows in Task Manager).  And it uses 30-40% of the cpu until I shut down CamBam. I can remove the plug in and the issue goes away.  PC gets very sluggish with the WMI Provider Host task running.  Any ideas?  

#2 Have been trying to get the GRBL Machine Control to work with an Arduino board (no CNC shield attached) just to see if I can get it to recognize the Arduino board, send gcode and display machine movement.  No luck yet.  It recognizes the Com port and seems to get ready to send the gcode but nothing happens after that.

Thanks
Don  


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on April 05, 2017, 06:48:42 am
Hi Don,

Although not obvious, both problems might be related...

GRBLMachine opens two WMI queries to get notified of USB insertion and removal. That's functionality to detect an eventually plugged in Arduino while GRBLMachine already running to update the 'COMPort' combobox. It could be that there is a driver issue with the Arduino, since it apparently won't send data.

1) Please take a look in the console to see whether there are any exception messages.
2) Which version of Grbl do you have loaded into your Arduino ?
3) What Baudrate do you use in GRBLMachine ? ( 9600 for 0.8/0.9 and 115200 for 1.1 )
4) Which version of Windows are you running ?

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: atwooddon on April 05, 2017, 18:41:33 pm
Karst

Thank you for the quick response.  I am running Windows 10 and thought I had uploaded the latest GRBL however I am not sure that was successful.  To verify communications was working, I uploaded my latest Marlin firmware for my 3D printer to the Arduino board and it is working fine.  I can communicate with the board fine. 

Will go back to square 1 for the GRBL upload and make sure that is correct before attempting CamBam again. 

Once again, thanks for your help.  And thank you for the work you have put in on this plugin for CamBam.  If I can get it to work, I may abandon Mach3.  Mach3 has worked well for me but hardware/software technology has moved away from the serial port and dedicated (real time) information being sent from the 'PC'.

Don


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on April 05, 2017, 19:13:52 pm
Hi Don,

Quote from: atwooddon
...Once again, thanks for your help.  And thank you for the work you have put in on this plugin for CamBam...

... you're more than welcome ;)

Quote from: atwooddon
...If I can get it to work, I may abandon Mach3.  Mach3 has worked well for me but hardware/software technology has moved away from the serial port and dedicated (real time) information being sent from the 'PC'...

... that might be a (very) wise thing to do... I will be shortly facing the same 'problem' as soon as my new 3040Z-DQ arrives... It comes from China with merely a parallel port (and a 'copy' of Mach3). First thing to do is build a Grbl Arduino into the controlbox. So stay tuned, there will also be some hardware stuff here to convert a Mach3 machine to Grbl :P And... I am planning full support for tool-length probing, including Auto-Levelling. Of course with the help of CamBam to include the auto-levelling info into the GCODE ... 8)

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: Bubba on April 05, 2017, 21:06:23 pm
I may abandon Mach3.  Mach3 has worked well for me but hardware/software technology has moved away from the serial port and dedicated (real time) information being sent from the 'PC'.
*******************
You are right Don.

Except, since changing from paralel/serial port to ESS (ethernet smooth stepper) Mach3 still rock. For me at least. ;D


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: Dragonfly on April 05, 2017, 22:48:16 pm
Yep, although old Mach3 is still superior in functionality. I've been thinking why for all those years no one produced a PCI I/O card suitable for Mach3. Instead of going the more complicated way of coding and driving data through a serial connection and decoding it again.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: atwooddon on April 06, 2017, 20:52:38 pm
After several days of testing various combinations of firmware, it seems my Aurduino Mega2560 board(s) may not be compatible with GRBL.  They work fine with Marlin and basic Arduino Sketches but do not respond to any GRBL based firmware loads.  I can load Marlin and then use Gcode Sender and when opened the Marlin firmware responds with the typical response messages but with GRBL loaded no responses.  So, it appears my problem is not with CamBam or the GRBL plugin.  I used multiple versions of GRBL so my troubleshooting efforts have been fruitless so far.  Others have said the Mega2560 should work fine with GRBL/RAMPS but for me, no luck.  Arduino boards are cheap so another board may be in my future.

Thanks for everyone's help

Don


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on April 06, 2017, 21:44:32 pm
Hi Don,

There is a special Grbl version for the 2560....

Find it here: https://github.com/gnea/grbl-Mega


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: gerritv on April 06, 2017, 21:45:54 pm
It is not clear which 'grbl' image you are installing. If it is not from here, then it won't work at all: https://github.com/gnea/grbl-Mega .

Gerrit


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: atwooddon on April 06, 2017, 22:09:00 pm
gerritv

That is one that I tried along with about 3 others.

thanks
Don


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: gerritv on April 06, 2017, 22:20:51 pm
mmnn, then I would ask questions on that GitHub. I don't have an ATMega so not much further use to you :-)

Did you try using just a terminal program such as putty? I had to add a start up delay to GrblPanel for ATmege2560 as its initialization takes longer than the other chips.

Gerrit


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: atwooddon on April 06, 2017, 22:45:25 pm
I tested using the basic Gcode Sender and the terminal program in Arduino INO but no change.  It seems there is no response after initial power up.  The board see data coming from the PC but never responds.  Not the board, like I said the board communicates fine using Marlin firmware.  Like I said, if I load Marlin frimware, when I use any type Gcode sender, on initial open of the board it responds with Marlin 'wake up' response.  You may be right on start up delay.  Haven't used it but will look at GRBL Panel to see if changing start up delay works.  My problem does seem to fit that symptom.

thx
Don


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: sraney on April 07, 2017, 05:00:08 am
Thank you for the information, and I'm surpised to hear yours came with GRBL v1.1, mine had an 0.9x version on it that was quite buggy.  I'll have to upgrade it to v1.1.

I was thinking of also expanding my mill, but I had concerns that lengthening might sag and cause drag on the screw. 

Thank you again for the masterwork on the plugin. Now I just need stop playing around drawing squares and circles and do something real!   

- SRANEY

Hi,

Thnx for the compliment !  8)

... aside from the Axis parameters and dome direction bits, it is still default as Grbl v1.1 comes out of the box.

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: atwooddon on April 10, 2017, 16:45:37 pm
Quick update....  I gave up on the Arduino Mega2560 board I have.  I ordered an Arduino Uno with a GRBL shield, no sense wasting any more time trying to get the Mega to function.  The Mega works fine with Marlin but my particular board does not want to cooperate with GRBL.  Looking forward to testing with the Uno GRBL shield combo.  All the problems I have experienced trying the Mega board have nothing to do with CamBam or the GRBL Machine Control and GCODE sender. 

Don


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on April 10, 2017, 23:53:40 pm
Hi All,

While setting up my 3040Z-DQ (http://www.cambam.co.uk/forum/index.php?topic=6537.0) if discovered that the Z-axis resolution setting has a BUG in GRBLMachine...  :-[

So shortly there will be an update ;)


Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: atwooddon on April 12, 2017, 16:02:07 pm
Karst

Quick update   Received the Uno/GRBL boards, loaded the GRBL hex file (version 1.1f) on the UNO and bingo everything seems to work as expected running a simple file.  Have not attached the GRBL board nor any steppers yet.

Thanks again for your efforts

Don


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: MrJTJinx on May 28, 2017, 20:04:26 pm
Hi Guys
I'm having a problem with this GRBL Plugin
every time i open Cambam, it immediately shuts down again with this plugin in the plugin folder.
when i remove it Cambam opens OK again.
any help would be appreciated.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: lloydsp on May 28, 2017, 20:20:28 pm
Sir,
You need to inform us of which version of CB you're using, and which version (if more than one) of the GRBL plugin.

Thanks,
Lloyd


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dave benson on May 29, 2017, 08:21:59 am
HI all
I had spare atmega 2560 so thought i would give the plugin a burl screen shots below.
this took a little bit of noodling as it wasn't as straight forward as i'd hoped , I did get a few warnings but you can ignore these.
Dave


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: MrJTJinx on May 29, 2017, 12:02:18 pm
Hi Lloyd,
My current set up is
Cambam version   CamBamPlus-1.0-alpha12
OS                            Windows 7 32 Bit SP1
GRBL Version          grbl_v1.1f.20170131
GRBL Plugin            GRBLMachinePlugin-V1.0.0

I have no issues with CamBam.CAD.Solids.dll being in the plugin folder but when I copy GRBLMachinePlugin.dll into the folder cambam opens momentarily then crashes.

I clicked on the debug in the hope it would give you more information
I do not actually understand any of it, i'm just a clanky

It said something like
Code:
'CamBam.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Symbols loaded.
'CamBam.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Program Files\CamBam plus 1.0\CamBam.exe'. Module was built without symbols.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Symbols loaded.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Symbols loaded.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Symbols loaded.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\CamBam.CAD.dll'. Module was built without symbols.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\CamBam.Geom.dll'. Module was built without symbols.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Symbols loaded.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Symbols loaded.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Symbols loaded.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Design.dll'. Symbols loaded.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\CADExtras.dll'. Cannot find or open the PDB file.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\CamBam.CAD.Solids.dll'. Cannot find or open the PDB file.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\CamBamLathe.dll'. Cannot find or open the PDB file.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\CamBamPlus_Toolkit.dll'. Cannot find or open the PDB file.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\CamBamPrintV3200.dll'. Cannot find or open the PDB file.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\CAMToolbarAddins.dll'. Cannot find or open the PDB file.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\cb2cm.dll'. Cannot find or open the PDB file.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\CutViewer.dll'. Cannot find or open the PDB file.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\DigitizePlugin.dll'. Cannot find or open the PDB file.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\ExcellonIO.dll'. Cannot find or open the PDB file.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\GRBLMachinePlugin.dll'. Cannot find or open the PDB file.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\HeightMapPlugin.dll'. Module was built without symbols.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\PluginManagerRegister.dll'. Cannot find or open the PDB file.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\RadiusPlugin.dll'. Cannot find or open the PDB file.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\Slotter.dll'. Cannot find or open the PDB file.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\TapMate.dll'. Cannot find or open the PDB file.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\trochomops.dll'. Cannot find or open the PDB file.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\ViewToolbarAddins.dll'. Cannot find or open the PDB file.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\plugins\Zoom.dll'. Cannot find or open the PDB file.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Program Files\CamBam plus 1.0\OpenTK.dll'. Cannot find or open the PDB file.
A first chance exception of type 'System.DllNotFoundException' occurred in OpenTK.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'. Symbols loaded.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll'. Symbols loaded.
The thread 0x1450 has exited with code 259 (0x103).
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Symbols loaded.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.Design.dll'. Symbols loaded.
A first chance exception of type 'System.NotSupportedException' occurred in mscorlib.dll
A first chance exception of type 'System.NotSupportedException' occurred in mscorlib.dll
A first chance exception of type 'System.NotSupportedException' occurred in mscorlib.dll
A first chance exception of type 'System.NotSupportedException' occurred in mscorlib.dll
A first chance exception of type 'System.NotSupportedException' occurred in mscorlib.dll
A first chance exception of type 'System.NotSupportedException' occurred in mscorlib.dll
A first chance exception of type 'System.NotSupportedException' occurred in mscorlib.dll
A first chance exception of type 'System.NotSupportedException' occurred in mscorlib.dll
A first chance exception of type 'System.NotSupportedException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'Microsoft.GeneratedCode'.
'CamBam.exe' (CLR v4.0.30319: CamBam.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Management.dll'. Symbols loaded.
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Management.dll
The thread 0x148c has exited with code 259 (0x103).
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Management.dll
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in CamBam.exe
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in CamBam.exe
Additional information: The executable program that this service is configured to run in does not implement the service. (Exception from HRESULT: 0x8007043B)

The program '[4760] CamBam.exe' has exited with code 0 (0x0).
The program '[4760] CamBam.exe: Program Trace' has exited with code 0 (0x0).


Hope this helps

Thanks
Jason


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dave benson on May 29, 2017, 12:08:36 pm
HI Jason
upgrade your windows 7-32 to service pack 3 and all will be fine.
Dave


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: MrJTJinx on May 29, 2017, 13:17:28 pm
Thanks Dave,
I realised it was a windows issue, iv'e just tried it on another machine which worked like a dream.
I was about to report back my progress, your suggestion beat me to it.
I will thank you in advance as i have every confidence it will work.
Cheers
Jason


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: dave benson on May 30, 2017, 05:12:56 am
NO worries Jason, Until sp3 win7 wasn't so good with comms the clue was in this pic.
Dave


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: sprocket on July 15, 2017, 02:41:02 am
Hi,
Awesome plugin!

Have found a small bug:
When you hover mouse over the Z+ job button the tip says "Step in X+ direction"

The problem is line 165 of JoggingExpander.Designer.cs:

 this.TheToolTip.SetToolTip(this.Z_Plus, "Step in X+ direction");

Cheers,
Scott


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: llamatrails on July 29, 2017, 19:29:52 pm
CamBam plus [1.0] Rel 12 installed today on Ubuntu 17.04
mono-complete installed

1:46 rick ! > cambam.sh
[ERROR] FATAL UNHANDLED EXCEPTION: System.NotImplementedException: The method or operation is not implemented.
  at CamBam.CamBamMain.Main () [0x0007f] in <612b7799b19b4659ac8a6192eb490ddb>:0

If I rename the GRBLMachinePlugin.dll to something else, CamBam starts up perfectly.  CamBam.CAD.Solids.dll doesn't cause any problem.

I changed the cambam.sh to enable the mono debug, and get the same output as above.


Any ideas on how to further debug and fix this?

TIA,
Rick


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on July 30, 2017, 07:43:33 am
Hi Rick,

GRBLPlugin was not tested under Linux (Mono)... that's obvious ;) (at least I did not)

Most probably the WMI stuff used to do the USB-check (insertion and removal) is not implemented in Mono... and as far as I know also Serial Port enumeration isn't.

So, you might want to dig in the CommunicationPanel source to comment out the stuff related to that.

as-is, the supplied DLL won't work :'( You'll need the sources and re-compile them...

Grtzz,

Karst


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: llamatrails on July 30, 2017, 15:33:18 pm
Thanks for the reply, I couldn't find anything that said anyone had even tried it.  Figures I would ...  ;D

Rick


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: karst.drenth on August 01, 2017, 10:17:30 am
Ok ;)

With this statement:

if (Environment.OSVersion.Platform == PlatformID.Unix)
{
  ... do something usefull
}

You can check the platform you're running on.


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: jbellein on August 20, 2017, 10:30:28 am
Hello, I just bought cambam and plug in gbrl machine.

I have a problem, with the plugin GRBL machine regarding its setting. The image of the tool is offset from the CNC.

I think I understood that it is necessary to adjust the zero point of the cnc on the zero point of the drawing. But on grbl machine, the picture a little black what appears to correspond to coordinates is then also shifted.

Problem setup or procedure certainly, but I can not seem to understand.

But I am very happy with Cambam and in particular the plugin.

Thank you for your advice. I tell you, but you must have noticed, I do not speak English, only French, it's google who made the translation!

Thank you very much for your clarification


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: onekk on August 24, 2017, 11:46:54 am
I use CamBam and GRBL almost daily, but as my setup use a SOM computer (A little card with a version of debian linux for ARM) to control the GRBL card, i use a sender for GRBL.

1) use Cambam to generate the GCode file
2) transfer the Gcode file (.ngc) to the "sender" machine
3) cut the object.

as for 2) i have two option, use a usb stick or send it with WiFi to the machine itself that as a running ftp server on it.

All is Linux driven (Cambam on the PC and the sender on the SOM).

Plus on the SOM I have a little "python CNC" environment to make some simple (and not so simple) Gcode generation on the fly (I modified an old an unmantained "Python GCode generator" program)

As my two machines are Linux only I can't give a try to GRNL machine, but as in Mono there are some crashings due to the Mono implementation I think it is not a viable idea to control a CNC machine within CamBam on Linux.

Regards

Carlo D.



Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: FAXE on September 21, 2017, 10:46:14 am
Hi everybody!
i'm new to cambam, i've just finished my 40 trials and i've bought the license.
I haven't found this forum yet, so here's my question (a really noob question i suppose)
I've downloaded the last version 'cause i'm using a v 1.1 grbl, and i've extracted the files in the cambams plugin folder...but when i start cambam nothing changes, there's no new tab....what i'm doing wrong?  ???

sorry for my english, i'm italian


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: EddyCurrent on September 21, 2017, 11:16:10 am
Maybe these will help ?

http://www.cambam.co.uk/forum/index.php?topic=5986.msg50892#msg50892
http://www.cambam.co.uk/forum/index.php?topic=6294.msg50090#msg50090


Title: Re: GRBL v1.1 Machine Control and GCODE sender Plugin
Post by: FAXE on September 21, 2017, 12:47:03 pm
ok now...i'm a real noob  ;D
i had not downloaded the .dll files