tkb11 Posted August 18, 2021 Share Posted August 18, 2021 I get how to use CFromScripts from motion programs, libraries etc inside the IDE environment. What is the quickest way to utilize the speed of functions in C from a motion control program in NC16? Maybe a new M-Code? Or is there a generic way of doing it. We are doing pretty math-intensive calculations to machine a-spherical surfaces with a very fancy high-precision lathe. Link to comment Share on other sites More sharing options...
Omron Forums Support Posted August 24, 2021 Share Posted August 24, 2021 The easiest way would be to add a call to ppnc_gcodes.pmc . For example, this could be added before the final close if MyVar is already a global variable. I'm not sure what G-Code number to suggest or if it would be better as M-Code. //G500 CfromScript n500000: MyVar = CfromScript(1,2,3,4,5,6,7) return Link to comment Share on other sites More sharing options...
Recommended Posts