Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion configs/sim/axis/pentapod/pentapod.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ PYVCP = panel.xml
GEOMETRY = XYZ-AB
INCREMENTS = 10 mm, 1 mm, 0.1 mm

MIN_LINEAR_VELOCITY = 0.100000

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
PROGRAM_EXTENSION = .py Python Script
Expand Down Expand Up @@ -61,7 +63,6 @@ CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 5.00
DEFAULT_LINEAR_VELOCITY = 50.000000
MAX_LINEAR_VELOCITY = 100.000000
MIN_LINEAR_VELOCITY = 0.100000
DEFAULT_ANGULAR_VELOCITY = 1.000000
MAX_ANGULAR_VELOCITY = 10.000000
MIN_ANGULAR_VELOCITY = 0.100000
Expand Down
29 changes: 20 additions & 9 deletions configs/sim/gmoccapy/gmoccapy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
# General section -------------------------------------------------------------
[EMC]
VERSION = 1.1

# TODO update-ini 1.1 --> 1.2:
#
# [DISPLAY]
# MIN_SPINDLE_OVERRIDE -> MIN_SPINDLE_0_OVERRIDE
# MAX_SPINDLE_OVERRIDE -> MAX_SPINDLE_0_OVERRIDE
# DEFAULT_SPINDLE_SPEED -> DEFAULT_SPINDLE_0_SPEED
# MIN_SPINDLE_SPEED -> MIN_SPINDLE_0_SPEED
# MAX_SPINDLE_SPEED -> MAX_SPINDLE_0_SPEED
#
# move [TRAJ]DEFAULT_LINEAR_VELOCITY -> [DISPLAY]DEFAULT_LINEAR_VELOCITY
# copy [TRAJ]MAX_LINEAR_VELOCITY -> [DISPLAY]MAX_LINEAR_VELOCITY

MACHINE = gmoccapy
DEBUG = 0

Expand All @@ -22,21 +35,19 @@ CYCLE_TIME = 100

# Values that will be allowed for override, 1.0 = 100%
MAX_FEED_OVERRIDE = 1.5
MAX_SPINDLE_OVERRIDE = 1.2
MIN_SPINDLE_OVERRIDE = 0.5
MIN_SPINDLE_0_OVERRIDE = 0.5
MAX_SPINDLE_0_OVERRIDE = 1.2

# Initial value for spindle speed
DEFAULT_SPINDLE_SPEED = 450
# Spindel start speed
DEFAULT_SPINDLE_0_SPEED = 450
# Scaling of spindle speed bar
MIN_SPINDLE_0_SPEED = 0
MAX_SPINDLE_0_SPEED = 3000

# The following are not used, added here to suppress warnings (from qt_istat/logger).
DEFAULT_LINEAR_VELOCITY = 35
MIN_LINEAR_VELOCITY = 0
MAX_LINEAR_VELOCITY = 234
DEFAULT_SPINDLE_0_SPEED = 500
MIN_SPINDLE_0_SPEED = 0
MAX_SPINDLE_0_SPEED = 3000
MAX_SPINDLE_0_OVERRIDE = 1.2
MIN_SPINDLE_0_OVERRIDE = 0.5

# Prefix to be used
PROGRAM_PREFIX = ../../nc_files/
Expand Down
5 changes: 1 addition & 4 deletions docs/src/config/ini-config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,8 @@ See <<cha:gmoccapy,GMOCCAPY>> document for GMOCCAPY details.
====

* `DEFAULT_LINEAR_VELOCITY = .25` - The default velocity for linear jogs, in <<sub:ini:sec:traj,machine units>> per second.
* `MIN_VELOCITY = .01` - The approximate lowest value the jog slider.
* `MIN_LINEAR_VELOCITY = .01` - The minimum velocity for linear jogs, in machine units per second.
* `MAX_LINEAR_VELOCITY = 1.0` - The maximum velocity for linear jogs, in machine units per second.
* `MIN_LINEAR_VELOCITY = .01` - The approximate lowest value the jog slider.
* `DEFAULT_ANGULAR_VELOCITY = .25` - The default velocity for angular jogs, in machine units per second.
* `MIN_ANGULAR_VELOCITY = .01` - The approximate lowest value the angular jog slider.
* `MAX_ANGULAR_VELOCITY = 1.0` - The maximum velocity for angular jogs, in machine units per second.
Expand Down Expand Up @@ -854,8 +853,6 @@ Finally, no amount of tweaking will speed up a tool path with lots of small, tig
* `ANGULAR_UNITS =` _<units>_ - (((ANGULAR UNITS))) Specifies the 'machine units' for rotational axes.
Possible choices are 'deg', 'degree' (360 per circle), 'rad', 'radian' (2*π per circle), 'grad', or 'gon' (400 per circle).
This does not affect the angular units of NC code. In RS274NGC, A-, B- and C- words are always expressed in degrees.
* `DEFAULT_LINEAR_VELOCITY = 0.0167` - The initial rate for jogs of linear axes, in machine units per second.
The value shown in 'AXIS' equals machine units per minute.
* `DEFAULT_LINEAR_ACCELERATION = 2.0` - In machines with nontrivial kinematics, the acceleration used for "teleop" (Cartesian space) jogs, in 'machine units' per second per second.
* `MAX_LINEAR_VELOCITY = 5.0` - (((MAX VELOCITY))) The maximum velocity for any axis or coordinated move, in 'machine units' per second.
The value shown equals 300 units per minute.
Expand Down
43 changes: 17 additions & 26 deletions docs/src/gui/gmoccapy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ So let us take a closer look at the INI file and what you need to include to use
DISPLAY = gmoccapy
PREFERENCE_FILE_PATH = gmoccapy_preferences
MAX_FEED_OVERRIDE = 1.5
MAX_SPINDLE_OVERRIDE = 1.2
MIN_SPINDLE_OVERRIDE = 0.5
DEFAULT_SPINDLE_SPEED = 500
MIN_SPINDLE_0_OVERRIDE = 0.5
MAX_SPINDLE_0_OVERRIDE = 1.2
DEFAULT_SPINDLE_0_SPEED = 500
MIN_SPINDLE_0_SPEED = 0
MAX_SPINDLE_0_SPEED = 3000
LATHE = 1
BACK_TOOL_LATHE = 1
PROGRAM_PREFIX = ../../nc_files/
Expand All @@ -135,10 +137,10 @@ If you only want to use one file for several machines, you need to include `PREF
[NOTE]
If no value is given, it will be set to 1.0.

- _MIN_SPINDLE_OVERRIDE = 0.5_ and _MAX_SPINDLE_OVERRIDE = 1.2_ - Will allow you to change the spindle override within a limit from 50% to 120%.
- _MIN_SPINDLE_0_OVERRIDE = 0.5_ and _MAX_SPINDLE_0_OVERRIDE = 1.2_ - Will allow you to change the spindle override within a limit from 80% to 120%.
+
[NOTE]
If no values are given, MIN will be set to 0.1 and MAX to 1.0.
If no values are given, MIN will be set to 0.5 and MAX to 1.0.

- _LATHE = 1_ - Set the screen layout to control a lathe.
- _BACK_TOOL_LATHE = 1_ - Is optional and will switch the X axis in a way you need for a back tool lathe.
Expand All @@ -154,7 +156,14 @@ See also the <<gmoccapy:lathe-section,Lathe Specific Section>>.
If not specified, GMOCCAPY will look in the following order for NGC files:
First `linuxcnc/nc_files` and then the users home directory.

- _DEFAULT_SPINDLE_SPEED_ - Start value for <<gmoccapy-settings-spindle,"Starting RPM">> if value not present in preferences file or file is not present. Will have no effect with valid preferences file.
- _DEFAULT_SPINDLE_0_SPEED_ - Sets the rpm to be used if the spindle is started and no S value has been set. Defaults to 200.
- _MIN_SPINDLE_0_SPEED_ - Sets the lower limit of the spindle bar shown in the spindle frame on the main screen. Defaults to 100.
- _MAX_SPINDLE_0_SPEED_ - Sets the upper limit of the spindle bar shown in the spindle frame on the main screen. Defaults to 2500.

[NOTE]
It is no error giving values that didn't match the minimum and maximum speed of the spindle.
If you set _Spindle bar max_ to 2000 and your spindle makes 4000 RPM, only the bar level will be wrong on higher speeds than 2000 RPM.


- _MIN_ANGULAR_VELOCITY_ - Sets the minimal jog velocity of the machine for rotary axes.
- _MAX_ANGULAR_VELOCITY_ - Sets the maximal jog velocity of the machine for rotary axes.
Expand Down Expand Up @@ -500,9 +509,10 @@ DISPLAY = gmoccapy <log_level_param>
using these parameters:
----
Log level <log_level_param>
VERBOSE -v
DEBUG -d
INFO -i
VERBOSE -v
WARNING -w
ERROR -q
----

Expand Down Expand Up @@ -1298,25 +1308,6 @@ By default all scales are set using the calculation:
(MAX - MIN)/100
----

[[gmoccapy-settings-spindle]]
.Spindle
* _Starting RPM_ - Sets the rpm to be used if the spindle is started and no S value has been set.
+
[NOTE]
This value will be presetted according to your settings in `[DISPLAY] DEFAULT_SPINDLE_SPEED` of your INI file.
If you change the settings on the settings page, that value will be default from that moment, your INI file will not be modified.

* _Spindle bar min_ and _Spindle bar max_ - Sets the limits of the spindle bar shown in the INFO frame on the main screen.
+
====
Default values are: +
MIN = 0 +
MAX = 6000
====
+
[NOTE]
It is no error giving wrong values.
If you give a maximum of 2000 and your spindle makes 4000 RPM, only the bar level will be wrong on higher speeds than 2000 RPM.

.Unlock options

Expand Down
2 changes: 1 addition & 1 deletion share/gscreen/skins/silverdragon/silverdragon_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def initialize_preferences(self):
default_spindle_speed = self.gscreen.inifile.find("DISPLAY", "DEFAULT_SPINDLE_SPEED")
self.spindle_start_rpm = self.gscreen.prefs.getpref( 'spindle_start_rpm', default_spindle_speed, float )
# get the values for the sliders
default_jog_vel = float(self.gscreen.inifile.find("TRAJ", "DEFAULT_LINEAR_VELOCITY"))
default_jog_vel = float(self.gscreen.inifile.find("DISPLAY", "DEFAULT_LINEAR_VELOCITY"))
self.fast_jog = default_jog_vel
self.slow_jog = default_jog_vel / self.slow_jog_factor
self.jog_rate_max = self.gscreen.inifile.find("TRAJ", "MAX_LINEAR_VELOCITY")
Expand Down
2 changes: 1 addition & 1 deletion src/emc/usr_intf/axis/scripts/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3414,7 +3414,7 @@ def units(s, d=1.0):
or None)
default_jog_linear_speed = (
inifile.find("DISPLAY", "DEFAULT_LINEAR_VELOCITY")
or inifile.find("TRAJ", "DEFAULT_LINEAR_VELOCITY")
or inifile.find("TRAJ", "DEFAULT_LINEAR_VELOCITY") # legacy
or None)

max_angular_speed = (
Expand Down
77 changes: 0 additions & 77 deletions src/emc/usr_intf/gmoccapy/getiniinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,83 +231,6 @@ def get_lathe_wear_offsets(self):
return False
return True

def get_jog_vel(self):
# get default jog velocity
# must convert from INI's units per second to gmoccapy's units per minute
temp = self.inifile.find("TRAJ", "DEFAULT_LINEAR_VELOCITY")
if not temp:
temp = self.inifile.find("TRAJ", "MAX_LINEAR_VELOCITY" )
if temp:
temp = float(temp) / 2
LOG.warning("No DEFAULT_LINEAR_VELOCITY entry found in [TRAJ] of INI file. Using half on MAX_LINEAR_VELOCITY.")
else:
temp = 3.0
LOG.warning("No DEFAULT_LINEAR_VELOCITY entry found in [TRAJ] of INI file. Using default value of 180 units / min.")
return float(temp) * 60

def get_max_jog_vel(self):
# get max jog velocity
# must convert from INI's units per second to gmoccapy's units per minute
temp = self.inifile.find("TRAJ", "MAX_LINEAR_VELOCITY")
if not temp:
temp = 10.0
LOG.warning("No MAX_LINEAR_VELOCITY entry found in [TRAJ] of INI file. Using default value of 600 units / min.")
return float(temp) * 60

def get_default_ang_jog_vel(self):
# get default angular jog velocity
temp = self.inifile.find("DISPLAY", "DEFAULT_ANGULAR_VELOCITY")
if not temp:
temp = 360.0
LOG.warning("No DEFAULT_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file. Using default value of 360 degree / min.")
return float(temp)

def get_max_ang_jog_vel(self):
# get max angular velocity
temp = self.inifile.find("DISPLAY", "MAX_ANGULAR_VELOCITY")
if not temp:
temp = 3600.0
LOG.warning("No MAX_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file. Using default value of 3600 degree / min.")
return float(temp)

def get_min_ang_jog_vel(self):
# get min angular velocity
temp = self.inifile.find("DISPLAY", "MIN_ANGULAR_VELOCITY")
if not temp:
temp = 0.1
LOG.warning("No MIN_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file. Using default value of 0.1 degree / min.")
return float(temp)

def get_default_spindle_speed(self):
# check for default spindle speed settings
temp = self.inifile.find("DISPLAY", "DEFAULT_SPINDLE_SPEED")
if not temp:
temp = 300
LOG.warning("No DEFAULT_SPINDLE_SPEED entry found in [DISPLAY] of INI file")
return float(temp)

def get_max_spindle_override(self):
# check for override settings
temp = self.inifile.find("DISPLAY", "MAX_SPINDLE_OVERRIDE")
if not temp:
temp = 1.0
LOG.warning("No MAX_SPINDLE_OVERRIDE entry found in [DISPLAY] of INI file")
return float(temp)

def get_min_spindle_override(self):
temp = self.inifile.find("DISPLAY", "MIN_SPINDLE_OVERRIDE")
if not temp:
temp = 0.1
LOG.warning("No MIN_SPINDLE_OVERRIDE entry found in [DISPLAY] of INI file")
return float(temp)

def get_max_feed_override(self):
temp = self.inifile.find("DISPLAY", "MAX_FEED_OVERRIDE")
if not temp:
temp = 1.0
LOG.warning("No MAX_FEED_OVERRIDE entry found in [DISPLAY] of INI file")
return float(temp)

def get_embedded_tabs(self):
# Check INI file for embed commands
# NAME is used as the tab label if a notebook is used
Expand Down
Loading
Loading