G-code driver setup

827 views
Skip to first unread message

mojalovaa1

unread,
Jun 20, 2016, 3:09:12 PM6/20/16
to OpenPnP
Hi folks
Today I m try run G code  driver on my  first machine , on this moment I use GRBL  for that and Cri.s is help me allot for run that GRBL , but that not work on last version OpenPnP  and Cri.s say that can use G-code  driver  , but like I m say  before I m not programmer and not have idea what I need do on real.

I m look this : https://github.com/openpnp/openpnp/wiki/GcodeDriver but again  do not know what on real need do , how need machine.xml look for  4 axis machine with one head , same is with 2 head machine .

Have  some one who use that G-code driver that can add machine.xml files for look how that need look ?


Jason von Nieda

unread,
Jun 20, 2016, 3:37:39 PM6/20/16
to OpenPnP
Hi Moja,

Here is a basic driver configuration that should get you going. You will need to change the serial port and baud rate settings. This is based on the old GrblDriver, so it should work similarly to that one. Just edit your machine.xml and paste this in in place of your current driver section.

<driver class="org.openpnp.machine.reference.driver.GcodeDriver" port-name="/dev/tty.usbmodem1A1211" baud="115200" units="Millimeters" max-feed-rate="5000" connect-wait-time-milliseconds="1000">
   <home-location units="Millimeters" x="0.0" y="0.0" z="0.0" rotation="0.0"/>
   <command-confirm-regex>^ok.*</command-confirm-regex>
   <connect-command>G21
G90</connect-command>
   <home-command>G28</home-command>
   <move-to-command>G1 {X:X%.4f} {Y:Y%.4f} {Z:Z%.4f} {Rotation:C%.4f} F{FeedRate:%.0f}
G4 P0</move-to-command>
   <pick-command>M4</pick-command>
   <place-command>M5</place-command>
   <sub-drivers class="java.util.ArrayList">
   </sub-drivers>
</driver>

The newlines in the connect-command and move-to-command are important, so don't remove them.

Once you have this working you can refer to the documentation to add additional commands if you need them.

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/4bd7bea5-b516-4dfc-b652-1eb77e4b9a7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mojalovaa1

unread,
Jun 20, 2016, 3:42:29 PM6/20/16
to OpenPnP
Second question Jason all so  for this openpnp , can I have  2 difference openpnp on same comp on linux , I have old version who work correct and I use it for pnp machine , and second wont add last version for  testing  , I m try   add 2 openpnp but  on boat have same  GUI ?

Jason von Nieda

unread,
Jun 20, 2016, 3:45:25 PM6/20/16
to OpenPnP
Moja,

As long as you install into two different directories it should be okay. The only problem is that if you use the same user to run it then they will share the same $HOME/.openpnp configuration directory, so it will get confused. I'd recommend creating a second user on your machine and install and run the new version for that user. That will keep them separate and it should work fine.

Jason


On Mon, Jun 20, 2016 at 12:42 PM mojalovaa1 <moja...@gmail.com> wrote:
Second question Jason all so  for this openpnp , can I have  2 difference openpnp on same comp on linux , I have old version who work correct and I use it for pnp machine , and second wont add last version for  testing  , I m try   add 2 openpnp but  on boat have same  GUI ?

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

mojalovaa1

unread,
Jun 20, 2016, 3:46:35 PM6/20/16
to OpenPnP
Ok , thanks , I will try  it maybe this night .

mojalovaa1

unread,
Jun 20, 2016, 5:55:36 PM6/20/16
to OpenPnP
Jason this is  grbl driver source from my old openpnp  , and now need  add that command to machine files on new openpnp  , I m not sure that  I will add it correct  , can you please look ?

All so you can see that I have on old machine file have  add actuators and M command  , how add it on this  machine file , can I add it ?

That driver if I m not mistake is all so used on  2 head machine  for my friends , Cri.s is make it  , I hope so that he not will  angry  because I m add it on this group , but maybe will be help full for  finish G-code driver that can be used for 2 head machine .

GrblDriver.java
machine.xml
machine-for-old.xml

Jason von Nieda

unread,
Jun 20, 2016, 11:05:18 PM6/20/16
to OpenPnP
Hi Moja,

There is a lot of special functionality in that driver that it will not be possible to do the same way, or at all, in the GcodeDriver. Do you need all of that functionality?

I suggest that you make a list of Gcodes and operations that you want the machine to perform and list them here, then I can tell you if the GcodeDriver will work for you. The first step is to identify all the things that machine must do.

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages