PYVCP format help
05 Apr 2011 17:40 - 05 Apr 2011 17:42 #8602
by BigJohnT
Replied by BigJohnT on topic Re:PYVCP format help
Did you change it to match the above post with the slight pin name changes?
And the MDI button still works?
John
And the MDI button still works?
John
Last edit: 05 Apr 2011 17:42 by BigJohnT.
Please Log in or Create an account to join the conversation.
05 Apr 2011 17:42 #8603
by piasdom
Replied by piasdom on topic Re:PYVCP format help
now about naming the pin.
do i use the name in the list halui.joint.0.home as in <halpin>halui.joint.0.home</halpin> in the xml file
or is it a name i can pick ? <halpin>just-home-x</halpin>
then bring that name to the hal file.
do i use the name in the list halui.joint.0.home as in <halpin>halui.joint.0.home</halpin> in the xml file
or is it a name i can pick ? <halpin>just-home-x</halpin>
then bring that name to the hal file.
Please Log in or Create an account to join the conversation.
05 Apr 2011 17:46 #8604
by piasdom
Replied by piasdom on topic Re:PYVCP format help
you mean the pins names or where the file was ?
MDI never stopped
MDI never stopped
Please Log in or Create an account to join the conversation.
05 Apr 2011 17:50 #8605
by BigJohnT
Replied by BigJohnT on topic Re:PYVCP format help
The pin names I changed the last two to make more sense...
John
John
Please Log in or Create an account to join the conversation.
05 Apr 2011 18:06 #8606
by piasdom
Replied by piasdom on topic Re:PYVCP format help
i have this now. MDI stiil works and the other one doesn't(not suppose to right now-no link)
took the other two buttons out til i get ONE right. when i put just-home-x in the hal file, says doesn't exist when starting EMC
i've tried
net home-x just-home-x => pyvcp.halui.joint.0.home
net home-x halui.joint.1.home => pyvcp.just-home-x
net home-x just-home-x => pyvcp.home-x
net home-x home-x => pyvcp.just-home-x
net home-x just-home-x => halui.joint.0.home
net home-x halui.joint.0.home => just-home-x
net just-home-x halui.joint.0.home <-- this one started emc but didn't work
the second location(pin) should be what i make up or the pin in the list halui.joint.0.home
<pyvcp>
<labelframe text="MDI Commands">
<button>
<halpin>"rapid-to-home"</halpin>
<text>"Rapid to Home"</text>
<font>('Helvetica',10)</font>
</button>
<button>
<halpin>"just-home-x"</halpin>
<text>"Home X"</text>
<font>('Helvetica',10)</font>
</button>
</pyvcp>
took the other two buttons out til i get ONE right. when i put just-home-x in the hal file, says doesn't exist when starting EMC
i've tried
net home-x just-home-x => pyvcp.halui.joint.0.home
net home-x halui.joint.1.home => pyvcp.just-home-x
net home-x just-home-x => pyvcp.home-x
net home-x home-x => pyvcp.just-home-x
net home-x just-home-x => halui.joint.0.home
net home-x halui.joint.0.home => just-home-x
net just-home-x halui.joint.0.home <-- this one started emc but didn't work
the second location(pin) should be what i make up or the pin in the list halui.joint.0.home
<pyvcp>
<labelframe text="MDI Commands">
<button>
<halpin>"rapid-to-home"</halpin>
<text>"Rapid to Home"</text>
<font>('Helvetica',10)</font>
</button>
<button>
<halpin>"just-home-x"</halpin>
<text>"Home X"</text>
<font>('Helvetica',10)</font>
</button>
</pyvcp>
Please Log in or Create an account to join the conversation.
05 Apr 2011 18:12 #8607
by piasdom
Replied by piasdom on topic Re:PYVCP format help
looking at examples
net just-home-x <= halui.joint.0.home <-- should work
i found
net both-home-y <= parport.0.pin-11-in
net just-home-x <= halui.joint.0.home <-- should work
i found
net both-home-y <= parport.0.pin-11-in
Please Log in or Create an account to join the conversation.
05 Apr 2011 18:13 #8608
by BigJohnT
Replied by BigJohnT on topic Re:PYVCP format help
Ok time to stop guessing... some important info to know
When you add a button with pyvcp and create a hal pin it adds pyvcp. to the pin name so your
<halpin>"just-home-x"</halpin>
becomes the hal pin pyvcp.just-home-x
So now we know the full name of your button hal pin you can create the net command to connect the two hal pins.
net home-x halui.joint.0.home <= pyvcp.just-home-x
John
When you add a button with pyvcp and create a hal pin it adds pyvcp. to the pin name so your
<halpin>"just-home-x"</halpin>
becomes the hal pin pyvcp.just-home-x
So now we know the full name of your button hal pin you can create the net command to connect the two hal pins.
net home-x halui.joint.0.home <= pyvcp.just-home-x
John
Please Log in or Create an account to join the conversation.
05 Apr 2011 18:23 #8609
by piasdom
Replied by piasdom on topic Re:PYVCP format help
thanks,
got all four buttons to work. i didn't(couldn't get) where the halui.joint.0.home went.
when i had it in the right place i guess i had something else wrong.
i really do appreciate all ya'll help (TWO DAYS) and i owe ya'll some cold beer.
got all four buttons to work. i didn't(couldn't get) where the halui.joint.0.home went.
when i had it in the right place i guess i had something else wrong.
i really do appreciate all ya'll help (TWO DAYS) and i owe ya'll some cold beer.
Please Log in or Create an account to join the conversation.
05 Apr 2011 18:28 #8611
by piasdom
Replied by piasdom on topic Re:PYVCP format help
Please Log in or Create an account to join the conversation.
05 Apr 2011 18:29 #8612
by BigJohnT
Replied by BigJohnT on topic Re:PYVCP format help
I was fixing to say where are the buttons??? LOL
John
John
Please Log in or Create an account to join the conversation.
Time to create page: 0.085 seconds