Status Items
Status Items can be used in Widget Rules to control and display status data for LinuxCNC.
Tuples
If a status item returns a tuple you can get a single value from the tuple by
slicing. For example if the tuple is channel 0 ch[0] you can convert it to a
string and get the first entry like this str(ch[0][0]). To get the third
item in the tuple you slice at 2 because counting starts at 0 not 1 so
str(ch[0][2]) returns the third item in the tuple. For axis items they are
in this order X, Y, Z, A, B, C, U, V, W.
Status Items List
- acceleration
default acceleration, ini parameter [TRAJ]DEFAULT_ACCELERATION
syntaxstatus:accelerationreturns floatsyntaxstatus:acceleration?stringreturns str
return to the status items list
- active_queue
number of motions blending
syntaxstatus:active_queuereturns intsyntaxstatus:active_queue?stringreturns str
return to the status items list
- actual_position
current trajectory position, (x y z a b c u v w) in machine units
syntaxstatus:actual_positionreturns tuple of floatssyntaxstatus:actual_position?stringreturns tuple of str
return to the status items list
- adaptive_feed_enabled
status of adaptive feedrate override
syntaxstatus:adaptive_feed_enabledreturns boolsyntaxstatus:adaptive_feed_enabled?stringreturns str
return to the status items list
- ain
current value of the analog input pins
syntaxstatus:ainreturns tuple of floatssyntaxstatus:ain?stringreturns 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
syntaxstatus:all_axes_homedreturns boolsyntaxstatus:all_axes_homed?stringreturns str
return to the status items list
- angular_units
machine angular units per deg, ini parameter [TRAJ]ANGULAR_UNITS
syntaxstatus:angular_unitsreturns floatsyntaxstatus:angular_units?stringreturns str
return to the status items list
- aout
current value of the analog output pins
syntaxstatus:aoutreturns tuple of floatssyntaxstatus:aout?stringreturns str
return to the status items list
- axes
number of axes. derived from [TRAJ]COORDINATES ini parameter
syntaxstatus:axesreturns intsyntaxstatus:axes?stringreturns 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=256syntaxstatus:axis_maskreturns int bit masksyntaxstatus:axis_mask?listreturns list of axis numbers[0, 1, 2]syntaxstatus:axis_mask?stringreturns string of axis lettersXYZ
return to the status items list
- block_delete
block delete curren status
syntaxstatus:block_deletereturns boolsyntaxstatus:block_delete?stringreturns str
return to the status items list
- call_level
current nesting level of O-word procedures
syntaxstatus:call_levelreturns intsyntaxstatus:call_level?stringreturns str
return to the status items list
- current_line
currently executing line
syntaxstatus:current_linereturns intsyntaxstatus:current_line?stringreturns str
return to the status items list
- current_vel
current velocity in user units per second
syntaxstatus:current_velreturns floatsyntaxstatus:current_vel?stringreturns str
return to the status items list
- cycle_time
thread period
syntaxstatus:cycle_timereturns floatsyntaxstatus:cycle_time?stringreturns str
return to the status items list
- delay_left
remaining time on the G4 dwell command, seconds
syntaxstatus:delay_leftreturns floatsyntaxstatus:delay_left?stringreturns str
return to the status items list
- din
current value of the digital input pins
syntaxstatus:dinreturns tuple of integerssyntaxstatus:din?stringreturns str
return to the status items list
- distance_to_go
remaining distance of current move, as reported by trajectory planner
syntaxstatus:distance_to_goreturns floatsyntaxstatus:distance_to_go?stringreturns str
return to the status items list
- dout
current value of the digital output pins
syntaxstatus:doutreturns tuple of integerssyntaxstatus:dout?stringreturns str
return to the status items list
- dtg
remaining distance of current move for each axis, as reported by trajectory planner
syntaxstatus:dtgreturns tuple of floatssyntaxstatus:dtg?stringreturns str
return to the status items list
- echo_serial_number
The serial number of the last completed command sent by a UI to task
syntaxstatus:echo_serial_numberreturns intsyntaxstatus:echo_serial_number?stringreturns str
return to the status items list
- enabled
trajectory planner enabled flag
syntaxstatus:enabledreturns boolsyntaxstatus:enabled?stringreturns str
return to the status items list
- estop
status of E Stop, 1 for enabled and 0 for not enabled
syntaxstatus:estopreturns intsyntaxstatus:estop?stringreturns 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
syntaxstatus:exec_statereturns intsyntaxstatus:exec_state?stringreturns str
return to the status items list
- feed_hold_enabled
status of feed hold
syntaxstatus:feed_hold_enabledreturns boolsyntaxstatus:feed_hold_enabled?stringreturns str
return to the status items list
- feed_override_enabled
status of feed override
syntaxstatus:feed_override_enabledreturns boolsyntaxstatus:feed_override_enabled?stringreturns str
return to the status items list
- feedrate
current feedrate override, 1.0 = 100%
syntaxstatus:feedratereturns floatsyntaxstatus:feedrate?stringreturns str
return to the status items list
- file
currently loaded gcode filename with path
syntaxstatus:filereturns strfor just the file name use this expressionch[0].split('/')[-1]
return to the status items list
- flood
current flood status 0 for off, 1 for on
syntaxstatus:floodreturns intsyntaxstatus:flood?stringreturns 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
syntaxstatus:g5x_indexreturns intsyntaxstatus:g5x_index?stringreturns str
return to the status items list
- g5x_offset
offsets of the currently active coordinate system
syntaxstatus:g5x_offsetreturns tuple of floatssyntaxstatus:g5x_offset?stringreturns str
return to the status items list
- g92_offset
current g92 offsets
syntaxstatus:g92_offsetreturns tuple of floatssyntaxstatus:g92_offset?stringreturns str
return to the status items list
- gcodes
active G-codes for each modal group
syntaxstatus:gcodesreturns tuple of integerssyntaxstatus:gcodes?stringreturns str
return to the status items list
- homed
currently homed joints, 0 = not homed, 1 = homed
syntaxstatus:homedreturns tuple of integerssyntaxstatus:homed?stringreturns str
return to the status items list
- id
currently executing motion id
syntaxstatus:idreturns intsyntaxstatus:id?stringreturns str
return to the status items list
- inpos
status machine in position
syntaxstatus:inposreturns boolsyntaxstatus:inpos?stringreturns str
return to the status items list
- input_timeout
flag for M66 timer in progress
syntaxstatus:input_timeoutreturns boolsyntaxstatus:input_timeout?stringreturns str
return to the status items list
- interp_state
current state of RS274NGC interpreter
int
str
1
Idle
2
Reading
3
Paused
4
Waiting
syntaxstatus:interp_statereturns intsyntaxstatus:interp_state?stringreturns 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
syntaxstatus:interpreter_errcodereturns intsyntaxstatus:interpreter_errcode?stringreturns str
return to the status items list
- joint.n.backlash
backlash in machine units, ini parameter [JOINT_n]BACKLASH (n is joint number)
syntaxstatus:joint.n.backlashreturns floatsyntaxstatus:joint.n.backlash?stringreturns str
return to the status items list
- joint.n.enabled
status of joint n enabled, 0 not enabled 1 enabled
syntaxstatus:joint.n.enabledreturns intsyntaxstatus:joint.n.enabled?stringreturns str
return to the status items list
- joint.n.fault
status of joint n fault, 0 not faulted 1 faulted
syntaxstatus:joint.n.faultreturns intsyntaxstatus:joint.n.fault?stringreturns str
return to the status items list
- joint.n.ferror_current
current joint n following error
syntaxstatus:joint.n.ferror_currentreturns floatsyntaxstatus:joint.n.ferror_current?stringreturns str
return to the status items list
- joint.n.ferror_highmark
joint n magnitude of maximum following error
syntaxstatus:joint.n.ferror_highmarkreturns floatsyntaxstatus:joint.n.ferror_highmark?stringreturns str
return to the status items list
- joint.n.homed
status of joint n homed, 0 not homed 1 homed
syntaxstatus:joint.n.homedreturns intsyntaxstatus:joint.n.homed?stringreturns str
return to the status items list
- joint.n.homing
status of joint n homing in progress, 0 not homing 1 homing
syntaxstatus:joint.n.homingreturns intsyntaxstatus:joint.n.homing?stringreturns str
return to the status items list
- joint.n.inpos
status of joint n in position, 0 not in position 1 in position
syntaxstatus:joint.n.inposreturns intsyntaxstatus:joint.n.inpos?stringreturns str
return to the status items list
- joint.n.input
joint n current input position
syntaxstatus:joint.n.inputreturns floatsyntaxstatus:joint.n.input?stringreturns str
return to the status items list
- joint.n.jointType
joint n type of axis, ini parameter [JOINT_n]TYPE
syntaxstatus:joint.n.jointTypereturns intsyntaxstatus:joint.n.jointType?stringreturns str
return to the status items list
- joint.n.max_ferror
joint n maximum following error rapid, ini parameter [JOINT_n]FERROR
syntaxstatus:joint.n.max_ferrorreturns floatsyntaxstatus:joint.n.max_ferror?stringreturns str
return to the status items list
- joint.n.max_hard_limit
status of joint n maximum hard limit, 0 not exceeded 1 exceeded
syntaxstatus:joint.n.max_hard_limitreturns intsyntaxstatus:joint.n.max_hard_limit?stringreturns str
return to the status items list
- joint.n.max_position_limit
joint n maximum soft limit, ini parameter [JOINT_n]MAX_LIMIT
syntaxstatus:joint.n.max_position_limitreturns floatsyntaxstatus:joint.n.max_position_limit?stringreturns str
return to the status items list
- joint.n.max_soft_limit
status of joint n maximum soft limit, 0 not exceeded 1 exceeded
syntaxstatus:joint.n.max_soft_limitreturns intsyntaxstatus:joint.n.max_soft_limit?stringreturns str
return to the status items list
- joint.n.min_ferror
maximum following error feed, ini parameter [JOINT_n]MIN_FERROR
syntaxstatus:joint.n.min_ferrorreturns floatsyntaxstatus:joint.n.min_ferror?stringreturns str
return to the status items list
- joint.n.min_hard_limit
non-zero means min hard limit exceeded
syntaxstatus:joint.n.min_hard_limitreturns intsyntaxstatus:joint.n.min_hard_limit?stringreturns str
return to the status items list
- joint.n.min_position_limit
minimum soft limit ini parameter [JOINT_n]MIN_LIMIT
syntaxstatus:joint.n.min_position_limitreturns floatsyntaxstatus:joint.n.min_position_limit?stringreturns str
return to the status items list
- joint.n.min_soft_limit
non-zero means min_position_limit was exceeded
syntaxstatus:joint.n.min_soft_limitreturns intsyntaxstatus:joint.n.min_soft_limit?stringreturns str
return to the status items list
- joint.n.output
commanded output position
syntaxstatus:joint.n.outputreturns floatsyntaxstatus:joint.n.output?stringreturns str
return to the status items list
- joint.n.override_limits
non-zero means limits are overridden
syntaxstatus:joint.n.override_limitsreturns intsyntaxstatus:joint.n.override_limits?stringreturns str
return to the status items list
- joint.n.units
joint units
syntaxstatus:joint.n.unitsreturns floatsyntaxstatus:joint.n.units?stringreturns str
return to the status items list
- joint.n.velocity
current velocity
syntaxstatus:joint.n.velocityreturns floatsyntaxstatus:joint.n.velocity?stringreturns str
return to the status items list
- joint_actual_position
joint actual positions
syntaxstatus:joint_actual_positionreturns tuple of floatssyntaxstatus:joint_actual_position?stringreturns str
return to the status items list
- joint_position
commanded joint positions
syntaxstatus:joint_positionreturns tuple of floatssyntaxstatus:joint_position?stringreturns str
return to the status items list
- joints
number of joints, ini parameter [KINS]JOINTS
syntaxstatus:jointsreturns intsyntaxstatus:joints?stringreturns str
return to the status items list
- kinematics_type
kinematics type
syntaxstatus:kinematics_typereturns intsyntaxstatus:kinematics_type?stringreturns str
return to the status items list
- limit
axis limit masks
syntaxstatus:limitreturns tuple of integerssyntaxstatus:limit?stringreturns str
return to the status items list
- linear_units
machine linear units, ini parameter [TRAJ]LINEAR_UNITS
syntaxstatus:linear_unitsreturns floatsyntaxstatus:linear_units?stringreturns str
return to the status items list
- lube
lube status
syntaxstatus:lubereturns intsyntaxstatus:lube?stringreturns str
return to the status items list
- lube_level
status of iocontrol.0.lube_level
syntaxstatus:lube_levelreturns intsyntaxstatus:lube_level?stringreturns str
return to the status items list
- max_acceleration
maximum acceleration, ini parameter [TRAJ]MAX_ACCELERATION
syntaxstatus:max_accelerationreturns floatsyntaxstatus:max_acceleration?stringreturns str
return to the status items list
- max_velocity
maximum velocity, ini parameter [TRAJ]MAX_VELOCITY
syntaxstatus:max_velocityreturns floatsyntaxstatus:max_velocity?stringreturns str
return to the status items list
- mcodes
currently active M codes
syntaxstatus:mcodesreturns tuple of integerssyntaxstatus:mcodes?stringreturns str
return to the status items list
- mist
mist status
syntaxstatus:mistreturns intsyntaxstatus:mist?stringreturns str
return to the status items list
- motion_line
source line number motion is currently executing
syntaxstatus:motion_linereturns intsyntaxstatus:motion_line?stringreturns 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
syntaxstatus:motion_modereturns intsyntaxstatus:motion_mode?stringreturns 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
syntaxstatus:motion_typereturns intsyntaxstatus:motion_type?stringreturns str
return to the status items list
- on
status of machine power
syntaxstatus:onreturns boolsyntaxstatus:on?stringreturns str
return to the status items list
- optional_stop
status of optional stop
syntaxstatus:optional_stopreturns intsyntaxstatus:optional_stop?stringreturns str
return to the status items list
- paused
motion paused
syntaxpstatus:ausedreturns boolsyntaxstatus:paused?stringreturns str
return to the status items list
- pocket_prepped
pocket prepped from last Tn commaned
syntaxstatus:pocket_preppedreturns intsyntaxstatus:pocket_prepped?stringreturns str
return to the status items list
- position
trajectory position
syntaxstatus:positionreturns tuple of floatssyntaxstatus:position?stringreturns str
return to the status items list
- probe_tripped
probe tripped
syntaxstatus:probe_trippedreturns boolsyntaxstatus:probe_tripped?stringreturns str
return to the status items list
- probe_val
value of the motion.probe-input pin
syntaxstatus:probe_valreturns intsyntaxstatus:probe_val?stringreturns str
return to the status items list
- probed_position
position where probe tripped
syntaxstatus:probed_positionreturns tuple of floatssyntaxstatus:probed_position?stringreturns str
return to the status items list
- probing
probe operation is in progress
syntaxstatus:probingreturns boolsyntaxstatus:probing?stringreturns 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
syntaxstatus:program_unitsreturns intsyntaxstatus:rogram_units?stringreturns short strsyntaxstatus:rogram_units?string&format=longreturns long str
return to the status items list
- queue
current size of the trajectory planner queue
syntaxstatus:queuereturns intsyntaxstatus:queue?stringreturns str
return to the status items list
- queue_full
status of the trajectory planner queue
syntaxstatus:queue_fullreturns boolsyntaxstatus:queue_full?stringreturns str
return to the status items list
- queued_mdi_commands
queued mdi commands
syntaxstatus:queued_mdi_commandsreturns intsyntaxstatus:queued_mdi_commands?stringreturns str
return to the status items list
- rapidrate
rapid override scale
syntaxstatus:rapidratereturns floatsyntaxstatus:rapidrate?stringreturns str
return to the status items list
- read_line
current line the interperter is reading
syntaxstatus:read_linereturns intsyntaxstatus:read_line?stringreturns str
return to the status items list
- recent_files
recent files opened including file path
syntaxstatus:recent_filesreturns listsyntaxstatus:recent_files?stringreturns str
return to the status items list
- rotation_xy
current XY rotation angle around Z axis
syntaxstatus:rotation_xyreturns floatsyntaxstatus:rotation_xy?stringreturns 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)
syntaxstatus:settingsreturns tuple of floatssyntaxstatus:settings?stringreturns str
return to the status items list
- spindle.n.brake
status of spindle n brake
syntaxstatus:spindle.n.brakereturns intsyntaxstatus:spindle.n.brake?stringreturns str
return to the status items list
- spindle.n.direction
rotational direction of the spindle. forward=1, reverse=-1
syntaxstatus:spindle.n.directionreturns intsyntaxstatus:spindle.n.direction?stringreturns str
return to the status items list
- spindle.n.enabled
spindle enabled status
syntaxstatus:spindle.n.enabledreturns intsyntaxstatus:spindle.n.enabled?stringreturns str
return to the status items list
- spindle.n.homed
spindle n homed
syntaxstatus:spindle.n.homedreturns boolsyntaxstatus:spindle.n.homed?stringreturns str
return to the status items list
- spindle.n.orient_fault
spindle n orient fault status
syntaxstatus:spindle.n.orient_faultreturns intsyntaxstatus:spindle.n.orient_fault?stringreturns str
return to the status items list
- spindle.n.orient_state
unknown
syntaxstatus:spindle.n.orient_statereturns intsyntaxstatus:spindle.n.orient_state?stringreturns str
return to the status items list
- spindle.n.override
spindle n speed override scale
syntaxstatus:spindle.n.overridereturns floatsyntaxstatus:spindle.n.override?stringreturns str
return to the status items list
- spindle.n.override_enabled
spindle n override enabled
syntaxstatus:spindle.n.override_enabledreturns boolsyntaxstatus:spindle.n.override_enabled?stringreturns str
return to the status items list
- spindle.n.speed
spindle n speed rpm, > 0 clockwise, < 0 counterclockwise
syntaxstatus:spindle.n.speedreturns floatsyntaxstatus:spindle.n.speed?stringreturns str
return to the status items list
- spindles
number of spindles, ini parameter [TRAJ]SPINDLES
syntaxstatus:spindlesreturns intsyntaxstatus:spindles?stringreturns str
return to the status items list
- state
current command execution status
syntaxstatus:statereturns intsyntaxstatus:state?stringreturns str
return to the status items list
- task_mode
current task mode
int
string
0
N/A
1
Manual
2
Auto
3
MDI
syntaxstatus:task_modereturns intsyntaxstatus:task_mode?stringreturns str
return to the status items list
- task_paused
task paused status
syntaxstatus:task_pausedreturns intsyntaxstatus:task_paused?stringreturns 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
syntaxstatus:task_statereturns intsyntaxstatus:task_state?stringreturns str
return to the status items list
- tool_in_spindle
current tool number
syntaxstatus:tool_in_spindlereturns intsyntaxstatus:tool_in_spindle?stringreturns str
return to the status items list
- tool_offset
offset values of the current tool
syntaxstatus:tool_offsetreturns tuple of floatssyntaxstatus:tool_offset?stringreturns str
return to the status items list
return to the status items list
- tool_table
list of tool entries
syntaxstatus:tool_tablereturns tuple of tool_resultssyntaxstatus:tool_table?stringreturns str
return to the status items list
- velocity
This property is defined, but it does not have a useful interpretation
syntaxstatus:velocityreturns floatsyntaxstatus:velocity?stringreturns str