; Renishaw Productivity+ Custom Macro
; Do NOT remove the preceeding line or this macro will not load
; Definition File for Non-Contact Toolsetting Temperature Compensation Tracking
; Version: 0.01. 

[FileType]
; Do NOT remove this section or this Custom Macro will not load
Product		Renishaw Productivity+
File		Custom Macro
Version		0.07.002

[MachineType]
MACHINETYPE Siemens

[Toolsetting Type]
"Non Contact"

; Definition File Language - language of displayable text strings in this file
[Language]
English

; Existing Menu Item in application that Custom Macro name and its Parent Menu are to appear under
; FIELD CAN BE OMITTED
[Existing Menu]
"Tool setting"

; Parent Menu - used as parent menu item text. 
; FIELD CAN BE OMITTED
[Parent Menu]					
"Non Contact (NC1, NC2, NC4...)"

; Custom Macro Name - used as menu item text. ID MUST BE UNIQUE FOR EACH CUSTOM MACRO!
; FIELD IS COMPULSORY
[Custom Macro]
; Name													ID
"Temperature Compensation (Siemens)"					48813

; This field specifies the default name given to a statement of this type
; The name must NOT include any of the following characters and cannot start with a numeric character
; {}[]/\:<>@~#-=+()*&^%$£!"`¬|;,.'?
[Default Statement Name]
"Temperature_Compensation"

; Name or Program Number of macro
[MacroID]
9861

; Properties - Do not use ID 1
; Name								ID	Datatype	Default		Range		Category	Output Parameter	Metafile ID 	Help Text			
[Properties]
"Controller Type"					50	CNC_TYPE	0			{NA}		100				-					11005		"Type of target controller"
"Axis to Measure (R02)"				20	AXIS_TYPE	4			{NA}		100				CM_B				11005		"Select which axis to perform temperature compensation tracking in. Spindle Axis Only performs a beam find and length measurement in the spindle axis only. Radial-Measuring Axis Only performs a beam find and radial measurement only. Spindle and Radial Axis performs both operations."
"Work Offset Number (R03)"			21	INT			0			GT0:LE4		100				CM_C				11005		"Work offset number used to track axis growth due to temperature effects. This must be the same as that used with the B1 input for calibration. Refer to the C input description in 'Calibrating the NC1 (macro O9861)' for controller/offset options. R03=1 to R03=4 (G54 to G57)"
"Perform Tolerance Check"			22	YESNO		NO			{NA}		100				-					11005		"Setting this value to 'Yes' means the macro will perform a tolerance check using the value of Tolerance."
"Tolerance (R11)"					23	LINEAR		0			{NA}		100				CM_H				11005		"The tolerance for the maximum variation of temperature changes."
"Use Default Overtravel Distance"	24	YESNO		YES			{NA}		100				-					11005		"Use the toolsetting macro's default value for Overtravel Distance. Set this value to 'No' to specify a custom Overtravel Distance."
"Overtravel Distance (R17)"			25	LINEAR		5.0			GT0			100				CM_Q				11005		"The overtravel distance and radial clearance value. Overtravel Distance is the distance through the beam that the tool is permitted to move before a Beam Not Cut alarm is initiated. Radial clearance is the distance between the tool and the beam when moving down the side of the beam."
"Use Default Spindle Speed"			26	YESNO		YES			{NA}		100				-					11005		"Use the toolsetting macro's default value for Spindle Speed. Set this value to 'No' to specify a custom Spindle Speed."
"Spindle Speed (R19)"				27	INT			3150		GT0			100				CM_S				11005		"Spindle speed at which profile checking takes place. Measurement cycles are optimised for a spindle speed of 3150 rev/min, though some tools (e.g. those that are unbalanced or large) must be run at slower speeds. It is responsibility of the User to set the spindle speed accordingly, with the minimum speed being 800 rev/min."
"Use Default Reference Length"		30	YESNO		YES			{NA}		101				-					11005		"If set to 'Yes' the macro will use the default length for the calibration tool as stored on the NC. Set this value to 'No' to specify a custom length."
"Reference Length (R06)"			31	LINEAR		0.0			GE0			101				CM_K				11005		"The reference length of the calibration tool. The default value is the value in the selected tool offset register."
"Use a Radial Step-over"			32	YESNO		NO			{NA}		101				-					11005		"If set to 'Yes' the macro will use the default Radial step-over for length calibration."
"Radial Step-over (R25)"			33	LINEAR		0.0			{NA}		101				CM_Y				11005		"Radial step-over for length calibration. This is the offset across the beam at which measurement takes place. The tool always comes down first on the beam centre-line. The default value is on-centre."
"Reference Diameter (R18)"			34	LINEAR		0.0			GT0			102				CM_R				11005		"The reference diameter of the calibration tool."

[Visibility]
PROPERTIES	101
CTRL_PROPS		20 ("Axis to Measure")	
CTRL_VALUES		4 ("Spindle Axis Only")				
CTRL_VALUES		6 ("Spindle and Radial Axis")	

PROPERTIES	102
CTRL_PROPS		20 ("Axis to Measure")
CTRL_VALUES		5 ("Radial-Measuring Axis Only")				
CTRL_VALUES		6 ("Spindle and Radial Axis")	

PROPERTIES	23
CTRL_PROPS		22 ("Perform Tolerance Check")
CTRL_VALUES		2 ("YES")

PROPERTIES	25
CTRL_PROPS		24 ("Use Default Overtravel Distance")
CTRL_VALUES		1 ("NO")

PROPERTIES	27
CTRL_PROPS		26 ("Use Default Spindle Speed")
CTRL_VALUES		1 ("NO")

PROPERTIES	31
CTRL_PROPS		30 ("Use Default Reference Length")
CTRL_VALUES		1 ("NO")

PROPERTIES	33
CTRL_PROPS		32 ("Use a Radial Step-over")
CTRL_VALUES		2 ("YES")


[Enums]
; ENUM_NAME - name of enum set
; ENUM_ITEM - item text, ID and index
; N.B. When post processing, the selected enum item ID will be outputted with the Output Parameter.
;	e.g.	enum type			: YESNO
;			selected enum item	: YES
;			enum item value		: 1
;			Output Parameter	: CM_B
;			Output				= B1
;													ID		Index (order in which they will appear)
ENUM_NAME	AXIS_TYPE
ENUM_ITEM	"Spindle Axis Only"						4		0
ENUM_ITEM	"Radial-Measuring Axis Only"			5		1
ENUM_ITEM	"Spindle and Radial Axis"				6		2	

ENUM_NAME		CNC_TYPE						
ENUM_ITEM		"Siemens"							0		0


[Categories]
; Name							ID
"Nominals"						100
"Spindle Axis Measurement"		101
"Radial Axis Measurement"		102

[Resources]
; File name of resource DLL containing metafiles (optional)
PP_tsToolSettingRes.dll

; The post processor section to call when post processing occurs
[Post Section]
TOOLSETTING_CUSTOM_MACRO_NON_CONTACT