#include "KMotionDef.h"
#include "SimpleHomeIndexFunction.c" 

main()
{
	int result;


	// HOME Z
	
	
	
	// HOME X

	result = SimpleHomeIndexFunction(0,  // axis number to home
			   60000,  // speed to move toward home
			   +1,      // direction to move toward home (+1 or -1)
			   1040, 	// limit bit number to watch for
			   1,		// limit polarity to wait for (1 or 0)
               5000.0,	// speed to move while searching for index
			   37,		// index bit number to watch for (use -1 for none)
			   1, 		// index polarity to wait for (1 or 0)
			   100000.0,	// amount to move inside limits
			   870000.0);  // Asign a value in home point
			   
			   
			  
	if (result==0)
	{
		printf("Wyzerowano Os X\n");
	}
	else
	{
		printf("Os X Niewyzerowana !\n");
		return;
	}
	
	// HOME Y

	
}

