Revers Run

More
23 Mar 2019 07:00 #129333 by cmorley
Replied by cmorley on topic Revers Run
can you explain the process you would use to restart a former line after pause.
is it pause program, click wanted line, press start?

Chris M

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

More
23 Mar 2019 15:43 #129368 by islander261
Replied by islander261 on topic Revers Run
Chris

Thank you for the reply. The bit about hal_sourceview.py is a good hint. What is an IRC channel?

I have the open source parts of the commercial plasma system running as a Gscreen sim on one of my boxes. Took me a while to figure out how all the parts spliced together. In the end I found that Gscreen was easier than Gmoccapy to customize. Most all of the proprietary stuff aside from the proprietary hardware is in the their launcher and configuration programs that are only distributed as 32 bit binaries for a distro I don't use. At one point I even started to convert it for my hardware but that effort stalled because I already have a working production system. I got as far as moving axis with limits and homing but a long ways from a functional plasma system.

Well as with most things plasma it is hard to tell the exact interaction of all the parts without moving the hardware with a live torch. The documentation and the sim do work the same. When the Gcode program is paused due to an error condition or the operator pausing the program you can select any line (block) of the Gcode program as the new starting point in the Gcode preview pane. This causes the pointer that LCNC uses to the Gcode file line (block) to be changed to the new line (block). When the program is started again by pressing the pause/resume button the program execution starts at the new line (block). On a plasma system one usually backs up to the end of the last cut. The documentation for this system is available on line.

Rod

My whole system is still a RIP install, never have made debs and moved the code. Is it possible to use the Gmoccapy UI with the Plasmac branch or is it too dependent on the Axis UI?

John

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

More
23 Mar 2019 15:56 #129372 by tommylight
Replied by tommylight on topic Revers Run
IRC is a version of live chat used for a long time now, here the link to Linuxcnc channel
webchat.freenode.net/?channels=%23linuxcnc

Plasmac is Axis only, as it is heavily modified by PhillC to accommodate a lot of new stuff for plasma. Unfortunately it does require compiling his version of Linuxcnc to work, even for sim.

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

More
23 Mar 2019 16:33 #129377 by cmorley
Replied by cmorley on topic Revers Run
I modified Gmoccapy so I could press the run from line button when paused.
i could then set a specific line to start from but then linuxcnc would complain that you can't start a program when paused.

looking at the commandcnc_handler.py code more closely:
    def on_runfromline_btn_clicked(self, widget):
        #self.widgets.runfromline_btn.set_active(False)
        if not self.data.restart_dialog == None:
            self.data.restart_dialog.destroy()
            self.data.restart_dialog = None
        self.cur_line_number = self.widgets.gcode_view.get_line_number()
        self.emc_cmd.mode(linuxcnc.MODE_AUTO)
        self.emc_cmd.wait_complete()
        if (self.simple_rfl):
            self.emc_cmd.srfl_auto(linuxcnc.AUTO_RUN, self.cur_line_number)
        else:
            self.emc_cmd.auto(linuxcnc.AUTO_RUN, self.cur_line_number)

This line:
self.emc_cmd.srfl_auto(linuxcnc.AUTO_RUN, self.cur_line_number)
implies that the python module that sends commands to the linuxcnc motion control has been modified too..
My guess is it allows you to restart a program at a certain line without resetting the motion controller.

This file in linuxcnc is called emcmodule.cc
Would need the code changes from it to add the capability to linuxcnc.
It could also lead to more changes in the motion controller to support that code.

Chris M
The following user(s) said Thank You: islander261

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

More
24 Mar 2019 01:24 - 24 Mar 2019 01:40 #129416 by phillc54
Replied by phillc54 on topic Revers Run

islander261 wrote:
Is it possible to use the Gmoccapy UI with the Plasmac branch or is it too dependent on the Axis UI?


The plasmac repo has four sim versions: Axis, Axis with a GladeVCP panel, Gmoccapy and QtVCP.
It is not dependent on any GUI.
Screenshots here

The only difference between LCNC master branch and the plasmac branch are that the plasmac repo has reverse-run plus the plasmac component and sim.
You can use the plasmac branch without using the component or sims.
Reverse-run is limited to reversing to the start of the current cut.

The plasmac branch is currently kept up to date with master branch at least weekly.

Cheers, Phill.
Last edit: 24 Mar 2019 01:40 by phillc54. Reason: add link
The following user(s) said Thank You: tommylight, rodw, islander261

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

More
24 Mar 2019 03:35 #129433 by islander261
Replied by islander261 on topic Revers Run
Phill

Thank you for the reply. I can see that I now have a lot of work to do to try and splice my modified Gmoccapy UI, hals, Python handlers onto your Plasmac foundation. 99% of the time all I need to do is go back to the beginning of the current cut segment.

Chris

Thank you for the reply and the code analysis. I am quite lost with anything beyond a simple Glade screen and it's simple handler/hal connections. When I got the commercial app to run it was from a compressed update file that had all the configuration files in it but no directory map (it isn't met to be a RIP build). I figured out it was a Gscreen app when reading the license info in one of the files. Needless to say it took quite a while to figure out what files had to go where. The underlying RIP install I had at the time was the external offsets branch, I am now using the master branch from about 2 months ago. I did this almost a year ago and only spent a short time working with it. As I recall I only added directories and files in the following places:
~/linuxcnc-dev/configs/...
~/inuxcnc-dev/share/gscreen/...

There was also a special theme needed to get the correct icons in the UI and I don't remember where I had to put that.

I will try and see if I can get the sim to run again tomorrow when I am in the shop. I very well could have broken it with switching back to the master branch.

John

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

More
24 Mar 2019 03:42 #129435 by rodw
Replied by rodw on topic Revers Run
John, I think all you need is to build PhillC's system and copy your existing config over to it. You should still have a working system as you have now. You might have some minor fixups if you currently don't have the newer multispindle version of Master branch.

So then you could work on just incorporating the reverse run. In fact, I'd explore connecting one of the 7i76e MPG inputs to it. Skunkworks on his Youtube channel where he is samcoinc from memory) has a video of this working....

So there is no need for you to adopt plasmac, you just want the reverse run
The following user(s) said Thank You: phillc54

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

More
24 Mar 2019 03:58 #129437 by islander261
Replied by islander261 on topic Revers Run
Rod

Thanks, I most likely don't have the terminology correct. My current configuration is new enough to have all the multiple spindle stuff. It was a tense day when I did that update and my system stopped working and I didn't know why.

What I will do is download and compile Phill's branch into it's own directory structure separate from my current build, something like
~/linuxcnc-dev/plasmac/... Then copy my working configuration over to the ~/linuxcnc-dev/plasmac/configs directory and see if I can make it fly. This sounds simple but will be a real adventure for me. I think I have the Github cheat sheet that Phill posted some time back that has all of the instructions for doing this. I do have have a feedrate override widget on my UI but I am sure that it doesn't go negative right now so it is off to Glade land to see if I can fix it.

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

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

More
24 Mar 2019 03:58 #129438 by phillc54
Replied by phillc54 on topic Revers Run
If you follow Rod's advice it should work, the multispindle stuff should update itself automagically if needed.

Cheers, Phill.

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

More
24 Mar 2019 04:07 #129439 by phillc54
Replied by phillc54 on topic Revers Run
You shouldn't need to copy your configs.
Build the plasmac branch into its own folder then run it by:
/home/user/path_to_plasmac/scripts/linuxcnc /home/user/linuxcnc/configs/path_to_machine/machine.ini

Cheers, Phill.

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

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