Using the live Gcode Driver editor in Openpnp and sending straight gcode commands

342 views
Skip to first unread message

trentonc...@gmail.com

unread,
Sep 3, 2016, 3:30:47 PM9/3/16
to OpenPnP
Hello,

I noticed that the recent update to openpnp allowed for live entry of gcode in the software, and was wondering if it could be used to send different commands to the control board such as "M999", and if there was more information on its functionality.  At the moment it appears that it just injects the gcode into the driver in the relevant location for proper syntax ie moving commands are placed into the "Move_to_command" location.

Regards,
T

Jason von Nieda

unread,
Sep 3, 2016, 3:39:35 PM9/3/16
to OpenPnP
The editor is just for setting up the driver. It's not intended for sending arbitrary commands in real time.
--
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/70f0ed1f-7056-4f72-994b-d2fa942cbc16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jacob Christ

unread,
Sep 3, 2016, 4:06:38 PM9/3/16
to OpenPnP
Jason et al,

I was thinking it would be nice to add some user commands to the GcodeDriver.java such as this:

    public enum CommandType {
        USER1,
        USER2,
        USER3,
        USER4,

Or if there was a way a custom gcode could be sent using scripting this would be nice as well.

Jacob

Jason von Nieda

unread,
Sep 3, 2016, 4:14:46 PM9/3/16
to OpenPnP
Jacob, how would these be used / sent?

Jacob Christ

unread,
Sep 3, 2016, 4:18:00 PM9/3/16
to ope...@googlegroups.com
I was thinking adding buttons in the Machine menu.

Jacob

To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+unsubscribe@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/323d939e-adad-421c-9eed-868c44a11b06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Jacob Christ
ProLinear/PONTECH, Inc.
+1 (909) 652-0670 Phone
http://www.pontech.com

Jason von Nieda

unread,
Sep 3, 2016, 4:19:21 PM9/3/16
to ope...@googlegroups.com
If you define an actuator you can map gcode to it and the buttons will automatically appear in the machine controls panel. (Sorry for brevity, mobile today)

--
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.

For more options, visit https://groups.google.com/d/optout.



--
Jacob Christ
ProLinear/PONTECH, Inc.
+1 (909) 652-0670 Phone
http://www.pontech.com

--
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.

Jacob Christ

unread,
Sep 3, 2016, 9:03:40 PM9/3/16
to OpenPnP
Jason,

No problem on the Brevity, trying to wrap my head around the actuators.  Your right this seems like the better route to take over adding the USERx commands.  The actuator buttons latch state, it would be nice if there was none latching actuator (so that you could implement something like a reset command).  Maybe this could be a setting in the actuator class so that when activated the true command is run followed by the false command.

I have updated this page with my current understanding:


Jacob

Jason von Nieda

unread,
Sep 3, 2016, 9:43:08 PM9/3/16
to OpenPnP
Jacob, I agree. I think we need to improve the UI for the actuators. The UI currently only supports booleans, and as you noted, it is latching. We don't support the double value actuators at all currently. I'm open to thoughts on this UI.

Jason

John Socha-Leialoha

unread,
Sep 4, 2016, 12:40:24 AM9/4/16
to OpenPnP
Jason, what is the thinking behind having buttons appear in the UI for actuators?

I'm thinking about using boolean "actuators" to toggle modes by sending different g code for true or false. The one drawback right now is that it's not possible to tell the current boolean value from the UI. Could we get the buttons to be two-state buttons, or check boxes, so it looks different between on and off? I can see lots of uses for that type of thing.

Jason von Nieda

unread,
Sep 4, 2016, 3:01:43 AM9/4/16
to OpenPnP
John,

The buttons I'm using now are supposed to show state, but I think it's either not very clear or maybe doesn't work on all platforms. I agree, I think we should switch these to checkboxes or at least a button that clearly shows the state.

A little thought needs to be given to the Actuator interface in general. Right now there's no way to tell if an actuator takes a boolean or double argument. It may make sense to add a flag that says which is which, and then we can have the UI react to that: checkbox for boolean actuators and a textfield for entering a value for double ones. 

Jason


Jacob Christ

unread,
Sep 4, 2016, 7:48:54 AM9/4/16
to ope...@googlegroups.com

A textbox with a button / check box for double actuators would be good. It might also be nice to have the buttons un a hierarchy.

Jacob


To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+unsubscribe@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/28985191-e27d-4189-874e-87f72214e0a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

Jason von Nieda

unread,
Sep 4, 2016, 12:54:33 PM9/4/16
to ope...@googlegroups.com
I've filed an issue for this: https://github.com/openpnp/openpnp/issues/343

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.

For more options, visit https://groups.google.com/d/optout.

--
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.

John Socha-Leialoha

unread,
Sep 4, 2016, 1:56:34 PM9/4/16
to ope...@googlegroups.com

I just checked again, the button does change appearance—I just didn’t notice. Here are the two states on Windows 10:

 

and

 

(The left is off, and the right one is on.) Now that I know about this difference, I’m happy. And I’m going to start using this.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/KZMQj7KFeR0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.


To post to this group, send email to ope...@googlegroups.com.

Cri S

unread,
Sep 4, 2016, 1:59:54 PM9/4/16
to OpenPnP
ON Linux the buttons worked too indicating state and are visually different, I suppose it works on Mac too.

Jacob Christ

unread,
Sep 4, 2016, 9:28:11 PM9/4/16
to ope...@googlegroups.com

The two state buttons work in Windows too.

Jacob


On Sep 4, 2016 10:59 AM, "Cri S" <phon...@gmail.com> wrote:
ON Linux the buttons worked too indicating state and are visually different, I suppose it works on Mac too.

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages