disable home button while running
13 Apr 2011 19:29 #8875
by BigJohnT
Replied by BigJohnT on topic Re:disable home button while running
Except you are trying to connect is manual to both inputs of and2 and you want your pyvcp button to be connected to one input.
Your almost there...
John
Your almost there...
John
Please Log in or Create an account to join the conversation.
13 Apr 2011 19:45 #8876
by piasdom
Replied by piasdom on topic Re:disable home button while running
trying to find that button that says program running.
saw it somewhere. other then that ?
net just-home-x halui.mode.is-manual and2.0.in0
net just-home-y halui.mode.manual and2.0.in1
net AndStop halui.program.running and2.0.out
saw it somewhere. other then that ?
net just-home-x halui.mode.is-manual and2.0.in0
net just-home-y halui.mode.manual and2.0.in1
net AndStop halui.program.running and2.0.out
Please Log in or Create an account to join the conversation.
13 Apr 2011 19:48 - 13 Apr 2011 19:49 #8877
by piasdom
Replied by piasdom on topic Re:disable home button while running
"NOW" i need to create a button/something in xml ? 
says program.is-running not there
net just-home-x halui.mode.is-manual and2.0.in0
net just-home-y halui.mode.manual and2.0.in1
net AndStop halui.program.is-runnin and2.0.out

says program.is-running not there
net just-home-x halui.mode.is-manual and2.0.in0
net just-home-y halui.mode.manual and2.0.in1
net AndStop halui.program.is-runnin and2.0.out
Last edit: 13 Apr 2011 19:49 by piasdom.
Please Log in or Create an account to join the conversation.
13 Apr 2011 19:59 #8879
by piasdom
Replied by piasdom on topic Re:disable home button while running
got to go.
THANKS
see ya in morn
THANKS
see ya in morn
Please Log in or Create an account to join the conversation.
13 Apr 2011 20:02 #8880
by BigJohnT
Replied by BigJohnT on topic Re:disable home button while running
You all ready have a button, correct? Is it not your Home X button?
The first line is correct... I have no idea what your trying to do with the second and third line.
Here is how it works in plain English
IF your Home X button is pressed AND halui mode is manual THEN and2.0out turns on your halui home x ( I forget the exact name) pin.
John
The first line is correct... I have no idea what your trying to do with the second and third line.
Here is how it works in plain English
IF your Home X button is pressed AND halui mode is manual THEN and2.0out turns on your halui home x ( I forget the exact name) pin.
John
Please Log in or Create an account to join the conversation.
14 Apr 2011 09:13 #8891
by piasdom
Replied by piasdom on topic Re:disable home button while running
got to go.
THANKS
see ya in morn
THANKS
see ya in morn
Please Log in or Create an account to join the conversation.
14 Apr 2011 09:48 - 14 Apr 2011 09:52 #8892
by piasdom
Replied by piasdom on topic Re:disable home button while running
i think i'm getting it now. but i don't know "what" the pins do.
teleop...is-on.....on.....mode.....machine
so i got this
net just-home-x halui.joint.0.home and2.0.in0
net just-home-x halui.mode.teleop and2.0.in1
net AndStop halui.mode.auto and2.0.out
i know "in"(<=) is what going to the comp and "out"(=>)
is what goes to the machine, but don't know when to use either.
teleop...is-on.....on.....mode.....machine
so i got this
net just-home-x halui.joint.0.home and2.0.in0
net just-home-x halui.mode.teleop and2.0.in1
net AndStop halui.mode.auto and2.0.out
i know "in"(<=) is what going to the comp and "out"(=>)
is what goes to the machine, but don't know when to use either.

Last edit: 14 Apr 2011 09:52 by piasdom. Reason: thinking
Please Log in or Create an account to join the conversation.
14 Apr 2011 10:23 #8894
by piasdom
Replied by piasdom on topic Re:disable home button while running
i need to have just-home-x in there somewhere, but it's "out"
should it be and2.0.out and have two "in"s.
but i'm thinking it needs to be where it's at.
this lets emc start, but it homes x at the same time:)
net just-home-x halui.joint.0.home and2.0.in0
net just-home-x halui.machine.is-on and2.0.in1
net AndStop halui.machine.on and2.0.out
disabled
#net home-x halui.joint.0.home => pyvcp.just-home-x
should it be and2.0.out and have two "in"s.
but i'm thinking it needs to be where it's at.
this lets emc start, but it homes x at the same time:)
net just-home-x halui.joint.0.home and2.0.in0
net just-home-x halui.machine.is-on and2.0.in1
net AndStop halui.machine.on and2.0.out
disabled
#net home-x halui.joint.0.home => pyvcp.just-home-x
Please Log in or Create an account to join the conversation.
14 Apr 2011 13:08 #8901
by piasdom
Replied by piasdom on topic Re:disable home button while running
i have this now, but it's just not right. it homes(zero) x when emc starts.
emc starts slow. on button take time to turn on. i don't think i need a button, do i.
i don't want to hit a button, i want it to let me home x and when program is running,
it is deactivated or grayed out. i know "home x" button should have two options(and2.0.in0 and and2.0.in1),
if both of these are true, AndStop will start. Thanks
net just-home-x halui.mode.is-manual and2.0.in0
net just-home-x halui.mode.joint and2.0.in1
net AndStop halui.joint.0.home and2.0.out
emc starts slow. on button take time to turn on. i don't think i need a button, do i.
i don't want to hit a button, i want it to let me home x and when program is running,
it is deactivated or grayed out. i know "home x" button should have two options(and2.0.in0 and and2.0.in1),
if both of these are true, AndStop will start. Thanks
net just-home-x halui.mode.is-manual and2.0.in0
net just-home-x halui.mode.joint and2.0.in1
net AndStop halui.joint.0.home and2.0.out
Please Log in or Create an account to join the conversation.
14 Apr 2011 13:20 - 14 Apr 2011 13:23 #8902
by BigJohnT
Replied by BigJohnT on topic Re:disable home button while running
When viewing pins in the Show Hal Configuration window pins are labeled as "In" or "Out". An "In" pin can be connected to an "Out" pin like your pyvcp button hal pin.
So I assume you have the button and the hal pin is just-home-x. When you press the button on the screen the just-home-x pin turns on. When you connect the "Out" pin to an "In" pin like the and2.0.in0 and you press the button it "turns on" so to speak the "In" pin.
The first connection to your and2.0.in0 will be your button pin...
net home-x-btn and2.0.in0 <= pyvcp.just-home-x
Next connect the halui.mode.is-manual (an "Out" pin like your button to and2.0.in1...
net home-x-in-manual and2.0.in1 <= halui.mode.is-manual
Last connect the "Out" pin of the and2.0.out to halui.joint.0.home which is an "In" pin
net home-x halui.joint.0.home <= and2.0.out
Delete or leave this line commented out
#net home-x halui.joint.0.home => pyvcp.just-home-x
John
So I assume you have the button and the hal pin is just-home-x. When you press the button on the screen the just-home-x pin turns on. When you connect the "Out" pin to an "In" pin like the and2.0.in0 and you press the button it "turns on" so to speak the "In" pin.
The first connection to your and2.0.in0 will be your button pin...
net home-x-btn and2.0.in0 <= pyvcp.just-home-x
Next connect the halui.mode.is-manual (an "Out" pin like your button to and2.0.in1...
net home-x-in-manual and2.0.in1 <= halui.mode.is-manual
Last connect the "Out" pin of the and2.0.out to halui.joint.0.home which is an "In" pin
net home-x halui.joint.0.home <= and2.0.out
Delete or leave this line commented out
#net home-x halui.joint.0.home => pyvcp.just-home-x
John
Last edit: 14 Apr 2011 13:23 by BigJohnT.
Please Log in or Create an account to join the conversation.
Time to create page: 0.092 seconds