How can we help?
Heidenhain Constants and Variables
Overview
Heidenhain variables are used to hold data retrieved from Heidenhain devices.
The information in curly brackets are required parameters specifying additional information, such as a spindle number, about the data being retrieved.
Heidenhain Source Variables
Variable Name | Notes | |
---|---|---|
Active Tool [Heidenhain.active_tool] | Returns the tool position of the active tool. | |
Alarm Code [Heidenhain.alarm_code] | Returns the alarm code without the description. | |
Alarm Detail [Heidenhain.alarm_detail] | Returns the alarm code with the description. | |
Alarm Status [Heidenhain.alarm_status] | 0 = No Alarm. | |
Capture Heidenhain Alarms [Heidenhain.alarms] | Used to capture all Heidenhain alarms including those that go off simultaneously. | |
Connect Time [Heidenhain.connect_time] | The connect time for the most recent poll. | |
Connected Time [Heidenhain.connected_time] | Returns the amount of time in seconds since a successful connection to the Source. | |
Controller Mode [Heidenhain.controller_mode] | The current Mode Selection value. | |
Current Executing Line Number [Heidenhain.current_line_number] | Returns the line number of the code currently executing. Line numbers must be defined in the program as N#### preceding the line of code. | |
Cycle Status [Heidenhain.cycle_status] | 0 = Idle, 1 = Cycling. | |
Emergency Status [Heidenhain.emergency_status] | 0 = Not in Emergency, 1 = In Emergency. | |
Feed Rate Override [Heidenhain.feedrate_override] | The current feed rate override as a percentage. | |
Path Feed Rate[Heidenhain.path_feed_rate] | The feed rate value of the current path. | |
Program File name[Heidenhain.program_filename] | Returns the file name of the program current running on the control. | |
Program Stop (M0) [Heidenhain.program_stop] | Returns True if the program has stopped due to an M0 code. | |
Rapid Override [Heidenhain.rapid_override] | Returns the percentage of the rapid traverse override. | |
Spindle Override [Heidenhain.spindle_override] {SPINDLE NUMBER} | The active spindle override as a percentage. | |
Spindle Speed [Heidenhain.spindle_speed] {SPINDLE NUMBER} | Returns the speed of the specified spindle. |
Heidenhain Previous Variables
Variable Name | Syntax | |
---|---|---|
Active Tool (Previous) | [Heidenhain.prev_active_tool] | |
Alarm Code (Previous) | [Heidenhain.prev_alarm_code] | |
Alarm Detail (Previous) | [Heidenhain.prev_alarm_detail] | |
Alarm Status (Previous) | [Heidenhain.prev_alarm_status] | |
Alarms (Previous) | [Heidenhain.prev_alarms] | |
Connect Time (Previous) | [Heidenhain.prev_connect_time] | |
Connected Time (Previous) | [Heidenhain.prev_connected_time] | |
Controller Mode (Previous) | [Heidenhain.prev_controller_mode] | |
Current Executing Line Number (Previous) | [Heidenhain.prev_current_line_number] | |
Cycle Status (Previous) | [Heidenhain.prev_cycle_status] | |
Emergency Status (Previous) | [Heidenhain.prev_emercency_status] | |
Feed Rate Override (Previous) | [Heidenhain.prev_feedrate_override] | |
Path Feed Rate (Previous) | [Heidenhain.prev_path_feed_rate] | |
Program File name (Previous) | [Heidenhain.prev_program_filename] | |
Program Stop (M0) (Previous) | [Heidenhain.prev_program_stop] | |
Rapid Override (Previous) | [Heidenhain.prev_rapid_override] | |
Spindle Override (Previous) | [Heidenhain.prev_spindle_override] {SPINDLE NUMBER} | |
Spindle Speed (Previous) | [Heidenhain.prev_spindle_speed] {SPINDLE NUMBER} |
Heidenhain Constants
Constant Name | Syntax | |
---|---|---|
Idle | [Heidenhain.IDLE] | |
Cycling | [Heidenhain.CYCLING] | |
MDI Mode | [Heidenhain.MDI] | |
Automatic Mode | [Heidenhain.AUTOMATIC] | |
Manual Mode | [Heidenhain.MANUAL] | |
Handwheel (Jog) Mode | [Heidenhain.JOG] | |
Reference Point | [Heidenhain.REF_POINT] | |
Single Block | [Heidenhain.SINGLE_BLOCK] |