Halui Problem

More
06 May 2016 16:24 #74306 by cyrut2
Halui Problem was created by cyrut2
Okay so im just starting to dive into hal world and please excuse my stupidity. I am using a simple parport card to run my machine. I added

net remrun parport.1.pin-10-in => halui.mode.auto halui.program.run

to get an input from pin 10 which im trying to assign to auto cycle

Here is what i get 'halui.mode.auto' does not exist.

What im trying to do.

Im writing a macro to do the following
Since i have no idea how to edit and create the ladder im trying to find a g code work around.
After lets say 10 parts go through a grinder a npn proximity is activating this input. The counter
I was trying to put this input as a cycle start as each piece ran through the following

#1=0
#2=10 (parts after ran)

g43 x0

o1000sub
o1 IF [#1>#2]
#1=#1+1
O1 repeat [#1>#2]
o1 endwhile
#1=10

G91
G01 Z-0.0000035
M3

After 10 parts i want it to run increments of -0.0000035 as it is grinding. So im trying to loop through the program 10 times then run the absolute of -0.0000035.

I hope im making sense its the first actual month into running linux on live parts.

AC

Please Log in or Create an account to join the conversation.

  • Todd Zuercher
  • Todd Zuercher's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
06 May 2016 17:40 #74311 by Todd Zuercher
Replied by Todd Zuercher on topic Halui Problem
Your halui problem may be, that you're missing a line from your config files.
You need to have "HALUI = halui" under the [HAL] section of your ini file.

If you are wanting your switch connected to parport.1.pin-10-in to run your sub program, I think I would connect it to a Halui mdi command in the [HALUI] section of the ini file.
linuxcnc.org/docs/2.6/html/config/ini_co...ml#sub:HALUI-section
In you ini
[HALUI]
MDI_COMMAND = o100 call
#if o100 is what your o sub program is called
and in you Hal post gui file
net remrun <= parport.1.pin-10-in => halui.mdi-command-00

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum