OK here is what you need to do first. You will have to add these mods to your Scam post. This allows Scam to bring out the values and get them into the Gcode in a form that MACH3 can use. IF you cannot do the mods let me know and I can fix your post for you.
The part that say Oninit() is a section and the addon code is after that part. There are several sections that you have to add code to.
SheetCam
Mach3
MachScreen
YEP that will do.
After you get the post running we can work on a new page i mach3. Think about what you want to see.
ADD this to the Scam POST for the Consumables values ( Cut Inches, #pierces)
ONInit()
Tpierce = 0
totalLength = 0
****************************************************
ONPenDown()
Tpierce = (Tpierce + 1)
****************************************************
ONMove()
totalLength = totalLength + len
****************************************************
ONArc()
totalLength = totalLength + len
****************************************************
ONFinish()
post.Text (" #650 = ")
post.Number(totalLength * scale,"0.### \n")
post.Text (" #651 = ")
post.Text (Tpierce )
post.Eol()
post.Text ("( CUT Units = ")
post.Number(totalLength * scale,"0.### \n")
post.Text (" #Pierces = ")
post.Text (Tpierce,")\n")
*****************************************************
Example of the end of Gcode file Showing the #var call back to Mach3
N3710 M05
N3720 G00 Z0.5000
N3730 X0.0000 Y0.0000
N3740 #650 = 55.133 #651 = 8
N3750 (Cut Inches= 55.13 #pieces= 8 )
N3760 M30
To make use of the Values You need to modify the M1030 macro in Mach3. It runs as part of the M30 end
of file Mcode.
M1030 macro mods, Add this
SetUserDro(2000, (GetUserDro(2000) + GetVar(650)) )
SetUserDro(2001, (GetUserDro(2001) + GetVar(651)) )
That transfers the #var's value to the Consumables page DROs . The REAL Dro numbers are whatever you
used(;-)
After every cut file is complete the Consumable Values are added to the Consumables Page.