Revers Run

More
24 Mar 2019 04:21 #129440 by rodw
Replied by rodw on topic Revers Run
John, I'd keep the new build in a plasmac folder at the same level as linuxcnc-dev, not below it.
Sounds like the Aussie team has got you covered with after hours support on a Sunday!
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

More
24 Mar 2019 04:52 #129442 by phillc54
Replied by phillc54 on topic Revers Run
When you do get it working there are two ways you can use reverse-run.
Note that reverse-run only operates when the program is paused.

1. Issue a AUTO_REVERSE command to the python interface then unpause and the machine will run in reverse, pause when you get to where you want then issue a AUTO_FORWARD to prepare for forward motion.
The standard Axis GUI in the plasmac branch does this with 'R' and 'F' as shortcuts.

2. Use adaptive feed:
To enable this you need to have M52P1 in your gcode.
While paused issue a negative value to the motion.adaptiveāˆ’feed pin to reverse or a positive value for forward.
The commanded velocity is multiplied by this value.
Valid values are between 1 and -1 inclusive.

Cheers, Phill

Please Log in or Create an account to join the conversation.

More
24 Mar 2019 15:11 #129477 by islander261
Replied by islander261 on topic Revers Run
Phill

Thank you for the tips. I will try to clone and build your branch today.

What happens when you reverse to a subroutine in the Gcode? My code is full of them because my config doesn't contain a fancy component with a state machine.

John

Please Log in or Create an account to join the conversation.

More
24 Mar 2019 19:10 #129500 by islander261
Replied by islander261 on topic Revers Run
Phill

Well it was pretty painless to clone and build your linuxcnc-plasmac branch. I tried to do some a quick test with the gmoccapy-imperial sim and came up with several iterations of this error:
Traceback (most recent call last):
  File "/home/jd/plasmac/bin/gladevcp", line 342, in <module>
    main()
  File "/home/jd/plasmac/bin/gladevcp", line 251, in main
    window = xembed.reparent(window, opts.parent)
  File "/home/jd/plasmac/lib/python/gladevcp/xembed.py", line 13, in reparent
    from Xlib import display
ImportError: No module named Xlib

as well as the classic gmoccapy error:
(gmoccapy:29927): GtkSourceView-CRITICAL **: gtk_source_language_manager_set_search_path: assertion 'lm->priv->ids == NULL' failed

So right now I am missing plasma screens when gmoccapy starts. I will look at this later when I get a chance, as many times as I have caused startup errors in gmoccapy this is a new one on me.

John

Please Log in or Create an account to join the conversation.

More
24 Mar 2019 19:19 #129504 by rodw
Replied by rodw on topic Revers Run
The error is due to a python library not installed. Th import command where the error is is Python's way of loading a library.

Try typing this on the commnad line
pip install python-xlib
and/or
python setup.py install
Refer pypi.org/project/python-xlib/
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

More
24 Mar 2019 20:42 #129517 by phillc54
Replied by phillc54 on topic Revers Run
Hopefully Rod is right about the Gmoccapy problem. I have no experience with Gmoccapy, I just did that sim to see if it would work and it ran ok on my machine.
The squares and circles demo gcodes have repeat subroutines and work fine.

Cheers, Phill.
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
24 Mar 2019 22:48 #129529 by islander261
Replied by islander261 on topic Revers Run
Guys

Thanks for the hints, I was out welding up "garden picks" we sell all afternoon. I will start a new topic in the Plasmac thread as we are quickly moving away from Gmoccapy specific discussion.

John
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.152 seconds
Powered by Kunena Forum