Threadjack> Why did I get into CNC was ...What is hal?

More
01 Aug 2019 17:15 #141127 by Dinuka_Shehan
What is hal? was created by Dinuka_Shehan
I have no idea about hal?
how to create and modify hal file.
From where it came from.

How to find my hal file on linux cnc.
I can’t find it.

Please Log in or Create an account to join the conversation.

More
01 Aug 2019 17:35 - 01 Aug 2019 17:45 #141129 by Todd Zuercher
Replied by Todd Zuercher on topic What is hal?
The hal files talked about in Linuxcnc, are machine configuration files. They are simple human readable text files ending in the extention .hal and are saved in your config folder (~/linuxcnc/configs/folder_name). They are included with example configurations, and created by the config wizards. There are several chapters in the Linuxcnc documentation covering the syntax used in these files and how to use them, Here is a link to the 1st introductory one.
linuxcnc.org/docs/html/hal/intro.html

You edit them with any text editing program. (Please do not try to use a word processor, the hidden characters added by them for text formatting will cause all sorts of problems.) Also be careful of editing in Windows because MS uses different control characters for line ending and returns than are used in Linux.
Last edit: 01 Aug 2019 17:45 by Todd Zuercher.
The following user(s) said Thank You: Dinuka_Shehan

Please Log in or Create an account to join the conversation.

More
01 Aug 2019 20:01 #141138 by Grotius
Replied by Grotius on topic What is hal?
hal යනු දෘඩාංග වියුක්ත ස්ථරයයි

අඩකින් ඔබට ලිනක්ස්ක්එන්සී වෙත සං als ා සම්බන්ධ කළ හැකිය. පාර්පෝට්, මේසා සහ ඊතර්කැට් මෙන්ම ජොයිස්ටික්, ඔබේම දෑ ආදිය.

I / o තිබේ නම් ඔබට අවශ්‍ය සියල්ල සම්බන්ධ කළ හැකිය.

හැල් සමඟ අත්දැකීම් ලබා ගැනීමට, එය කාලය ගත වේ.

=> සං s ා විනෝදය සඳහා වේ.
# අදහස් දැක්වීමේ ලකුණකි.
net යනු සම්බන්ධක ලකුණකි
loadrt යනු සංරචක පැටවීමේ කමාන්ඩෝ ය.

ඔබ linuxcnc ගැන ඉගෙන ගන්නේ නම්, දිනක් ඔබට ඔබේම සංරචක C හි ලිවිය හැකි අතර ඒවා සම්පාදනය කළ හැකිය.

එය පහසු කාලයක් යැයි මම නොකියමි. නමුත් ඔබට කාලය ගත කළ නොහැකි නම්, කවුළු වල ගෙවන ලද අනුවාදය සමඟ ඔබ වඩා හොඳය.

ස්වයංක්‍රීය යාවත්කාලීන කිරීමෙන් පසු එක් දින කවුළුවක් නැවත ආරම්භ නොවේ.
The following user(s) said Thank You: Dinuka_Shehan

Please Log in or Create an account to join the conversation.

More
02 Aug 2019 15:49 #141194 by Dinuka_Shehan
Replied by Dinuka_Shehan on topic What is hal?
උදව්වට ස්තූතියි

Please Log in or Create an account to join the conversation.

More
02 Aug 2019 15:53 #141196 by Dinuka_Shehan
Replied by Dinuka_Shehan on topic What is hal?
I want to know how to program and want to learn program language like C++!

Any learning materials do you have?

Please Log in or Create an account to join the conversation.

More
02 Aug 2019 17:48 #141211 by Grotius
Replied by Grotius on topic What is hal?
Dinuka,

ඔබව සාදරයෙන් පිලිගන්නවා.

What is your goal with C++?
What kind of application do you want to build your own in the future, what is your interest?

Think about the general question. When you know it. I can give you a startup project in the path you want to follow..
The following user(s) said Thank You: Dinuka_Shehan

Please Log in or Create an account to join the conversation.

More
03 Aug 2019 03:01 #141247 by rodw
Replied by rodw on topic What is hal?
There will be many tutorials online to learn C.

Here is a suggested list of things to do.
Start with a hello world program
Understand basic data types
Then learn about program control commands (eg. if, then, else, for, while, switch)
How to call procedures and functions.
Rewrite hello world so it uses a procedure
Then learn how to use pointers. You can't program in C efficiently without them. Very powerful.
Rewrite hello world to use a procedure that is passed a pointer to a string.
Then learn about structures and how to use them.
Read some code
Write a component for linuxcnc.
The following user(s) said Thank You: tommylight, Dinuka_Shehan

Please Log in or Create an account to join the conversation.

More
03 Aug 2019 04:24 #141249 by Dinuka_Shehan
Replied by Dinuka_Shehan on topic What is hal?
I want to build an Indexable tool changer.
First I want to know basic programming

Please Log in or Create an account to join the conversation.

More
03 Aug 2019 09:15 #141261 by tommylight
Replied by tommylight on topic What is hal?

There will be many tutorials online to learn C.

Here is a suggested list of things to do.
Start with a hello world program
Understand basic data types
Then learn about program control commands (eg. if, then, else, for, while, switch)
How to call procedures and functions.
Rewrite hello world so it uses a procedure
Then learn how to use pointers. You can't program in C efficiently without them. Very powerful.
Rewrite hello world to use a procedure that is passed a pointer to a string.
Then learn about structures and how to use them.
Read some code
Write a component for linuxcnc.

That is nice!
I might take a run at it if and only if i can manage some time.
Thank you.
The following user(s) said Thank You: rodw, Grotius

Please Log in or Create an account to join the conversation.

More
03 Aug 2019 12:42 #141269 by rodw
Replied by rodw on topic What is hal?
Actually, Grotius nailed it. C is a tool to solve a problem. You will learn more if you have a problem to solve :)
In fact Grotius is an excellent example. A few months a go he knew nothing about C but he has a problem to solve and is now quite advanced with his programming skills.

Really once you understand how to control program flow (What I called Program control commands earlier), you will be able to learn any new programming language fairly quickly.
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum