Bash M1## how to use the P word

More
5 years 1 month ago - 5 years 1 month ago #220832 by my1987toyota
Replied by my1987toyota on topic Bash M1## how to use the P word
  The PnP Topics connected to this topic.
[url] forum.linuxcnc.org/pnp/39408-pnp-feeder [/url]

and
[url] forum.linuxcnc.org/25-classicladder/4331...-to-linucnc-possible [/url]
Last edit: 5 years 1 month ago by my1987toyota. Reason: adding information

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

  • anfänger
  • Away
  • Platinum Member
  • Platinum Member
More
5 years 1 month ago #220858 by anfänger
Replied by anfänger on topic Bash M1## how to use the P word
I thought it’s subforum here to share code…
But nice I didn’t know you use linuxcnc to run these machines
The following user(s) said Thank You: my1987toyota

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

More
5 years 1 month ago - 5 years 1 month ago #220879 by my1987toyota
Replied by my1987toyota on topic Bash M1## how to use the P word
I washed the name through a translator anfänger = beginner correct?
That's a very interesting machine you got there . I have never seen an ATC like that.
Last edit: 5 years 1 month ago by my1987toyota. Reason: adding information

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

  • anfänger
  • Away
  • Platinum Member
  • Platinum Member
More
5 years 1 month ago #220882 by anfänger
Replied by anfänger on topic Bash M1## how to use the P word
Yes,
I stumbled open the German Petz of the forum and registered there quite a while ago. Realizing later, that its an English forum. Otherwise I would have chosen another nick name.
The following user(s) said Thank You: my1987toyota

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

More
5 years 1 month ago - 5 years 1 month ago #220883 by my1987toyota
Replied by my1987toyota on topic Bash M1## how to use the P word
It's a great Avatar name . Everyone is a Beginner at some point .
How did you learn to program bin bash ?
Last edit: 5 years 1 month ago by my1987toyota. Reason: updating information

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

  • anfänger
  • Away
  • Platinum Member
  • Platinum Member
More
5 years 1 month ago #220885 by anfänger
Replied by anfänger on topic Bash M1## how to use the P word
used play around with Linux 20 years ago. My brother was working fo the Alcatel then and we played around with sip an telephone servers. I was also running my own Webserver and was doing some PERL programming..
In that time I picked up some bash skills, but forgot most of it till I started using linuxcnc, but it was much easier for me to pick up some skills again than learning Python. In the beginning I did everything in bash. Now I mainly use a mix of ngc files and bash. And very few python. I have there or four python scripts for controlling the shellys in my air compressor. The Estop functions of the basket tool changer.
The reminders for the maintenance cycles and something I forgot.

The benefit of bash is you can glue all the commandline tools linux has together.

My tool change is quite complex but nice. The first ngc script checks if the called tool is in the basket. It so a bash written Mcode changes the tool. If not the current tool is stored away (I it is in the basket). The machine drives to the door and calls a bash written Mcode for a manual tool change.
This script searches the tool table to the called tool, and bings a popup window with Tool number, Offset and description. And after you confirmed the change it clamps the tool and asks you if it’s secured correctly. And resumes if you confirm.

It’s just a few lines of code.

So you can control every program or part of Linux wich ich accessible by bash with an Mcode. You can also read Hal and Ini parameters in bash, this was quite useful before you were able to access them from gcode.
For example if you need to change some bolts during a program, you could stop, bring a browser with a corresponding video in the foreground and resume agitier you closed the browser.
Or you could update an website with a part counter. Make a call to your smartphone after 500 parts. I really like LinuxCNC :D. I wish I had more time playing around with it
The following user(s) said Thank You: tommylight, my1987toyota

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

Time to create page: 1.096 seconds
Powered by Kunena Forum