494
« on: May 25, 2016, 04:24:09 PM »
Well this is what I have done using the out of box mach4mill profile.
1. Removed local rc = 0; --return code. on line 7, as your not using a return code anywhere within the function
2. Replaced local state, rc = mc.mcSignalGetState (mc.mcSignalGetHandle (0, mc.ISIG_INPUT5)) with local state = mc.mcSignalGetState (mc.mcSignalGetHandle (0, mc.ISIG_INPUT5)) on line 19
3. Removed duplicate local inst = mc.mcGetInstance() on line 21
4. copied to my profile/macros folder
5. from mdi - m1002
All worked as expected, so thought I would try in demo mode again all worked, finally I decided to try without any motion device selected and it didnt run.
Check that you have the sim plugin activated and selected as motion device then try the mdi again.
DazTheGas