Hi TK,
Is it possible to make the 32 inputs and 16
outputs visible within a mach3 screen?
What I know so far:
I can use Mach3 OEMLED 1000-2250
Kflop code:
#include "KMotionDef.h"
#define DROIN 7
#define DROOUT 8
main()
{
double *pin = (double *)&persist.UserData[(DROIN
-1)*2];
double *pout = (double
*)&persist.UserData[(DROOUT-1)*2];
for(;;)
{
Delay_sec(2);
*pout = VirtualBitsEx[0]>>0;
printf("DROIN %d = %f DROOUT %d =
%f\n",DROIN,*pin,DROOUT,*pout);
}
}
Mach3 code:
NotifyPlugins(18008) 'Read the
result from KFLOP
x=GetOEMDRO(1008) 'Check the value passed back
Now I have a GetOEMDRO with an
number representive to the In/Output data.
1 = input 0
2 = input 1
3 = input 0 & 1
...
How can I convert this number to
the OEMLED's?
Or is there any better solution?
With kind regards,
Frank