You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/plasma/qtplasmac.adoc
+97-74Lines changed: 97 additions & 74 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@
12
12
13
13
== Preamble
14
14
15
-
*Except where noted, this guide assumes the user is using the latest version of QtPlasmaC.*
16
-
*Version history can be seen by visiting this https://htmlpreview.github.io/?https://github.com/LinuxCNC/linuxcnc/blob/master/share/qtvcp/screens/qtplasmac/versions.html[link] which will show the latest available version.*
17
-
*The installed QtPlasmaC version is displayed in the title bar.*
18
-
*See <<plasma:update,Update QtPlasmaC>> for information on updating QtPlasmaC.*
15
+
Except where noted, this guide assumes the user is using the latest version of QtPlasmaC.
16
+
Version history can be seen by visiting this https://htmlpreview.github.io/?https://github.com/LinuxCNC/linuxcnc/blob/master/share/qtvcp/screens/qtplasmac/versions.html[link] which will show the latest available version.
17
+
The installed QtPlasmaC version is displayed in the title bar.
18
+
See <<plasma:update,Update QtPlasmaC>> for information on updating QtPlasmaC.
19
19
20
20
== License
21
21
@@ -29,7 +29,7 @@ The QtPlasmaC GUI supports up to five axes and uses the QtVCP infrastructure pro
29
29
30
30
The standard theme is based on a design by user "pinder" on the LinuxCNC Forum and the colors are able to be changed by the user.
31
31
32
-
The QtPlasmaC GUI will run on any hardware that is supported by LinuxCNC provided there are enough hardware I/O pins to fulfill the requirements of a plasma configuration.
32
+
The QtPlasmaC GUI will run on any hardware that is supported by LinuxCNC v2.9 or later provided there are enough hardware I/O pins to fulfill the requirements of a plasma configuration.
33
33
34
34
There are three available formats:
35
35
@@ -58,26 +58,26 @@ It is possible to install and run LinuxCNC on a variety of Linux distributions h
58
58
59
59
=== If The User Does Not Have Linux Installed
60
60
61
-
Installation instructions are available at: link:../getting-started/getting-linuxcnc.html
61
+
Installation instructions are available from link:../getting-started/getting-linuxcnc.html[here].
62
62
63
63
Following these instructions will yield a machine with the current stable branch (v2.8) of LinuxCNC on Debian Buster.
64
64
65
65
=== Package Installation (Buildbot) If The User Has Linux with LinuxCNC v2.8
66
66
67
-
A package installation (Buildbot) uses prebuilt packages from the LinuxCNC Buildbot, instructions for upgrading from 2.8 to 2.9 are available at: http://buildbot.linuxcnc.org
67
+
A package installation (Buildbot) uses prebuilt packages from the LinuxCNC Buildbot, instructions for upgrading from 2.8 to 2.9 or later are available at: http://buildbot.linuxcnc.org
68
68
69
-
Following these instructions by using the below stanzas will upgrade the machine to the last LinuxCNC Buildbot build master branch (v2.9) of LinuxCNC. This may not always be the latest version of master branch (v2.9) as from time to time the LinuxCNC Buildbot may stop due to errors.
69
+
Following these instructions by using the below stanzas will upgrade the machine to the last LinuxCNC Buildbot build of LinuxCNC v2.9. This may not always be the latest version though, as from time to time the LinuxCNC Buildbot may stop due to errors.
70
70
71
71
----
72
-
deb http://buildbot.linuxcnc.org/ buster master-rtpreempt
=== Run In Place Installation If The User Has Linux with LinuxCNC v2.8
77
77
78
-
A run in place installation runs LinuxCNC from a locally compiled version usually located at ~/linuxcnc-dev, instructions for building a run in place installation are available at: link:../code/building-linuxcnc.html
78
+
A run in place installation runs LinuxCNC from a locally compiled version usually located at ~/linuxcnc-dev, instructions for building a run in place installation are available from link:../code/building-linuxcnc.html[here].
79
79
80
-
Following these instructions will install the latest master branch (v2.9) of LinuxCNC.
80
+
Following these instructions will install the latest master branch (v2.10) of LinuxCNC.
81
81
82
82
== Creating A QtPlasmaC Configuration
83
83
@@ -214,14 +214,16 @@ it is highly recommended to install a switch on the floating head as a backup me
214
214
LinuxCNC provides two configuration wizards which can be used to build a machine configuration.
215
215
The choice of these wizards is dependent on the hardware used to control the machine.
216
216
217
-
If the user wishes to use a Run In Place installation then prior to running one of the following commands they will need to run the following command from a terminal: +
218
-
`source ~/linuxcnc-dev/scripts/rip-environment` .
217
+
If the user wishes to use a Run In Place installation then prior to running one of the following commands they will need to run the following command from a terminal:
218
+
----
219
+
source ~/linuxcnc-dev/scripts/rip-environment
220
+
----
219
221
220
222
If using a Package installation then no additional action is required.
221
223
222
-
If using a parallel port, use the <<cha:stepconf-wizard,StepConf wizard>> by running the `stepconf` command in a terminal window or launching it using the *Application > CNC > StepConf Wizard* desktop menu entry.
224
+
If using a parallel port, use the <<cha:stepconf-wizard,StepConf wizard>> by running the `stepconf` command in a terminal window or launching it using the *Application -> CNC -> StepConf Wizard* desktop menu entry.
223
225
224
-
If using a Mesa Electronics board, use the <<cha:pncconf-wizard,PnCconf wizard>> by running the `pncconf` command in a terminal window or launching it using the *Application > CNC > PnCConf Wizard* desktop menu entry.
226
+
If using a Mesa Electronics board, use the <<cha:pncconf-wizard,PnCconf wizard>> by running the `pncconf` command in a terminal window or launching it using the *Application -> CNC -> PnCConf Wizard* desktop menu entry.
225
227
226
228
If using a Pico Systems board,
227
229
https://forum.linuxcnc.org/27-driver-boards/14977-pico-systems-faq[this LinuxCNC forum thread] may be helpful.
@@ -262,11 +264,15 @@ When the configuration is complete, the wizard will save a copy of the configura
262
264
263
265
The way the newly created QtPlasmaC configuration can be run from the command line slightly differs depending the way LinuxCNC was installed:
@@ -427,12 +437,16 @@ It will also copy the __<machine_name>___material.cfg file to the existing QtPla
427
437
428
438
To run the cfg2prefs conversion program, use the following instructions:
429
439
430
-
For a package installation (Buildbot) enter the following line in a terminal window: +
431
-
`qtplasmac-cfg2prefs`
440
+
For a package installation (Buildbot) enter the following line in a terminal window:
441
+
----
442
+
qtplasmac-cfg2prefs
443
+
----
432
444
433
-
For a run in place installation enter the following lines in terminal window: +
434
-
`source ~/linuxcnc-dev/scripts/rip-environment
435
-
qtplasmac-cfg2prefs`
445
+
For a run in place installation enter the following lines in terminal window:
446
+
----
447
+
source ~/linuxcnc-dev/scripts/rip-environment
448
+
qtplasmac-cfg2prefs
449
+
----
436
450
437
451
438
452
.`qtplasmac-cfg2prefs`
@@ -502,7 +516,7 @@ There are two different methods available to provide this minimum current if it
502
516
503
517
Schematics are shown at <<plasma:contact-load-schematics,contact load schematics>>.
504
518
505
-
More information on contact switching load can be seen on page III of link:https://www.finder-relais.net/en/Finder-general-technical-information-en.pdf[Finder Relays General Technical Information]
519
+
More information on contact switching load can be seen on page VI of the finder https://cdn.findernet.com/app/uploads/TecEN.pdf[General Technical Information] document.
506
520
507
521
[[plasma:calculations]]
508
522
.*Calculations:*
@@ -602,7 +616,7 @@ The _<machine_name>_.prefs file is plain text and may be edited with any text ed
602
616
603
617
QtPlasmaC has some specific _<machine_name>_.ini file variables as follows:
Some functions/features are only used for particular modes and are not displayed if they are not required by the chosen QtPlasmaC mode.
1013
1027
1014
-
Due to space constraints, the 4x3 GUI's <<plasma:parameters-tab,PARAMETERS Tab>> will be spread across two tabs, PARAMETERS and SETTINGS.
1015
-
1016
1028
This tab is used to display configuration parameters that are modified infrequently.
1017
1029
1018
1030
It is possible to disable this tab so machine settings cannot be modified by unauthorized personnel. This may be achieved either by wiring the pin to a physical key-switch or similar or it may also be set in a HAL file using the following command:
@@ -2987,7 +2999,7 @@ If unsure of the HAL pin's full name, the user may start LinuxCNC and run *HalSh
2987
2999
Styling of the QtPlasmaC GUI is done with Qt stylesheets and some customization may be achieved by the use of a custom stylesheet.
2988
3000
This allows the user to change some GUI items such as color, border, size, etc. It cannot change the layout of the GUI.
2989
3001
2990
-
Information on Qt stylesheets is available link:https://doc.qt.io/archives/qt-5.11/stylesheet.html[here].
3002
+
Information on Qt stylesheets is available https://doc.qt.io/archives/qt-5.11/stylesheet.html[here].
2991
3003
2992
3004
There are two methods available to apply custom styles:
2993
3005
@@ -3886,12 +3898,16 @@ that will show all available ports and can also be used to test communications w
3886
3898
3887
3899
To use the test script follow these instructions:
3888
3900
3889
-
For a package installation (Buildbot) enter the following command in a terminal window: +
3890
-
`pmx485-test`
3901
+
For a package installation (Buildbot) enter the following command in a terminal window:
3902
+
----
3903
+
pmx485-test
3904
+
----
3891
3905
3892
-
For a run in place installation enter the following two commands in a terminal window: +
3893
-
`source ~/linuxcnc-dev/scripts/rip-environment +
3894
-
pmx485-test`
3906
+
For a run in place installation enter the following two commands in a terminal window:
3907
+
----
3908
+
source ~/linuxcnc-dev/scripts/rip-environment
3909
+
pmx485-test
3910
+
----
3895
3911
3896
3912
The gas pressure units display (psi or bar) is determined by the data received during initial setup of the communication link
3897
3913
and is then shown next to the Gas Pressure setting in the MATERIAL section of the <<plasma:parameters-tab,PARAMETERS Tab>>.
@@ -3911,8 +3927,10 @@ TIP: If PowerMax communications is active then selecting <<plasma:mesh-mode,Mesh
3911
3927
To use the PowerMax communications feature it is necessary to have the Python pyserial module installed. +
3912
3928
If pyserial is not installed an error message will be displayed.
3913
3929
3914
-
To install pyserial, enter the following command into a terminal window: +
3915
-
`sudo apt install python-serial`
3930
+
To install pyserial, enter the following command into a terminal window:
3931
+
----
3932
+
sudo apt install python-serial
3933
+
----
3916
3934
3917
3935
A typical <<plasma:rs485_connections,connection diagram>> is shown in the appendix of this document as well as confirmed working interfaces.
3918
3936
@@ -3924,8 +3942,6 @@ To create and or edit a translation file requires that LinuxCNC has been install
3924
3942
3925
3943
The following assumes that the linuxcnc git directory is ~/linuxcnc-dev.
3926
3944
3927
-
The *$* indicates a terminal prompt.
3928
-
3929
3945
All language files are kept in ~/linuxcnc-dev/share/screens/qtplasmac/languages.
3930
3946
3931
3947
The qtplasmac.py file is a Python version of the GUI file used for translation purposes.
@@ -3936,47 +3952,55 @@ These are the files that require creating/editing for each language.
3936
3952
The .qm files are the compiled translation files used by pyqt.
3937
3953
3938
3954
The language is determined by an underscore plus the first two letters of the locale,
3939
-
for example if an Italian translation was being done then it would be "\_it".
3940
-
It will be referred to as "_xx" in this document, so "qtplasmac_xx.ts" in this document would actually be "qtplasmac_it.ts" for an Italian translation.
3955
+
for example if an Italian translation was being done then it would be `_it`.
3956
+
It will be referred to as `_xx` in this document, so `qtplasmac_xx.ts` in this document would actually be `qtplasmac_it.ts` for an Italian translation.
3941
3957
3942
-
The default locale for QtPlasmaC is "_en" which means that any translation files created as "qtplasmac_en.*" will not be used for translations.
3958
+
The default locale for QtPlasmaC is `_en` which means that any translation files created as `qtplasmac_en.*` will not be used for translations.
3943
3959
3944
-
If any of the required utilities (pyuic5, pylupdate5, linguist) are not installed then the user will need to install pyqt5-dev-tools: +
3945
-
`sudo apt install pyqt5-dev-tools`
3960
+
If any of the required utilities (pyuic5, pylupdate5, linguist) are not installed then the user will need to install pyqt5-dev-tools:
cd ~/linuxcnc-dev/share/qtvcp/screens/qtplasmac/languages
3968
+
----
3969
+
3970
+
If any text changes have been made to the GUI then run the following to update the GUI Python file:
3971
+
----
3972
+
pyuic5 ../qtplasmac.ui > qtplasmac.py
3973
+
----
3949
3974
3950
-
If any text changes have been made to the GUI then run the following to update the GUI Python file: +
3951
-
`pyuic5 ../qtplasmac.ui > qtplasmac.py`
3952
-
+
3953
3975
The user can either create a new translation source file for a non-existing language translation
3954
3976
or modify an existing translation source file due to changes being made to some text in a QtPlasmaC source file.
3955
3977
If modifying an existing translation that has had no source file changes then this step is not required.
3956
3978
3957
-
Create or edit a .ts file: +
3958
-
`langfile xx`
3959
-
+
3979
+
Create or edit a .ts file:
3980
+
----
3981
+
langfile xx
3982
+
----
3983
+
3960
3984
[NOTE]
3961
3985
this command is a script which runs the following: $ pylupdate5 *.py ../*.py ../../../../../lib/python/qtvcp/lib/qtplasmac/*.py -ts qtplasmac_xx.ts
3962
3986
3963
-
The editing of the translation is done with the linguist application: +
3964
-
`linguist`
3987
+
The editing of the translation is done with the linguist application:
3988
+
----
3989
+
linguist
3990
+
----
3965
3991
3966
3992
. Open the TS file and translate the strings
3967
3993
3968
3994
It is not necessary to provide a translation for every text string, if no translation is specified for a string then the original string will be used in the application.
3969
3995
The user needs to be careful with the length of strings that appear on widgets as space is limited. If possible try to make the translation no longer than the original.
3970
3996
3971
-
When editing is complete save the file:
3972
-
----
3973
-
File > Save
3974
-
----
3997
+
When editing is complete save the file: +
3998
+
`File -> Save`
3999
+
4000
+
4001
+
Then create the .qm file: +
4002
+
`File -> Release`
3975
4003
3976
-
Then create the .qm file:
3977
-
----
3978
-
File > Release
3979
-
----
3980
4004
3981
4005
Then create links to the compiled .qm file for the other QtPlasmaC GUIs.
3982
4006
----
@@ -4080,10 +4104,10 @@ Options: +
4080
4104
0 - Create temporary default +
4081
4105
1 - Add if not existing +
4082
4106
2 - Overwrite if existing else add new |mandatory parameters: +
0 commit comments