The KMOTION-KFLOP-Kanalog combination allows
us to quickly whip up some C code and exercise the
functionality of the KFLOP and Kanalog. For instance,
let’s see what it takes to force the Kanalog DAC to output
+ 10 volts. Hide the women and children as
the C program is frightening. Check out
Screenshot 10. The C program instructs the
channel 0 DAC to load a value of 2048,
which results in + 10 volts out. The DAC
mnemonic is actually a function name. The
DAC function and its argument limits are
outlined in the KMotionDef.h file. I simply
slung a wire between DAC output 0 and
ADC input 0 to get the ADC reading.
Don’t get hung up on the Kanalog’s
DAC and ADC accuracy. Remember that in
the CNC world, the encoders and motors
are the precision instruments. DACs and
ADCs are not normally directly involved in
the precision machining process.
The KFLOP uses the services of a plug-in
to pass data elements to and from third
party applications running on the PC.
DynoMotion offers a PC CNC program that is designed to
complement the KFLOP and Kanalog. Mach 3 is another
popular third party CNC application that has proven to be
Time to Move On
Whether you are planning on using a KFLOP in a
custom CNC application or applying the KFLOP to an
embedded monitor and control project, you now have
enough KFLOP/Kanalog knowledge to be successful. You
can add the KFLOP and Kanalog to your design cycle.
60 October 2013
■ Photo 7. This shot reveals the remaining differential encoder inputs
and the ADC converter input points.
■ Screenshot 9. The Kanalog I/O pins and analog
subsystem cannot be manually operated. We must use
the bit operations supported by the C compiler to
effectively use the Kanalog resources.
■ Screenshot 10. The Kanalog analog I/O view provides
instant gratification for the ADC and DAC functions.