Jogging via KMCNC in my app causes surging
Posted: Mon Sep 24, 2018 11:46 am
I'm just trying to add the ability to jog from within my app, and have copied what I think are all the correct bits of code from the MeasureFiducials code.
Jogging works, however it's surging. I've added output messages in case it was something I was doing wrong via button actions, but on clicking the relevant functions are only being called once (i.e. jog X when clicked, then jog stop when released).
I've tried running it with my timer tick disabled incase it was something to do with my reading KFlop bits, but it's still the same. I've even tried running MeasureFiducials at the same time, and it jogs perfectly, yet my app still surges.
Any ideas?
I've attached the VS solution for you to have a look at.
Jogging works, however it's surging. I've added output messages in case it was something I was doing wrong via button actions, but on clicking the relevant functions are only being called once (i.e. jog X when clicked, then jog stop when released).
I've tried running it with my timer tick disabled incase it was something to do with my reading KFlop bits, but it's still the same. I've even tried running MeasureFiducials at the same time, and it jogs perfectly, yet my app still surges.
Any ideas?
I've attached the VS solution for you to have a look at.