+ ======================================= + This post processor reads the material setup for the cut and outputs the correct units, cut style (flat or rotary) and wrap orientation based on user selected settings. + BrianO (10/28/23) Version 1 + + ======================================= POST_NAME = "ShopBot Milling TC (*.sbp)" FILE_EXTENSION = "sbp" UNITS = "inches" +------------------------------------------------ | line terminating characters +------------------------------------------------ LINE_ENDING = "[13][10]" +------------------------------------------------ | Block Numbering +------------------------------------------------ LINE_NUMBER_START = 0 LINE_NUMBER_INCREMENT = 10 LINE_NUMBER_MAXIMUM = 999999 SCRIPT require "strict" pp = require "ppVariables" Options = {} -- Initialize options table g_title = "ShopBot Universal Post Processor" -- name for registry entry where settings are recorded. g_default_window_width = 200 -- window width for UI in pixels g_default_window_height = 400 -- window height for UI in pixels RotationAxis = MaterialBlock().RotationAxis RotationAxisString = "Along X Axis" SurfaceAdjust = 0 if RotationAxis == 1 then RotationAxisString = "Along Y Axis" end JobTypeString = "Single Sided" if MaterialBlock().JobType == 1 then JobTypeString = "Double Sided" elseif MaterialBlock().JobType == 2 then JobTypeString = "Rotary" end if MaterialBlock().InMM then UNITS = "mm" UnitMultiple = 25.4 UnitsIndex = 1 else UNITS = "Inches" UnitMultiple = 1 UnitsIndex = 0 end Diameter = MaterialBlock().Thickness * 2 / UnitMultiple if MaterialBlock().JobType < 2 then if MaterialBlock().ZOrigin == 0 then ZOriginString = "Material Surface" elseif MaterialBlock().ZOrigin == 2 then ZOriginString = "Table Surface" end elseif MaterialBlock().JobType == 2 then if MaterialBlock().ZOrigin == 0 then ZOriginString = "Cylinder Surface" elseif MaterialBlock().ZOrigin == 2 then ZOriginString = "Cylinder Axis" end end g_dialogHtml = [[]] ..[[
]] ..[[