disable pin
- slingerben
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
05 Apr 2010 13:08 #2518
by slingerben
disable pin was created by slingerben
I'm new to pyvcp. Does someone knows how the disable pin works?
I know that the basic code is <disable_pin>true</disable_pin>. First i tried to put de name of the disable pin between the tags. Then i put the link in the custom_ postgui.hal. Then when I run emc2 (axis), i get a error saying that "-disable_pin" is a unknown option.
Already, thanks for the help.
I know that the basic code is <disable_pin>true</disable_pin>. First i tried to put de name of the disable pin between the tags. Then i put the link in the custom_ postgui.hal. Then when I run emc2 (axis), i get a error saying that "-disable_pin" is a unknown option.
Already, thanks for the help.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7769
- Thank you received: 2053
05 Apr 2010 17:28 - 05 Apr 2010 17:39 #2519
by cmorley
Replied by cmorley on topic Re:disable pin
<led>
<disablepin>True</disablepin>
</led>
try that
Seems I intended the key word to be disable_pin but used disablepin instead.
led , rect led, labels and buttons can use disable pins for your info.
<disablepin>True</disablepin>
</led>
try that
Seems I intended the key word to be disable_pin but used disablepin instead.
led , rect led, labels and buttons can use disable pins for your info.
Last edit: 05 Apr 2010 17:39 by cmorley.
Please Log in or Create an account to join the conversation.
- slingerben
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
05 Apr 2010 18:04 #2521
by slingerben
Replied by slingerben on topic Re:disable pin
That doesn't seem to work either. If a run it in emc2, and look with the halmeter. There's still no disable pin availeble.
I also tried to put true between the "" tags.
I also tried to put true between the "" tags.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7769
- Thank you received: 2053
05 Apr 2010 18:07 #2522
by cmorley
Replied by cmorley on topic Re:disable pin
But there was no error?
what version on EMC are you using?
please post your pyvcp file
what version on EMC are you using?
please post your pyvcp file
Please Log in or Create an account to join the conversation.
- slingerben
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
05 Apr 2010 18:24 - 05 Apr 2010 18:30 #2523
by slingerben
Replied by slingerben on topic Re:disable pin
no, there was no error.
The version i am using is 2.3.4.
Thanks for the help.
file --> it's a part
<?xml version='1.0' encoding='UTF-8'?>
<pyvcp>
<!--
Include your PyVCP panel here.
The contents of this file will not be overwritten when you run stepconf again.
-->
<label>
<text>"Spindel snelheid:"</text>
</label>
<meter>
<halpin>"spindle-rpm"</halpin>
<text>"Speed"</text>
<subtext>"RPM"</subtext>
<size>200</size>
<min_>0</min_>
<max_>3000</max_>
<majorscale>500</majorscale>
<minorscale>100</minorscale>
</meter>
<label>
<text>"Extra controls:"</text>
</label>
<tabs>
<names>["Controls", "Assen", "Tool-selc","Tool-chg"]</names>
<!--Firts tab-->
<vbox>
<checkbutton>
<halpin>"klauw-check"</halpin>
<text>"Klauw openen"</text>
</checkbutton>
<hbox>
<!-- Here is the problem!-->
<led>
<halpin>"led-kap"</halpin>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
<disablepin>"True"</disablepin>
</led>
<label>
<text>"Sensor kap"</text>
</label>
</hbox>
<checkbutton>
<halpin>"led-on"</halpin>
<text>"led aan"</text>
</checkbutton>
<led>
<halpin>"led-start"</halpin>
</led>
<button>
<halpin>"tool-klaar"</halpin>
<text>"tool klaar"</text>
</button>
</vbox>
The version i am using is 2.3.4.
Thanks for the help.
file --> it's a part
<?xml version='1.0' encoding='UTF-8'?>
<pyvcp>
<!--
Include your PyVCP panel here.
The contents of this file will not be overwritten when you run stepconf again.
-->
<label>
<text>"Spindel snelheid:"</text>
</label>
<meter>
<halpin>"spindle-rpm"</halpin>
<text>"Speed"</text>
<subtext>"RPM"</subtext>
<size>200</size>
<min_>0</min_>
<max_>3000</max_>
<majorscale>500</majorscale>
<minorscale>100</minorscale>
</meter>
<label>
<text>"Extra controls:"</text>
</label>
<tabs>
<names>["Controls", "Assen", "Tool-selc","Tool-chg"]</names>
<!--Firts tab-->
<vbox>
<checkbutton>
<halpin>"klauw-check"</halpin>
<text>"Klauw openen"</text>
</checkbutton>
<hbox>
<!-- Here is the problem!-->
<led>
<halpin>"led-kap"</halpin>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
<disablepin>"True"</disablepin>
</led>
<label>
<text>"Sensor kap"</text>
</label>
</hbox>
<checkbutton>
<halpin>"led-on"</halpin>
<text>"led aan"</text>
</checkbutton>
<led>
<halpin>"led-start"</halpin>
</led>
<button>
<halpin>"tool-klaar"</halpin>
<text>"tool klaar"</text>
</button>
</vbox>
Last edit: 05 Apr 2010 18:30 by slingerben.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7769
- Thank you received: 2053
05 Apr 2010 18:46 #2524
by cmorley
Replied by cmorley on topic Re:disable pin
disable pins are only avaiable in emc 2.4
Strange there was no error
Strange there was no error
Please Log in or Create an account to join the conversation.
- slingerben
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
05 Apr 2010 18:47 #2525
by slingerben
Replied by slingerben on topic Re:disable pin
Alright, still thanks for the quick replies.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7769
- Thank you received: 2053
05 Apr 2010 18:54 #2526
by cmorley
Replied by cmorley on topic Re:disable pin
if it is really important to you you can try out emc 2.4 (pre-release)
this is how:
emc2-buildbot.colorado.edu/~buildmaster/
by the way don't use quotes around True for disable pins
Sorry it didn't work out
Chris
this is how:
emc2-buildbot.colorado.edu/~buildmaster/
by the way don't use quotes around True for disable pins
Sorry it didn't work out
Chris
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7769
- Thank you received: 2053
05 Apr 2010 19:35 #2527
by cmorley
Replied by cmorley on topic Re:disable pin
for anyone reading this I fixed 2.4 to use the correct spelling.
<disable_pin>True</disable_pin>
<disable_pin>True</disable_pin>
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7330
- Thank you received: 1177
06 Apr 2010 10:41 #2529
by BigJohnT
Replied by BigJohnT on topic Re:disable pin
Chris,
Thanks for fixing that.
John
Thanks for fixing that.
John
Please Log in or Create an account to join the conversation.
Time to create page: 0.313 seconds