NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Configuring LinuxCNC GladeVCP Run GladeVCP from halrun

Welcome, Guest
Username: Password: Remember me

TOPIC: Run GladeVCP from halrun

Re:Run GladeVCP from halrun 17 Aug 2012 11:52 #23361

  • wd5jwy
  • wd5jwy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Karma: 0
Ok, so following the "net" command syntax in the Hal manual:

net <direction>* <signal-name> <direction>* <pin-name> (<pin-name>|<direction>)*

net both-home-y <= parport.0.pin-11-in


This is where I'm getting confused - in the above example:

"net" = hal command
"both-home-y" = direction and signal name? Or just signal name?

Or are they saying that <direction>* is just an option at that point in the command sequence?
The administrator has disabled public write access.

Re:Run GladeVCP from halrun 17 Aug 2012 11:59 #23362

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4249
  • Thank you received: 152
  • Karma: 130
Directions are all optional. I have actually stopped using them in my own hand-crafted HAL.
The administrator has disabled public write access.

Re:Run GladeVCP from halrun 17 Aug 2012 12:04 #23363

  • wd5jwy
  • wd5jwy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Karma: 0
Ah, ok, that's interesting - thanks for the info. I wish I could play with this right now, but the day job is getting in the way.
The administrator has disabled public write access.

Re:Run GladeVCP from halrun 17 Aug 2012 12:19 #23366

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5082
  • Thank you received: 102
  • Karma: 136
Where did you find that confusing description? Oh Never Mind, I found that...

John
Last Edit: 17 Aug 2012 12:20 by BigJohnT.
The administrator has disabled public write access.

Re:Run GladeVCP from halrun 17 Aug 2012 12:35 #23367

  • wd5jwy
  • wd5jwy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Karma: 0
So, I think I have it cleared up now. In the example:

net <direction>* <signal-name> <direction>* <pin-name> (<pin-name>|<direction>)*

net both-home-y <= parport.0.pin-11-in


<direction> would always be one of these "<=" or "=>". So, in the above example, "both-home-y" is the signal-name that receives an input from parport pin 11.
The administrator has disabled public write access.

Re:Run GladeVCP from halrun 17 Aug 2012 12:48 #23369

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5082
  • Thank you received: 102
  • Karma: 136
Yep you have broken the confusing code in that bad example, I've already fixed that example and it should be online in an hour with a much better example and explication.

The signal name can only have one pin that changes it's state or value, but can have as many pins as you need that read that value.

For example
net start-button stepgen.0.enable <= parport.pin-11-in
net start-button stepgen.1.enable

The net start-button can be used more than once but only once with a Direction OUT pin like the parallel port physical in pin.

The same thing can be written as
net start-button stepgen.0.enable stepgen.1.enable parport.pin-11-in

and the direction indicators <=, =>, and <=> mean nothing to HAL and are only there for your visual pleasure.

John
The administrator has disabled public write access.
Moderators: mhaberler
Time to create page: 1.420 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.