LinuxCNC HAL #1: The Basics

  Рет қаралды 26,497

swolebro

swolebro

Күн бұрын

Upshot: Laying the groundwork for this series and covering the results from the Stepconf Wizard.
Topic index:
00:00 - Intro, what's HAL for, lesson plan
04:56 - other docs, resources, and KZfaq channels
07:10 - file layout
09:25 - the stepconf file, what the Stepconf Wizard misses
12:15 - what's in the INI
13:58 - the base HAL file, loadrt for HAL components
17:37 - addf, servo and base threads
19:24 - net commands, signal names, HAL is like a PCB
21:18 - types of HAL pins
21:47 - spindle-on, net arrows, parport pins
23:56 - setp, paport invert, my relays are backwards
25:16 - quick example: a safety interlock on a mill enclosure
28:23 - further changes to the Stepconf Wizard's HAL
Browse the files exactly as shown in this video: github.com/swolebro/swolebro-...
Check out the latest, including my other notes and links to other people's videos and configs:
github.com/swolebro/swolebro-...
Here's the full plasma build series:
• CNC Plasma Build (Full)
Just the LinuxCNC stuff:
• LinuxCNC Guides
Help me make more cool shit:
paypal.me/swolebroshopworks

Пікірлер: 46
@SmallShopConcepts
@SmallShopConcepts 4 жыл бұрын
This is the best linuxcnc tutorial I've come across! I'm still learning Hal and look forward to the rest of your tutorials!
@DanielWood
@DanielWood 4 жыл бұрын
Thank you for taking the time to make these videos. I'm new to LinuxCNC and these videos are really helping me understand how to get going with it!
@gadams809
@gadams809 3 жыл бұрын
First thank you for the information. I have been doing machine tool building for 45 years. I have been wanting to build a Linux CNC controlled tool for years. Now I have the time. Just some info you mentioned you didn't know. RS274 is the name of the language your part program is written in. The G and M code (Part Program). It has become called G code and it is not the write term. You mentioned tiering code to a out put. This does not happen G codes are function in the CNC Operation engine. M codes are tied to outputs and such. This is not always true but 99.9% of the time it is. I started designing when the GE100P NC control was developed. Yes I am that old. LOL Thank you again. I look forward to seeing more of your stuff. It is helping me with Linux CNC a lot. Thank you again. Doug
@weirdsciencetv4999
@weirdsciencetv4999 Жыл бұрын
This is one of the best HAL tutorials i’ve encountered
@chichcnc
@chichcnc 3 жыл бұрын
That was excellent. I read mountains of documentation over 4 years ago and your video made me remember lots of what I read. Keep your tutorials comming. Thank you.
@swolebro
@swolebro 3 жыл бұрын
Check the playlist in the video description, and there's several more already published. That'll probably be all for the next while, though. The machine is in a good place right now, and I won't be doing any overhauls or getting new machinery until I manage to move. Stupid life priorities, getting in the way of shop projects.
@peterjansen4894
@peterjansen4894 4 жыл бұрын
You fill the void that Jerry left. Great to see you stepping in. Very nice and good content, thanks!
@keithscott9774
@keithscott9774 3 жыл бұрын
Great tutorial, thanks very much. I'm moving over from UCCNC to Linuxcnc, and this is exactly what I need to ease the transition. I'm going to be using QTPlasmaC with Mesa cards, but no doubt I'll still be checking out what you have done with the Arduino and THC control.
@DPTech_workroom
@DPTech_workroom 4 жыл бұрын
Finally a normal tutorial about Lcnc! I'm new in this.
@simranbal8668
@simranbal8668 3 жыл бұрын
Thanks for your efforts. Much appriciated.
@satyat9059
@satyat9059 2 жыл бұрын
Really nice explanation about hal configs, thank you.
@AlexandrParshev
@AlexandrParshev 3 жыл бұрын
Thanks! Very cool! Step by step. The picture is clear.Subscribed :)
@nsoutter
@nsoutter 4 жыл бұрын
Great info, thanks!
@steveeparsonsjr7929
@steveeparsonsjr7929 4 жыл бұрын
Nice video, very informative...
@lorispraolini2260
@lorispraolini2260 4 жыл бұрын
Thanks a lot for your video, you are the best! If you have time could you do a video that explain the procedure to build tool change?
@swolebro
@swolebro 4 жыл бұрын
That one's a bit beyond my shop right now, since the plasma is just a plasma. I'll keep making more videos as I get around to doing/learning more, but milling isn't going to happen any time soon. These guys might have some videos already, or would likely be able to provide some pointers: kzfaq.info - wrote a good chunk of FreeCAD's Path workbench, runs a mill conversion kzfaq.info/love/y5Dnc0yhIVGIDhsLnDgxGg - dude has one of the smaller Tormach machines and he's got some videos on working with the LinuxCNC bits under the hood kzfaq.info - guy is setting up some old, monstrous size mill with LinuxCNC/Mesa hardware The rest of the HAL videos here will probably still prove useful though - particularly the ohmic probing one, if you want to automatically measure Z offsets every time you chuck a mill in a collet.
@gwheyduke
@gwheyduke 5 сағат бұрын
What type older desktop do you recommend to run Linux CNC? I have a couple of older ones with Windows 8, installed, maybe I could use those for my Sherline mill ? The Sherline controller is set up for Linux.
@phearl3ss1
@phearl3ss1 3 жыл бұрын
I am just starting Linuxcnc and this video. Hope it covers or leads me to configure a scara type machine
@swolebro
@swolebro 3 жыл бұрын
I don't cover anything other than basic kinematics in this series, but the HAL concepts are all the same. If you wanna mail me a FANUC arm, then sure, I'll take a crack at that. Hahahah. I don't exactly have $50k to burn in order to cover niche use cases.
@phearl3ss1
@phearl3ss1 3 жыл бұрын
@@swolebro I bought the arm from an University Surplus Auction and only setting it up for the fun of it and have no use for it. So maybe I will but you will need to pick it up in Cal. The Robot is about 350 pounds and has 1/2" plate steel base and 1250mm x axis. kzfaq.info/get/bejne/jeCUrbmF2Ku2k4k.html Or if you want, I just purchased an old Del 755, installed Linuxcnc and I can give you control of the system plus I can set up a network video camera that you can control and you can make the video over the internet. Right now there is nothing on how to set one up. Not for linux, marlin or mach3. So anyone wanting something different would watch that video. and I am sure it would have lots of views.
@swolebro
@swolebro 3 жыл бұрын
​@@phearl3ss1 Ok, so I took a look at your video showing off the SCARA ad that's actually pretty cool. The LinuxCNC docs definitely don't cover the use of scara apart from mentioning that "scarakins" exists as an alternative to the standard "trivkins" (trivial kinematics engine). Luckily, they do at least provide two example configurations. github.com/LinuxCNC/linuxcnc/tree/master/configs/sim/axis/vismach/scara github.com/LinuxCNC/linuxcnc/tree/master/configs/sim/gmoccapy/non_trivial_kinematics/scara Comparing the INI and HAL file in there to the basic-bitch configs you get from running the Stepconf Wizard (as in my earlier video) or the HAL files I build through this video series, might help you figure it out. Though right off the cuff, it doesn't appear they're setting any values for the lengths of the arm segments, which according to the HAL module code itself, should be some pins labeled D1 through D6. So I dunno. github.com/LinuxCNC/linuxcnc/blob/master/src/emc/kinematics/scarakins.c I'd say once you read over the example configs and bumble through it a little bit, post on the forums and ask for some help connecting the dots. I certainly think it's interesting, but I'm not going to promise any of my time towards it, since I've got enough to do already. A couple more videos to knock out, then I really need to focus my energy on getting some house repairs done and moving the fuck out of this goddamn commie shithole that I'm living in. Got real-life priorities to handle. If you want, you can drop an issue on this GitHub project here so I don't forget entirely, but you're looking at months and months before I can have any free cycles to possibly spend looking at it. github.com/swolebro/swolebro-youtube
@xiaoshang6098
@xiaoshang6098 3 жыл бұрын
Great video! Thanks for sharing!! Do you have any idea if LinuxCNC can be used to control a Siemens S7 PLC with PROFINET?
@swolebro
@swolebro 3 жыл бұрын
That's probably a question for the LinuxCNC.org forums. I'm just a homegamer - no experience with the industrial stuff.
@xiaoshang6098
@xiaoshang6098 3 жыл бұрын
@@swolebro You are absolutely right! Thanks for reminding me about the existence of the forum. Just about to get started with linuxcnc for a lab project.
@raoufmagdy3661
@raoufmagdy3661 2 жыл бұрын
Hey I am currently working on a scara robot project (I am very beginner to Linuxcnc) and I found some code for kinematics and inverse kinematics, does anyone know where shall I write this code like in HAL or INI or sth like that (sorry for the question but things are not clear for me)
@Roddzilla71
@Roddzilla71 4 жыл бұрын
I'm not a linux guy, but some of your commands don't work on my computer. I've got the debian wheezy 2.9 installed. Are some commands not used across all ditros? For example where you typed "tree", doesn't work in my terminal. Thanks
@swolebro
@swolebro 4 жыл бұрын
Some of the commands don't come by default, but are available if you know where to look. (Which is usually a Google thing; "tree" specifically comes in the "moreutils" package.) I talk about the other tools I like in video 1b, and have the quick write-up of how/what to install here: github.com/swolebro/swolebro-youtube/blob/master/linuxcnc/misc/installing-software.rst Finding out a tool even exists... that just takes time. Same thing as when you've been drilling and tapping holes all your life, then one day, someone hows you those combination drill-taps, and your mind is blown.
@TechBuild
@TechBuild 3 жыл бұрын
I am into a weird problem. First, when I boot into the normal mode(1st option), I don't get any output on the VGA port of the PC, when I boot into the failsafe mode(2nd option), everything works normally, except when I reboot, all the saved data, including the stepper config files, get erased from the hard disk. Please help.
@swolebro
@swolebro 3 жыл бұрын
Have you actually installed the system or are you only running it off a live USB? If you're running off the USB, click the wizard on the desktop and go through the install process. Not sure why your VGA is acting whack, and that's not a problem I can help with either.
@banefsej
@banefsej 4 жыл бұрын
hello . am a noob and try to learn everything about cnc's and hopefully ill DIy a CNC mill for fun and learning purposes . i think before everything its going to be nice to know why linuxcnc and nat ether systems and what features it have and haven't compared to ether systems . so it will make sense to me and noobs like me :) . thanks in advance and keep the good work
@proengeleceng6861
@proengeleceng6861 2 жыл бұрын
my usb stick could not be detected by the linuxcnc 2.7.14 debian wheezy pls help
@swolebro
@swolebro 2 жыл бұрын
USB stick for what, just general storage? My first guess would be to check what filesystem its formatted for. Once I get back to shooting videos, I plan on doing one about putting LCNC on a modern Linux Mint install. Should let you have more up to date software/drivers on it.
@ETsBees
@ETsBees 5 ай бұрын
When i type in "tree it says bash: tree: command not found" What am i doing wrong?
@swolebro
@swolebro 5 ай бұрын
That tool doesn't come by default on every distro. Usually it's in a package called "tree" or possibly "moreutils" which you'd install using apt-get. I'm a bit hazy on the specifics by memory since it's been a while, but video #1b in this series (Linux basics) probably covers that for ya.
@davidjupin8797
@davidjupin8797 2 жыл бұрын
I have a Linux question. I'm running Debian and at first could not see desktop icons. I've solved that issue but now I can't launch Linuxcnc from the icons. Could you point me in the right direction? Thanks.
@swolebro
@swolebro 2 жыл бұрын
Usually the desktop shortcuts are made when you walk through the Stepconf Wizard. If you right click and look through the properties on it, there should be a field for a shell command that'll have something like "linuxcnc /path/to/your/config.ini". Check and make sure that's set up correctly.
@davidjupin8797
@davidjupin8797 2 жыл бұрын
​@@swolebro Unfortunately, no luck. The desktop icon created looks like a shell script when I open it with the text editor and it has the proper ini file with the right path. Double clicking on it just doesn't do anything. Seems like maybe a permissions issue.
@swolebro
@swolebro 2 жыл бұрын
@@davidjupin8797 Could either be that it somehow got the executable bit unset. Check with `ls -la` and see what the permissions are, and `chmod +x` if that's it. Might also be something with mime or XDG settings, but then we're getting into stuff that cant really be debugged via KZfaq comments, particularly when I don't have a Debian/LinuxCNC machine of my own to look at right now.
@tayyabali4743
@tayyabali4743 3 жыл бұрын
Tree command is not working
@swolebro
@swolebro 3 жыл бұрын
Install the `moreutils` package: github.com/swolebro/swolebro-youtube/blob/master/linuxcnc/misc/installing-software.rst
@RadekMarko
@RadekMarko 3 жыл бұрын
Please add info how to add extra LPT port - it's not rival and might be useful - forum.linuxcnc.org/10-advanced-configuration/38798-second-lpt-port-solved?start=10
LinuxCNC HAL #2: INI improvements
18:07
swolebro
Рет қаралды 9 М.
LinuxCNC Classicladder introduction tutorial
34:43
The Feral Engineer
Рет қаралды 10 М.
Scary Teacher 3D Nick Troll Squid Game in Brush Teeth White or Black Challenge #shorts
00:47
🤔Какой Орган самый длинный ? #shorts
00:42
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
LinuxCNC HAL #1(b): Using Linux efficiently
37:29
swolebro
Рет қаралды 7 М.
LinuxCNC HAL basic tutorial, Part 2
22:32
The Feral Engineer
Рет қаралды 5 М.
Java Is Better Than Rust
42:14
ThePrimeTime
Рет қаралды 71 М.
LinuxCNC User Interface Proposal
17:19
BrendaEM
Рет қаралды 40 М.
пример настройки одной оси в linuxcnc
15:30
LinuxCNC HAL basic tutorial, Part 1
11:51
The Feral Engineer
Рет қаралды 12 М.
LinuxCNC for dummies #1
13:22
Erik Salo
Рет қаралды 18 М.
Самые крутые школьные гаджеты
0:49
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,5 МЛН
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 13 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Ноутбук за 20\40\60 тысяч рублей
42:36
Ремонтяш
Рет қаралды 232 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 15 МЛН