Run/Step Hold/Resume Buttons

More
5 years 4 months ago #211021 by rodw
Replied by rodw on topic Run/Step Hold/Resume Buttons
yeh, I'd keep it all together.

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

More
5 years 4 months ago - 5 years 4 months ago #211022 by txtrone

rodw wrote: yeh, I'd keep it all together.


This is all in my postui.tcl now ... I can verify in halshow that input01 and 02 are receiving signal from my external inputs... but they do not pause/resume plasmac.

EDIT: I created another postgui hal file and put the code in that file. I named it stopandgo.hal ... it is listed in my machine.ini file like so:
Code:
[HAL] # required TWOPASS = ON # the base machine HALFILE = mark_i.hal # the plasmac component connections HALFILE = ./plasmac/plasmac.tcl # the plasma machine and custom connections HALFILE = mark_i_connections.hal # use this for customisation after GUI has loaded POSTGUI_HALFILE = ddraft4x2.hal POSTGUI_HALFILE = stopandgo.hal # required HALUI = halui

The stopandgo.hal contains this code:
Code:
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 # External Program Pause/Resume and Run/Step Buttons # Pause/Resume Section net pause-resume-btn and2.0.in0 and2.1.in0 <= hm2_7i76e.0.7i76.0.0.input-01 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_7i76e.0.7i76.0.0.input-02 net and2in and2.2.in1 <= idle-on # 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

The buttons are triggering a response in halshow, but plasmac does not respond.
Last edit: 5 years 4 months ago by txtrone.

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

More
5 years 4 months ago #211094 by txtrone

bevins wrote: Yes but there is already pause resume being used by plasmac in the gui. You have to make it coexist.


I know, that is what I am trying to figure out how to do. Do you know how to accomplish this?

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

More
5 years 4 months ago - 5 years 4 months ago #211097 by bevins
Replied by bevins on topic Run/Step Hold/Resume Buttons

txtrone wrote:

bevins wrote: Yes but there is already pause resume being used by plasmac in the gui. You have to make it coexist.


I know, that is what I am trying to figure out how to do. Do you know how to accomplish this?


I dont have the plasmac. I quickly up[graded top QTplasmaC as it is much easier for me to see what is going on. Everything is in the hal and ini files.
Plasmac I never understood the structure.

I would approach it using the or2 function. So basically if you want pause/resume, then you want two inputs, 1. plasmac gui or external input. I dont know how you would do that in plasmac but in QT I have an idea how I would accomplish it.

That's just my thoughts. I see you are already tryuing. I'd wait to see if phil or snowgoer responds.
Last edit: 5 years 4 months ago by bevins.
The following user(s) said Thank You: txtrone

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

More
5 years 4 months ago - 5 years 4 months ago #211114 by phillc54
This is my pendant.hal file that I use for a pendant. In the reconfigure section it shows how the original signals are unlinked and then netted again with or components. You could probably do something similar to net your button signals.

File Attachment:

File Name: pendant_20...6-03.hal
File Size:7.46 KB


Edit:
I just noticed you have multiple posts on this, it makes it hard to follow...
Last edit: 5 years 4 months ago by phillc54.

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

More
5 years 4 months ago #211141 by tommylight

phillc54 wrote: Edit:
I just noticed you have multiple posts on this, it makes it hard to follow...

+1

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

Moderators: snowgoer540
Time to create page: 0.111 seconds
Powered by Kunena Forum