This commit is contained in:
Thaddeus-Maximus
2026-04-03 15:58:58 -05:00
commit f3953d66ae
1516 changed files with 586639 additions and 0 deletions

339
configs/sim.qtplasmac/LICENSE Executable file
View File

@@ -0,0 +1,339 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

61
configs/sim.qtplasmac/M190 Executable file
View File

@@ -0,0 +1,61 @@
#!/usr/bin/python3
'''
M190
Copyright (C) 2019, 2020, 2021 Phillip A Carter
Copyright (C) 2020, 2021 Gregory D Carl
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
'''
import sys
import time
from subprocess import run as RUN
materialNum = int(float(sys.argv[1]))
timeout = 0.5
def get_material():
response = RUN(['halcmd', 'getp', 'qtplasmac.material_change_number'], capture_output = True)
return int(response.stdout.decode())
def set_material(material):
RUN(['halcmd', 'setp', 'qtplasmac.material_change_number', '{}'.format(material)])
def get_change():
response = RUN(['halcmd', 'getp', 'qtplasmac.material_change'], capture_output = True)
return int(response.stdout.decode())
def set_change(value):
RUN(['halcmd', 'setp', 'qtplasmac.material_change', '{}'.format(value)])
def set_timeout():
RUN(['halcmd', 'setp', 'qtplasmac.material_change_timeout', 1])
try:
if materialNum != get_material():
set_change(1)
set_material(materialNum)
else:
set_change(3)
start = time.time()
while get_change() == 1 or get_change() == 3:
if time.time() > start + timeout:
set_timeout()
break
set_change(0)
except:
pass
exit()

8
configs/sim.qtplasmac/README Executable file
View File

@@ -0,0 +1,8 @@
QtPlasmaC: a GUI for plasma cutting tables which utilises the plasmac component.
QtPlasmaC is built using the QtVCP infrastructure included in LinuxCNC and is loosely based on a theme by user 'pinder' from the LinuxCNC forum.
There are three screen formats available in both metric and imperial units:
1. qtplasmac_l - 16:9 format, minimum resolution 1366x768
2. qtplasmac_p - 9:16 format,minimum resolution 768x1366
3. qtplasmac_s - 4:3 minimum resolution 1024x768

View File

@@ -0,0 +1,15 @@
# Include your custom HAL commands here
# This file will not be overwritten when you run PNCconf again
# ---COMMON PLASMAC DEBOUNCE---
# for the float and ohmic inputs each increment in delay is
# is a 0.001mm (0.00004") increase in any probed height result
setp db_float.delay 5
setp db_ohmic.delay 5
setp db_breakaway.delay 5
setp db_arc-ok.delay 5
# ---ARC VOLTAGE LOWPASS FILTER---
# Only use this if comprehensive testing shows that it is required
#setp plasmac.lowpass-frequency 0

View File

@@ -0,0 +1,36 @@
# custom filtering extensions
'''
These methods are applied by the following procedure:
define the method with an argument for the incoming data
add any required code to manipulate the data
return the resultant data
attach the new method
'''
# for custom processing before standard processing
#def custom_pre_process(data):
# your code here...
# return(line)
#self.custom_pre_process = custom_pre_process
# for custom parsing before standard parsing
#def custom_pre_parse(data):
# your code here...
# return(data)
#self.custom_pre_parse = custom_pre_parse
# for custom parsing after standard parsing
#def custom_post_parse(data):
# your code here...
# return(data)
#self.custom_post_parse = custom_post_parse
# override the original parse_code procedure
#def parse_code(data):
# your code here...
# return(data)
#self.parse_code = parse_code

View File

@@ -0,0 +1,3 @@
# Include your custom_postgui HAL commands here
# This file will not be overwritten when you run PNCconf again

View File

View File

@@ -0,0 +1,119 @@
5161 0.000000
5162 0.000000
5163 0.000000
5164 0.000000
5165 0.000000
5166 0.000000
5167 0.000000
5168 0.000000
5169 0.000000
5181 0.000000
5182 0.000000
5183 0.000000
5184 0.000000
5185 0.000000
5186 0.000000
5187 0.000000
5188 0.000000
5189 0.000000
5210 0.000000
5211 0.000000
5212 0.000000
5213 0.000000
5214 0.000000
5215 0.000000
5216 0.000000
5217 0.000000
5218 0.000000
5219 0.000000
5220 1.000000
5221 0.000000
5222 0.000000
5223 0.000000
5224 0.000000
5225 0.000000
5226 0.000000
5227 0.000000
5228 0.000000
5229 0.000000
5230 0.000000
5241 0.000000
5242 0.000000
5243 0.000000
5244 0.000000
5245 0.000000
5246 0.000000
5247 0.000000
5248 0.000000
5249 0.000000
5250 0.000000
5261 0.000000
5262 0.000000
5263 0.000000
5264 0.000000
5265 0.000000
5266 0.000000
5267 0.000000
5268 0.000000
5269 0.000000
5270 0.000000
5281 0.000000
5282 0.000000
5283 0.000000
5284 0.000000
5285 0.000000
5286 0.000000
5287 0.000000
5288 0.000000
5289 0.000000
5290 0.000000
5301 0.000000
5302 0.000000
5303 0.000000
5304 0.000000
5305 0.000000
5306 0.000000
5307 0.000000
5308 0.000000
5309 0.000000
5310 0.000000
5321 0.000000
5322 0.000000
5323 0.000000
5324 0.000000
5325 0.000000
5326 0.000000
5327 0.000000
5328 0.000000
5329 0.000000
5330 0.000000
5341 0.000000
5342 0.000000
5343 0.000000
5344 0.000000
5345 0.000000
5346 0.000000
5347 0.000000
5348 0.000000
5349 0.000000
5350 0.000000
5361 0.000000
5362 0.000000
5363 0.000000
5364 0.000000
5365 0.000000
5366 0.000000
5367 0.000000
5368 0.000000
5369 0.000000
5370 0.000000
5381 0.000000
5382 0.000000
5383 0.000000
5384 0.000000
5385 0.000000
5386 0.000000
5387 0.000000
5388 0.000000
5389 0.000000
5390 0.000000

View File

@@ -0,0 +1,119 @@
5161 0.000000
5162 0.000000
5163 0.000000
5164 0.000000
5165 0.000000
5166 0.000000
5167 0.000000
5168 0.000000
5169 0.000000
5181 0.000000
5182 0.000000
5183 0.000000
5184 0.000000
5185 0.000000
5186 0.000000
5187 0.000000
5188 0.000000
5189 0.000000
5210 0.000000
5211 0.000000
5212 0.000000
5213 0.000000
5214 0.000000
5215 0.000000
5216 0.000000
5217 0.000000
5218 0.000000
5219 0.000000
5220 1.000000
5221 0.000000
5222 0.000000
5223 0.000000
5224 0.000000
5225 0.000000
5226 0.000000
5227 0.000000
5228 0.000000
5229 0.000000
5230 0.000000
5241 0.000000
5242 0.000000
5243 0.000000
5244 0.000000
5245 0.000000
5246 0.000000
5247 0.000000
5248 0.000000
5249 0.000000
5250 0.000000
5261 0.000000
5262 0.000000
5263 0.000000
5264 0.000000
5265 0.000000
5266 0.000000
5267 0.000000
5268 0.000000
5269 0.000000
5270 0.000000
5281 0.000000
5282 0.000000
5283 0.000000
5284 0.000000
5285 0.000000
5286 0.000000
5287 0.000000
5288 0.000000
5289 0.000000
5290 0.000000
5301 0.000000
5302 0.000000
5303 0.000000
5304 0.000000
5305 0.000000
5306 0.000000
5307 0.000000
5308 0.000000
5309 0.000000
5310 0.000000
5321 0.000000
5322 0.000000
5323 0.000000
5324 0.000000
5325 0.000000
5326 0.000000
5327 0.000000
5328 0.000000
5329 0.000000
5330 0.000000
5341 0.000000
5342 0.000000
5343 0.000000
5344 0.000000
5345 0.000000
5346 0.000000
5347 0.000000
5348 0.000000
5349 0.000000
5350 0.000000
5361 0.000000
5362 0.000000
5363 0.000000
5364 0.000000
5365 0.000000
5366 0.000000
5367 0.000000
5368 0.000000
5369 0.000000
5370 0.000000
5381 0.000000
5382 0.000000
5383 0.000000
5384 0.000000
5385 0.000000
5386 0.000000
5387 0.000000
5388 0.000000
5389 0.000000
5390 0.000000

View File

@@ -0,0 +1,16 @@
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000
0.00000000000000000

View File

@@ -0,0 +1,2 @@
T0 P1 X0 Y0 ;torch
T1 P2 X0 Y0 ;scribe

114
configs/sim.qtplasmac/machine.tcl Executable file
View File

@@ -0,0 +1,114 @@
# GENERIC HAL FILE FOR QTPLASMAC SIM CONFIGS
# ---SET CONSTANTS---
set numJoints $::KINS(JOINTS)
set z-axis [string first "z" [string tolower $::TRAJ(COORDINATES)]]
# ---COMPONENTS---
loadrt $::KINS(KINEMATICS)
loadrt $::EMCMOT(EMCMOT) servo_period_nsec=$::EMCMOT(SERVO_PERIOD) num_joints=$numJoints num_spindles=$::TRAJ(SPINDLES)
loadrt plasmac
for {set jnum 0} {$jnum < $numJoints} {incr jnum} {
loadrt pid names=sim:${jnum}_pid
loadrt mux2 names=sim:${jnum}_mux
loadrt ddt names=sim:${jnum}_vel,sim:${jnum}_accel
loadrt sim_home_switch names=sim:${jnum}_switch
}
loadrt hypot names=sim:hyp_xy,sim:hyp_xyz
# ---THREAD LINKS---
addf motion-command-handler servo-thread
addf motion-controller servo-thread
# don't add the plasmac component if it already exists
if {[hal list pin plasmac.mode] == {}} {
addf plasmac servo-thread
}
for {set jnum 0} {$jnum < $numJoints} {incr jnum} {
addf sim:${jnum}_pid.do-pid-calcs servo-thread
addf sim:${jnum}_mux servo-thread
addf sim:${jnum}_vel servo-thread
addf sim:${jnum}_accel servo-thread
}
for {set jnum 0} {$jnum < $numJoints} {incr jnum} {
addf sim:${jnum}_switch servo-thread
}
# ---SETP COMMANDS FOR UNCONNECTED INPUT PINS---
for {set jnum 0} {$jnum < $numJoints} {incr jnum} {
setp sim:${jnum}_pid.Pgain 0
setp sim:${jnum}_pid.Dgain 0
setp sim:${jnum}_pid.Igain 0
setp sim:${jnum}_pid.FF0 1.0
setp sim:${jnum}_pid.FF1 0
setp sim:${jnum}_pid.FF2 0
}
# ---MACHINE NET CONNECTIONS---
for {set jnum 0} {$jnum < $numJoints} {incr jnum} {
net sim:j${jnum}-acc sim:${jnum}_accel.out
net sim:j${jnum}-enable joint.${jnum}.amp-enable-out => sim:${jnum}_pid.enable
net sim:j${jnum}-homesw sim:${jnum}_switch.home-sw => joint.${jnum}.home-sw-in
net sim:j${jnum}-on-pos sim:${jnum}_pid.output => sim:${jnum}_mux.in1
net sim:j${jnum}-pos-cmd joint.${jnum}.motor-pos-cmd => sim:${jnum}_pid.command
net sim:j${jnum}-pos-fb sim:${jnum}_mux.out => sim:${jnum}_mux.in0 sim:${jnum}_switch.cur-pos sim:${jnum}_vel.in joint.${jnum}.motor-pos-fb
net sim:j${jnum}-vel sim:${jnum}_vel.out => sim:${jnum}_accel.in
}
net sim:xy-vel sim:hyp_xy.out
net sim:xyz-vel sim:hyp_xyz.out
net sim:enable motion.motion-enabled
for {set jnum 0} {$jnum < $numJoints} {incr jnum} {
net sim:enable sim:${jnum}_mux.sel
}
foreach {x y z } {0 0 0 } {}
for {set jnum 0} {$jnum < $numJoints} {incr jnum} {
if {[string index $::TRAJ(COORDINATES) $jnum] == "X"} {
if {$x == 0} {
incr x
net sim:j${jnum}-vel => sim:hyp_xy.in0 sim:hyp_xyz.in0
}
} elseif {[string index $::TRAJ(COORDINATES) $jnum] == "Y"} {
if {$y == 0} {
incr y
net sim:j${jnum}-vel => sim:hyp_xy.in1 sim:hyp_xyz.in1
}
} elseif {[string index $::TRAJ(COORDINATES) $jnum] == "Z"} {
if {$z == 0} {
incr z
net sim:j${jnum}-vel => sim:hyp_xyz.in2
}
}
}
# ---PLASMA INPUT DEBOUNCE---
loadrt dbounce names=db_breakaway,db_float,db_ohmic,db_arc-ok
addf db_float servo-thread
addf db_ohmic servo-thread
addf db_breakaway servo-thread
addf db_arc-ok servo-thread
# ---Z AXIS FEEDBACK---
net plasmac:axis-position joint.${z-axis}.pos-fb => plasmac.axis-z-position
# ---POWERMAX RS485 COMPONENT---
#loadusr -Wn pmx485 pmx485 /dev/ttyUSB0
# ---TOOL CHANGE PASSTHROUGH
net tool-number <= iocontrol.0.tool-prep-number
net tool-change-loopback iocontrol.0.tool-change => iocontrol.0.tool-changed
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
# ---QTPLASMAC ESTOP HANDLING---
loadrt or2 names=estop_or
loadrt not names=estop_not
addf estop_or servo-thread
addf estop_not servo-thread
net sim:estop-raw estop_or.out estop_not.in
net sim:estop-out estop_not.out iocontrol.0.emc-enable-in
if {[info exists ::QTPLASMAC(ESTOP_TYPE)]} {
if {$::QTPLASMAC(ESTOP_TYPE) == 2} {
loadrt not names=estop_not_1
addf estop_not_1 servo-thread
net sim:estop-1-raw iocontrol.0.user-enable-out => estop_not_1.in
net sim:estop-1-in estop_not_1.out => estop_or.in1
}
}

View File

@@ -0,0 +1,3 @@
--- QtVCP Screen Started on: Sat, Aug 03 2024 02:57:26 AM ---
--- qtplasmac-imperial - QtPlasmaC v2.9-236.301, powered by QtVCP and LinuxCNC ---
Sat03 02:57: Tool 0: No Tool

View File

@@ -0,0 +1,2 @@
T0 P1 X0 Y0 ;torch
T1 P2 X0 Y0 ;scribe

View File

@@ -0,0 +1,152 @@
[GUI_OPTIONS]
Mode = 0
Estop type = 0
Autorepeat all = False
Flash error = False
Use keyboard shortcuts = False
Use soft keyboard = False
Show materials = True
Run from line = True
Tool tips = True
Exit warning = True
Exit warning text =
Preview cone size = 0.5
Preview grid size = 0.0
T view zoom scale = 1.0
Override jog inhibit via Z+ = False
Hide run = False
Hide pause = False
Hide abort = False
DRO position = bottom
Custom style = None
Default material = 0
[LASER_OFFSET]
X axis = -1.0
Y axis = 0.0
[CAMERA_OFFSET]
X axis = 1.0
Y axis = 0.0
Camera port = 0
[BUTTONS]
1 Name = OHMIC\TEST
1 Code = ohmic-test
2 Name = PROBE\TEST
2 Code = probe-test 10
3 Name = SINGLE\CUT
3 Code = single-cut
4 Name = NORMAL\CUT
4 Code = cut-type
5 Name = TORCH\PULSE
5 Code = torch-pulse .5
6 Name = FRAMING
6 Code = framing f40 usecurrentzheight
7 Name = CHANGE\CONS
7 Code = change-consumables X4 Y4 F120
8 Name = GOTO\HOME
8 Code = G53 G0 X#<_ini[joint_0]home> Y#<_ini[joint_1]home> Z#<_ini[joint_3]home>
9 Name = USER\MANUAL
9 Code = user-manual
10 Name =
10 Code =
11 Name =
11 Code =
12 Name =
12 Code =
13 Name =
13 Code =
14 Name =
14 Code =
15 Name =
15 Code =
16 Name =
16 Code =
17 Name =
17 Code =
18 Name =
18 Code =
19 Name =
19 Code =
20 Name =
20 Code =
[COLOR_OPTIONS]
Foreground = #ffee06
Highlight = #ffee06
LED = #ffee06
Background = #16160e
Background Alt = #36362e
Frames = #ffee06
Estop = #ff0000
Disabled = #b0b0b0
Preview = #000000
[ENABLE_OPTIONS]
THC enable = True
Corner lock enable = True
Void lock enable = False
Use auto volts = True
Ohmic probe enable = False
THC auto = False
[STATISTICS]
Cut time = 6.77
Paused time = 23.95
Probe time = 8.7
Program run time = 43.31
Torch on time = 6.91
Rapid time = 3.09
Cut length = 16.21
Pierce count = 2
[PLASMA_PARAMETERS]
Setup Feed Rate = 115.2
Arc Fail Timeout = 3
Arc OK High = 250
Arc OK Low = 60
Arc Maximum Starts = 3
Arc Voltage Offset = 0
Arc Voltage Scale = 1
Velocity Anti Dive Threshold = 90
Float Switch Travel = 0.06
Height Per Volt = 0.004
Void Sense Slope = 500
Ohmic Maximum Attempts = 0
Ohmic Probe Offset = 0
Pid P Gain = 10
Pid D Gain = 0
Pid I Gain = 0
Probe Feed Rate = 12.0
Probe Start Height = 1.0
Arc Restart Delay = 1
Safe Height = 1.0
Scribe Arming Delay = 0
Scribe On Delay = 0
Skip IHS Distance = 0
Spotting Threshold = 1
Spotting Time = 0
THC Delay = 0.5
THC Sample Counts = 50
THC Sample Threshold = 1
THC Threshold = 1
[OFFSET_PROBING]
X axis = 0
Y axis = 0
Delay = 0
[POWERMAX]
Port =
[CONVERSATIONAL]
Preamble = G20 G64P0.001 G40 G49 G80 G90 G92.1 G94 G97
Postamble = G20G64P0.001 G40 G49 G80 G90 G92.1 G94 G97
Origin = 0
Leadin = 0
Leadout = 0
Hole diameter = 1.25
Hole speed = 60
Grid Size = 0

View File

@@ -0,0 +1,15 @@
[MATERIAL_NUMBER_0]
NAME = Basic default Material
KERF_WIDTH = 0.04
PIERCE_HEIGHT = 0.12
PIERCE_DELAY = 0.1
PUDDLE_JUMP_HEIGHT = 0.0
PUDDLE_JUMP_DELAY = 0.0
CUT_HEIGHT = 0.04
CUT_SPEED = 40.0
CUT_AMPS = 45.0
CUT_VOLTS = 100.0
PAUSE_AT_END = 0.0
GAS_PRESSURE = 0.0
CUT_MODE = 1.0

View File

@@ -0,0 +1,151 @@
[GUI_OPTIONS]
Mode = 0
Estop type = 0
Autorepeat all = False
Flash error = False
Use keyboard shortcuts = False
Use soft keyboard = False
Show materials = True
Run from line = True
Tool tips = True
Exit warning = True
Exit warning text =
Preview cone size = 0.5
Preview grid size = 0.0
T view zoom scale = 1.0
Override jog inhibit via Z+ = False
Hide run = False
Hide pause = False
Hide abort = False
DRO position = bottom
Custom style = None
Default material = 0
[LASER_OFFSET]
X axis = -25.0
Y axis = 0.0
[CAMERA_OFFSET]
X axis = 25.0
Y axis = 0.0
Camera port = 0
[BUTTONS]
1 Name = OHMIC\TEST
1 Code = ohmic-test
2 Name = PROBE\TEST
2 Code = probe-test 10
3 Name = SINGLE\CUT
3 Code = single-cut
4 Name = NORMAL\CUT
4 Code = cut-type
5 Name = TORCH\PULSE
5 Code = torch-pulse .5
6 Name = FRAMING
6 Code = framing f1000 usecurrentzheight
7 Name = CHANGE\CONS
7 Code = change-consumables X100 Y100 F3000
8 Name = GOTO\HOME
8 Code = G53 G0 X#<_ini[joint_0]home> Y#<_ini[joint_1]home> Z#<_ini[joint_3]home>
9 Name = USER\MANUAL
9 Code = user-manual
10 Name =
10 Code =
11 Name =
11 Code =
12 Name =
12 Code =
13 Name =
13 Code =
14 Name =
14 Code =
15 Name =
15 Code =
16 Name =
16 Code =
17 Name =
17 Code =
18 Name =
18 Code =
19 Name =
19 Code =
20 Name =
20 Code =
[COLOR_OPTIONS]
Foreground = #ffee06
Highlight = #ffee06
LED = #ffee06
Background = #16160e
Background Alt = #36362e
Frames = #ffee06
Estop = #ff0000
Disabled = #b0b0b0
Preview = #000000
[ENABLE_OPTIONS]
THC enable = True
Corner lock enable = True
Void lock enable = False
Use auto volts = True
Ohmic probe enable = False
THC auto = False
[STATISTICS]
Cut time = 0
Paused time = 0
Probe time = 0
Program run time = 0
Torch on time = 0
Rapid time = 0
Cut length = 0
Pierce count = 0
[PLASMA_PARAMETERS]
Setup Feed Rate = 2880.0
Arc Fail Timeout = 3
Arc OK High = 250
Arc OK Low = 60
Arc Maximum Starts = 3
Arc Voltage Offset = 0
Arc Voltage Scale = 1
Velocity Anti Dive Threshold = 90
Float Switch Travel = 1.5
Height Per Volt = 0.1
Void Sense Slope = 500
Ohmic Maximum Attempts = 0
Ohmic Probe Offset = 0
Pid P Gain = 10
Pid D Gain = 0
Pid I Gain = 0
Probe Feed Rate = 300
Probe Start Height = 25
Arc Restart Delay = 1
Safe Height = 25
Scribe Arming Delay = 0
Scribe On Delay = 0
Skip IHS Distance = 0
Spotting Threshold = 1
Spotting Time = 0
THC Delay = 0.5
THC Sample Counts = 50
THC Sample Threshold = 1
THC Threshold = 1
[OFFSET_PROBING]
X axis = 0
Y axis = 0
Delay = 0
[POWERMAX]
Port =
[CONVERSATIONAL]
Preamble = G21 G64P0.25 G40 G49 G80 G90 G92.1 G94 G97
Postamble = G21 G64P0.25 G40 G49 G80 G90 G92.1 G94 G97
Origin = 0
Leadin = 0
Leadout = 0
Hole diameter = 32
Hole speed = 60
Grid Size = 0

View File

@@ -0,0 +1,939 @@
/****** DEFAULT ************/
* {
color: #ffee06;
background: #16160e;
font: 10pt DejaVuSans;
outline: none }
*:disabled {
color: #b0b0b0;
background: #16160e;
border-color: #b0b0b0 }
/****** FRAME ************/
#gcode_frame, #dro_frame, #file_button_frame,
#machine_frame, #button_frame, #edit_frame,
#preview_frame, #file_frame, #jog_frame,
#cut_rec_frame, #thc_frame, #sensor_frame,
#arc_frame, #control_frame, #config_frame,
#config_config, #arc_config, #thc_config,
#motion_config, #probe_config, #safety_config,
#scribe_config, #spotting_config, #utility_frame,
#gui_frame, #materials_frame, #camview_frame,
#conv_frame, #stats_frame, #pmx_stats_frame,
#machinelog_frame, #ub_frame, #sd_frame,
#webview_frame {
border: 1px solid #ffee06;
background: #16160e;
border-radius: 4px }
/****** LABEL ************/
#dro_label, #file_button_label,
#machine_label, #button_label, #edit_label,
#file_label, #jog_label, #cut_rec_label,
#thc_label, #sensor_label, #arc_label,
#control_label, #open_label, #mdi_label,
#config_conf_lbl, #arc_conf_lbl, #thc_conf_lbl,
#motion_conf_lbl, #probe_conf_lbl,
#safety_conf_lbl, #scribe_conf_lbl,
#spotting_conf_lbl, #utility_label, #gui_label,
#camview_label, #conv_label, #stats_label,
#pmx_stats_label, #machinelog_label {
color: #16160e;
background: #ffee06;
border-top-left-radius: 2px;
border-top-right-radius: 2px }
/****** MAX VELOCITY ************/
#max_offset_velocity_in {
font: 11pt }
/****** TOOLTIPS ************/
QToolTip {
font: 13px;
padding: 4 }
/****** MATERIAL LABEL ************/
#material_label {
color: #16160e;
background: #ffee06;
border-top-left-radius: 2px }
/****** VELOCITY LABELS ************/
#velocity_label {
color: #16160e;
background: #ffee06 }
#velocity_show {
color: #16160e;
background: #ffee06;
border-top-right-radius: 2px }
/****** QLINEEDITS ************/
QLineEdit {
border: 1px solid #ffee06;
border-radius: 4px;
height: 24px }
/****** DIALOGS ************/
QFileDialog {
min-width: 686 }
QFileDialog QListView {
border: 1px solid #ffee06;
border-radius: 4px }
QDialog {
border: 1px solid #ffee06;
border-radius: 4px;
margin: 4px }
QDialog QHeaderView::section {
background: #16160e;
border: 1px solid #ffee06;
border-radius: 4px;
font: italic;
margin: 1;
height: 20;
padding-top: 5 }
QDialog QListView {
font: 11pt }
QDialog QTreeView {
border: 1px solid #ffee06;
border-radius: 4px;
font: 11pt;
alternate-background-color: #36362e;
padding: 2px }
QDialog QTreeView::item {
height: 36px }
QDialog QTreeView::item:selected:active {
color: #16160e;
background-color: #ffee06 }
QDialog QTreeView::item:selected:!active {
color: #16160e;
background-color: #ffee06 }
QDialog QLabel {
font: 11pt }
QDialog QPushButton {
font: 11pt;
height: 30px;
width: 80px;
margin: 4 }
QDialog QLineEdit {
selection-color: #ffee06;
selection-background-color: #16160e;
font: 11pt;
height: 30px }
QDialog QComboBox {
font: 11pt;
height: 30px }
QDialog QDoubleSpinBox {
font: 11pt }
/****** BUTTON ************/
QPushButton, QToolButton {
border: 1px solid #ffee06;
border-radius: 4px }
QPushButton:pressed, QToolButton:pressed {
color: #16160e;
background: #ffee06 }
QPushButton:checked, QToolButton:checked {
color: #16160e;
background: #ffee06 }
QPushButton:checked:pressed, QToolButton:checked:pressed {
color: #ffee06;
background: #16160e }
/****** RESET BUTTONS ************/
#feed_label, #rapid_label,
#jogs_label, #height_reset {
border: none }
#feed_label:pressed, #rapid_label:pressed,
#jogs_label:pressed, #height_reset:pressed {
color: #ffee06;
background: #16160e }
/****** ESTOP BUTTON ************/
#estop,
#estop:checked:pressed,
#estop:disabled {
color: #16160e;
background: #ffee06;
border-color: #ffee06 }
#estop:pressed,
#estop:checked,
#estop:disabled:checked {
color: #16160e;
background: #ff0000;
border-color: #ff0000 }
/****** POWER BUTTON ************/
#power,
#power:checked:pressed {
color: #ffee06;
background: #16160e;
border-color: #ffee06 }
#power:disabled {
color: #b0b0b0;
background: #16160e;
border-color: #b0b0b0 }
#power:pressed,
#power:checked {
color: #16160e;
background: #ffee06;
border-color: #ffee06 }
/****** ERROR LABEL ************/
#error_label {
color: #ff0000;
}
/****** TOUCHOFF BUTTON<<<<<<<<<<<<*/
#touch_x, #touch_y, #touch_z, #touch_a, #touch_b {
font: 20pt 'DejaVuSans' }
/****** JOG BUTTON ************/
#jog_x_minus, #jog_x_plus,
#jog_y_minus, #jog_y_plus,
#jog_z_minus, #jog_z_plus,
#jog_a_minus, #jog_a_plus,
#jog_b_minus, #jog_b_plus {
background: #16160e;
border: none }
#jog_x_minus:pressed, #jog_x_plus:pressed,
#jog_y_minus:pressed, #jog_y_plus:pressed,
#jog_z_minus:pressed, #jog_z_plus:pressed,
#jog_a_minus:pressed, #jog_a_plus:pressed,
#jog_b_minus:pressed, #jog_b_plus:pressed {
background: #36362e }
/****** CUT_RECOVERY BUTTON ************/
#cut_rec_n, #cut_rec_s,
#cut_rec_e, #cut_rec_w {
background: #16160e;
border: none }
#cut_rec_ne, #cut_rec_nw,
#cut_rec_se, #cut_rec_sw {
background: #16160e;
border: 2px solid #16160e }
#cut_rec_n:pressed, #cut_rec_s:pressed,
#cut_rec_e:pressed, #cut_rec_w:pressed,
#cut_rec_ne:pressed, #cut_rec_nw:pressed,
#cut_rec_se:pressed, #cut_rec_sw:pressed {
background: #36362e }
/****** HEADERS WITH BUTTONS <<<<<<<<<<<<*/
/* LEFT */
#file_clear, #ub_save, #sd_save,
#save_plasma, #save_material {
color: #16160e;
background: #ffee06;
border: none;
border-top-left-radius: 2px;
border-top-right-radius: 0px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px }
#file_clear:disabled, #ub_save:disabled,
#sd_save:disabled, #save_plasma:disabled,
#save_material:disabled {
background: #b0b0b0 }
#file_clear:pressed, #ub_save:pressed,
#sd_save:pressed, #save_plasma:pressed,
#save_material:pressed {
color: #ffee06;
background: #16160e }
/* CENTER */
#file_open, #ub_label, #sd_label,
#materials_label, #new_material,
#delete_material, #config_label {
color: #16160e;
background: #ffee06;
border: none;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px }
#file_open:disabled, #materials_label:disabled,
#new_material:disabled, #delete_material:disabled {
background: #b0b0b0 }
#file_open:pressed, #materials_label:pressed,
#new_material:pressed, #delete_material:pressed {
color: #ffee06;
background: #16160e }
/* RIGHT */
#file_reload, #ub_reload, #sd_reload,
#reload_plasma, #reload_material {
color: #16160e;
background: #ffee06;
border: none;
border-top-left-radius: 0px;
border-top-right-radius: 2px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px }
#file_reload:disabled, #sd_reload:disabled,
#ub_reload:disabled, #reload_plasma:disabled,
#reload_material:disabled {
background: #b0b0b0 }
#file_reload:pressed, #up_reload:pressed,
#sd_reload:pressed, #reload_plasma:pressed,
#reload_material:pressed {
color: #ffee06;
background: #16160e }
/****** DRO DISPLAY<<<<<<<<<<<<*/
DROLabel {
color: #ffee06;
border: 1px solid #ffee06;
border-radius: 4px;
font: 20pt 'DejaVuSans' }
DROLabel[homed=false] {
color: #b0b0b0;
border-color: #b0b0b0 }
/****** DRO LABEL ************/
#dro_label_x,
#dro_label_y,
#dro_label_z,
#dro_label_a,
#dro_label_b {
color: #16160e;
background: #ffee06;
border: 1px solid #ffee06;
border-radius: 4px;
font: 20pt 'DejaVuSans' }
#dro_label_x[homed=false],
#dro_label_y[homed=false],
#dro_label_z[homed=false],
#dro_label_a[homed=false],
#dro_label_b[homed=false] {
background: #b0b0b0;
border-color: #b0b0b0 }
/****** ARC VOLTAGE ************/
#arc_voltage {
border: 1px solid #ffee06;
border-radius: 4;
margin: 0 0 0 0;
font: 32pt }
/****** RADIO BUTTON ************/
QRadioButton {
border: 1px solid #ffee06;
border-radius: 4 }
QRadioButton::indicator {
width: 0;
background: #16160e }
QRadioButton:checked {
color: #16160e;
background: #ffee06 }
QRadioButton:pressed {
color: #16160e;
background: #ffee06 }
/****** SETTINGS PUSHBUTTONS ************/
#color_foregrnd, #color_foregalt,
#color_led, #color_backgrnd,
#color_backgalt, #color_frams,
#color_estop, #color_disabled,
#color_preview, #opt_stp, #opt_blk {
width: 26px;
height: 26px }
#opt_stp:disabled, #opt_blk:disabled {
border-color: #b0b0b0 }
#opt_stp:disabled:checked, #opt_blk:disabled:checked {
background: #b0b0b0 }
/****** CHECK BOX COMMON ************/
QCheckBox {
spacing: 0px }
QCheckBox::indicator {
border: 1px solid #ffee06;
border-radius: 4px;
width: 26px;
height: 26px }
QCheckBox::indicator:pressed {
background: #ffee06 }
QCheckBox::indicator:disabled {
border-color: #b0b0b0 }
QCheckBox::indicator:disabled:checked {
background: #b0b0b0 }
QCheckBox::indicator:checked {
background: #ffee06 }
QCheckBox::indicator:checked:pressed {
background: #16160e }
/****** CHECK BOX CONTROL ************/
#torch_enable, #cornerlock_enable, #voidlock_enable,
#use_auto_volts, #ohmic_probe_enable, #mesh_enable,
#ignore_arc_ok, #pmx485_enable, #thc_auto, #thc_enable {
border: none;
spacing: 0px }
#torch_enable::indicator,
#cornerlock_enable::indicator,
#voidlock_enable::indicator,
#use_auto_volts::indicator,
#ohmic_probe_enable::indicator,
#mesh_enable::indicator,
#ignore_arc_ok::indicator,
#pmx485_enable::indicator,
#thc_auto::indicator,
#thc_enable::indicator {
background: #16160e;
border: 1px solid #ffee06;
border-radius: 4px;
width: 22px;
height: 22px }
#torch_enable::indicator:checked,
#cornerlock_enable::indicator:checked,
#voidlock_enable::indicator:checked,
#use_auto_volts::indicator:checked,
#ohmic_probe_enable::indicator:checked,
#mesh_enable::indicator:checked,
#ignore_arc_ok::indicator:checked,
#pmx485_enable::indicator:checked,
#thc_auto::indicator:checked,
#thc_enable::indicator:checked {
background: #ffee06;
border-color: #ffee06 }
#torch_enable::indicator:!checked,
#cornerlock_enable::indicator:!checked,
#voidlock_enable::indicator:!checked,
#use_auto_volts::indicator:!checked,
#ohmic_probe_enable::indicator:!checked,
#mesh_enable::indicator:!checked,
#ignore_arc_ok::indicator:!checked,
#pmx485_enable::indicator:!checked,
#thc_auto::indicator:!checked,
#thc_enable::indicator:!checked {
background: #16160e;
border-color: #ffee06 }
#torch_enable::indicator:pressed,
#cornerlock_enable::indicator:pressed,
#voidlock_enable::indicator:pressed,
#use_auto_volts::indicator:pressed,
#ohmic_probe_enable::indicator:pressed,
#mesh_enable::indicator:pressed,
#ignore_arc_ok::indicator:pressed,
#pmx485_enable::indicator:pressed,
#thc_auto::indicator:pressed,
#thc_enable::indicator:pressed {
background: #ffee06 }
#torch_enable::indicator:checked:pressed,
#cornerlock_enable::indicator:checked:pressed,
#voidlock_enable::indicator:checked:pressed,
#use_auto_volts::indicator:checked:pressed,
#ohmic_probe_enable::indicator:checked:pressed,
#mesh_enable::indicator:checked:pressed,
#ignore_arc_ok::indicator:checked:pressed,
#pmx485_enable::indicator:checked:pressed,
#thc_auto::indicator:checked:pressed,
#thc_enable::indicator:checked:pressed {
background: #16160e }
/****** SPIN BOX ************/
QSpinBox,
QDoubleSpinBox {
background: #36362e;
border: 1px solid #ffee06;
border-radius: 2px;
height: 24px;
width: 180px;
font: 11pt;
selection-color: #16160e;
selection-background-color: #ffee06 }
QDoubleSpinBox::up-button {
subcontrol-origin:padding;
subcontrol-position:right;
width: 28px;
height: 24px }
QDoubleSpinBox::down-button {
subcontrol-origin:padding;
subcontrol-position:left;
width: 28px;
height: 24px }
/****** VERTICAL SLIDER ************/
QSlider::groove:vertical {
background: #36362e;
border-radius: 4px;
width: 20px }
QSlider::handle:vertical {
background: #ffee06;
border: 0px solid #ffee06;
border-radius: 4px;
height: 24px }
QSlider::add-page:vertical {
background: #ffee06;
border: 1px solid #ffee06;
border-radius: 4px;
width: 20px }
QSlider::sub-page:vertical {
background: #36362e;
border: 1px solid #36362e;
border-radius: 4px;
width: 16px }
QSlider::add-page:vertical:disabled,
QSlider::sub-page:vertical:disabled,
QSlider::handle:vertical:disabled,
QSlider::groove:vertical:disabled {
color: #b0b0b0;
background: #36362e;
border: 1px solid #b0b0b0;
border-radius: 4px }
/****** COMBO BOX ************/
QComboBox {
border: 1px solid #ffee06;
border-radius: 4px;
padding-left: 6px }
QComboBox#jogincrements {
padding-left: 18px }
QComboBox#material_selector {
color: #16160e;
background: #ffee06;
border: none;
border-radius: 0;
height: 16px }
QComboBox#default_material {
height: 24px;
font: 11pt;
padding-left: 60px }
QComboBox::drop-down {
width: 0;
image: none }
QComboBox QAbstractItemView {
border: 1px solid #ffee06;
border-radius: 4;
padding: 20 4 20 4 }
QComboBox::item:selected {
color: #16160e;
background-color: #ffee06;
margin-left: 0 }
QComboBox::item:!selected {
color: #ffee06;
background-color: #16160e }
QComboBox::indicator {
color: transparent;
background-color: transparent }
#material_selector:disabled,
#material_label:disabled,
#velocity_label:disabled,
#velocity_show:disabled {
background: #b0b0b0 }
/****** FILEMANAGER ************/
QHeaderView::section {
background: #16160e;
border: 1px solid #ffee06;
border-radius: 4px;
font-size: 11pt;
font: italic;
margin: 1;
padding-top: 5 }
#filemanager QTableView {
border: 1px solid #ffee06;
border-radius: 4px;
font: 11pt 'DejaVuSans';
alternate-background-color: #36362e;
padding: 2px }
#filemanager QTableView::item:selected:active {
color: #16160e;
background-color: #ffee06 }
#filemanager QTableView::item:selected:!active {
color: #16160e;
background-color: #ffee06 }
#filemanager QListView {
border: 1px solid #ffee06;
border-radius: 4px;
font: 11pt 'DejaVuSans';
alternate-background-color: #36362e;
padding: 2px }
#filemanager QListView::item:selected:active {
color: #16160e;
background-color: #ffee06 }
#filemanager QListView::item:selected:!active {
color: #16160e;
background-color: #ffee06 }
#filemanager QComboBox {
height: 40px;
padding-right: 6px}
#filemanager QLineEdit {
height: 40px;
font: 11pt }
#filemanager QToolButton {
height: 40px }
#filemanager QPushButton {
height: 40px }
#file_buttons_2 QPushButton {
height: 40px }
/****** ORIGIN OFFSET VIEW ************/
/* this also uses QHeaderView from FILEMANAGER */
#originoffsetview QHeaderView::section {
padding-top: 0;
padding-left: 4;
height: 30px;
width: 60px }
#originoffsetview {
font: 11pt 'Mono';
border: 1px solid #ffee06;
border-radius: 4px;
alternate-background-color: #16160e;
padding: 2px;
gridline-color: #36362e;
qproperty-styleColorHighlight: #36362e }
#originoffsetview::item:selected:active {
color: #16160e;
background-color: #ffee06 }
#originoffsetview::item:selected:!active {
color: #16160e;
background-color: #ffee06 }
/****** MDI HISTORY************/
#mdihistory QListView {
border: 1px solid #ffee06;
border-radius: 4px;
font: 11pt 'DejaVuSans';
alternate-background-color: #36362e;
padding: 2 }
#mdihistory QListView::item {
height: 36 }
#mdihistory QListView::item:selected {
color: #16160e;
background-color: #ffee06 }
#mdihistory QLineEdit {
border: 1px solid #ffee06;
border-radius: 4px;
height: 30px;
font: 11pt }
/****** SCROLL BAR ************/
QScrollBar:horizontal {
background: #36362e;
border: 0px;
border-radius: 4px;
margin: 0px;
height: 20px }
QScrollBar::handle:horizontal {
background: #ffee06;
border: 2px solid #ffee06;
border-radius: 4px;
margin: 2px;
min-width: 40px }
QScrollBar::add-line:horizontal {
width: 0px }
QScrollBar::sub-line:horizontal {
width: 0px }
QScrollBar:vertical {
background: #36362e;
border: 0px;
border-radius: 4px;
margin: 0px;
width: 20px }
QScrollBar::handle:vertical {
background: #ffee06;
border: 2px solid #ffee06;
border-radius: 4px;
margin: 2px;
min-height: 40px }
QScrollBar::add-line:vertical {
height: 0px }
QScrollBar::sub-line:vertical {
height: 0px }
QListView QScrollBar:vertical {
margin-left: 1px }
QListView QScrollBar:horizontal {
margin-top: 1px }
/****** MENU ************/
QMenu {
font: 11pt;
margin: 0 16 0 16 }
QMenu::item {
color: #ffee06;
background: #16160e;
border: 1px solid #ffee06;
border-radius: 4px;
padding: 8 0 8 8;
margin: 8 0 8 0;
width: 68 }
#wcs_button::menu-indicator {
width: 0 }
/****** TAB ************/
QTabWidget::pane {
border: none;
top:-2px;
left:-2px;
right:-2px;
bottom:-2px }
QTabWidget::tab-bar {
min-width:6000 }
QTabBar::tab {
border: 1px solid #ffee06;
border-radius: 4px;
padding: 1px;
margin-left: 1;
margin-right: 1 }
QTabBar::tab:selected {
color: #16160e;
background: #ffee06 }
/****** STATUS BAR ************/
QStatusBar {
border: none }
QStatusBar::item {
image: none }
QProgressBar {
color: #ffee06;
background: #36362e;
border: 0px;
border-radius: 4px;
max-width: 20px; }
QProgressBar::chunk {
background-color: #ffee06;
height: 1px;
margin: 0.5px }
/****** LED ************/
LED {
qproperty-color: #ffee06;
qproperty-off_color: #16160e;
qproperty-border_color: #16160e;
qproperty-diameter: 20 }
/****** TEXT ENTRY ************/
QPlainTextEdit {
border: 1px solid #ffee06;
border-radius: 4px }
/****** GCODE GRAPHICS ************/
#gcodegraphics {
qproperty-background_color: #000000 }
/****** GCODE EDITOR & GCODE DISPLAY ************/
EditorBase#lexer {
height: 44 }
/*QTableView::item {
height: 44 }*/
EditorBase {
qproperty-styleColorBackground: #16160e;
qproperty-styleColor0: #ffee06; /* parameters */
qproperty-styleColor1: #ffee06; /* comments */
qproperty-styleColor2: #ffee06; /* g codes */
qproperty-styleColor3: #ffee06; /* m codes */
qproperty-styleColor4: #ffee06; /* axes */
qproperty-styleColor5: #ffee06; /* non axes */
qproperty-styleColor6: #ffee06; /* axes values */
qproperty-styleColor7: #ffee06; /* non axes values */
qproperty-styleColorMarginText: #ffee06;
qproperty-styleColorMarginBackground: #16160e;
qproperty-styleFont0: 'DejaVuSansMono,11,-1,0,60,0,0,0,0,0';
qproperty-styleFont1: 'DejaVuSansMono,11,-1,0,60,0,0,0,0,0';
qproperty-styleFont2: 'DejaVuSansMono,11,-1,0,60,0,0,0,0,0';
qproperty-styleFont3: 'DejaVuSansMono,11,-1,0,60,0,0,0,0,0';
qproperty-styleFont4: 'DejaVuSansMono,11,-1,0,60,0,0,0,0,0';
qproperty-styleFont5: 'DejaVuSansMono,11,-1,0,60,0,0,0,0,0';
qproperty-styleFont6: 'DejaVuSansMono,11,-1,0,60,0,0,0,0,0';
qproperty-styleFont7: 'DejaVuSansMono,11,-1,0,60,0,0,0,0,0';
qproperty-styleColorSelectionText: #16160e;
qproperty-styleColorSelectionBackground: #ffee06 }
#gcode_display {
qproperty-styleColorSelectionText: #ffee06;
qproperty-styleColorSelectionBackground: transparent }
#gcode_editorTopButtonFrame {
border: 1px solid #ffee06;
border-radius: 4px;
margin: 2 4 0 4 }
#gcode_editorBottomButtonFrame {
border: 1px solid #ffee06;
border-radius: 4px;
margin: 0 4 0 4 }
#gcode_editor QToolBar {
spacing: 4 }
#gcode_editor QToolBar::separator {
width: 8 }
#gcode_editor QToolButton {
width: 40px;
height: 37px }
#gcode_editor QLineEdit {
border: 1px solid #ffee06;
border-radius: 4px;
width: 94px;
height: 40px }
/****** MESSAGE BOX ************/
QMessageBox {
border: 1px solid #ffee06;
border-radius: 4px;
margin: 2 }
QMessageBox QLabel {
font: 11pt }
QMessageBox QPushButton {
width: 120;
height: 40;
font: 11pt }
/****** INPUT DIALOG ************/
QInputDialog {
border: 1px solid #ffee06;
border-radius: 4px;
margin: 2 }
QInputDialog QLabel {
font: 11pt }
QInputDialog QLineEdit {
background: #36362e;
border: 1px solid #ffee06;
border-radius: 4px;
font: 11pt }
QInputDialog QPushButton {
width: 120;
height: 40;
font: 11pt }
/****** CALCULATOR ************/
Calculator {
border: 1px solid #ffee06;
border-radius: 4px;
margin: 2px }
Calculator QPushButton {
height: 40 }
Calculator QLineEdit {
border: 1px solid #ffee06;
border-radius: 4px;
font: 20pt }
/****** KEYBOARD ************/
KeyboardDialog QLineEdit {
font: 20pt;
height: 36px }
/****** WEBVIEW ************/
QWebView {
color: black;
background: white }
#webview_back, #webview_reload, #webview_forward {
color: #16160e;
background: #ffee06;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px }
#webview_back {
border-top-left-radius: 2px }
#webview_forward {
border-top-right-radius: 2px }

View File

@@ -0,0 +1,161 @@
[FILTER]
PROGRAM_EXTENSION = .ngc,.nc,.tap GCode File (*.ngc, *.nc, *.tap)
ngc = qtplasmac_gcode
nc = qtplasmac_gcode
tap = qtplasmac_gcode
[RS274NGC]
RS274NGC_STARTUP_CODE = G20 G40 G49 G80 G90 G92.1 G94 G97 M52P1
PARAMETER_FILE = imperial_parameters.txt
SUBROUTINE_PATH = ./:../../nc_files
USER_M_PATH = ./:../../nc_files
[HAL]
TWOPASS = ON
HALFILE = sim_no_stepgen.tcl
#HALFILE = sim_stepgen.tcl
HALFILE = qtplasmac_comp.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
POSTGUI_HALFILE = sim_postgui.hal
HALUI = halui
[EMC]
VERSION = 1.1
MACHINE = qtplasmac-imperial
DEBUG = 0
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = imperial_tool.tbl
[TASK]
TASK = milltask
CYCLE_TIME = 0.01
[EMCMOT]
EMCMOT = motmod
BASE_PERIOD = 32000
SERVO_PERIOD = 1000000
[KINS]
KINEMATICS = trivkins coordinates=xyyz
JOINTS = 4
[TRAJ]
SPINDLES = 3
COORDINATES = XYYZ
LINEAR_UNITS = inch
DEFAULT_LINEAR_VELOCITY = 4.0
MAX_LINEAR_VELOCITY = 13.8
ANGULAR_UNITS = degree
POSITION_FILE = imperial_position.txt
[AXIS_X]
MIN_LIMIT = -0.0001
MAX_LIMIT = 48.0001
# set to double the value in the corresponding joint
MAX_VELOCITY = 20.0
# set to double the value in the corresponding joint
MAX_ACCELERATION = 200.0
# shares the above two equally between the joint and the offset
OFFSET_AV_RATIO = 0.5
[JOINT_0]
MIN_LIMIT = -0.0001
MAX_LIMIT = 48.0001
MAX_VELOCITY = 10
MAX_ACCELERATION = 100
TYPE = LINEAR
MIN_FERROR = 0.2
FERROR = 0.4
HOME = 0.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = 1
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 200
STEP_SCALE = 25.40
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
[AXIS_Y]
MIN_LIMIT = -0.0001
MAX_LIMIT = 48.0001
# set to double the value in the corresponding joint
MAX_VELOCITY = 20.0
# set to double the value in the corresponding joint
MAX_ACCELERATION = 200.0
# shares the above two equally between the joint and the offset
OFFSET_AV_RATIO = 0.5
[JOINT_1]
MIN_LIMIT = -0.0001
MAX_LIMIT = 48.0001
MAX_VELOCITY = 10
MAX_ACCELERATION = 100
TYPE = LINEAR
MIN_FERROR = 0.2
FERROR = 0.4
HOME = 0.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = -2
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 200
STEP_SCALE = 25.40
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
[JOINT_2]
MIN_LIMIT = -0.0001
MAX_LIMIT = 48.0001
MAX_VELOCITY = 10
MAX_ACCELERATION = 100
TYPE = LINEAR
MIN_FERROR = 0.2
FERROR = 0.4
HOME = 0.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = -2
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 200
STEP_SCALE = 25.40
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
[AXIS_Z]
MIN_LIMIT = -0.0001
MAX_LIMIT = 4.0001
# set to double the value in the corresponding joint
MAX_VELOCITY = 4.8
# set to double the value in the corresponding joint
MAX_ACCELERATION = 48.0
# shares the above two equally between the joint and the offset
OFFSET_AV_RATIO = 0.5
[JOINT_3]
# this should be the top of your slats
MIN_LIMIT = -0.0001
MAX_LIMIT = 4.0001
MAX_VELOCITY = 2.4
MAX_ACCELERATION = 24.0
TYPE = LINEAR
MIN_FERROR = 0.2
FERROR = 0.4
HOME = 3.8
HOME_OFFSET = 4.0
HOME_SEQUENCE = 0
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 48.0
STEP_SCALE = 25.40
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000

View File

@@ -0,0 +1,16 @@
[DISPLAY]
DISPLAY = qtvcp qtplasmac
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.5
DEFAULT_LINEAR_VELOCITY = 4.0
MIN_LINEAR_VELOCITY = 1
MAX_LINEAR_VELOCITY = 13.8
INCREMENTS = 1, .1, .01, .001, .0001
MDI_HISTORY_FILE = imperial_mdi_history.txt
TOOL_EDITOR = tooledit x y
PROGRAM_PREFIX = /home/linuxcnc/linuxcnc/nc_files
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
#INCLUDE qtplasmac_imperial_ini.inc

View File

@@ -0,0 +1,183 @@
#*** /home/linuxcnc/linuxcnc/configs/sim.qtplasmac/qtplasmac_l_imperial.ini.expanded
#*** Created: Sat Aug 3 02:57:21 AM CDT 2024
#*** Autogenerated file with expanded #INCLUDEs
[DISPLAY]
DISPLAY = qtvcp qtplasmac
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.5
DEFAULT_LINEAR_VELOCITY = 4.0
MIN_LINEAR_VELOCITY = 1
MAX_LINEAR_VELOCITY = 13.8
INCREMENTS = 1, .1, .01, .001, .0001
MDI_HISTORY_FILE = imperial_mdi_history.txt
TOOL_EDITOR = tooledit x y
PROGRAM_PREFIX = /home/linuxcnc/linuxcnc/nc_files
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
#*** Begin #INCLUDE file: qtplasmac_imperial_ini.inc
[FILTER]
PROGRAM_EXTENSION = .ngc,.nc,.tap GCode File (*.ngc, *.nc, *.tap)
ngc = qtplasmac_gcode
nc = qtplasmac_gcode
tap = qtplasmac_gcode
[RS274NGC]
RS274NGC_STARTUP_CODE = G20 G40 G49 G80 G90 G92.1 G94 G97 M52P1
PARAMETER_FILE = imperial_parameters.txt
SUBROUTINE_PATH = ./:../../nc_files
USER_M_PATH = ./:../../nc_files
[HAL]
TWOPASS = ON
HALFILE = sim_no_stepgen.tcl
#HALFILE = sim_stepgen.tcl
HALFILE = qtplasmac_comp.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
POSTGUI_HALFILE = sim_postgui.hal
HALUI = halui
[EMC]
VERSION = 1.1
MACHINE = qtplasmac-imperial
DEBUG = 0
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = imperial_tool.tbl
[TASK]
TASK = milltask
CYCLE_TIME = 0.01
[EMCMOT]
EMCMOT = motmod
BASE_PERIOD = 32000
SERVO_PERIOD = 1000000
[KINS]
KINEMATICS = trivkins coordinates=xyyz
JOINTS = 4
[TRAJ]
SPINDLES = 3
COORDINATES = XYYZ
LINEAR_UNITS = inch
DEFAULT_LINEAR_VELOCITY = 4.0
MAX_LINEAR_VELOCITY = 13.8
ANGULAR_UNITS = degree
POSITION_FILE = imperial_position.txt
[AXIS_X]
MIN_LIMIT = -0.0001
MAX_LIMIT = 48.0001
# set to double the value in the corresponding joint
MAX_VELOCITY = 20.0
# set to double the value in the corresponding joint
MAX_ACCELERATION = 200.0
# shares the above two equally between the joint and the offset
OFFSET_AV_RATIO = 0.5
[JOINT_0]
MIN_LIMIT = -0.0001
MAX_LIMIT = 48.0001
MAX_VELOCITY = 10
MAX_ACCELERATION = 100
TYPE = LINEAR
MIN_FERROR = 0.2
FERROR = 0.4
HOME = 0.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = 1
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 200
STEP_SCALE = 25.40
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
[AXIS_Y]
MIN_LIMIT = -0.0001
MAX_LIMIT = 48.0001
# set to double the value in the corresponding joint
MAX_VELOCITY = 20.0
# set to double the value in the corresponding joint
MAX_ACCELERATION = 200.0
# shares the above two equally between the joint and the offset
OFFSET_AV_RATIO = 0.5
[JOINT_1]
MIN_LIMIT = -0.0001
MAX_LIMIT = 48.0001
MAX_VELOCITY = 10
MAX_ACCELERATION = 100
TYPE = LINEAR
MIN_FERROR = 0.2
FERROR = 0.4
HOME = 0.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = -2
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 200
STEP_SCALE = 25.40
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
[JOINT_2]
MIN_LIMIT = -0.0001
MAX_LIMIT = 48.0001
MAX_VELOCITY = 10
MAX_ACCELERATION = 100
TYPE = LINEAR
MIN_FERROR = 0.2
FERROR = 0.4
HOME = 0.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = -2
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 200
STEP_SCALE = 25.40
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
[AXIS_Z]
MIN_LIMIT = -0.0001
MAX_LIMIT = 4.0001
# set to double the value in the corresponding joint
MAX_VELOCITY = 4.8
# set to double the value in the corresponding joint
MAX_ACCELERATION = 48.0
# shares the above two equally between the joint and the offset
OFFSET_AV_RATIO = 0.5
[JOINT_3]
# this should be the top of your slats
MIN_LIMIT = -0.0001
MAX_LIMIT = 4.0001
MAX_VELOCITY = 2.4
MAX_ACCELERATION = 24.0
TYPE = LINEAR
MIN_FERROR = 0.2
FERROR = 0.4
HOME = 3.8
HOME_OFFSET = 4.0
HOME_SEQUENCE = 0
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 48.0
STEP_SCALE = 25.40
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
#*** End #INCLUDE file: qtplasmac_imperial_ini.inc

View File

@@ -0,0 +1,16 @@
[DISPLAY]
DISPLAY = qtvcp qtplasmac
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.5
DEFAULT_LINEAR_VELOCITY = 100
MIN_LINEAR_VELOCITY = 1
MAX_LINEAR_VELOCITY = 350
INCREMENTS = 10, 1, .1, .01, .001
MDI_HISTORY_FILE = metric_mdi_history.txt
TOOL_EDITOR = tooledit x y
PROGRAM_PREFIX = /home/linuxcnc/linuxcnc/nc_files
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
#INCLUDE qtplasmac_metric_ini.inc

View File

@@ -0,0 +1,160 @@
[FILTER]
PROGRAM_EXTENSION = .ngc,.nc,.tap GCode File (*.ngc, *.nc, *.tap)
ngc = qtplasmac_gcode
nc = qtplasmac_gcode
tap = qtplasmac_gcode
[RS274NGC]
RS274NGC_STARTUP_CODE = G21 G40 G49 G80 G90 G92.1 G94 G97 M52P1
PARAMETER_FILE = metric_parameters.txt
SUBROUTINE_PATH = ./:../../nc_files
USER_M_PATH = ./:../../nc_files
[HAL]
TWOPASS = ON
HALFILE = sim_no_stepgen.tcl
#HALFILE = sim_stepgen.tcl
HALFILE = qtplasmac_comp.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
POSTGUI_HALFILE = sim_postgui.hal
HALUI = halui
[EMC]
VERSION = 1.1
MACHINE = qtplasmac-metric
DEBUG = 0
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = metric_tool.tbl
[TASK]
TASK = milltask
CYCLE_TIME = 0.01
[EMCMOT]
EMCMOT = motmod
BASE_PERIOD = 100000
SERVO_PERIOD = 1000000
[KINS]
KINEMATICS = trivkins coordinates=xyyz
JOINTS = 4
[TRAJ]
SPINDLES = 3
COORDINATES = XYYZ
LINEAR_UNITS = mm
MAX_LINEAR_VELOCITY = 350
DEFAULT_LINEAR_VELOCITY = 100
ANGULAR_UNITS = degree
POSITION_FILE = metric_position.txt
[AXIS_X]
MIN_LIMIT = -0.001
MAX_LIMIT = 1200.001
# set to double the value in the corresponding joint
MAX_VELOCITY = 500.0
# set to double the value in the corresponding joint
MAX_ACCELERATION = 5000.0
# shares the above two equally between the joint and the offset
OFFSET_AV_RATIO = 0.5
[JOINT_0]
MIN_LIMIT = -0.001
MAX_LIMIT = 1200.001
MAX_VELOCITY = 250
MAX_ACCELERATION = 2500
TYPE = LINEAR
MIN_FERROR = 5.0
FERROR = 10.0
HOME = 0.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = 1
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 5000
STEP_SCALE = 1
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
[AXIS_Y]
MIN_LIMIT = -0.001
MAX_LIMIT = 1200.001
# set to double the value in the corresponding joint
MAX_VELOCITY = 500.0
# set to double the value in the corresponding joint
MAX_ACCELERATION = 5000.0
# shares the above two equally between the joint and the offset
OFFSET_AV_RATIO = 0.5
[JOINT_1]
MIN_LIMIT = -0.001
MAX_LIMIT = 1200.001
MAX_VELOCITY = 250
MAX_ACCELERATION = 2500
TYPE = LINEAR
MIN_FERROR = 5.0
FERROR = 10.0
HOME = 0.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = -2
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 5000
STEP_SCALE = 1
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
[JOINT_2]
MIN_LIMIT = -0.001
MAX_LIMIT = 1200.001
MAX_VELOCITY = 250
MAX_ACCELERATION = 2500
TYPE = LINEAR
MIN_FERROR = 5.0
FERROR = 10.0
HOME = 0.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = -2
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 5000
STEP_SCALE = 1
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000
[AXIS_Z]
MIN_LIMIT = -0.001
MAX_LIMIT = 100.001
# set to double the value in the corresponding joint
MAX_VELOCITY = 120.0
# set to double the value in the corresponding joint
MAX_ACCELERATION = 1200.0
# shares the above two equally between the joint and the offset
OFFSET_AV_RATIO = 0.5
[JOINT_3]
MIN_LIMIT = -0.001
MAX_LIMIT = 100.001
MAX_VELOCITY = 60
MAX_ACCELERATION = 600
TYPE = LINEAR
MIN_FERROR = 5.0
FERROR = 10.0
HOME = 95.0
HOME_OFFSET = 100.0
HOME_SEQUENCE = 0
HOME_USE_INDEX = NO
STEPGEN_MAXACCEL = 1200.0
STEP_SCALE = 1
STEPLEN = 1
STEPSPACE = 0
DIRSETUP = 8000
DIRHOLD = 5000

View File

@@ -0,0 +1,16 @@
[DISPLAY]
DISPLAY = qtvcp qtplasmac_9x16
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.5
DEFAULT_LINEAR_VELOCITY = 4.0
MIN_LINEAR_VELOCITY = 1
MAX_LINEAR_VELOCITY = 13.8
INCREMENTS = 1, .1, .01, .001, .0001
MDI_HISTORY_FILE = imperial_mdi_history.txt
TOOL_EDITOR = tooledit x y
PROGRAM_PREFIX = /home/linuxcnc/linuxcnc/nc_files
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
#INCLUDE qtplasmac_imperial_ini.inc

View File

@@ -0,0 +1,16 @@
[DISPLAY]
DISPLAY = qtvcp qtplasmac_9x16
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.5
DEFAULT_LINEAR_VELOCITY = 100
MIN_LINEAR_VELOCITY = 1
MAX_LINEAR_VELOCITY = 350
INCREMENTS = 10, 1, .1, .01, .001
MDI_HISTORY_FILE = metric_mdi_history.txt
TOOL_EDITOR = tooledit x y
PROGRAM_PREFIX = /home/linuxcnc/linuxcnc/nc_files
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
#INCLUDE qtplasmac_metric_ini.inc

View File

@@ -0,0 +1,16 @@
[DISPLAY]
DISPLAY = qtvcp qtplasmac_4x3
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.5
DEFAULT_LINEAR_VELOCITY = 4.0
MIN_LINEAR_VELOCITY = 1
MAX_LINEAR_VELOCITY = 13.8
INCREMENTS = 1, .1, .01, .001, .0001
MDI_HISTORY_FILE = imperial_mdi_history.txt
TOOL_EDITOR = tooledit x y
PROGRAM_PREFIX = /home/linuxcnc/linuxcnc/nc_files
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
#INCLUDE qtplasmac_imperial_ini.inc

View File

@@ -0,0 +1,16 @@
[DISPLAY]
DISPLAY = qtvcp qtplasmac_4x3
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.5
DEFAULT_LINEAR_VELOCITY = 100
MIN_LINEAR_VELOCITY = 1
MAX_LINEAR_VELOCITY = 350
INCREMENTS = 10, 1, .1, .01, .001
MDI_HISTORY_FILE = metric_mdi_history.txt
TOOL_EDITOR = tooledit x y
PROGRAM_PREFIX = /home/linuxcnc/linuxcnc/nc_files
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
#INCLUDE qtplasmac_metric_ini.inc

View File

@@ -0,0 +1,61 @@
/****** DEFAULT ************/
* {
color: #ffee06;
background: #16160e;
font: 10pt DejaVuSans }
/****** BUTTONS ************/
QPushButton {
color: #ffee06;
background: #16160e;
border: 1px solid #ffee06;
border-radius: 4px;
}
/****** SLIDER ************/
QSlider::groove:horizontal {
background: gray;
border-radius: 4px;
height: 20px }
QSlider::handle:horizontal {
background: #ffee06;
border: 0px solid #ffee06;
border-radius: 4px;
width: 24px }
QSlider::handle:horizontal:disabled {
background: #16160e }
QSlider::add-page:horizontal {
background: #36362e;
border: 1px solid #36362e;
border-radius: 4px }
QSlider::sub-page:horizontal {
background: #36362e;
border: 1px solid #36362e;
border-radius: 4px }
Line {
color: red;
background: red }
QCheckBox {
spacing: 20px }
QCheckBox::indicator {
border: 1px solid #ffee06;
border-radius: 4px;
width: 20px;
height: 20px }
QCheckBox::indicator:pressed {
background: #ffee06 }
QCheckBox::indicator:checked {
background: #ffee06 }
QCheckBox::indicator:checked:pressed {
background: #16160e }

View File

@@ -0,0 +1,83 @@
[DIALOG_GEOMETRY]
AboutDialog-geometry = half
LncMessage-geometry = default
[DIALOG_OPTIONS]
EntryDialog_play_sound = False
EntryDialog_sound_type = READY
fileDialog_play_sound = False
fileDialog_sound_type = READY
KeyboardDialog_play_sound = False
KeyboardDialog_sound_type = READY
CalculatorDialog_play_sound = False
CalculatorDialog_sound_type = READY
MachineLogDialog_play_sound = False
MachineLogDialog_sound_type = READY
[BOOK_KEEPING]
last_loaded_directory = None
RecentPath_0 = None
style_QSS_Path = DEFAULT
[SCREEN_OPTIONS]
overlay_play_sound = False
overlay_sound_type = RING
catch_errors = True
desktop_notify = True
notify_max_msgs = 10
shutdown_check = False
sound_player_on = False
MainWindow-geometry = 0 82 1920 998
[MCH_MSG_OPTIONS]
mchnMsg_play_sound = False
mchnMsg_speak_errors = False
mchnMsg_speak_text = False
mchnMsg_sound_type = ATTENTION
[USR_MSG_OPTIONS]
usermsg_play_sound = True
userMsg_sound_type = ATTENTION
userMsg_use_focusOverlay = True
[SHUTDOWN_OPTIONS]
shutdown_play_sound = False
shutdown_alert_sound_type = READY
shutdown_exit_sound_type = LOGOUT
shutdown_msg_title = Do you want to Shutdown now?
shutdown_msg_focus_text =
shutdown_msg_detail =
[NOTIFY_OPTIONS]
notify_start_greeting = False
notify_start_title = Welcome
notify_start_detail = This option can be changed in the preference file
notify_start_timeout = 5
[SCREEN_CONTROL_LAST_SETTING]
conv_preview-user-view = z
conv_preview-user-zoom = 10.0
conv_preview-user-panx = 0.0
conv_preview-user-pany = 0.0
conv_preview-user-lat = 0.0
conv_preview-user-lon = 0.0
gcodegraphics-user-view = z
gcodegraphics-user-zoom = 10.0
gcodegraphics-user-panx = 0.0
gcodegraphics-user-pany = 0.0
gcodegraphics-user-lat = 0.0
gcodegraphics-user-lon = 0.0
[ORIGINOFFSET_SYSTEM_NAMES]
originoffsetview-G54 = User System 1
originoffsetview-G55 = User System 2
originoffsetview-G56 = User System 3
originoffsetview-G57 = User System 4
originoffsetview-G58 = User System 5
originoffsetview-G59 = User System 6
originoffsetview-G59.1 = User System 7
originoffsetview-G59.2 = User System 8
originoffsetview-G59.3 = User System 9
[FILEMANAGER_JUMPLIST]

View File

@@ -0,0 +1,76 @@
# GENERIC HAL TCL FILE FOR QTPLASMAC SIM CONFIGS WITHOUT STEPGENS
# ---SET CONSTANTS---
set numJoints $::KINS(JOINTS)
set zAxis [string first "z" [string tolower $::TRAJ(COORDINATES)]]
# ---LOAD COMPONENTS---
loadrt $::KINS(KINEMATICS)
loadrt $::EMCMOT(EMCMOT) servo_period_nsec=$::EMCMOT(SERVO_PERIOD) num_joints=$numJoints num_spindles=$::TRAJ(SPINDLES)
loadrt plasmac
for {set jNum 0} {$jNum < $numJoints} {incr jNum} {
loadrt pid names=sim-joint.${jNum}.pid
loadrt mux2 names=sim-joint.${jNum}.mux
loadrt ddt names=sim-joint.${jNum}.vel
loadrt sim_home_switch names=sim-joint.${jNum}.home-switch
}
# ---LINK TO THREADS---
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf plasmac servo-thread
for {set jNum 0} {$jNum < $numJoints} {incr jNum} {
addf sim-joint.${jNum}.pid.do-pid-calcs servo-thread
addf sim-joint.${jNum}.mux servo-thread
addf sim-joint.${jNum}.vel servo-thread
}
for {set jNum 0} {$jNum < $numJoints} {incr jNum} {
addf sim-joint.${jNum}.home-switch servo-thread
}
# ---SET UNCONNECTED INPUT PINS---
for {set jNum 0} {$jNum < $numJoints} {incr jNum} {
setp sim-joint.${jNum}.pid.Pgain 0
setp sim-joint.${jNum}.pid.Dgain 0
setp sim-joint.${jNum}.pid.Igain 0
setp sim-joint.${jNum}.pid.FF0 1.0
setp sim-joint.${jNum}.pid.FF1 0
setp sim-joint.${jNum}.pid.FF2 0
}
# ---JOINT CONNECTIONS---
for {set jNum 0} {$jNum < $numJoints} {incr jNum} {
net sim:joint${jNum}.enable joint.${jNum}.amp-enable-out => sim-joint.${jNum}.pid.enable
net sim:joint${jNum}.homesw sim-joint.${jNum}.home-switch.home-sw => joint.${jNum}.home-sw-in
net sim:joint${jNum}.on-pos sim-joint.${jNum}.pid.output => sim-joint.${jNum}.mux.in1
net sim:joint${jNum}.pos-cmd joint.${jNum}.motor-pos-cmd => sim-joint.${jNum}.pid.command
net sim:joint${jNum}.pos-fb sim-joint.${jNum}.mux.out => sim-joint.${jNum}.mux.in0 sim-joint.${jNum}.home-switch.cur-pos sim-joint.${jNum}.vel.in joint.${jNum}.motor-pos-fb
}
net sim:enabled motion.motion-enabled
for {set jNum 0} {$jNum < $numJoints} {incr jNum} {
net sim:enabled sim-joint.${jNum}.mux.sel
}
# ---INPUT DEBOUNCE---
loadrt dbounce names=db_breakaway,db_float,db_ohmic,db_arc-ok
addf db_float servo-thread
addf db_ohmic servo-thread
addf db_breakaway servo-thread
addf db_arc-ok servo-thread
# ---Z JOINT CONNECTION---
net plasmac:axis-position joint.${zAxis}.pos-fb => plasmac.axis-z-position
# ---TOOL CHANGE PASSTHROUGH
net sim:tool-number <= iocontrol.0.tool-prep-number
net sim:tool-change-loopback iocontrol.0.tool-change => iocontrol.0.tool-changed
net sim:tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
# ---ESTOP HANDLING---
loadrt or2 names=estop_or
loadrt not names=estop_not,estop_not_1
addf estop_or servo-thread
addf estop_not servo-thread
addf estop_not_1 servo-thread
net sim:estop-raw estop_or.out => estop_not.in
net sim:estop-out estop_not.out => iocontrol.0.emc-enable-in

View File

@@ -0,0 +1,21 @@
# QTPLASMAC SIMULATOR PANEL
# load the simulated torch
loadusr -Wn sim-torch sim-torch
# load the sim GUI
loadusr -Wn qtplasmac_sim qtvcp qtplasmac_sim.ui
# connect to existing plasmac connections
net plasmac:torch-on => qtplasmac_sim.torch_on sim-torch.start
net plasmac:cut-volts => sim-torch.voltage-in
# create new sim connections
net sim:arc-ok qtplasmac_sim.arc_ok => db_arc-ok.in
net sim:arc-voltage-in sim-torch.voltage-out => plasmac.arc-voltage-in
net sim:arc_voltage_offset qtplasmac_sim.arc_voltage_offset-f => sim-torch.offset-in
net sim:breakaway qtplasmac_sim.sensor_breakaway => db_breakaway.in
net sim:float qtplasmac_sim.sensor_float => db_float.in
net sim:move-down qtplasmac_sim.move_down => plasmac.move-down
net sim:move-up qtplasmac_sim.move_up => plasmac.move-up
net sim:ohmic qtplasmac_sim.sensor_ohmic => db_ohmic.in

View File

@@ -0,0 +1,67 @@
# GENERIC HAL TCL FILE FOR QTPLASMAC SIM CONFIGS WITH STEPGENS
# ---SET CONSTANTS---
set numJoints $::KINS(JOINTS)
set zAxis [string first "z" [string tolower $::TRAJ(COORDINATES)]]
# ---LOAD COMPONENTS---
loadrt $::KINS(KINEMATICS)
loadrt $::EMCMOT(EMCMOT) base_period_nsec=$::EMCMOT(BASE_PERIOD) servo_period_nsec=$::EMCMOT(SERVO_PERIOD) num_joints=$numJoints num_spindles=$::TRAJ(SPINDLES)
loadrt plasmac
set stepType "0"
for {set jNum 0} {$jNum < $numJoints} {incr jNum} {
if {$jNum > 0} {
append stepType "," "0"
}
loadrt sim_home_switch names=sim-joint.${jNum}.home-switch
}
loadrt stepgen step_type=$stepType
# ---LINK TO THREADS---
addf stepgen.make-pulses base-thread
addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf plasmac servo-thread
addf stepgen.update-freq servo-thread
for {set jNum 0} {$jNum < $numJoints} {incr jNum} {
addf sim-joint.${jNum}.home-switch servo-thread
}
# ---JOINT CONNECTIONS---
for {set jNum 0} {$jNum < $numJoints} {incr jNum} {
setp stepgen.${jNum}.maxaccel [set ::JOINT_[set jNum](STEPGEN_MAXACCEL)]
setp stepgen.${jNum}.position-scale [set ::JOINT_[set jNum](STEP_SCALE)]
setp stepgen.${jNum}.steplen [set ::JOINT_[set jNum](STEPLEN)]
setp stepgen.${jNum}.stepspace [set ::JOINT_[set jNum](STEPSPACE)]
setp stepgen.${jNum}.dirsetup [set ::JOINT_[set jNum](DIRSETUP)]
setp stepgen.${jNum}.dirhold [set ::JOINT_[set jNum](DIRHOLD)]
net sim:joint${jNum}.enable joint.${jNum}.amp-enable-out => stepgen.${jNum}.enable
net sim:joint${jNum}.pos-cmd joint.${jNum}.motor-pos-cmd => stepgen.${jNum}.position-cmd
net sim:joint${jNum}.pos-fb stepgen.${jNum}.position-fb => joint.${jNum}.motor-pos-fb sim-joint.${jNum}.home-switch.cur-pos
net sim:joint${jNum}.homesw sim-joint.${jNum}.home-switch.home-sw => joint.${jNum}.home-sw-in
}
# ---INPUT DEBOUNCE---
loadrt dbounce names=db_breakaway,db_float,db_ohmic,db_arc-ok
addf db_float servo-thread
addf db_ohmic servo-thread
addf db_breakaway servo-thread
addf db_arc-ok servo-thread
# ---Z JOINT CONNECTION---
net plasmac:axis-position joint.${zAxis}.pos-fb => plasmac.axis-z-position
# ---TOOL CHANGE PASSTHROUGH
net sim:tool-number <= iocontrol.0.tool-prep-number
net sim:tool-change-loopback iocontrol.0.tool-change => iocontrol.0.tool-changed
net sim:tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
# ---ESTOP HANDLING---
loadrt or2 names=estop_or
loadrt not names=estop_not,estop_not_1
addf estop_or servo-thread
addf estop_not servo-thread
addf estop_not_1 servo-thread
net sim:estop-raw estop_or.out => estop_not.in
net sim:estop-out estop_not.out => iocontrol.0.emc-enable-in

View File

@@ -0,0 +1 @@
24-08-03 Initial V2.9-236.301