
3.FP FUNCTIONS B-66244EN/03
- 226 -
[Arguments]
type = 0 Operation mode
1 Automatic operation status
2 Axis movement and dwell statuses
3 M, S, T, and B function statuses
4 Emergency stop and reset statuses
5 Alarm status
6 Program edit status
[Return value]
Number indicating the CNC status information for the specified
type
1.15 Reading the alarm status
[Function name]
alarm
[Data type]
3: 2 bytes
[Format]
alarm[]
[Arguments]
--------
[Return value]
Alarm status
1.16 Reading the tool offset value
[Function name]
rdtofs
[Data type]
4: 4 bytes (signed)
[Format/with arguments]
rdtofs[number_type]
[Arguments]
number Offset number
type Offset type
Machining center system
0: Cutter compensation/wear compensation value
1: Cutter compensation/geometric compensation value
2: Tool length compensation/wear compensation value
3: Tool length compensation/geometric compensation
value
Lathe system
0: X-axis wear compensation value
1: X-axis geometric compensation value
2: Z-axis wear compensation value
3: Z-axis geometric compensation value
4: Tool-nose radius wear compensation value
5: Tool-nose radius geometric compensation value
6: Virtual tool tip direction
7: Virtual tool tip direction