Hi jossa,
Seems like you have success.
The next Step would be to test if you can get KSTEP to output an analog voltage. There is an example KStepPWMCorrected.c
Code:
#include "KMotionDef.h"
#include "CorrectAnalogFunction.c"
#define RefVoltage 11.09f
main()
{
float V=5.0;
FPGA(KAN_TRIG_REG)=4; // Mux PWM0 to JP7 Pin5 IO 44 for KSTEP
SetBitDirection(44,1); // define bit as an output
FPGA(IO_PWMS_PRESCALE) = 46; // divide clock by 46 (1.4 KHz)
FPGA(IO_PWMS+1) = 1; // Enable
FPGA(IO_PWMS) = CorrectAnalog(V/RefVoltage); // Set PWM
}
Change the RefVoltage value to whatever voltage that you have applied to the KSTEP analog circuit (JP33 Pins 5 and 7). Change the V value to some voltage like 5. Run the program and check with a multimeter if the voltage on JP33 Pin6 relative to Pin7 is 5V.