Gmoccapy - A new screen for linuxcnc

More
29 Dec 2013 01:06 #42120 by newbynobi
Hallo Jim,

Is it possable to move the program close key somewhere else.
more than one I have shut my system down when I did not want to.
Or can you make it a selectable hardware pin.


Where do you want to have it?
Yes, I can make it react to a hal pin, what would be the advantage?


I have been working some more with your interface.

When you are running a program and you pause it and then stop the spindle.
if you resume the program without starting the spindle. I get motion from the axis. All bad...

Also if you start the spindle by hand and then restart the program it does not turn at the scorrect speed until
the program calls for the next spindle speed. IE it defaults to minimum speed.


You are right, you can pause the program, and stop the spindle or coolant, if you just resume the program, the program will run without coolant and with a stopped spindle! I had a lot of discussion about allowing to stop the spindle in a paused program or not. At the end the result was, we can not avoid all errors witch are possible, caused from wrong operator usage.

If you pause a program, stop spindle and coolant, you are responsible to start both again. Gmoccapy will start the spindle with the speed, that was programed at the stop, not at minimum speed!!!!! Check active g-code, there is a programed speed, what will be resumed on restart of the spindle.

When using an external program start button. I can start a program from manual mode.
It grays out the manual mode screen and I do not have a program stop button.
The way out is estop or power off the controller. If using an external button on program start you should
take the interface to auto or run screen.


Can't follow you on that one?
How do you start with an external button? (Halui?)
I have to check this one, it should not be possible to start a program in manual mode, it seems you are going a way gmoccapy does not notice jet!

Norbert

Norbert

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

More
29 Dec 2013 01:14 #42121 by cncbasher

Norbert,

On the exit program button how about making it inactive unless you have powerd down the system.

Jim


i doubt this is good , if all you want to do is exit program to load another it would mean powering down a machine , such a bad thing to do
also you would never want a running machine , and no gui to control it .

dave

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

More
29 Dec 2013 01:32 #42123 by newbynobi
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

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

More
29 Dec 2013 01:36 #42124 by jbunch
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

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

More
29 Dec 2013 01:39 #42125 by newbynobi
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

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

More
29 Dec 2013 01:45 #42126 by jbunch
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

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

More
29 Dec 2013 06:19 - 29 Dec 2013 06:20 #42132 by newbynobi
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
Last edit: 29 Dec 2013 06:20 by newbynobi.

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

More
29 Dec 2013 20:52 #42154 by jbunch
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.

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

More
29 Dec 2013 23:23 #42156 by newbynobi
gmoccapy 0.9.9.7

ver. 0.9.9.7
- make gmoccapy react to external mode changes, i.e. start program with

net start halui.mode.auto => halui.program.run <= hardware.button
can be used, but....

I strongly recommend to check for the state with halui.mode.is_auto within your hal and only enable halui.program.run if the GUI is in auto mode!

I took all precautions to avoid starting a program when it is not secure, i.e. you should get an error if you try to start the program using halui, if you are in settings mode, as I force manual mode for that pages!

I would prefer to make my own "halui" pin, but that has to be discussed with the other developers first.

Norbert

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

More
30 Dec 2013 00:19 #42162 by newbynobi
gmoccapy 0.9.9.7.1

Attention : Hal pin renaming!!!!

ver 0.9.9.7.1
- replaced the hal_scale_jog_vel with a normal scale,
as there is no need for a additional hal pin
- renamed hal pin
gscreen.hal_hbar_spindle_feedback to be gscreen.spindle_feedback_bar
gscreen.hal_led_spindle_at_speed to be gscreen.spindle_at_speed_led
This way all spindle pins are together in halshow


Norbert

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

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