As shown in our previous example LinuxCNC: How to find current position using Python you can get an
These are the attributes of the object returned by linuxcnc.stat()
for LinuxCNC 2.7:
acceleration active_queue actual_position adaptive_feed_enabled ain angular_units aout axes axis axis_mask block_delete call_level command current_line current_vel cycle_time debug delay_left din distance_to_go dout dtg echo_serial_number enabled estop exec_state feed_hold_enabled feed_override_enabled feedrate file flood g5x_index g5x_offset g92_offset gcodes homed id inpos input_timeout interp_state interpreter_errcode joint_actual_position joint_position kinematics_type limit linear_units lube lube_level max_acceleration max_velocity mcodes mist motion_line motion_mode motion_type optional_stop paused pocket_prepped poll position probe_tripped probe_val probed_position probing program_units queue queue_full queued_mdi_commands rapidrate read_line rotation_xy settings spindle_brake spindle_direction spindle_enabled spindle_increasing spindle_override_enabled spindle_speed spindlerate state task_mode task_paused task_state tool_in_spindle tool_offset tool_table velocity
You can find those out using
#!/usr/bin/env python2.7 import linuxcnc stat = linuxcnc.stat() stat.poll() for entry in dir(stat): print(entry)