if you have no electronics knowledge, you are not going to be able to do what you want
so i should scrap my machine, rather than try to learn it?
you should try to learn enough to do what you need
you wrote "someone mentioned that I could use an optocoupler driven off my 5i20 to avoid having to use a DAC"
that tells us very little about what you need
and nothing about what you know
what input voltage does the VFD need?
i'm trying to configure my hal
that much I knew
the analog side of the vfd is 10v
it has it's own 10v supply
does the VFD provide a 10V reference output? many do, so that you can connect a pot and get a 0-10V signal to go back into the vfd
so, you need a plain transistor output optocoupler
it needs to be connected so that when the light is on 100% of the time, you get 10V, 0% of the time gives 0V, and 50% of the time gives 5V
plain transistor..ok i'll grab one... all i have is darlington and schmitt
yea, i kinda grasp all that stuff, it was more of the software part that i'm having the trouble
well, that's not the impression you gave earlier
I wrote "if you have no electronics knowledge...." but it sounds like you _do_ have some
it gets frustrating playing 20 questions on IRC to help people - the more specific you can be, the more likely we can help
i didnt say i had no electronics knowledge, i said i had no background in this stuff, meaning the software side
sorry for the confusion
even though I'm sure I could do this config, I still need to read the man page for the details - nobody has it all memorized
so, man pwmgen
yep, i got it open... been reading it all day trying to make sense of it
ok - do you understand the threads/functions part?
you said you have a mesa card?
yes to the mesa card, not entirely to the first question
the pwmgen I was thinking about is software pwm
mesa pwm is different
do you have the rest of your machine working with the mesa, and just need to get the spindle going? or are you just starting?
so i should be looking in the pwmgen section of the hostmot2 man, right?
yes, my machine works, spindle turns on, now i'm to the vfd part
the axis motors are servo? or stepper?
so you've been thru the basics of hostmot2 - you turned on the proper number of stepgens, and you saw the pin listing in dmesg after loading the driver
yep, i got that part, and i got a little grasp of the gpio stuff yesterday when i did my spindle on
I don't know if the stepgens and the pwmgens compete for the same pins
your first step will to be to get a pwmgen, and find what pins it is using
that may already be done by default, it looks like the default for num_pwmgens is -1, which means "use all of them"
when i set up the firmware, i chose 3 pwmgens
(any particular reason for choosing three?)
figured i may use them someday
it looks like the pwmgen has three hardware outputs
Not_Enable is strangely named, but I guess that means "goes low when enabled"
you could probably use that instead of GPIO to start and stop your VFD, but if you already have that working, don't worry about it
one of the other two outputs will drive your LED
on the HAL side, there are only two pins: enable and value, plus a few parameters
I believe EMC outputs the desired spindle speed in RPM
you want to connect that with a hal signal to the "value" pin of the pwmgen
the manual page says "value" is in arbitrary units
what that means is "you get to decide what the units are"
in your case, you want the units to be RPM
how fast does your spindle go with +10V into the VFD?
ok - when "value" is 3800 RPM, you want duty cycle to be 1.0 (100%)
the man page says that "dc = value / scale"
so if you set "scale" to 3800, then when value is 3800, duty cycle will be 3800/3800 = 1.0 = 100%
ahh ok so thats what that means
when value is 1900 RPM, duty cycle will be 1900/3800 = 0.5 = 50%
it's easier to understand in layman's terms
so, it sounds like you already had a pretty good understanding of things, just led astray by one or two details
i'm a machinist, not i'm basically onlu educated in that
well i've been at it for a few weeks now.. trying to make sense of it all
I pretend to be a machinist ;-)
i wish i could only pretend lol
i got my first cnc machine last month, a shizuoka with a bandit control, so i decided to try the conversion
you own your own shop, or work at one and got a machine on the side?
i'm starting my own shop... been in business since april
tough time to be getting started - good luck to you
it's going ok believe it or not
all manual at the moment?
aside from the shizuoka, yep
i do more tooling than production
ah, that makes sense
I've done a few paying jobs on the side - enough over 10 years to pay for my tools, etc
but if I was trying to make a living at it I'd have starved by now
haha yea... i'm not making as much as i used to, but it've only been doing work for a month
actually, i take that back, i'm making about the same, but i'm spending everything i make on shop stuff
Danimal: A Shizuoka? Have you seen Kirk Wallace's machine shop URL? (it's in the sig of all his mailing list posts) He has a Shizuoka too. Photos on the web of his EMC2 retrofit.
yes, his is part of the reason i decided to use emc2
i was unsure of the whole toolchanger integration, but he assured me it could be done
"jmkasunich wrote: I pretend to be a machinist ;-)" That was a pretty fine router table I saw in Wichita from a pretend machinist. Got any pictures up yet?
just the one I took there
you sure got a lot done in a few days.
[00:58:53] <jmkasunich> http://jmkasunich.com/pics/pcbmill-table-2937.jpg
since then I've (temporarily) mounted the linear rails and X servomotor, I should take another pic
Danimal: Yes, I'd like to talk to Kirk about his tool changer too. On the Kasuga I'm doing, we kept the Dana/Summit stuff in the TC intact, we didn't try to take over all TC operations. We plan to keep the M10 trigger/response, or whatever it has already.
Maybe it was M10/M11, I don't have a list in front of me
me too, do you have the schematics for it? i havent read into it too much, but it looks like the m function cable should be fairly easy to understand
i have the whole manual/schematics for it if you want it
Yes, we have what I think is a complete set (paper), but not scanned in
lemme know if you want a pdf version, i can send it.
Ah, excellent. Sure if you send it, I'll compare and report any differences
you have a quickdraw, correct?
i am unaware if there are different versions
Are you keeping the M10/M11 (or whatever) or are you stripping it out and taking over?
KimK_, i gutted the whole bandit control, but i'm leaving the dana/summit stuff intact
i may use the board with all the reed switches, but not sure
We have one (Quickdraw? I'd have to look, it looks like Kirk's, though) but ours is without the stepper motor controlled vari-drive, we have a 5-step pulley. So ours is missing the speed up/down buttons and related circuitry
mine has it, but it wont be used... i'm going direct drive and using the vfd
Dana/Summit offered it both ways, apparently
if you rely _only_ on a VFD for varying speed, you might be dissapointed
if you have a 2HP motor, and use step pulleys or vari-speed sheaves to vary speed, you get the whole 2 HP over the entire speed range
if you use a VFD, you only get the whole 2HP at top speed - at half speed you only have 1HP, at 1/4 speed you only have 1/2 HP
i'm gunna ditch the whole salsbury drive system
It's probably a good average compromise. You can always hand crank it to the bottom for big-tapping or to the top for high speed light routing and have a PyVCP input for a "gear change"
We plan to have at least a PyVCP "gear change" input, maybe some real switch input bits, not sure yet
i was under the impression that you keep the torque with the vfd
but i've been wrong alot
torque remains constant as you slow down the VFD
but with gears, belts, etc, torque increases as you slow down
* jmkasunich designs vfd's for a living ;-)
i'm keeping the hi/lo gear
my motor is 3hp though
not that it's much of an improvement over 2hp
I don't know how often you actually take a 2HP cut
Ha, we machine hackers want all the power we can get, LOL
i think my steppers will croak before i use 2 hp lol
KimK_, how should i send over the manual?
Our Bandit had the servo/resolver option, so our motors are a little stronger. And we have a 5HP spindle motor.
Up to you. File transfer right here, or email, either is good, which would you like?
i can do a file transfer, but it's been years since i've done it on here so i may need a walk through
What's your client? (I'm on Ubuntu Xchat)
Just use http://filebin.ca/
up to 50MB
There you go
ok we'll do that
And observers get to take home a copy too
i need to get a pendant for my machine eventually
After you get that going... What did you do with your empty Bandit, get rid of it, or put stuff in it? What stuff? Dave is trying to put a small CRT in the front half, with a keyboard tray in front, but that might have to go, I need front panel switch space, etc.
i put the stepper drivers in it, but the front half is empty
i just put the new drivers in place of the old ones
We're not sure about the PC either, inside would be great, but we might have to cable next to it for for stuff inside
i'm using the power supply
i'm planning on getting rid of the bandit's box, and putting the stepper drivers and the power supply in a box on the side. i have some good sized cabinets that i took off, so i may use one of those
We traded our resolvers for encoders, we'll see how that goes.
sounds like a good way to go
i'm going to switch to servos eventually
I'm really happy with the pico resolver to quadrature conversion board
they are expensive but considering what a new encoder costs (and the pain involved in mounting it), it's probably a wash
as for the pc, i'm going to make something on a arm off to the side of the machine that will house my pc, 19"lcd (might swap it out for a 15"), and have a heyboard/mouse tray on it
[01:27:00] <Danimal> http://filebin.ca/jfbmqh
there's the pdf
cradek: We thought about keeping our resolvers, but the USDigital E6 encoder kit won us over on price, resolution, and speed. http://www.usdigital.com/products/encoders/incremental/rotary/kit/e6/
Danimal: Thanks, they're coming in now
i have some large steppers
somewhere in the ballpark of 1300oz/in
i thought they were large anyways
KimK_: 10k ppr, wow
The E6's ended up costing about $80 each with the index and differential options, plus another $40 or so for a 35' cable (encoder connector to bare wires)
more torque than my poor ford ranger
whoah, pico systems got a web store thingy
Yeah, we went with the 2500 line ones. And I think we'll be OK on speed too, so, good. (he said, crossing his fingers)
I ended up with 204800 counts/inch
Wow, that's quite a bit! Gear/belt reduction?
the resolver is geared to the ballscrew
what is the pico website anyway
not picosystems.com, I see
well i think i'm gunna eat then try to finish the grout in my bathroom
Dave's should be 10,000 with either 5mm/rev or .200"/rev (haven't measured), so 50,000/in or 50,800/in
thanks for the help jmkasunich
and good chatting with you again KimK_
KimK_: sounds like a good choice of resolution
You bet, keep us posted on how you're doing
slow but steady
with lots of headaches
Danimal: glad I could help - sorry I was a bit grouchy at the start ;-/
cradek: A good choice? Do you find that your 204800/in is too much? Why isn't that even better?
dont blame ya jmkasunich, i'm not very good at explaining stuff..sorry for the confusion
no, the 204800 is fine - the only way to have too high a resolution is if you overrun your encoder counter's max speed
Well, I know you do some pretty fine work over there, so high-res is the order of the day, I'd guess?
super high res on X is nice. the lathe is very good.
I suspect that the benefit going from 50K per inch to 200K per inch is very very small
yes that's surely true
[01:44:17] <cradek> http://timeguy.com/cradek-files/emc/no-backlash.png
my mill will most likely have 63K per inch, and that seems like plenty to me
red is resolver->quadrature count, cyan is a glass scale I attached temporarily to X
I thought I would generate a screw comp table, but I think the screw is as good as, or better than, the scale
That is a nice pic, what was the glass scale resolution? (since the steps are easy to see) Or, what's the vertical scale in inches?
0.001 per div
I bet the scale is 2.54 counts per thou, or 0.01mm (10 microns) per count
If the scale is .001"/div, then was the scale metric? (it doesn't quite repeat)
yes I think so
oops, that was confusing
somehow the scale's readout box (all TTL) reads in inches though. baffling.
scale1 = halscope , scale2 = the glass scale
maybe the human display rounds to the nearest value?
nearest metric value
yes the input scale of the scale (haha) was 2540 when I had it hooked up
OK. So 25.4 strikes again.
KimK_: it has so many segments burnt out (numitrons) that I can't really tell how it works, I can only barely tell it's in inches
Really? You need Numitrons? I've been hanging on to a few for no good reason that I know. (Numitrons aren't as "retro cool" as Nixies, in my opinion.)
oh, that is the scale from the workshop last year?
jmkasunich: yes, or two years ago, I forget
KimK_: nope, thanks :-)
Hi, I just got my computer running with the 5I20 board. I thought I would play around with Hal to make the I/O work. Questions: I should "loadrt hm2_pci" not hal_m5i20 right?
you can use either driver but hm2_pci is the new and currently-maintained one
also, what is the param hm2_5i20.0.pet.watchdog.tmax ?
tmax values tell you the longest time a function has taken to execute so far
lots of functs have tmax parameters you can read
OK so if I pet the dog at a certain interval tmax will tell me the maximum time it has taken so far?
no, not the interval, the time it took to execute
execute petting the dog?
yes how long did it take to pet
tmax of the motion controller, or pid, etc etc is more interesting
got it thanks
these are really for debugging or optimizing only
not generally needed
When does the watchdog actually start watching?
cradek: OK I just tried a simple experiment. http://pastebin.ca/1441820
used halmeter to look at watch dog bit. It goes true as soon as I start. what is missing?
hm, I'm not sure
maybe you should add read to the thread too?
what is hm2_5i20.0.watchdog.timeout_ns?
the timout is default value of 3B9ACA00 ns
shoud be mor that 1000000 right?
looks like more, to me
add read to the thread? read what?
on my system I have read, then write, then pet watchdog
OK I will try that
cradek: ? I think it works now. The start command needs to happen right away, needs to be in the .hal file. Does that make sense?
I am trying to load EMC2.3 sim
Just ran through everything upto
sudo apt-get install emc2-dev
The following packages have unmet dependencies:
emc2-dev: Depends: emc2-sim (= 1:2.3.0~beta1) but 1:2.3.1 is to be installed
E: Broken packages
I will take my answer while away should anyone read this - thanks and gnite.
bglackin: still there?
it would help if you could say what version you are trying (6.06 or 8.04, 32 or 64 bit, etc)
bglackin: the package names should be emc2-sim_2.3.1 and emc2-sim-dev_2.3.1
Can somebody explain why the do_homing function in homing.c keeps getting executed after my axis has been homed? If I add reportError("dummy"); between line 202 and 203, then I home one joint, the message keeps getting printed after the joint was homed. seems a bit strange to me ...
do_homing does nothing when no joints are homing
see line 233:
/* nothing to do */
is it because there are joints that aren't homed, and thus are in the HOME_IDLE state?
oh i see after it reached the HOME_FINISHED state it goes into the HOME_IDLE state ...
i need some help with a remote setup (using nml and emcsvr)
i always get strange errors
to upgrade emc without a network connection is this the only file I need http://linuxcnc.org/emc2/dists/dapper/emc2.3/binary-i386/emc2_2.3.1_i386.deb
I'm having problems reading the hal pin i created in the homing.c file
I can see the pin with the hal meter, but don't know what i'm doing wrong while tryning
to read it
what kind of error do you get?
none, it just reads 0.00000000
but on the hal meter it shows an other value
I assume there's something wrong with the c code I wrote, ...
where are you trying to read it?
in do_homing in homing.c
i'll get an usb drive and pastebin the files =)
I marked the things I added with comments containing "JVG"
I'll wait until jmkasunich is here, he did instruct me on how to do it.
aaaaarg... stil no success on reading the halpin
what does 'test' return (re: reportError("Joint%d: %f", joint_num, test); ) ? you seem to have been looking to see if anything was working.
I can see the halpin change, but it doesn't affect test
all the halpins were created? ("retval = hal_pin_float_new(buf, HAL_IN, &(addr->home_offset), mot_comp_id);")
Yes the halpins did get created
ok, so 'test' and the tool that looks at test, are not looking at the same thing (eg addr vs content) or, looking at same thing different ways ( eg char vs float )
that comment is result driven ( not guided by reading the code you wrote )
what tool is used to examine 'test' ( besides the debug print you wrote )
" what i sthis halpin of whicj you speak? "I can see the halpin change, but it doesn't affect test"
what is this halpin of which you speak ;)
oh and how is it related to 'test'
laundry duty, bbl
I connected the halpin (axis.0.home-offset) with a pyvcp slider
i can see the cange of the halpin with the hal meter.
but there is no effect on 'test'
I have to go now, will be back in a couple of hrs ..
'reducing' your code yields double test = *( &(emcmot_hal_data->joint[joint_num]) )->home-offset ); try the same de-referencing on some known value.
( maybe make sure making the struct larger is ok )
and, this is really stuff for #emc-devel
haha checking on some pointer stuff, stanford talks about pointers & 'pointees' :)
even better, the pointee in examples is '42' ( for all the douglas adams fans )
maybe joint_data = &(emcmot_hal_data->joint[joint_num]); test = joint_data.home_offset; ?
too new to have joyhandle.ko already built in 2.3.1 or is there a 'better way'
i now have the axis and buttons of my joypad in hal, but it seems i am missing the joyhandle.ko to tweak the axis to nonlinear for better handling
Hello. I need an electronics opinion. I am hooking up a brushed DC motor to turn the tool carousel. I have a multi voltage transformer that was on the original machine. I have a 12 DC supply connected to this transformer and it only runs the carousel motor. Using a 12 volt battery, I measured 7 Amps. With the 12 Volt supply I measure 8 Volts, so I am dropping 4 Volts at something not much less than 8 Amps. Is my transformer up to the task?
any capacitors after the rectifiers?
else sounds like no it isnt
then definitely struggling
what happened to the original motor
Okay, I thought so. I'll have to dig up another supply.
The original was an AC induction motor.
add a vfd to drive the original
It was connected to a Geneva drive, so I got a start-stop for each to position change. Really anoying. I am going to use the DC motor to accel/decel each way to the tool position. An encoder is in the works too. I also need a PWM driver.
For now I'll use Jon's pico drive, but it's a bit of overkill. I'd rather use it where its really needed.
an of the shelf desktop suited to emc according to the wiki latency test page http://www.tigerdirect.com/applications/SearchTools/item-details.asp?sku=N52-1070+P
(needs more mem & chuck the os)
15 GB hard drive? Maybe flash instead?
tom3p thats quite a lot of money for that old junk
haha go look for new junk that works with emc, get it home & have it fail the test
(bad attitude from bad experience)
tom3p *g* .. i see where you are heading.. i meant that it could make more sense to build a machine from old parts or 'known good' parts which one already has in use and 'are the right age' now.. just buy something nicer e.g. for the workstation
i just took one of the 'old boxes' with a via based msi board and a duron out of the corner.. since notebooks nowadays are like 4 times as fast it was just not used anymore
still it 'seems to be too slow' sometimes
we use 18usec now i think, 16 was 'too sharp'
example: i'm in cincinnatti now for maybe 3 or 4 months, got a great new sable2015 stepper machine in from taipei. what can i drive it with? not my 2 laptops, so what can i buy?
is it a problem getting good, not dead, used p3 class or socket A (amd) based boards with intel, via or amd chipset?
the salvage houses around Ky & S. OH are reclaiming everything. i cant find squat used. maybe this is local, maybe a trend. on the web, the wiki listed stuff is disappearing.
[19:15:56] <Jymmm> http://weirdstuff.com/
one of the links on wiki leads not to the jetway mobo, but to a p/s, other leads to 'discontinued' item http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Hardware_Requirements
Jymmm: will look thx
do they have any of the listed units?
tom3p well.. stuff listed there is only 'some' ... actually there are heaps of hardware which shouldnt make any trouble out there
Avoid the Tyan Thunder it has a BIOS settings issue
ahah i was advised to ge the tyan thunder and got 2 of 'em, and mem and ... one of many attempts to get something that passes the tests
[19:19:55] <Jymmm> http://www.weirdstuff.com/cgi-bin/item/15061
i would for example guess that a ibm thinkpad T40p or so should work great. fast enough, can hold decent amounts of ram, decent graphics, should work out of the box with 8.04 and also still has a real parport
roh: Nope, no laptops
That intel mobo has the best chipset
though limited am
Jymmm any sane reason?
Yeah, 100,000+ laency
basically half the stuff which is listed as 'doesnt work' out there for various reasons looks like 'stupid choice of hw' to me... e.g. using anything with either nvidia graphics or chipset is plain stupid and in the end will lead to 'strange' errors and bugs.
Jymmm did you test a t40p?
roh: I tested a LOT of laptops.
laptop != thinkpad, and even there one has to be careful. (e.g. dont buy nvidia)
T23, T40, T60, 1500, Fujitsu,
roh: WTH are you alking about? All thinkpads are laptops. and always have been
Be they IBM or Lenovo
Jymmm yes.. but not all laptop-makers have a clue how do not fuck it up completely.
e.g. acer or fuji
in the end a 40th class thinkpad is nothing else than a pentium-m class 'intel chipset solution' as close to the intel-recommendations as possible
roh: Look, you are adamant about using a laptop, you've been given warnings not to due to excessive latency, I wash my hands.
and they are cheap and come in masses... about 300E for a fully equipped one used atm.. lots of formerly leased machines which now get replaced with new ones and are sold refurbished
Jymmm i wanted a sane reason. you dont give one but fud around. thats what is pushing me
especially since there is a tp600 listed as 'works'
does not help people who have less clue about hardware than ourselves.
roh 99% of laptops have power management issues that cause high latency
you can run a tp40 completely without any acpi and apm whatsoever.
archivist am not recommending hw i think is sane without reason. after all one gets a bit of experience after >10 years of using linux
i know people who use these devices as temporary servers. fits into 1U 19" easily and can hold 2 disks and has proper intel ethernet and stable cooling
haha , so after finding this stuff ( mobo , a P3 850 slot1 cpu , and PC100 memory for it) , i see the max mem is 384meg, and ubu 8.04 emc live has minimum 384 meg. this is the typical end of many hours spent looking for suitable hardware for emc.
I have it on an AMD 800 meg and on an intel P4
tom3p: P3 can do 512MB, depending on mfg
tom3p sounds good.. doesnt it work?
the unit suggested has max 384 meg (3x128) ... sounds good? it barely makes the minmum requirement, not useful to pursue if its marginal
[19:42:56] <tom3p> http://www.intel.com/support/motherboards/desktop/se440bx2/
archivist plz tell me the mobo, maybe i can find one of those
the P4 is an oddball, its integrated in the display
tom3p: Damn, intel bites in the ass again
p4 is mostly 'hotter than p3 at ca same speed' ;)
tom3p: 512MB http://www.weirdstuff.com/cgi-bin/item/15007
tom3p: and comes with cpu and some ram
thx, will look ( really Thx Jymmm)
tom3p: sorry about the previous one, I forgot that intel has a tendancy to limit ram on all their desktop mobo's
tom3p: Now, I have a few server intel mobo's that exceed most... like P3 or 4 with 8GB ram =)
and mgmt via searial too
if you've run the latency test & want to part with one, lemme know
tom3p: I guess I could bench it (if I can actualy FIND my bench)
i gotta post pix of this minimill, its really solid
no, sable 2015 from taiwan, all alum frame, real 1.5mm pitch ball screws ( dbl nut), real linear guides. tight ( i build machines too )
tom3p: Well, were be the pics already?! Eeeeeeeesh
come on! Com on! HURRY UP DAMNIT!!!!
We're Waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaiting =)
tap tap tap
doh, finding stuff on multiboot, multi vm systems is hell. ( sorry i think i gotta reboot to linux )
is the latency test mostly for stepper drives and par ports ?
can say iv every really bothered to do the test
BigJohnT_ is now known as BigJohnT
is it less of an issue if you use fpga boards like mesa ?
2GB and support for 1GHz cpu's
colin_ ive ran the test some time, then used 16000, and after some weird errors, but nothing serious or bad happening ive upped it to 18000 and havent seen the warnings more than once since
iv only seen an rtai error when i put the live cd in my lappy
tomp is now known as tom3p
[20:09:29] <tom3p> http://imagebin.ca/view/wcYWz_v.html
i had to gimp it down to sendable size
2GB and support for 1GHz cpu's
oh the hi rez went thru, cool
what does it use for a spindle? I see a drill chuck?
feels tight too, (push push bend)
didnt pull chuck off yet
the 2 plates are for mounting it ( a collar )
did that driver board come with it?
JanVanGilsen: check other invocations of "reportError", I don't think that kernel code can print floats
I could be wrong - if some other place is using it for floats then I probably am
to be safe, try multiplying it by 1000 or something, then convert to int and print
Jymmm: yes, the driver board came with it
tom3p wheredid you buy it from?
ebay ( he didnt have one ready b4 i left taiwan, but no big diff in price)
that mobo has to have the chips on the memory set up a certain way and the inet sellers dont specify ( eg 32m X 8 on frontside of ds sdram and 32m x8 on rear side and only 2 pcs allowed )
per the intel app sheet
uh minimill or app sheet?
app sheet http://download.intel.com/support/motherboards/desktop/d815eea/A1696401.pdf
minimill just put sable 2015 into finder
table 5 in app sheet specs the mem cgfs allowed
now this newegg kingston 512 pc133 mem shows 8 chips on 2 sides so must (?) be 32mx8, 32mx8 http://www.newegg.com/Product/Product.aspx?Item=N82E16820153101
( got 1 solution :)
jmkasunich, you're correct "%d",(int)(test*1000) works =)
sqr peg in round hole? just cast it & scale it a few times ;)
I've got the homing with index only and variable offset working :)
now I need to write a hal component that rounds down the position from te potentiometer to the nearest index :)
well, i'm off to bed, thx for all the help
good work ( still looking at how to get n like modulus without seeking it in a loop)