Tom wrote: > I tried the following to no avail: > setp debounce.0.delay100 / setp debounce.0.100 / setp debounce.0 100 > > All get is an error saying that there is no such pin or parameter, or there > must > be 2 arguments. > > Can anyone show me some examples of how to set this parameter? > > Thank you! > Tom >
Whenever you are having trouble with HAL, an interactive halcmd session is probably the answer. Comment out whatever line in your hal file is causing the problem, so that EMC will start. Start EMC. Then, open another shell, and start halcmd: "halcmd -kf" That will get you a "halcmd:" prompt. If a parameter is giving you trouble, type "show param" for a list of all the parameters. That will solve the "no such parameter" problem, since you can see what it is and how it is spelled. (Hote: if you already have an idea what the name is, you can make the list shorter by specifying the partial name. For example, "show param debounce*" will show only parameters whose names start with "debounce". As Steven pointed out, you are suffering from typos. The syntax of the setp command is "setp name-of-the-param value-for-the-param", where the spaces tell halcme where one part ends and the next begins. The command "setp debounce.0.delay 100" sets the paramter named "debounce.0.delay" to the value "100". You can set it in the interactive halcmd session to see how it works, and you can change it - if you find that 100 is causing too much delay, then "setp debounce.0.delay 10" will change it to 10. Commands take effect immediately - you don't need to stop EMC, edit a file, and then restart EMC. This can be good or bad - changing a debounce delay on the fly is fine, but you don't want to be randomly disconnecting, connecting, or adjusting HAL things unless you know what you are changing. But used carefully, it can really speed up the initial configuration and tuning of a machine. Once you've found the proper value, add the line into your HAL file so it will take effect the next time you start EMC. Regards, John Kasunich ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
