- Posts: 1931
- Thank you received: 394
Gmoccapy - A new screen for linuxcnc
- newbynobi
- Offline
- Moderator
-
Less
More
12 years 10 months ago #42123
by newbynobi
Replied by newbynobi on topic Gmoccapy - A new screen for linuxcnc
Hallo Jim,
I just tested the external program start! I am not able to start a program in manual mode! I get an error from EMC_TASK, that it is not allowed in manual mode!
I just connected:
net start halui.program.run <= external.button-1
What are you doing?
Norbert
I just tested the external program start! I am not able to start a program in manual mode! I get an error from EMC_TASK, that it is not allowed in manual mode!
I just connected:
net start halui.program.run <= external.button-1
What are you doing?
Norbert
- jbunch
- Offline
- Senior Member
-
Less
More
- Posts: 79
- Thank you received: 3
12 years 10 months ago #42124
by jbunch
Replied by jbunch on topic Gmoccapy - A new screen for linuxcnc
Norbert,
On the program close button. it needs to be hard to activate.
Maybe far left side in the configuration tab of the lower line of switches, and only visable and functional when the system is in power off (2nd button down on the right side).
I do not want to be able to accidently activate it under any condition. With a hardwire switch i can put it under key lock or
tie it into the power down sequence switch for the system. If the hardware input is available then you would not need any soft keys in the interface for program exit.
I use a 24 volt car input power supply for the computer. when you drop ower it puts the system in shutdown puts a
box on the screen saying shutdown. and then powers off the computer after x amount of time.
Very clean very neat.
Thanks for your consideration.
Hope you had a great christmas.
Jim
On the program close button. it needs to be hard to activate.
Maybe far left side in the configuration tab of the lower line of switches, and only visable and functional when the system is in power off (2nd button down on the right side).
I do not want to be able to accidently activate it under any condition. With a hardwire switch i can put it under key lock or
tie it into the power down sequence switch for the system. If the hardware input is available then you would not need any soft keys in the interface for program exit.
I use a 24 volt car input power supply for the computer. when you drop ower it puts the system in shutdown puts a
box on the screen saying shutdown. and then powers off the computer after x amount of time.
Very clean very neat.
Thanks for your consideration.
Hope you had a great christmas.
Jim
- newbynobi
- Offline
- Moderator
-
Less
More
- Posts: 1931
- Thank you received: 394
12 years 10 months ago #42125
by newbynobi
Replied by newbynobi on topic Gmoccapy - A new screen for linuxcnc
Hallo Jim,
I just found out if I do:
net start halui.mode.auto => halui.program.run <= external.button-1
I could follow you!
I solved the problem already, will push in a few minutes, after making some tests, that my changes does not break any other point.
Norbert
I just found out if I do:
net start halui.mode.auto => halui.program.run <= external.button-1
I could follow you!
I solved the problem already, will push in a few minutes, after making some tests, that my changes does not break any other point.
Norbert
- jbunch
- Offline
- Senior Member
-
Less
More
- Posts: 79
- Thank you received: 3
12 years 10 months ago #42126
by jbunch
Replied by jbunch on topic Gmoccapy - A new screen for linuxcnc
Norbert,
Here is the ini section.
#******* Cycle Start feed Hold section ****************
# External Program Pause/Resume and Run/Step Buttons
# Pause/Resume Section
net pause-resume-btn and2.8.in0 and2.9.in0 <= hm2_5i20.0.gpio.059.in_not
net pause-on toggle2nist.0.is-on and2.8.in1 and2.11.in1 <= halui.program.is-paused
net run-on and2.9.in1 <= halui.program.is-running
net pause-sig or2.4.in0 <= and2.8.out
net resume-sig or2.4.in1 <= and2.9.out
net toggle-ok toggle.0.in <= or2.4.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.10.in0 and2.11.in0 <= hm2_5i20.0.gpio.060.in_not
net idle-on and2.10.in1 <= halui.program.is-idle
# 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.10.out
net step-sig halui.program.step <= and2.11.out
##### Start cycle start section
Regards
Jim
Here is the ini section.
#******* Cycle Start feed Hold section ****************
# External Program Pause/Resume and Run/Step Buttons
# Pause/Resume Section
net pause-resume-btn and2.8.in0 and2.9.in0 <= hm2_5i20.0.gpio.059.in_not
net pause-on toggle2nist.0.is-on and2.8.in1 and2.11.in1 <= halui.program.is-paused
net run-on and2.9.in1 <= halui.program.is-running
net pause-sig or2.4.in0 <= and2.8.out
net resume-sig or2.4.in1 <= and2.9.out
net toggle-ok toggle.0.in <= or2.4.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.10.in0 and2.11.in0 <= hm2_5i20.0.gpio.060.in_not
net idle-on and2.10.in1 <= halui.program.is-idle
# 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.10.out
net step-sig halui.program.step <= and2.11.out
##### Start cycle start section
Regards
Jim
- newbynobi
- Offline
- Moderator
-
Less
More
- Posts: 1931
- Thank you received: 394
12 years 10 months ago - 12 years 10 months ago #42132
by newbynobi
Replied by newbynobi on topic Gmoccapy - A new screen for linuxcnc
Hallo Jim,
I need to make some more tests, as the change I made did require some more internal checks, i.e. what happen if you are in auto mode, but you change to settings page and then the signal is emitted.
Could you accept a gmoccapy / gscreen pin to start the program? It would be much more easy to control, as getting mode switches from extern!
I made also the change of the exit button, now you can only leave the GUI, if the "machine On" button is not active, meaning the machine is off. It does work, but make the use a little bit more complex.
@All,
What do you think about the exit button? Shell it stay like it is, or only allow shut off, if the machine is off?
Norbert
I need to make some more tests, as the change I made did require some more internal checks, i.e. what happen if you are in auto mode, but you change to settings page and then the signal is emitted.
Could you accept a gmoccapy / gscreen pin to start the program? It would be much more easy to control, as getting mode switches from extern!
I made also the change of the exit button, now you can only leave the GUI, if the "machine On" button is not active, meaning the machine is off. It does work, but make the use a little bit more complex.
@All,
What do you think about the exit button? Shell it stay like it is, or only allow shut off, if the machine is off?
Norbert
Last edit: 12 years 10 months ago by newbynobi.
- jbunch
- Offline
- Senior Member
-
Less
More
- Posts: 79
- Thank you received: 3
12 years 10 months ago #42154
by jbunch
Replied by jbunch on topic Gmoccapy - A new screen for linuxcnc
Norbert,
I cannot think of any reason not to use a provided pin for run program.
Consider stop, pause, resume as well.
Your fix for the program exit should work.
Thank you
Jim
I have sent this 4 times since last night and it never shows up.
I cannot think of any reason not to use a provided pin for run program.
Consider stop, pause, resume as well.
Your fix for the program exit should work.
Thank you
Jim
I have sent this 4 times since last night and it never shows up.
Moderators: newbynobi, HansU
Time to create page: 0.642 seconds