Tom,
After much experimentation I finally figured out that Mach3 uses Persist.userdata[5] to store the requested homing flags. However, in KmotionCNC it uses Persist.userdata[20] to hold the requested homing flags.
Is there anyway in our C-programs to determine if MACH3 is the caller o KMOTIONCNC? I know I can modify my homing routines to use the correct flags and rename them for their respective applications. It would be cleaner to have one homing routine that would work for either application. Let me know if that is possible. Thanks
Russ