; Renishaw Productivity+ Custom Macro
; Do NOT remove the preceeding line or this macro will not load
; Definition File for TS27/R Contact Toolsetting Tool Length/Diameter 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 Siemens

[Toolsetting Type]
"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]
"Contact (TS27R, TS20, OTS...)"

; Custom Macro Name - used as menu item text. ID MUST BE UNIQUE FOR EACH CUSTOM MACRO!
; FIELD IS COMPULSORY
[Custom Macro]
; Name										ID
"Tool Length/Diameter (Siemens)"			48830

; 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]
"Length_Diameter"

; Name or Program Number of macro
[MacroID]
921

; Properties - Do not use IDs 1-19
; Name										ID	Datatype	Default		Range		Category	Output Parameter	Metafile ID (optional)	Help Text			
[Properties]
"Controller Type"							50	CNC_TYPE	0			{NA}		100			-					12051				"Type of target controller"
"Measurement Type (R00)"					20	MEAS_TYPE	3			GE3:LE5		100			CM_AA				12051				"Type of Measurement to perform."

;	"Use Current Tool Change ID (R01)"		21	YESNO		YES			{NA}		100			-					12051				"When this value is set to 'Yes' the current tool change ID is used as the Length Offset Number. When set to 'No' you can specfy a Length Offset number."
;	"Tool Length Offset Number (R01)"		22	LINEAR		0			GT0:LE999	100			CM_SPECIAL_T		12051				"Length Offset Number. This is the offset location in which the measured tool length is stored."

"Use Approximate Tool Length (R02)"			23	YESNO		NO			{NA}		100			-					12051				"Set this value to 'Yes' to enter an approximate tool length. If not the value in the tool-offset register of R01 will be used."
"Approximate Tool Length (R02)"				24	LINEAR		0.0			{NA}		100			CM_B				12051				"Approximate tool length."

"Include Nominal Tool Diameter (R03)"		25	YESNO		NO			{NA}		100			-					12051				"Set this value to 'No' if the Tool Radius Offset Number register contains a nominal tool radius value. Set this value to 'Yes' to specify a Cutter Diameter. When setting the length of the tool, setting this value to the tool diameter will offset the tool on the datum stylus and cause tool rotation."
"Cutter Diameter (R03)"						26	LINEAR		0			{NA}		100			CM_C				12051				"Cutter Diameter. This parameter is not used when Tool Radius Offset contains a nominal tool radius value. Use a positive value for right-handed cutting tools and a negative value for left-handed tools."

"Include Size Adjustment for Length (R07)"	27	YESNO		NO			{NA}		101			-					12051				"Set this value to 'Yes' to pass the Experience Value For Length parameter to the macro."
"Adjustment Value For Length (R07)"			28	LINEAR		0.0			{NA}		101			CM_D				12051				"Size adjustment to compensate for cutting conditions. A positive value sets the tool length smaller by the stated amount, e.g. 0.01 sets the cutter length smaller by 0.01."

"Use Default Length Overtravel (R09)"		29	YESNO		YES			{NA}		101			-					12051				"Use the toolsetting macro's default value for Length Overtravel. Set this value to 'No' to specify a custom Length Overtravel."
"Length Overtravel (R09)"					30	LINEAR		4.0			{NA}		101			CM_F				12051				"Length Overtravel."

"Use Default Radial Clearance (R08)"		31	YESNO		YES			{NA}		102			-					12051				"Use the toolsetting macro's default value for Radial Clearance. Set this value to 'No' to specify a custom Radial Clearance."
"Radial Clearance (R08)"					32	LINEAR		4.0			{NA}		102			CM_E				12051				"Overtravel distance, and radial clearance when moving down the side of the stylus."

"Include Size Adjustment for Cutter (R06)"	33	YESNO		NO			{NA}		102			-					12051				"Set this value to 'Yes' to pass the Experience Value For Diameter parameter to the macro."
"Adjustment Value For Cutter (R06)"			34	LINEAR		0.0			{NA}		102			CM_K				12051				"Size adjustment to compensate for cutting conditions. A positive value sets the tool radius smaller by the stated amount, e.g. 0.01 sets the cutter radius smaller by 0.01. It may also be used to create zero nominal tool radius values by entering the nominal radius of the cutter."

[Visibility]
PROPERTIES	101
CTRL_PROPS		20 ("Measurement Type")
CTRL_VALUES		3 ("Tool Length")
CTRL_VALUES		5 ("Tool Length and Diameter")

PROPERTIES	102
CTRL_PROPS		20 ("Measurement Type")
CTRL_VALUES		4 ("Tool Diameter")
CTRL_VALUES		5 ("Tool Length and Diameter")

;	PROPERTIES	22
;	CTRL_PROPS		21 ("Use Current Tool Number (R01)")
;	CTRL_VALUES		1 ("NO")

PROPERTIES	24
CTRL_PROPS		23 ("Use Approximate Tool Length (R02)")
CTRL_VALUES		2 ("YES")

PROPERTIES	26
CTRL_PROPS		25 ("Include Nominal Tool Diameter (R03)")
CTRL_VALUES		2 ("YES")

PROPERTIES	28
CTRL_PROPS		27 ("Include Size Adjustment for Length (R07)")
CTRL_VALUES		2 ("YES")

PROPERTIES	30
CTRL_PROPS		29 ("Use Default Length Overtravel (R09)")
CTRL_VALUES		1 ("NO")

PROPERTIES	32
CTRL_PROPS		31 ("Use Default Radial Clearance (R08)")
CTRL_VALUES		1 ("NO")

PROPERTIES	34
CTRL_PROPS		33 ("Include Size Adjustment for Cutter (R06)")
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		MEAS_TYPE						
ENUM_ITEM		"Tool Length"					3		0
ENUM_ITEM		"Tool Diameter"					4		1
ENUM_ITEM		"Tool Length and Diameter"		5		2

ENUM_NAME		CNC_TYPE						
ENUM_ITEM		"Siemens"						0		0

[Categories]
; Name							ID
"Nominals"						100
"Length Measurement"			101
"Diameter Measurement"			102

[Resources]
; Path and 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_CONTACT
