Advanced Search

Search Results (Searched for: )

  • Ehsan_R
  • Ehsan_R
18 Jan 2025 18:04 - 18 Jan 2025 18:05
Replied by Ehsan_R on topic How to call a python script in gcode

How to call a python script in gcode

Category: General LinuxCNC Questions

Now I want to see the created text file in the GUI
How can I do this?
 
  • Muecke
  • Muecke's Avatar
18 Jan 2025 17:54 - 18 Jan 2025 17:55

Customization of the icon for the LinuxCNC website

Category: Forum Questions

On the page linuxcnc.org/ the new logo is visible, but not on the forum :-(



  • Ehsan_R
  • Ehsan_R
18 Jan 2025 17:53 - 18 Jan 2025 18:06
Replied by Ehsan_R on topic How to call a python script in gcode

How to call a python script in gcode

Category: General LinuxCNC Questions

Thank you very much for your reply
I acted in this way
By running the following program, two txt files will be created, one to save the new numbers created in a specified format and the other to save all the numbers to avoid repetition.
import random
import os

existing_filename = 'random_numbers.txt'
new_numbers_filename = 'new_random_numbers.txt'

if os.path.exists(existing_filename):
    with open(existing_filename, 'r') as file:
        existing_numbers = [list(map(int, line.split())) for line in file.readlines()]
else:
    existing_numbers =


def generate_new_numbers():
    numbers = set()
    while len(numbers) < 12:
        number = random.randint(0, 20)
        numbers.add(number)
    return list(numbers)


while True:
    new_numbers = generate_new_numbers()
    
   
    if len(new_numbers) == len(set(new_numbers)):
     
        for existing_row in existing_numbers:
            if new_numbers == existing_row:
              
                break
        else:
 
            break

with open(new_numbers_filename, 'w') as file:
    for index, number in enumerate(new_numbers):
        file.write(f'#{200 + index}={number}\n')


existing_numbers.append(new_numbers)


with open(existing_filename, 'w') as file:
    for line in existing_numbers:
        file.write(' '.join(map(str, line)) + '\n')


Then I defined an M code to run the program
And in the Gcode file, by calling the file that contains variables #200 to #212, I entered the value of these variables into the Gcode program.
 
  • Muecke
  • Muecke's Avatar
18 Jan 2025 17:47
Replied by Muecke on topic Age of the website and forum

Age of the website and forum

Category: Forum Questions

@cornholio: I was more interested in the structures behind it, which I don't know as an outsider.
The Kunena Forum can take over the complete user structure of Joomla with all rights etc., which is quite complex, at least that's how I understood it on the Kunena Forum website.

Of course, you can also create and operate the forum separately from the website (with additional rights management etc.).

The current OS


That's a silly question, sure. Is the server environment created by yourself?
Or is the server environment managed?



Notes:
1) If we have installed our own server that runs on Ubuntu, the server may need to be updated.
1.1) Ask the person who installed the server!
1.2) Do nothing without a backup!!!

-- when the server is cleared and done --
2) Check which PHP version is installed
2.1) Update if necessary
3) Check which database is installed (probably MySQL, which version)
3.1) Update if necessary
4) Check which domains are available and where they are forwarded to.
4.1) List of all domains with internal/external destination folder
4.2) Check all start folders of the domains ‘.htaccess’ whether redirects exist here www without www https forced etc. ...
5) Check the user administration of the forum to see if it is connected to Joomla.
5.1) If no, much easier, if yes, think again!
6) Create new folder for new forum
7) Install new forum incl. new database etc.
8) Possibly check with the forum manufacturer Kunena whether user data, posts and images from the old forum can be exported/imported to the new forum.
etc.

But the beginning is very important, because this is the basis for everything else and when I look at what @JT has provided us with as a layman, I get the impression that it is not a finished server (which a service provider takes care of), but that the server was set up itself, which then also has to be maintained!

There are 3 active forums at the same time,
..
forum.linuxcnc.org
...
www.forum.linuxcnc.org
...
162.243.45.186

I hope not!

My site is accessible with and without www, but there is only one page.
All visitors who come to my site without WWW are redirected to the WWW page on the server side!

Google and Co. don't want duplicates either and usually remove such things from the INDEX! which would be a great pity!

I have the impression that I have not yet fully understood how the whole thing is structured and that we are talking past each other in the wrong places.

Ich schätze mal, das liegt oft auch am Problem der Begrifflichkeiten und auch sicher an meinem Englisch, was von DeepL kommt ;-)
  • Aciera
  • Aciera's Avatar
18 Jan 2025 17:39
Replied by Aciera on topic rotation plane around y axis in g18

rotation plane around y axis in g18

Category: G&M Codes

The usual approach is to create a configuration for vertical and another for horizontal operation but
one can easily create a kinematic that allows for switching between vertical and horizontal spindle orientation even in Gcode.
  • Deckerjwd
  • Deckerjwd's Avatar
18 Jan 2025 16:47
Replied by Deckerjwd on topic Holes have a taper

Holes have a taper

Category: General LinuxCNC Questions

so i have had trouble holding that close of a tolerance, my holes are strait but the size is +-/0.003 with it tending toweds the small size. i can sneek up on it but not worth it for what we run on the phantom. may stick some wood in the mazak vtc-20 and run blind pocket and probe it
  • Deckerjwd
  • Deckerjwd's Avatar
18 Jan 2025 16:41
Replied by Deckerjwd on topic get a bad character '/' on probe macro

get a bad character '/' on probe macro

Category: General LinuxCNC Questions

went though all the macros and found // comment instead of a () comments
got all the / out and they work. im using tormack probe macros not sure if they work on that system
  • Lcvette
  • Lcvette's Avatar
18 Jan 2025 15:52
Replied by Lcvette on topic scurve trajectory planner

scurve trajectory planner

Category: General LinuxCNC Questions

Awesome Grotius, I plan on installing and testing on machine this week! Super excited to do some comparisons between previous known rough motion programs and show the difference. I will get some good video footage to share!
  • papagno-source
  • papagno-source
18 Jan 2025 15:42
Replied by papagno-source on topic rotation plane around y axis in g18

rotation plane around y axis in g18

Category: G&M Codes

I think that for a cnc, rotations in the G17-G19-G20 planes are fundamental. There are many machines that have a double spindle, one installed vertically and the other horizontally. In these cases it is necessary to change the plane and the rotation of the plane, allows to greatly facilitate the work of programming the piece.
Displaying 19966 - 19974 out of 19974 results.
Time to create page: 0.796 seconds
Powered by Kunena Forum