Status plugin

The status plugin interfaces and extends the capabilities of the default linuxcnc.stat python module.

Available datachannels

acceleration

default acceleration, ini parameter [TRAJ]DEFAULT_ACCELERATION

syntax status:acceleration returns float
syntax status:acceleration?string returns str

return to the status items list

active_queue

number of motions blending

syntax status:active_queue returns int
syntax status:active_queue?string returns str

return to the status items list

actual_position

current trajectory position, (x y z a b c u v w) in machine units

syntax status:actual_position returns tuple of floats
syntax status:actual_position?string returns tuple of str

return to the status items list

adaptive_feed_enabled

status of adaptive feedrate override

syntax status:adaptive_feed_enabled returns bool
syntax status:adaptive_feed_enabled?string returns str

return to the status items list

ain

current value of the analog input pins

syntax status:ain returns tuple of floats
syntax status:ain?string returns str

return to the status items list

all_axes_homed

current status of all axes homed, if any axis is not homed it is false

syntax status:all_axes_homed returns bool
syntax status:all_axes_homed?string returns str

return to the status items list

angular_units

machine angular units per deg, ini parameter [TRAJ]ANGULAR_UNITS

syntax status:angular_units returns float
syntax status:angular_units?string returns str

return to the status items list

aout

current value of the analog output pins

syntax status:aout returns tuple of floats
syntax status:aout?string returns str

return to the status items list

axes

number of axes. derived from [TRAJ]COORDINATES ini parameter

syntax status:axes returns int
syntax status:axes?string returns str

return to the status items list

axis_mask

axes as configured in the [TRAJ]COORDINATES INI parameter

the sum of the axes X=1, Y=2, Z=4, A=8, B=16, C=32, U=64, V=128, W=256
syntax status:axis_mask returns int bit mask
syntax status:axis_mask?list returns list of axis numbers [0, 1, 2]
syntax status:axis_mask?string returns string of axis letters XYZ

return to the status items list

block_delete

block delete curren status

syntax status:block_delete returns bool
syntax status:block_delete?string returns str

return to the status items list

call_level

current nesting level of O-word procedures

syntax status:call_level returns int
syntax status:call_level?string returns str

return to the status items list

current_line

currently executing line

syntax status:current_line returns int
syntax status:current_line?string returns str

return to the status items list

current_vel

current velocity in user units per second

syntax status:current_vel returns float
syntax status:current_vel?string returns str

return to the status items list

cycle_time

thread period

syntax status:cycle_time returns float
syntax status:cycle_time?string returns str

return to the status items list

delay_left

remaining time on the G4 dwell command, seconds

syntax status:delay_left returns float
syntax status:delay_left?string returns str

return to the status items list

din

current value of the digital input pins

syntax status:din returns tuple of integers
syntax status:din?string returns str

return to the status items list

distance_to_go

remaining distance of current move, as reported by trajectory planner

syntax status:distance_to_go returns float
syntax status:distance_to_go?string returns str

return to the status items list

dout

current value of the digital output pins

syntax status:dout returns tuple of integers
syntax status:dout?string returns str

return to the status items list

dtg

remaining distance of current move for each axis, as reported by trajectory planner

syntax status:dtg returns tuple of floats
syntax status:dtg?string returns str

return to the status items list

echo_serial_number

The serial number of the last completed command sent by a UI to task

syntax status:echo_serial_number returns int
syntax status:echo_serial_number?string returns str

return to the status items list

enabled

trajectory planner enabled flag

syntax status:enabled returns bool
syntax status:enabled?string returns str

return to the status items list

estop

status of E Stop, 1 for enabled and 0 for not enabled

syntax status:estop returns int
syntax status:estop?string returns str

return to the status items list

exec_state

task execution state

int str
1 Error
2 Done
3 Waiting for Motion
4 Waiting for Motion Queue
5 Waiting for Pause
6 Not used by LinuxCNC
7 Waiting for Motion and IO
8 Waiting for Delay
9 Waiting for system CMD
10 Waiting for spindle orient
syntax status:exec_state returns int
syntax status:exec_state?string returns str

return to the status items list

feed_hold_enabled

status of feed hold

syntax status:feed_hold_enabled returns bool
syntax status:feed_hold_enabled?string returns str

return to the status items list

feed_override_enabled

status of feed override

syntax status:feed_override_enabled returns bool
syntax status:feed_override_enabled?string returns str

return to the status items list

feedrate

current feedrate override, 1.0 = 100%

syntax status:feedrate returns float
syntax status:feedrate?string returns str

return to the status items list

file

currently loaded gcode filename with path

syntax status:file returns str
for just the file name use this expression ch[0].split('/')[-1]

return to the status items list

flood

current flood status 0 for off, 1 for on

syntax status:flood returns int
syntax status:flood?string returns str

return to the status items list

g5x_index

currently active coordinate system

int string
0 G53
1 G54
2 G55
3 G56
4 G57
5 G58
6 G59
7 G59.1
8 G59.2
9 G59.3
syntax status:g5x_index returns int
syntax status:g5x_index?string returns str

return to the status items list

g5x_offset

offsets of the currently active coordinate system

syntax status:g5x_offset returns tuple of floats
syntax status:g5x_offset?string returns str

return to the status items list

g92_offset

current g92 offsets

syntax status:g92_offset returns tuple of floats
syntax status:g92_offset?string returns str

return to the status items list

gcodes

active G-codes for each modal group

syntax status:gcodes returns tuple of integers
syntax status:gcodes?string returns str

return to the status items list

homed

currently homed joints, 0 = not homed, 1 = homed

syntax status:homed returns tuple of integers
syntax status:homed?string returns str

return to the status items list

id

currently executing motion id

syntax status:id returns int
syntax status:id?string returns str

return to the status items list

inpos

status machine in position

syntax status:inpos returns bool
syntax status:inpos?string returns str

return to the status items list

input_timeout

flag for M66 timer in progress

syntax status:input_timeout returns bool
syntax status:input_timeout?string returns str

return to the status items list

interp_state

current state of RS274NGC interpreter

int str
1 Idle
2 Reading
3 Paused
4 Waiting
syntax status:interp_state returns int
syntax status:interp_state?string returns str

return to the status items list

interpreter_errcode

current RS274NGC interpreter return code

int str
0 Ok
1 Exit
2 Finished
3 Endfile
4 File not open
5 Error
syntax status:interpreter_errcode returns int
syntax status:interpreter_errcode?string returns str

return to the status items list

joint.n.backlash

backlash in machine units, ini parameter [JOINT_n]BACKLASH (n is joint number)

syntax status:joint.n.backlash returns float
syntax status:joint.n.backlash?string returns str

return to the status items list

joint.n.enabled

status of joint n enabled, 0 not enabled 1 enabled

syntax status:joint.n.enabled returns int
syntax status:joint.n.enabled?string returns str

return to the status items list

joint.n.fault

status of joint n fault, 0 not faulted 1 faulted

syntax status:joint.n.fault returns int
syntax status:joint.n.fault?string returns str

return to the status items list

joint.n.ferror_current

current joint n following error

syntax status:joint.n.ferror_current returns float
syntax status:joint.n.ferror_current?string returns str

return to the status items list

joint.n.ferror_highmark

joint n magnitude of maximum following error

syntax status:joint.n.ferror_highmark returns float
syntax status:joint.n.ferror_highmark?string returns str

return to the status items list

joint.n.homed

status of joint n homed, 0 not homed 1 homed

syntax status:joint.n.homed returns int
syntax status:joint.n.homed?string returns str

return to the status items list

joint.n.homing

status of joint n homing in progress, 0 not homing 1 homing

syntax status:joint.n.homing returns int
syntax status:joint.n.homing?string returns str

return to the status items list

joint.n.inpos

status of joint n in position, 0 not in position 1 in position

syntax status:joint.n.inpos returns int
syntax status:joint.n.inpos?string returns str

return to the status items list

joint.n.input

joint n current input position

syntax status:joint.n.input returns float
syntax status:joint.n.input?string returns str

return to the status items list

joint.n.jointType

joint n type of axis, ini parameter [JOINT_n]TYPE

syntax status:joint.n.jointType returns int
syntax status:joint.n.jointType?string returns str

return to the status items list

joint.n.max_ferror

joint n maximum following error rapid, ini parameter [JOINT_n]FERROR

syntax status:joint.n.max_ferror returns float
syntax status:joint.n.max_ferror?string returns str

return to the status items list

joint.n.max_hard_limit

status of joint n maximum hard limit, 0 not exceeded 1 exceeded

syntax status:joint.n.max_hard_limit returns int
syntax status:joint.n.max_hard_limit?string returns str

return to the status items list

joint.n.max_position_limit

joint n maximum soft limit, ini parameter [JOINT_n]MAX_LIMIT

syntax status:joint.n.max_position_limit returns float
syntax status:joint.n.max_position_limit?string returns str

return to the status items list

joint.n.max_soft_limit

status of joint n maximum soft limit, 0 not exceeded 1 exceeded

syntax status:joint.n.max_soft_limit returns int
syntax status:joint.n.max_soft_limit?string returns str

return to the status items list

joint.n.min_ferror

maximum following error feed, ini parameter [JOINT_n]MIN_FERROR

syntax status:joint.n.min_ferror returns float
syntax status:joint.n.min_ferror?string returns str

return to the status items list

joint.n.min_hard_limit

non-zero means min hard limit exceeded

syntax status:joint.n.min_hard_limit returns int
syntax status:joint.n.min_hard_limit?string returns str

return to the status items list

joint.n.min_position_limit

minimum soft limit ini parameter [JOINT_n]MIN_LIMIT

syntax status:joint.n.min_position_limit returns float
syntax status:joint.n.min_position_limit?string returns str

return to the status items list

joint.n.min_soft_limit

non-zero means min_position_limit was exceeded

syntax status:joint.n.min_soft_limit returns int
syntax status:joint.n.min_soft_limit?string returns str

return to the status items list

joint.n.output

commanded output position

syntax status:joint.n.output returns float
syntax status:joint.n.output?string returns str

return to the status items list

joint.n.override_limits

non-zero means limits are overridden

syntax status:joint.n.override_limits returns int
syntax status:joint.n.override_limits?string returns str

return to the status items list

joint.n.units

joint units

syntax status:joint.n.units returns float
syntax status:joint.n.units?string returns str

return to the status items list

joint.n.velocity

current velocity

syntax status:joint.n.velocity returns float
syntax status:joint.n.velocity?string returns str

return to the status items list

joint_actual_position

joint actual positions

syntax status:joint_actual_position returns tuple of floats
syntax status:joint_actual_position?string returns str

return to the status items list

joint_position

commanded joint positions

syntax status:joint_position returns tuple of floats
syntax status:joint_position?string returns str

return to the status items list

joints

number of joints, ini parameter [KINS]JOINTS

syntax status:joints returns int
syntax status:joints?string returns str

return to the status items list

kinematics_type

kinematics type

syntax status:kinematics_type returns int
syntax status:kinematics_type?string returns str

return to the status items list

limit

axis limit masks

syntax status:limit returns tuple of integers
syntax status:limit?string returns str

return to the status items list

linear_units

machine linear units, ini parameter [TRAJ]LINEAR_UNITS

syntax status:linear_units returns float
syntax status:linear_units?string returns str

return to the status items list

lube

lube status

syntax status:lube returns int
syntax status:lube?string returns str

return to the status items list

lube_level

status of iocontrol.0.lube_level

syntax status:lube_level returns int
syntax status:lube_level?string returns str

return to the status items list

max_acceleration

maximum acceleration, ini parameter [TRAJ]MAX_ACCELERATION

syntax status:max_acceleration returns float
syntax status:max_acceleration?string returns str

return to the status items list

max_velocity

maximum velocity, ini parameter [TRAJ]MAX_VELOCITY

syntax status:max_velocity returns float
syntax status:max_velocity?string returns str

return to the status items list

mcodes

currently active M codes

syntax status:mcodes returns tuple of integers
syntax status:mcodes?string returns str

return to the status items list

mist

mist status

syntax status:mist returns int
syntax status:mist?string returns str

return to the status items list

motion_line

source line number motion is currently executing

syntax status:motion_line returns int
syntax status:motion_line?string returns str

return to the status items list

motion_mode

mode of the motion controller

int string
0 N/A
1 Free
2 Coord
3 Teleop
syntax status:motion_mode returns int
syntax status:motion_mode?string returns str

return to the status items list

motion_type

motion type of move currently executing

int string
0 None
1 Traverse
2 Linear Feed
3 Arc Feed
4 Tool Change
5 Probing
6 Rotary Index
syntax status:motion_type returns int
syntax status:motion_type?string returns str

return to the status items list

on

status of machine power

syntax status:on returns bool
syntax status:on?string returns str

return to the status items list

optional_stop

status of optional stop

syntax status:optional_stop returns int
syntax status:optional_stop?string returns str

return to the status items list

paused

motion paused

syntax pstatus:aused returns bool
syntax status:paused?string returns str

return to the status items list

pocket_prepped

pocket prepped from last Tn commaned

syntax status:pocket_prepped returns int
syntax status:pocket_prepped?string returns str

return to the status items list

position

trajectory position

syntax status:position returns tuple of floats
syntax status:position?string returns str

return to the status items list

probe_tripped

probe tripped

syntax status:probe_tripped returns bool
syntax status:probe_tripped?string returns str

return to the status items list

probe_val

value of the motion.probe-input pin

syntax status:probe_val returns int
syntax status:probe_val?string returns str

return to the status items list

probed_position

position where probe tripped

syntax status:probed_position returns tuple of floats
syntax status:probed_position?string returns str

return to the status items list

probing

probe operation is in progress

syntax status:probing returns bool
syntax status:probing?string returns str

return to the status items list

program_units

program units

int short long
0 N/A N/A
1 in Inches
2 mm Millimeters
3 cm Centimeters
syntax status:program_units returns int
syntax status:rogram_units?string returns short str
syntax status:rogram_units?string&format=long returns long str

return to the status items list

queue

current size of the trajectory planner queue

syntax status:queue returns int
syntax status:queue?string returns str

return to the status items list

queue_full

status of the trajectory planner queue

syntax status:queue_full returns bool
syntax status:queue_full?string returns str

return to the status items list

queued_mdi_commands

queued mdi commands

syntax status:queued_mdi_commands returns int
syntax status:queued_mdi_commands?string returns str

return to the status items list

rapidrate

rapid override scale

syntax status:rapidrate returns float
syntax status:rapidrate?string returns str

return to the status items list

read_line

current line the interperter is reading

syntax status:read_line returns int
syntax status:read_line?string returns str

return to the status items list

recent_files

recent files opened including file path

syntax status:recent_files returns list
syntax status:recent_files?string returns str

return to the status items list

rotation_xy

current XY rotation angle around Z axis

syntax status:rotation_xy returns float
syntax status:rotation_xy?string returns str

return to the status items list

settings

current interpreter settings

returns a tuple of floats

index value
0 sequence number
1 F word value (feed)
2 S word value (speed)
3 G64 P value (blend tolerance)
4 G64 Q value (naive CAM tolerance)
syntax status:settings returns tuple of floats
syntax status:settings?string returns str

return to the status items list

spindle.n.brake

status of spindle n brake

syntax status:spindle.n.brake returns int
syntax status:spindle.n.brake?string returns str

return to the status items list

spindle.n.direction

rotational direction of the spindle. forward=1, reverse=-1

syntax status:spindle.n.direction returns int
syntax status:spindle.n.direction?string returns str

return to the status items list

spindle.n.enabled

spindle enabled status

syntax status:spindle.n.enabled returns int
syntax status:spindle.n.enabled?string returns str

return to the status items list

spindle.n.homed

spindle n homed

syntax status:spindle.n.homed returns bool
syntax status:spindle.n.homed?string returns str

return to the status items list

spindle.n.orient_fault

spindle n orient fault status

syntax status:spindle.n.orient_fault returns int
syntax status:spindle.n.orient_fault?string returns str

return to the status items list

spindle.n.orient_state

unknown

syntax status:spindle.n.orient_state returns int
syntax status:spindle.n.orient_state?string returns str

return to the status items list

spindle.n.override

spindle n speed override scale

syntax status:spindle.n.override returns float
syntax status:spindle.n.override?string returns str

return to the status items list

spindle.n.override_enabled

spindle n override enabled

syntax status:spindle.n.override_enabled returns bool
syntax status:spindle.n.override_enabled?string returns str

return to the status items list

spindle.n.speed

spindle n speed rpm, > 0 clockwise, < 0 counterclockwise

syntax status:spindle.n.speed returns float
syntax status:spindle.n.speed?string returns str

return to the status items list

spindles

number of spindles, ini parameter [TRAJ]SPINDLES

syntax status:spindles returns int
syntax status:spindles?string returns str

return to the status items list

state

current command execution status

syntax status:state returns int
syntax status:state?string returns str

return to the status items list

task_mode

current task mode

int string
0 N/A
1 Manual
2 Auto
3 MDI
syntax status:task_mode returns int
syntax status:task_mode?string returns str

return to the status items list

task_paused

task paused status

syntax status:task_paused returns int
syntax status:task_paused?string returns str

return to the status items list

task_state

current task state

int string
0 N/A
1 E-Stop
2 Reset
3 Off
4 On
syntax status:task_state returns int
syntax status:task_state?string returns str

return to the status items list

tool_in_spindle

current tool number

syntax status:tool_in_spindle returns int
syntax status:tool_in_spindle?string returns str

return to the status items list

tool_offset

offset values of the current tool

syntax status:tool_offset returns tuple of floats
syntax status:tool_offset?string returns str

return to the status items list

return to the status items list

tool_table

list of tool entries

syntax status:tool_table returns tuple of tool_results
syntax status:tool_table?string returns str

return to the status items list

velocity

This property is defined, but it does not have a useful interpretation

syntax status:velocity returns float
syntax status:velocity?string returns str

return to the status items list