good morning Tom,
I just finished writing the "Ref" C-program for KmotionCnc and it's all full functionally. Currently it's working on the home switches. Because they are mechanical switches, I would want to refer the Axis on the encoders indexes for more precision. All encoders are connected to Kanalog JP1-JP2 differential input, the question is: how can i check the differential input status of index?
In particular i have X index on JP2/36-37, Y index on JP2/38-39 and Z index on JP2/40-41
Beppe
How to ceck a differential input status
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: How to ceck a differential input status
Hi Beppe,
If you have the Index + and - signals connected to JP2 pins 1 and 2 (marked A4+ and A4-) then this would drive KFLOP Input 36.
See the example SimpleHomeIndexFunction.c and SimpleHomeIndexFunctionTest.c that is written to move to Limit switches and then to an Index Pulse.
An index pulse is only one differential signal that will correspond to one input. So it doesn't make sense to say you have the X index connected to both inputs Bit 36 and Bit 37.In particular i have X index on JP2/36-37, Y index on JP2/38-39 and Z index on JP2/40-41
If you have the Index + and - signals connected to JP2 pins 1 and 2 (marked A4+ and A4-) then this would drive KFLOP Input 36.
See the example SimpleHomeIndexFunction.c and SimpleHomeIndexFunctionTest.c that is written to move to Limit switches and then to an Index Pulse.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: How to ceck a differential input status
Hi Tom
of course i know that "An index pulse is only one differential signal".
I wrote:
Thanks for your patience
Beppe
of course i know that "An index pulse is only one differential signal".
I wrote:
only because in the Kanalog description you say:i have X index on JP2/36-37, Y index on JP2/38-39 and Z index on JP2/40-41
However, by testing the right bit, my C program is also fully functionalJP2 converts 8 of the signals and connects them to Kflop I/O bits 36-43...
Thanks for your patience
Beppe