Hello, I have written a custom M-code to flash an image with a projector for an SLA printer. The script is in bash. It basically just runs a command called feh with a geometry and filename. The filename is currently a combination of a hardcoded directory/base filename and layer number. It then kills the process after a specified amount of time.
If I am reading the docs correctly, I see that I can only pass a P-- code and an Q-- code from my g-code. I am able to do that quite well with the script. The P-- code is the time. The Q-- is the layer number. The Q-- number is allowing me to cycle through all the images in my SLA images directory. What I would like to do is pass it the directory and base file name in addition to those two values so that there is no hardcoding of paths. I *think* I can pass shell environmental variables to the custom M-code. Is this correct? If that is the case, I should be able to just build a small function into the GUI to select the image directory. Charles Buckley ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce. Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
