Currently I have connected JP33 Pin 7 to KBIC P3 and JP33 Pin 5 to KBIC P1 on Kstep. Measuring voltage across Pin 5 and 7 I have 11.09V, From Pin 6 to Pin 7 I have 3v instead of 5V. From this point I'm not sure what my next step is.
#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
}