Hi dalmazio,
I assume you meant RS232 port?
Yes that should be possible. Periodically sample the current axis Destination or Position, convert to degrees, perform modulo 360, write to port.
You might look at the Modulo360.c example used to reset the current axis position to 0-360degrees
Code:
#include "KMotionDef.h"
#define CNTS_PER_DEG 1000.0
#define AXISA 4
double modf(double, double*); // returns integer part with more han 32-bit precision
double floor(double x) // truncate down toward -ininity
{
double y;
return (modf(x, &y) < 0 ? y - 1 : y);
}
main()
{
double dest = chan[AXISA].Dest;
double cnts = CNTS_PER_DEG * 360.0;
EnableAxisDest(AXISA, dest - (floor(dest/cnts)) * cnts);
}
HTH
Regards