Status
To see a quick overview of all available datachannels from the status plugin, please check Status Items
- class qtpyvcp.plugins.status.Status(cycle_time=100)[source]
- recent_files
List of recently loaded files
- axis_mask
Axes as configured in the [TRAJ]COORDINATES INI option.
To return the string in a status label:
status:axis_mask status:axis_mask?string status:axis_mask?list
- Returns:
the configured axes
- Return type:
int, list, str
- mdi_history
List of recently issued MDI commands. Commands are stored in reverse chronological order, with the newest command at the front of the list, and oldest at the end. When the list exceeds the length given by MAX_MDI_COMMANDS the oldest entries will be dropped.
Duplicate commands will not be removed, so that MDI History can be replayed via the queue meachanisim from a point in the history forward. The most recently issued command will always be at the front of the list.
- on
True if machine power is ON.
- file
Currently loaded file including path
- state
Current command execution status
Done
Exec
Error
To return the string in a status label:
status:state?string
- Returns:
current command execution state
- Return type:
int, str
- exec_state
Current task execution state
Error
Done
Waiting for Motion
Waiting for Motion Queue
Waiting for Pause
–
Waiting for Motion and IO
Waiting for Delay
Waiting for system CMD
Waiting for spindle orient
To return the string in a status label:
status:exec_state?string
- Returns:
current task execution error
- Return type:
int, str
- interp_state
Current state of RS274NGC interpreter
Idle
Reading
Paused
Waiting
To return the string in a status label:
status:interp_state?string
- Returns:
RS274 interpreter state
- Return type:
int, str
- interpreter_errcode
Current RS274NGC interpreter return code
Ok
Exit
Finished
Endfile
File not open
Error
To return the string in a status label:
status:interpreter_errcode?string
- Returns:
interp error code
- Return type:
int, str
- task_state
Current status of task
E-Stop
Reset
Off
On
To return the string in a status label:
status:task_state?string
- Returns:
current task state
- Return type:
int, str
- task_mode
Current task mode
Manual
Auto
MDI
To return the string in a status label:
status:task_mode?string
- Returns:
current task mode
- Return type:
int, str
- motion_mode
Current motion controller mode
Free
Coord
Teleop
To return the string in a status label:
status:motion_mode?string
- Returns:
current motion mode
- Return type:
int, str
- motion_type
Motion type
None
Traverse
Linear Feed
Arc Feed
Tool Change
Probing
Rotary Index
To return the string in a status label:
status:motion_type?string
- Returns:
current motion type
- Return type:
int, str
- program_units
Program units
Available as an integer, or in short or long string formats.
in, Inches
mm, Millimeters
cm, Centimeters
To return the string in a status label:
status:program_units status:program_units?string status:program_units?string&format=long
- Returns:
current program units
- Return type:
int, str
- linear_units
Machine linear units
Available as float (units/mm), or in short or long string formats.
To return the string in a status label:
status:linear_units status:linear_units?string status:linear_units?string&format=long
- Returns:
machine linear units
- Return type:
float, str
- gcodes
G-codes
active G-codes for each modal group
syntaxstatus:gcodes
returns tuple of stringssyntaxstatus:gcodes?raw
returns tuple of integerssyntaxstatus:gcodes?string
returns str
- mcodes
M-codes
active M-codes for each modal group
syntaxstatus:mcodes
returns tuple of stringssyntaxstatus:mcodes?raw
returns tuple of integerssyntaxstatus:mcodes?string
returns str
- rotation_xy
Current G5x Rotation
syntaxstatus:rotation_xy
returns float
- g5x_index
Current G5x work coord system
syntaxstatus:g5x_index
returns intsyntaxstatus:g5x_index?string
returns str
- settings
Interpreter Settings
- Available Items:
sequence_number
feed
speed
- Returns:
interpreter settings
- Return type:
tuple, int, float
- homed
Axis homed status
If no axis number is specified returns a tuple of integers. If
anum
is specified returns True if the axis is homed, else False.Rules syntax:
status:homed status:homed?anum=0
- Parameters:
anum (int, optional) – the axis number to return the homed state of.
- Returns:
axis homed states
- Return type:
tuple, bool
- all_axes_homed
All axes homed status
True if all axes are homed or if [TRAJ]NO_FORCE_HOMING set in INI.
If [TRAJ]NO_FORCE_HOMING is set in the INI the value will be come true as soon as the machine is turned on and the signal will be emitted, otherwise the signal will be emitted once all the axes defined in the INI have been homed.
- Returns:
all homed
- Return type:
bool