Re:Hardinge CHNC 1 Lathe

More
16 years 6 months ago - 16 years 6 months ago #2572 by BigJohnT
Replied by BigJohnT on topic Re:Hardinge CHNC 1 Lathe
Hi BigAlex,

Well I don't have a problem getting numbers from the feed override knob with wsum. The problem is that halui feed override only takes up and down inputs and not numbers. I tried yesterday to use some classicladder magic and use it to press the up and down button in halui but it only worked from 1 to .9 and .9 to 1. In halui 1 == 100%. Seems like the classicladder compare is broken with floats... So I'm in the process of converting the halui feed to whole numbers and try again.

John
Last edit: 16 years 6 months ago by BigJohnT.

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

More
16 years 6 months ago #2583 by bigalex
Replied by bigalex on topic Re:Hardinge CHNC 1 Lathe
Hi John,
please can you explain me in detail what kind of digital knob are you using and what do you write inside ClassicLadder and hal file ?
What kind of halui components are you using ?
Another question what do you mean for "ClassicLadder magic" ?

bigalex :blink:

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

More
16 years 6 months ago #2586 by BigJohnT
Replied by BigJohnT on topic Re:Hardinge CHNC 1 Lathe
The feed override knob on my hardinge has 4 rows of contacts with 13 positions and depending on how you wire it is how the output of each position is. I have it wired to give me BCD output from 0 to 12. So in the 10% position line one is on, in the 20% position line two is on, in the 30% position line one and two is on to give me three and so on up to 12.

As soon as I get it to completely work I'll post it here. By classicladder magic I mean when I compare the actual value to the desired value classicladder presses the up or down button in halui till the values are the same.

The halui bits I use are feedoverride increase, decrease and value (from memory).

John

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

More
16 years 6 months ago - 16 years 6 months ago #2592 by bigalex
Replied by bigalex on topic Re:Hardinge CHNC 1 Lathe
Hi John
why don't you take the position of your feed ovverride knob p.e. 4 (coded from BCD = 40% of the max speed) and multiply it for 100 so you will have 400 and put this value into a register S32 and pass it to EMC2 input.
After that into the HAL file you take the input register value from ClassicLadder , convert it to float (real) and multiply it by 0.001.
In this case you will have for the position 12 (max feed override) a value in ClassicLadder format s32=1200 (12*100), so the Hal file will compute the value as 1200 (ClassicLadder s32) --> 1200.0 (float using conv_s32_float) --> 1200.0*0.001 (using mult2) --> 1.2 to use to the HALUI component.
I hope this can help you.


bigalex :blink:
Last edit: 16 years 6 months ago by bigalex.

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

More
16 years 6 months ago #2593 by BigJohnT
Replied by BigJohnT on topic Re:Hardinge CHNC 1 Lathe
That's kinda what I'm doing except I'm using 0-12 from the knob wsum converted to s32 and then converting the halui.feedoverride-value to 0-12 s32 for the compare. This way I'm comparing whole numbers.

John

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

More
16 years 6 months ago #2605 by BigJohnT
Replied by BigJohnT on topic Re:Hardinge CHNC 1 Lathe
SWEET! My feed override knob works. What I did was use classicladder to press the up and down buttons in halui based on a couple of compares. A little mult2 and conv-fload-s32 to get the numbers to agree and it was off and running. I'll clean up the code an post it tonight.

John

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

Time to create page: 0.192 seconds
Powered by Kunena Forum