Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.

More
19 Aug 2018 14:54 #116316 by tecno
Thanks HÃ¥kan,

Edited my hal and will test after dinner.

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

More
19 Aug 2018 16:00 #116320 by tecno
./cb_gearbox.hal:143: Pin 'gearcomp3.0.input_a' does not exist
Shutting down and cleaning up LinuxCNC...

net input-a-signal => gearcomp3.0.input_a <= hm2_7i76e.0.7i76.0.0.input-09

What went wrong ??

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

More
19 Aug 2018 16:03 - 19 Aug 2018 16:03 #116322 by Hakan
- instead of _

You have to have a critical eye and try to spot such things.
Last edit: 19 Aug 2018 16:03 by Hakan.

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

More
19 Aug 2018 16:07 #116324 by tecno
Sorry but I dont follow

comp says
pin in bit input_a
and same in HAL so what is wrong?

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

More
19 Aug 2018 16:09 #116325 by tecno
Do you say that input-a-signal >>>>> input_a_signal ??

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

More
19 Aug 2018 16:12 #116326 by Hakan
I see your point. I just checked your previous post with halshow and saw "input-a"
and just assumed it was called that in the hal file.
Use input-a, that is what halshow shows.

Somewhere I may have read that _ # and some other characters in the comp are treated
specially and translated. But let's just go for trial and error, I think it is faster than read up on the subject.

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

More
19 Aug 2018 16:13 #116327 by Hakan

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

More
19 Aug 2018 16:16 #116328 by dgarrett

HALNAME - An extended identifier. When used to create a HAL identifier, any underscores are replaced with dashes, and any trailing dash or period is removed, so that "this_name_" will be turned into "this-name", and if the name is "_", then a trailing period is removed as well, so that "function _" gives a HAL function name like "component.<num>" instead of "component.<num>."


Ref: linuxcnc.org/docs/2.7/html/hal/comp.html

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

More
19 Aug 2018 16:37 #116329 by tecno
Some progress, now we have pins from comp in halshow, but...

S90 = still direct to VFD not via comp.

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

More
19 Aug 2018 17:27 - 19 Aug 2018 17:29 #116331 by Hakan
Progress!

You see speed=0 in gearcomp3. It has to have a value, in this example speed=90.
How is speed connected in hal now?
You will have to disconnect it from wherever it is going now (to the vfd?)
and let it go into gearcomp3.
The output of gearcomp3 is speedratio. Maybe it is better to have a speed_out that is
speed*ratio or speed/ratio depending of how the ratio is defined.
You should probably modify the component to give the speed_out which is the motorspeed.
And then connect the speed_out to the vfd.
Last edit: 19 Aug 2018 17:29 by Hakan.

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

Moderators: cmorley
Time to create page: 0.272 seconds
Powered by Kunena Forum