executing a script from axis GUI while program is running
- gambaf
- Offline
- Junior Member
Less
More
- Posts: 20
- Thank you received: 2
30 Apr 2023 09:28 #270299
by gambaf
executing a script from axis GUI while program is running was created by gambaf
Hello, I want to execute a bash script from the GUI regardless of the mode (homed, interpreter running, etc...) - just click and run always.
I can't use MDI_COMMAND because it won't execute while a program is running.
I suppose I could write a component that calls the script and connect buttons to its hal pins, but is there a simpler / more straightforward way?
I can't use MDI_COMMAND because it won't execute while a program is running.
I suppose I could write a component that calls the script and connect buttons to its hal pins, but is there a simpler / more straightforward way?
Please Log in or Create an account to join the conversation.
- bkt
- Offline
- Platinum Member
Less
More
- Posts: 1199
- Thank you received: 103
20 May 2023 13:33 #271743
by bkt
Replied by bkt on topic executing a script from axis GUI while program is running
while program execute ... no other gcode can run .... but you can use pin ...
net your_bash pyvcp.yourbutton (--in-- on your panel.hal)
--- on main.hal
net your_bash and2.in0
net your_bash2 not.0.in motion.run (sorry not remember exact motion name)
net your_bash3 not.0.out and2.0.in1
net your_bash3 and2.0.out MDI_xxx (--out--- on main.hal file)
these prevent execution while running ... but maybe and not homing signal .... so you can run only 1 time ...
regards
net your_bash pyvcp.yourbutton (--in-- on your panel.hal)
--- on main.hal
net your_bash and2.in0
net your_bash2 not.0.in motion.run (sorry not remember exact motion name)
net your_bash3 not.0.out and2.0.in1
net your_bash3 and2.0.out MDI_xxx (--out--- on main.hal file)
these prevent execution while running ... but maybe and not homing signal .... so you can run only 1 time ...
regards
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7776
- Thank you received: 2073
21 May 2023 00:38 #271786
by cmorley
Replied by cmorley on topic executing a script from axis GUI while program is running
You didn't mention which screen you are using.
I assume you are not talking about a gcode script, but it might help to know what the script does.
But probably you are going to have to do what you mentioned
I assume you are not talking about a gcode script, but it might help to know what the script does.
But probably you are going to have to do what you mentioned
Please Log in or Create an account to join the conversation.
Time to create page: 0.056 seconds