; Renishaw Productivity+ Custom Macro
; Do NOT remove the preceeding line or this macro will not load
; Definition File for Non-Contact Toolsetting Tool 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 Heidenhain

[Toolsetting Type]
"Berührungslos"

; Definition File Language - language of displayable text strings in this file
[Language]
German

; Existing Menu Item in application that Custom Macro name and its Parent Menu are to appear under
; FIELD CAN BE OMITTED
[Existing Menu]
"Werkzeugeinstellung"

; Parent Menu - used as parent menu item text 
; FIELD CAN BE OMITTED
[Parent Menu]
"Heidenhain (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
"Werkzeugradius"								48861

; 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]
"Radius"

; Name or Program Number of macro
[MacroID]
504

; Properties - Do not use IDs 1-19
; Name										ID	Datatype	Default		Range		Category	Output Parameter	Metafile ID (optional)	Help Text			
[Properties]
"Spindeldrehzahl (S)"							23	INT		1000	GE1000:LE20000	100				CM_S				11101				"Für den Werkzeugwechsel zu verwendende Spindeldrehzahl"
"Messmodus (Q380)"					20	MEAS_TYPE	0			{NA}		100				CM_D				11101				"Der Zyklus 504  wird verwendet, um den effektiven Radius / Durchmesser eines Werkzeugs zu messen. Q380 Zyklustyp: = 0 Messen (R setzen, DR nullen):   = 1 Prüfen (R wird beibehalten, DR justieren):   = 2 Kontrolle (nur Toleranzprüfung, keine Justierung der Werkzeugdaten)."
"Radiuskorrekturwert (Q367)"			22	LINEAR		0.0			{NA}		100				CM_C				11101				"Q367 Radius Korrekturwert. Der eingegebene Wert wird die gemessene Größe (R, DR) des Werkzeugs nach dem Bezugswerkzeug ändern. Vorgabe = 0"

[Visibility]
PROPERTIES	100
CTRL_PROPS		20 ("Messtyp")	
CTRL_VALUES		0 ("Messmodus - Q380 = 0")			
CTRL_VALUES		1 ("Prüfmodus - Q380 = 1")	
CTRL_VALUES		2 ("Kontrollmodus - Q380 = 2")	

[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		"Messmodus Q380= 0"	0		0
ENUM_ITEM		"Prüfmodus Q380= 1"		1		1
ENUM_ITEM		"Kontrollmodus Q380= 2"		2		2

[Categories]
; Name							ID
"Zyklusparameter"				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_RADIAL_MACRO
