Page 1 of 1

How to zero the Position DRO in axis screen of kmotion

Posted: Thu Oct 29, 2020 5:31 am
by AmitKumar171
Hi tom,

I am using KFLOP+KANALOG+KONNECT.

I want to zero the position DRO in axis screen of Kmotion, i tried doing it with EnableAxisDest(1,0) and EnableAxis(1).

EnableAxisDest is setting axis destination to zero but position DRO is unchanged (it causes some motion in axis) in Axis menu of kmotion.

EnableAxis is setting axis destination to current position DRO in Axis menu of Kmotion (as of now using this one).,

I want to start the machine and do all axis destination and position to zero using a c program, i tried Pos1=0 in console of kmotion it works, but in C program it does not work.

Pos1 = 0 does zero position DRO of y axis to zero.

Please suggest some idea on how to do that?

waiting for your kind reply.

Re: How to zero the Position DRO in axis screen of kmotion

Posted: Thu Oct 29, 2020 2:56 pm
by TomKerekes
Hi Amit,

From a C Program use:

Code: Select all

	Zero(0);
or

Code: Select all

	ch0->Position=0;
to set the position of Axis 0 to 0