I have been toying with an idea. I want to take my GCode one created into a text document and drop it into Excel. I want to drop it into column B. Then in Column A I want to put =IF B2 Z<0,“FAIL”,“PASS”) Then use conditional formatting to color the cells red for fail and green for pass. I am just not sure how to write the If than to look at each line of the code to see if value of Z drops below 0. I would also like to build in a little caution zone like if Z<.1 Fail, If Z is between .1 and 0 then caution and Z>0 then pass. The caution could then be defined in the conditional formatting to be a yellow color. Then I want to save the spread sheet as a blank and be able to drop in my GCode after I get it out of the post processor just as a second visual to help with Crashes. This would be nothing more than one extra set of eyes for me to review to make sure I did not miss anything.
Those with Excel here are my two questions.
- how could I take the GCode and copy it into Excel and have each line of text go into a different cell B2 and down from there?
- what would the if then statement look like so that it would read each Z value down the line and do this? Am I close?
- Is there anything else that would be a good thing to look for in the GCode prior to running it on my machine.