Jump to content

Messvolumen über PCM


---
 Share

Recommended Posts

Hallo,

ich möchte mir im Resultatselement das Messvolumen/Vefahrweg der KMG-Achsen
ausgeben lassen; Bsp. Contura 7/10/6 für X=700mm; Y=1000mm; Z=600mm
Kann ich das über eine PCM-Funktion auslesen?

Mit freundlichen Grüßen,
Volker
Link to comment
Share on other sites

Nein, the output will not be either a lenght, angle or number. So you can't use a result element.

But you can use a textelement, or the comment of something else.
This will work, but depending on where the reference point is located in regards to axis direction you might have to change Plus/Minus. But I'm sure you'll figure that out if you have to.
//With real machine type, can't fake this when connected to actual CMM.
text(baseSystem().machine.machineControl.configuration.machineType)+" "+mid(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangePlusX.asString,1,len(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangePlusX.asString).half.asInteger)+"/"+mid(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangeMinusY.asString,1,len(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangeMinusY.asString).half.asInteger)+"/"+mid(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangeMinusZ.asString,1,len(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangeMinusZ.asString).half.asInteger)

//What you have named the machine tab, Ex. "Prismo Grinding Station" or "ACCURA II Compressor Blades"
baseSystem().machine.machineControl.configuration.Control+" "+mid(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangePlusX.asString,1,len(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangePlusX.asString).half.asInteger)+"/"+mid(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangeMinusY.asString,1,len(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangeMinusY.asString).half.asInteger)+"/"+mid(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangeMinusZ.asString,1,len(baseSystem().machine.machineControl.cmmParamObject.cmmMeasuringRangeMinusZ.asString).half.asInteger)
Link to comment
Share on other sites

 Share

×
×
  • Create New...