Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.9'
Browse files Browse the repository at this point in the history
* origin/2.9:
  d/configure: switch to libeditreadline
  docs: linuxcnc/gcode spelling
  docs: More smallish changes while iterating through translations
  docs: More smallish changes while reiterating through translation
  docs: misc
  docs: optics
  docs: Reintroducing newline to comp description for type separation
  docs: missing . in README.md
  docs: fix of typo
  • Loading branch information
SebKuzminsky committed Apr 6, 2023
2 parents d221e26 + f34122e commit 2df5e87
Show file tree
Hide file tree
Showing 13 changed files with 183 additions and 181 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ all age groups on automated machining.
Any machinery capable of harming persons must have
provisions for completely removing power from all
motors, etc, before persons enter any danger area.
motors, etc., before persons enter any danger area.
All machinery must be designed to comply with local
and national safety codes, and the authors of this
Expand Down
2 changes: 1 addition & 1 deletion debian/configure
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fi

EXTRA_BUILD=
PYTHON_VERSION_NEXT=$(python3 -c 'import sys; print (sys.version[:2] + str(1+int(sys.version[2])))')
LIBREADLINE_DEV="libreadline-gplv2-dev | libreadline-dev"
LIBREADLINE_DEV="libeditreadline-dev | libreadline-gplv2-dev | libreadline-dev"

ENABLE_BUILD_DOCUMENTATION=--enable-build-documentation=pdf

Expand Down
34 changes: 17 additions & 17 deletions docs/src/config/ini-config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ CORRECT = value
=== Sections(((INI File,Components,Sections)))

Related parts of an INI file are separated into sections.
A section name is enclosed in brackets like this `[THIS_SECTION]`.
A section name is enclosed in brackets like this: `[THIS_SECTION]`.
The order of sections is unimportant.
Sections begin at the section name and end at the next section name.

Expand Down Expand Up @@ -229,10 +229,10 @@ GMOCCAPY can be used both ways and offers also many connections for hardware con
Descriptions of the interfaces are in the Interfaces section of the User Manual.

* `DISPLAY = axis` - The file name of the executable providing the user interface to use.
Prominent valid options are (all in lower case): 'axis', 'touchy', 'gmoccapy', 'gscreen', 'tklinuxcnc', 'qtvcp', 'qtvcp-qtdragon' or 'qtvcp-qtplasmac'.
* `POSITION_OFFSET = RELATIVE` - The coordinate system (RELATIVE or MACHINE) to show on the DRO when the user interface starts.
Prominent valid options are (all in lower case): `axis`, `touchy`, `gmoccapy`, `gscreen`, `tklinuxcnc`, `qtvcp`, `qtvcp-qtdragon` or `qtvcp-qtplasmac`.
* `POSITION_OFFSET = RELATIVE` - The coordinate system (`RELATIVE` or `MACHINE`) to show on the DRO when the user interface starts.
The RELATIVE coordinate system reflects the G92 and G5__x__ coordinate offsets currently in effect.
* `POSITION_FEEDBACK = COMMANDED` - The coordinate value (COMMANDED or ACTUAL) to show on the DRO when the user interface starts.
* `POSITION_FEEDBACK = COMMANDED` - The coordinate value (`COMMANDED` or `ACTUAL`) to show on the DRO when the user interface starts.
In AXIS this can be changed from the View menu.
The COMMANDED position is the position requested by LinuxCNC.
The ACTUAL position is the feedback position of the motors if they have feedback like most servo systems.
Expand Down Expand Up @@ -263,7 +263,7 @@ Descriptions of the interfaces are in the Interfaces section of the User Manual.
* `DEFAULT_SPINDLE_0_SPEED = 100` - The default spindle RPM when the spindle is started in manual mode.
On multi spindle machine there will be entries for each spindle number. Only used by the QtVCP-based user interfaces.
- _deprecated_ - use the [SPINDLE_n] section instead.
* `SPINDLE_INCREMENT = 200` - The increment used when clicking increase/decrease buttons Only used by the QtVCP based user interfaces.
* `SPINDLE_INCREMENT = 200` - The increment used when clicking increase/decrease buttons. Only used by the QtVCP based user interfaces.
- _deprecated_ - use the [SPINDLE_n] section instead.
* `MIN_SPINDLE_0_SPEED = 1000` - The minimum RPM that can be manually selected.
On multi spindle machine there will be entries for each spindle number. Only used by the QtVCP-based user interfaces.
Expand Down Expand Up @@ -317,17 +317,17 @@ See <<cha:gmoccapy,GMOCCAPY>> document for GMOCCAPY details.
GMOCCAPY will not use this setting, as it offers a corresponding entry on its settings page.
* `EDITOR = gedit` - The editor to use when selecting File > Edit to edit the G-code from the AXIS menu.
This must be configured for this menu item to work.
Another valid entry is gnome-terminal -e vim.
Another valid entry is `gnome-terminal -e vim`.
This entry does not apply to GMOCCAPY, as GMOCCAPY has an integrated editor.
* `TOOL_EDITOR = tooledit` - The editor to use when editing the tool table
(for example by selecting "File > Edit tool table..." in AXIS).
Other valid entries are "gedit", "gnome-terminal -e vim", and "gvim".
Other valid entries are `gedit`, `gnome-terminal -e vim`, and `gvim`.
This entry does not apply to GMOCCAPY, as GMOCCAPY has an integrated editor.
* `PYVCP = /filename.xml` - The PyVCP panel description file.
See the <<cha:pyvcp,PyVCP Chapter>>for more information.
* `PYVCP_POSITION = BOTTOM` - The placement of the PyVCP panel in the AXIS user interface.
If this variable is omitted the panel will default to the right side.
The only valid alternative is BOTTOM. See the <<cha:pyvcp,PyVCP Chapter>> for more information.
The only valid alternative is `BOTTOM`. See the <<cha:pyvcp,PyVCP Chapter>> for more information.
* `LATHE = 1` - Any non-empty value (including "0") causes axis to use "lathe mode" with a top view and with Radius and Diameter on the DRO.
* `BACK_TOOL_LATHE = 1` - Any non-empty value (including "0") causes axis to use "back tool lathe mode" with inverted X axis.
* `FOAM = 1` - Any non-empty value (including "0") causes axis to change the display for foam-cutter mode.
Expand Down Expand Up @@ -882,7 +882,7 @@ LinuxCNC will not know your joint travel limits when using `NO_FORCE_HOMING = 1`
[[sub:ini:sec:axis-letter]]
=== [AXIS_<letter>] Section(((INI File,Sections,[AXIS_<letter>] Sections)))

The <letter> specifies one of: X Y Z A B C U V W
The _<letter>_ specifies one of: X Y Z A B C U V W

* `MAX_VELOCITY = 1.2` - Maximum velocity for this axis in <<sub:ini:sec:traj,machine units>> per second.
* `MAX_ACCELERATION = 20.0` - Maximum acceleration for this axis in machine units per second squared.
Expand All @@ -896,7 +896,7 @@ The <letter> specifies one of: X Y Z A B C U V W
For a rotary axis (A,B,C typ) with unlimited rotation having no `MAX_LIMIT` for that axis in the `[AXIS_`<letter>`]` section a value of 1e99 is used.
* `WRAPPED_ROTARY = 1` - When this is set to 1 for an ANGULAR axis the axis will move 0-359.999 degrees.
Positive Numbers will move the axis in a positive direction and negative numbers will move the axis in the negative direction.
* `LOCKING_INDEXER_JOINT = 4` - This value selects a joint to use for a locking indexer for the specified axis <letter>.
* `LOCKING_INDEXER_JOINT = 4` - This value selects a joint to use for a locking indexer for the specified axis _<letter>_.
In this example, the joint is 4 which would correspond to the B axis for a XYZAB system with trivkins (identity) kinematics.
When set, a G0 move for this axis will initiate an unlock with the `joint.4.unlock pin` then wait for the `joint.4.is-unlocked` pin then move the joint at the rapid rate for that joint.
After the move the `joint.4.unlock` will be false and motion will wait for `joint.4.is-unlocked` to go false.
Expand Down Expand Up @@ -950,12 +950,12 @@ For example, using trivkins with `coordinates=XZ`, the joint-axes relationships
* JOINT_0 = X
* JOINT_1 = Z

For more information on kinematics modules see the manpage: `$ man kins`
For more information on kinematics modules see the manpage 'kins' (on the UNIX terminal type `man kins`).

* `TYPE = LINEAR` - The type of joint, either `LINEAR` or `ANGULAR`.
* `UNITS = INCH` - (((UNITS)))
If specified, this setting overrides the related `[TRAJ] UNITS` setting.
(e.g., `[TRAJ]LINEAR_UNITS` if the `TYPE` of this joint is `LINEAR`, `[TRAJ]ANGULAR_UNITS` if the `TYPE` of this joint is `ANGULAR`)
If specified, this setting overrides the related `[TRAJ] UNITS` setting,
e.g., `[TRAJ]LINEAR_UNITS` if the `TYPE` of this joint is `LINEAR`, `[TRAJ]ANGULAR_UNITS` if the `TYPE` of this joint is `ANGULAR`.
* `MAX_VELOCITY = 1.2` - Maximum velocity for this joint in <<sub:ini:sec:traj,machine units>> per second.
* `MAX_ACCELERATION = 20.0` - Maximum acceleration for this joint in machine units per second squared.
* `BACKLASH = 0.0000` - (((Backlash))) Backlash in machine units.
Expand Down Expand Up @@ -1067,15 +1067,15 @@ These parameters are Homing related, for a better explanation read the <<cha:hom
When it is yes, it will affect the kind of home pattern used.
Currently, you can't home to index with steppers unless you're using StepGen in velocity mode and PID.
* `HOME_INDEX_NO_ENCODER_RESET = NO` -
Use YES if the encoder used for this joint does not reset its counter when an index pulse is detected after assertion of the joint index_enable HAL pin.
Use YES if the encoder used for this joint does not reset its counter when an index pulse is detected after assertion of the joint `index_enable` HAL pin.
Applicable only for `HOME_USE_INDEX = YES`.
* `HOME_IGNORE_LIMITS = NO` -
When you use the limit switch as a home switch and the limit switch this should be set to YES.
When set to YES the limit switch for this joint is ignored when homing.
You must configure your homing so that at the end of your home move the home/limit switch is not in the toggled state you will get a limit switch error after the home move.
* `HOME_IS_SHARED =` _<n>_ -
If the home input is shared by more than one joint set <n> to 1 to prevent homing from starting if the one of the shared switches is already closed.
Set <n> to 0 to permit homing if a switch is closed.
If the home input is shared by more than one joint set _<n>_ to 1 to prevent homing from starting if the one of the shared switches is already closed.
Set _<n>_ to 0 to permit homing if a switch is closed.
* `HOME_ABSOLUTE_ENCODER = 0` | `1` | `2` - Used to indicate the joint uses an absolute encoder.
At a request for homing, the current joint value is set to the `HOME_OFFSET` value.
If the `HOME_ABSOLUTE_ENCODER` setting is 1, the machine makes the usual final move to the `HOME` value.
Expand Down Expand Up @@ -1332,7 +1332,7 @@ The value of _num_spindles_ is set by `[TRAJ]SPINDLES=` .
There is usually no need to change this number.
* `TOOL_TABLE = tool.tbl` - The file which contains tool information, described in the User Manual.
* `DB_PROGRAM = db_program` - Path to an executable program that manages tool data.
(When a DB_PROGRAM is specified, a TOOL_TABLE entry is ignored)
When a DB_PROGRAM is specified, a TOOL_TABLE entry is ignored.
* `TOOL_CHANGE_POSITION = 0 0 2` -
Specifies the XYZ location to move to when performing a tool change if three digits are used.
Specifies the XYZABC location when 6 digits are used.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/config/stepper.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ standard_pinout.hal gets executed/interpreted:
* The Parport driver gets loaded (see the <<cha:parport,Parport Chapter>> for details).
* The read & write functions of the parport driver get assigned to the
base thread footnote:[the fastest thread in the LinuxCNC setup, usually ther
code gets executed every few tens of microseconds].
code gets executed every few tens of microseconds.].
* The step & direction signals for axes X, Y, Z get linked to pins on the
parport.
* Further I/O signals get connected (estop loopback, toolchanger loopback).
Expand Down
2 changes: 1 addition & 1 deletion docs/src/gui/qtdragon.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ qtdragon.spindle-volts
----

This bit pin is an output to the spindle control to pause it. +
You would connect it to spindle.0.inhibit.
You would connect it to `spindle.0.inhibit`.

[source,{hal}]
----
Expand Down
8 changes: 4 additions & 4 deletions docs/src/gui/qtvcp-widgets.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2919,20 +2919,20 @@ NGCGUI_SUBFILE = qpocket.ngc
==== Buttons

* 'NEW TAB' -adds a new blank tab to ngcgui
* 'SELECT PREAMBLE' -select a file that add preamble gcode
* 'SELECT PREAMBLE' -select a file that add preamble G-code
* 'SELECT SUBFILE' -select a ngcgui subroutine file
* 'SELECT POST' -select a file that add post gcode
* 'SELECT POST' -select a file that add post G-code
* 'REREAD FILE' -reload the subroutine file
* 'CREATE FEATURE' -add feature to the list
* 'RESTART FEATURE' - remove all features from the list
* 'FINALIZE GCODE' -create the full gcode and send it to linuxcnc/a file
* 'FINALIZE GCODE' -create the full G-code and send it to LinuxCNC/a file

==== Adding Custom Subroutines
You can create your own subroutines for use with ngcgui. +
they must follow these rules:

* For creating a subroutine for use with NGCGUI, the filename and the subroutine name must be the same.
* The subroutine must be in a folder within linuxcnc's INI designated search path
* The subroutine must be in a folder within LinuxCNC's INI designated search path.
* On the first line there may be a comment of type info:
* The subroutine must be surrounded by the sub and endsub tags.
* The variables used must be numbered variables and must not skip number.
Expand Down
6 changes: 3 additions & 3 deletions docs/src/gui/qtvcp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ It displays a _`.ui` file built with Qt Designer_ screen editor
and combines this with _Python programming_ to create a GUI screen for running a CNC machine.

QtVCP is completely _customizable_: you can add different buttons and status LEDs etc.,
or add python code for even finer grain customization.
or add Python code for even finer grain customization.

== Showcase

Expand Down Expand Up @@ -201,9 +201,9 @@ QtVCP can also be customized with _Qt stylesheets (QSS)_ using CSS.

=== Local Files

If present, local UI/QSS/python files in the configuration folder will be loaded instead of the stock UI files.
If present, local UI/QSS/Python files in the configuration folder will be loaded instead of the stock UI files.

Local UI/QSS/python files allow you to use your customized designs rather than the default screens.
Local UI/QSS/Python files allow you to use your customized designs rather than the default screens.

QtVCP will look for a folder named <screen_name> (in the launched configuration folder that holds the INI file).

Expand Down
10 changes: 5 additions & 5 deletions docs/src/hal/basic-hal.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ net signal-name pin-name <optional arrow> <optional second pin-name>
net home-x joint.0.home-sw-in <= parport.0.pin-11-in
----

In the above example 'home-x' is the signal name, 'joint.0.home-sw-in' is a 'Direction IN' pin, '<=' is the optional direction arrow, and 'parport.0.pin-11-in' is a 'Direction OUT' pin.
In the above example `home-x` is the signal name, `joint.0.home-sw-in` is a 'Direction IN' pin, `<=` is the optional direction arrow, and `parport.0.pin-11-in` is a 'Direction OUT' pin.
This may seem confusing but the in and out labels for a parallel port pin indicates the physical way the pin works not how it is handled in HAL.

A pin can be connected to a signal if it obeys the following rules:
Expand Down Expand Up @@ -234,7 +234,7 @@ These commands are included so older configurations will still work.

==== linksp (deprecated)

The command 'linksp' creates a 'connection' between a signal and one pin.
The command `linksp` creates a 'connection' between a signal and one pin.

.linksp Syntax and Example
[source,{hal}]
Expand All @@ -243,12 +243,12 @@ linksp <signal-name> <pin-name>
linksp X-step parport.0.pin-02-out
----

*The 'linksp' command has been superseded by the 'net' command.*
*The `linksp` command has been superseded by the `net` command.*

==== linkps (deprecated)

The command `linkps` creates a 'connection' between one pin and one signal.
It is the same as linksp but the arguments are reversed.
It is the same as `linksp` but the arguments are reversed.

.linkps Syntax and Example
[source,{hal}]
Expand Down Expand Up @@ -520,7 +520,7 @@ Which updates the `weighted_sum` component.
In the following example, a copy of the AXIS HAL configuration window, bits '0' and '2' are TRUE, they have no offset.
The weight ('weight') of bit 0 is 1, that of bit 2 is 4, so the sum is 5.

.`weighted_sum` Example component Pin for weighted sum.s
.`weighted_sum` Example component Pin for weighted sums.
[width="90%",options="header"]
|===
|Owner|Type |Dir |Value |Name
Expand Down
6 changes: 3 additions & 3 deletions docs/src/hal/haltcl.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ Because INI files can repeat the same ITEM in the same SECTION multiple times, `
When there is just one value and it is a simple value (all values that are just letters and numbers without whitespace are in this group),
then it is possible to treat `$::SECTION(ITEM)` as though it is not a list.

When the value could contain special characters--quote characters, curly-brace characters, embedded whitespace, and other characters that have special meaning in Tcl.
It is necessary to distinguish between the list of values and the initial (and possibly only) value in the list.
When the value could contain special characters (quote characters, curly-brace characters, embedded whitespace, and other characters that have special meaning in Tcl)
then it is necessary to distinguish between the list of values and the initial (and possibly only) value in the list.

In Tcl, this is written `[lindex $::SECTION(ITEM) 0]`.

Expand Down Expand Up @@ -197,7 +197,7 @@ MAXACCEL = 10.0
STEPGEN_MAXACCEL = 10.5
----

With `haltcl`, you can use Tcl commands to do the computation and eliminate the STEPGEN_MAXACCEL INI file item altogether:
With `haltcl`, you can use Tcl commands to do the computation and eliminate the `STEPGEN_MAXACCEL` INI file item altogether:

[source,tcl]
----
Expand Down
Loading

0 comments on commit 2df5e87

Please sign in to comment.