another stupid question.. should I only hook logic ground to servo supply ground at the resister? (so technically - I have 2 separate grounds with the low end of the resister the only thing tying the logic ground to servo supply ground..
hmph. seems like given this 'wire p = q - 100; always @(posedge clk) if(p < 50) t <= 0; else t <= 1;' the software could infer just a comparator. unfortunately, it seems to infer a subtractor plus a comparator.. I guess I see now that it couldn't because the subtraction could "wrap around" to higher values ...
EMC: 03jmkasunich 07TRUNK * 10emc2/src/emc/usr_intf/axis/extensions/minigl.c: add support for a couple more primitives
cradek_ is now known as cradek
hey, all you programmer guys. how do i determine the largest encoder count possible?
i have a rotational axis with 7118 counts per degree.
my customer does not want to have to unwind.
i32? i64? floating point counter???????
floats are effectively 24-bit
need to set the max and min limits really high.
once you hit that limit, you can't add a single count to the number
the encoder drivers should extend whatever the hardware can do to 32 bits
what kind of number is used ?
it should be a 32 bit signed int, but it could be hardware dependent
(ie, some drivers may not extend the value to 32 bits)
I think that one is 32 bits
that's about 300k degrees, or ~838 revolutions
(+/- that amount)
sounds good, hope it's high enough.
unwinding is another problem entirely
ok, for a non programmer. in binary > 32 1's converted to decimal?
31, it's signed
at least i was close. thanks.
2^31 is 2147483648
woo, the lathe is in place