Thanks for the reply Kirk. Having explained it, would you (or anyone) mind translating the following generic sample to "net" without deleting any signal names? :
newsig signalnameA bit newsig signalnameB bit newsig signalnameC bit linksp signalnameA <= inputpin1 linksp signalnameA => axis.0.negativelimit linksp signalnameB <= inputpin2 linksp signalnameB => axis.0.positivelimit linksp signalnameC <= inputpin2 linksp signalnameC => axis.0.home Keep in mind that this worked perfectly in older versions of EMC2, but not in newer versions. Now 2 signal names cannot be assigned to a single pin without causing an error. Thanks, Jim -----Original Message----- From: Kirk Wallace [mailto:[email protected]] Sent: Thursday, July 22, 2010 8:37 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Assigning 2 signal names to 1 pin On Thu, 2010-07-22 at 17:53 -0500, James Louis wrote: > Thanks Andy! I'll try this, but I have a concern: > In either case one of the signal names goes away, right? > Xhome or Xmaxlim gets deleted one way or another, so 2 signal names cannot be > assigned to a single pin. > > Jim You may have only one output pin attached to a signal name (or think of a signal name as a wire name), with one or more pins attached that accept input. There can only be one boss per signal (or wire). You should be able to assign a single output pin to more than one signal name, as long as there are no other pins that can create output for each signal. A component can have more than one input, so a component is needed to combine more than one output pin to the component inputs, which can output to a new signal name. I think this will make sense after you get used to using HAL. The newer net command makes this easier to see. The net command always starts with "net", then white space, "signal_name", white_space, "pin_name_that_outputs", white_space, "list of pins that accept input". The linksp command lets you add more pins that accept input to an existing signal name on another command line if needed. Also the => and <= have no effect on HAL, but are used to make the net command more readable(?). I tend not to use them. I think one or more utilities use them, but none come to mind at the moment. Hopefully someone else will correct any of the above if needed. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users This communication is for the use of the intended recipient only. It may contain information that is privileged and confidential. If you are not the intended recipient of this communication, the disclosure, copying, distribution or use hereof is prohibited. If you have received this communication in error, please advise me by return e-mail or by telephone and then delete it immediately. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
