Feature Request

More
6 years 3 months ago #175550 by Clive S
Replied by Clive S on topic Feature Request
This is some code that I used on a Warco Mill in 2016 that "CNCBASHER" helped me with very similar to Rods.
Code:
#custom mpg handwheels for 7i76 + pause/resume # lcnc v2.7 # x axis fixed to enc0 # enc1 switched to y or z # load real time components loadrt mux_generic config="ff256" addf mux-gen.00 servo-thread ########################################### # Send the jog counts to each axis, only the one selected will move # x encoder net mpg-count-x <= hm2_5i25.0.7i76.0.0.enc0.count # y or z encoder net mpg-count-y <= hm2_5i25.0.7i76.0.0.enc1.count #for velocity mode set to 1 #set for position mode 0 ( default) setp axis.0.jog-vel-mode 0 setp axis.1.jog-vel-mode 0 setp axis.2.jog-vel-mode 0 # X axis net mpg-count-x => axis.0.jog-counts # Y axis net mpg-count-y => axis.1.jog-counts # Z axis( use y encoder here to ) net mpg-count-y => axis.2.jog-counts setp mux-gen.00.debounce-us 200000 setp mux-gen.00.suppress-no-input False # Set up the scale factors for the scale selector switch #1 # 0.01 mm per click of the MPG setp mux-gen.00.in-float-01 0.01 #( default) #2 # 1.0 mm per click of the MPG setp mux-gen.00.in-float-02 1.00 #3 # 0.5 mm per click of the MPG setp mux-gen.00.in-float-04 0.5 #4 # 0.1 mm per click of the MPG setp mux-gen.00.in-float-08 0.1 #5 # 0.05 mm per click of the MPG setp mux-gen.00.in-float-16 0.05 #6 # 0.01 mm per click of the MPG setp mux-gen.00.in-float-32 0.01 #7 # 0.01 mm per click of the MPG setp mux-gen.00.in-float-64 0.01 #8 # 0.01 mm per click of the MPG #setp mux-gen.00.in-float-128 0.01 #??? # X axis enable #x axis is always enabled as it has it's own mpg setp axis.0.jog-enable true # now create an external switched input to select y or z enable # Y or Z axis enable net mpg-y axis.1.jog-enable <= hm2_5i25.0.7i76.0.0.input-06 # Z axis net mpg-z axis.2.jog-enable <= hm2_5i25.0.7i76.0.0.input-07 # MPG Scale # set the MPG scale based on the input from the selector switch #1 net pos1 mux-gen.00.sel-bit-00 <= hm2_5i25.0.7i76.0.0.input-09 #2 net pos2 mux-gen.00.sel-bit-01 <= hm2_5i25.0.7i76.0.0.input-10 #3 net pos3 mux-gen.00.sel-bit-02 <= hm2_5i25.0.7i76.0.0.input-11 #4 net pos4 mux-gen.00.sel-bit-03 <= hm2_5i25.0.7i76.0.0.input-12 #5 net pos5 mux-gen.00.sel-bit-04 <= hm2_5i25.0.7i76.0.0.input-13 #6 net pos6 mux-gen.00.sel-bit-05 <= hm2_5i25.0.7i76.0.0.input-14 #7 net pos7 mux-gen.00.sel-bit-06 <= hm2_5i25.0.7i76.0.0.input-15 #8 net pos8 mux-gen.00.sel-bit-07 <= hm2_5i25.0.7i76.0.0.input-16 net mpg-scale-out <= mux-gen.00.out-float # Set the jog scale output to all axis net mpg-scale-out axis.0.jog-scale axis.1.jog-scale axis.2.jog-scale ########################################################## # Autohome + cycle start (unused ) # # remember comment out cycle start in Hal # uses cycle start switch as home all .. # if homed then switch becomes cycle start ############################################### # loadrt logic names=home-logic personality=0x502 # addf home-logic servo-thread # note do not invert cycle-start button here or.. # on pressing, homing will cycle around and not stop. # Set cyclestart gpio pin here & uncomment the next line #net cycle-start hm2_5i25.0.7i76.0.0.input-00 => home-logic.in-00 #setp debounce.0.delay 30 #net home-state-raw halui.joint.0.is-homed => debounce.0.0.in #net home-state-cleaned debounce.0.0.out home-logic.in-01 #net home-state halui.joint.0.is-homed => home-logic.in-01 #net home-cmd home-logic.xor => halui.home-all #net run-cmd home-logic.and => halui.program.run ########### END AUTO HOME ################################# ########## Run/Pause & Hold/Resume ###################### loadrt and2 count=4 loadrt or2 count=1 loadrt toggle count=1 loadrt toggle2nist count=1 addf and2.0 servo-thread addf and2.1 servo-thread addf and2.2 servo-thread addf and2.3 servo-thread addf or2.0 servo-thread addf toggle.0 servo-thread addf toggle2nist.0 servo-thread ### Panel Leds ########################### # panel led's # to show when paused & Step is selected net pause-on hm2_5i25.0.7i76.0.0.output-00 net step-sig hm2_5i25.0.7i76.0.0.output-01 ############################################### #increment led # link pos1 of mux to output 2 & invert net pos1 hm2_5i25.0.7i76.0.0.output-02 setp hm2_5i25.0.7i76.0.0.output-02-invert true ################################################ # notes: # uncomment the next lines for testing Leds work # connect led's between gpio pin and ground # make sure they are 12v Leds' as they are on Field power. #setp hm2_5i25.0.7i76.0.0.output-00-invert true #setp hm2_5i25.0.7i76.0.0.output-01-invert true ##### end Panel leds ########################## # run / pause # Notes: # Functionality # Pressing (CycleStart) Run/Step will begin executing a program. # Pressing Hold/Resume while a program is running will pause the program. # Pressing (CycleStart) Run/Step while a program is paused will single step the program. # Pressing Hold/Resume while a program is paused will return it to normal run mode. #................... # External Program Pause/Resume and Run/Step Buttons # Pause/Resume Section net pause-resume-btn and2.0.in0 and2.1.in0 hm2_5i25.0.7i76.0.0.input-04 #(this is your input btn) net pause-on toggle2nist.0.is-on and2.0.in1 and2.3.in1 <= halui.program.is-paused net run-on and2.1.in1 <= halui.program.is-running net pause-sig or2.0.in0 <= and2.0.out net resume-sig or2.0.in1 <= and2.1.out net toggle-ok toggle.0.in <= or2.0.out net togglesig toggle2nist.0.in <= toggle.0.out net toggleon halui.program.pause <= toggle2nist.0.on net toggleoff halui.program.resume <= toggle2nist.0.off #.................. # Run/Step Section net run-step-btn and2.2.in0 and2.3.in0 hm2_5i25.0.7i76.0.0.input-03 #(this is your input btn) net idle-on and2.2.in1 <= halui.program.is-idle #notes: # net pause.on and 2.3.in1 <= halui.program.is-paused # and2.3.in1 was added in the net pause-on statement in Pause/Resume Section net run-sig halui.mode.auto halui.program.run <= and2.2.out net step-sig halui.program.step <= and2.3.out ########### end pause/resume ####################################

Please Log in to join the conversation.

More
6 years 3 months ago #175574 by rodw
Replied by rodw on topic Feature Request
Tommy, you need to google stack lights led

But I only paid $12 on Aliexpress.

Please Log in to join the conversation.

  • thefabricator03
  • New Member
  • New Member
More
6 years 3 months ago #175579 by thefabricator03
Replied by thefabricator03 on topic Feature Request

snowgoer540 wrote:
I’m not sure I follow? I know it can select CPA mode for you, but the problem is you’ll lose the arc-ok signal after the first piece of expanded metal, and it’ll stop.


With my Hypertherm 125, when I set it to CPA mode, it does not lose its arc ok when cutting between sections of steel. The torch just stays on,

Please Log in to join the conversation.

More
6 years 3 months ago #175580 by snowgoer540
Replied by snowgoer540 on topic Feature Request

thefabricator03 wrote:

snowgoer540 wrote:
I’m not sure I follow? I know it can select CPA mode for you, but the problem is you’ll lose the arc-ok signal after the first piece of expanded metal, and it’ll stop.


With my Hypertherm 125, when I set it to CPA mode, it does not lose its arc ok when cutting between sections of steel. The torch just stays on,


In that video, it looks like you’re turning the torch on and then jogging it manually, correct?

Please Log in to join the conversation.

  • thefabricator03
  • New Member
  • New Member
More
6 years 3 months ago #175581 by thefabricator03
Replied by thefabricator03 on topic Feature Request
Yeah that is correct, start the cut with F9 and with the CPA mode I can use it as a CNC controlled hand torch.

Please Log in to join the conversation.

More
6 years 3 months ago #175582 by snowgoer540
Replied by snowgoer540 on topic Feature Request

thefabricator03 wrote: Yeah that is correct, start the cut with F9 and with the CPA mode I can use it as a CNC controlled hand torch.


The arc-ok doesn’t matter/is not required in that scenario. We need the arc-ok signal for computer controlled movement.

I’m guessing if you tried the same thing to cut up that material pretending it was expanded metal with a CNC program it wouldn’t work.

Please Log in to join the conversation.

More
6 years 3 months ago #175583 by snowgoer540
Replied by snowgoer540 on topic Feature Request
Actually, I’m curious. What keys are you pressing to jog the table with the torch on? Because I’m pressing the arrow keys and it won’t move. It just cycles between the axis’ to touch off.

Please Log in to join the conversation.

More
6 years 3 months ago #175585 by snowgoer540
Replied by snowgoer540 on topic Feature Request
Ok, I had some time to do some testing tonight before the lady gets home from work and we head to dinner. Have a few findings to report:

1. Arc-OK does not stay on in CPA mode, at least not with FineCut tips, I will try regular tips tomorrow or Saturday. As soon as it loses the arc-ok signal, it pauses.

2. I met Rod's Kangaroo. Circumstances: I forgot to enable the torch. Pressed F9, it ohmic sensed until infinity. Video Evidence . My stupidity, but maybe the software should let us know when we're trying to do something stupid?

3. I got my first lock-up of LinuxCNC tonight. Which, how do I kill it when that happens? I was trying to use the straight cut feature, clicked start cut, it tried 3 times for a valid arc, then paused, and locked up. I could still change the items in the run panel though, communication with the hypertherm worked. Eventually it crashed. Not sure if this is cut-recovery test related?

4. I had some issues where it wouldnt let me jog the table after the program was stopped for a few seconds afterward. This always was surrounding a paused condition (sometimes I was using F9, sometimes I was using the single cut from the Run panel) due to lack of valid arc, and hitting the max number of attempts. Again, not sure if this is cut-recovery related?

5. I also met a fire-breathing kangaroo. Not sure what happened here, but it tried to light off until infinity. Way past the 3 attempts, just kept trying and trying. More Video Evidence

(Edit)6. I cant jog after pressing F9.

Anyways, I posted this stuff here, because it was all found during the testing I was doing for the Arc-OK features I'm requesting. I'm beginning to fear being ousted for causing too much ruckus :unsure: :laugh:

Please Log in to join the conversation.

  • thefabricator03
  • New Member
  • New Member
More
6 years 3 months ago #175586 by thefabricator03
Replied by thefabricator03 on topic Feature Request

snowgoer540 wrote: Actually, I’m curious. What keys are you pressing to jog the table with the torch on? Because I’m pressing the arrow keys and it won’t move. It just cycles between the axis’ to touch off.


Just the arrow keys. I press F9 then it touches off then goes to cut height then I can jog the machine as normal. I have not updated my machine since the beginning of the year so maybe a update has changed this?

Please Log in to join the conversation.

More
6 years 3 months ago #175588 by rodw
Replied by rodw on topic Feature Request
When you are cutting in manual mode (no cnc) the machine won't care about the ArcOK. Its provided to tell the CNC controller what is going on. But if the controller (Plasmac) does not account for how the machine functions correctly then the ball is in the controller's court. I would not expect AcOK to be forced on for expanded metal mode when there is no arc. It will probably turn on when it is traversing material. It would be interesting to know that after your weekend adventure.

Please Log in to join the conversation.

Time to create page: 0.175 seconds
Powered by Kunena Forum