; Renishaw Productivity+ Custom Macro
; Do NOT remove the preceeding line or this macro will not load
; Definition File for Non-Contact Toolsetting broken tool Setting
; 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 Heidenhain

[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]

"Broken Tool Detection (TRS1/TRS2)"

; Custom Macro Name - used as menu item text. ID MUST BE UNIQUE FOR EACH CUSTOM MACRO!
; FIELD IS COMPULSORY
[Custom Macro]
; Name										ID
"TRS2 (Heidenhain) "						48812

; 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]
"TRS2_Broken_Tool_Check"

; Name or Program Number of macro
[MacroID]
TRS2

; Properties - Do not use ID 1
; Name													ID	Datatype	Default		Range			Category	Output Parameter	Metafile ID (optional)	Help Text			
[Properties]
"Tolerance (Q11)"										21	LINEAR		3.0			{NA}			100				CM_H			12102					"Tolerance value that defines when the tool is defined as broken. Note: If the H input is used with a minus value assigned then the tool check position will be the tool length plus the tolerance value."

"Use Broken Tool Flag (Q13)"							22	YESNO		NO			{NA}			100				-				12102					"Set this value to 'Yes' to use a broken tool flag
"Show Out of Tolerance Alarms (Q13)"					23	INT			1			GT0:LT2			100				CM_MM			12102					"Tool broken/out of tolerance flag. This flag will prevent an alarm from being raised on the machine when a tool is found to be broken/out of tolerance."

"Spindle Speed (Q19)"									24	RPM			5000		{NA}			100				CM_S			12102					"Spindle speed at which checking for a broken tool takes place. Values of 200,1000 or 5000 rev/min can only be used."

"Retract To Safety Plane (Q26)"							26	YESNO		NO			{NA}			100				-				12102					"When this value is set to 'Yes' the tool will be retracted in the spindle axis by the value specified in the Safety Plane property."
"Safety Plane (Q26)"									27	LINEAR		9999		GT0				100				CM_ZZ			12102					"Safety plane height. The distance in the spindle axis to which the tool is retracted."

"X Axis Incremental Adjustment Distance (Q4)"			29	LINEAR		0.0			{NA}			100				CM_I			12102					"Allows the reflection point on the tool to be individually adjusted to attain maximum feedback. NOTE: Only valid if a X move is used to position the tool to its checking position."

"Y Axis Incremental Adjustment Distance (Q5)"			31	LINEAR		0.0			{NA}			100				CM_J			12102					"Allows the reflection point on the tool to be individually adjusted to attain maximum feedback. NOTE: Only valid if a Y move is used to position the tool to its checking position."

[Visibility]


PROPERTIES	23
CTRL_PROPS		22 ("Use Broken Tool Flag (Q13)")
CTRL_VALUES		2 ("YES")	

PROPERTIES	27
CTRL_PROPS		26 ("Retract To Safety Plane (Q26)")
CTRL_VALUES		2 ("YES")


[Enums]
; 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		RPM					
ENUM_ITEM		"200"				200		0
ENUM_ITEM		"1000"				1000	1
ENUM_ITEM		"5000"				5000	2



[Categories]
; Name							ID
"Cycle Parameters"				100

[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_BROKEN_TOOL_MACRO_TRS1
