
B-63874EN-1/02 C.CUSTOMIZATION BY THE MACHINE TOOL BUILDER
- 311 -
Example of user program
The example below exercises control by setting separate sensor
preparation signals to ON according to the type of measurement in the
user program called at the time of automatic tool measurement
execution.
(Example)
O9000 /*User program called at the time of automatic tool
measurement execution*/
:
#100=P12383 /*Read parameter No. 12383*/
:
/*Check the turning tool measurement cycle*/
IF[#[#100+1] EQ 11 || #[#100+1] EQ 111]THEN
(Set the preparation signal of the sensor for turning tool
measurement to ON)
ENDIF
/*Check the rotary tool measurement cycle*/
IF[#[#100+1] EQ 10 || #[#100+1] EQ 110]THEN
(Set the preparation signal of the sensor for rotary tool
measurement to ON)
ENDIF
:
Referencing other information items
Additional data set on the screen can be referenced as described
below.
- For manual measurement
Input data is stored in the following variables:
Tool measurement
#[n+2] Measurement direction
#[n+3] Measurement condition
Single surface measurement
#[n+2] Measurement direction
#[n+3] Measurement condition
Outside diameter work setup
#[n+2] Measurement direction at each point
#[n+3] Measurement condition
#[n+4] Measurement point (1 to 4)
#[n+5] Spindle orientation enable/disable
#[n+6] Measurement direction (measurement plane)
Inside diameter work setup
#[n+2] Measurement direction at each point
#[n+3] Measurement condition
#[n+4] Measurement point (1 to 4)
#[n+5] Spindle orientation enable/disable
#[n+6] Measurement direction (measurement plane)