Hi,
Attached is a C program that should do this. If you connect a 0-5V pot to Kanalog ADC0 it should change the KMotionCNC Screen FRO Slider. Use with Test Version 4.31k
You would need to add or merge this code into a loop at the end of your Initialization C Program. But for testing you might run it in a separate Thread from KMotion.
We just found a Software Bug regarding Kanalog ADC7 where it is basically functioning as an 8-bit ADC rather than a 12-bit ADC (readings change in steps of 16 ADC Counts). We are testing a fix, but in the mean time please avoid use of ADC7. Use ADC0 as in the Attached Program.
Regards
TK
| Group: DynoMotion |
Message: 8385 |
From: Tom Kerekes |
Date: 9/23/2013 |
| Subject: Re: External feedrate potensiometer |
Strange I don't see the attachment on Yahoo Groups. Maybe Yahoo Groups don't like .c files. Here is a link if you didn't receive it. http://dynomotion.com/Software/CPrograms/SetFROwithPot.c Regards TK
| Group: DynoMotion |
Message: 8388 |
From: geast1967 |
Date: 9/25/2013 |
| Subject: Re: External feedrate potensiometer |
Thank you for the reply.
I try to compile the program you send me but the include file "KflopToKMotionCNCFunctions.c" is missing or what file should i include.
---In dynomotion@yahoogroups.com, <tk@...> wrote:
Strange I don't see the attachment on Yahoo Groups. Maybe Yahoo Groups don't like .c files. Here is a link if you didn't receive it. http://dynomotion.com/Software/CPrograms/SetFROwithPot.c Regards TK
| Group: DynoMotion |
Message: 8389 |
From: Tom Kerekes |
Date: 9/25/2013 |
| Subject: Re: External feedrate potensiometer |
If you are using Test Version 4.31k as I recommended it should be in the C Programs directory.
Or here is a link:
http://dynomotion.com/Software/CPrograms/KflopToKMotionCNCFunctions.c
But this will only work with recent Test Versions.
Regards TK
| | | | | |