Bestanden delen met uw Mekanika CNC

Een gedeelde map maken op uw CNC-machine

Onze CNC machines zijn allemaal uitgerust met een Raspberry Pi 4B, waardoor het heel eenvoudig is om een gedeelde map op te zetten waarmee je bestanden en G-codes via je lokale netwerk kunt versturen. Dit artikel legt uit hoe je dit in een paar stappen voor elkaar krijgt.

Gedeelde map opgeslagen op uw CNC-machine (Windows 10)

1. Uw computer configureren

Eerst moet je je computer configureren om bestanden te delen via je lokale netwerk. Navigeer naar de lijst met WiFi-netwerken, zorg ervoor dat je computer is verbonden met het juiste netwerk en klik op Eigenschappen.

Cnc gedeelde map wifi-eigenschappen

Controleer of het profiel Privénetwerk is geselecteerd.

Cnc gedeelde map configureren Wifi

Schakel vervolgens de opties voor netwerkdetectie en bestands- en printerdeling in door deze stappen te volgen:

  1. Open het Configuratiescherm.
  2. Selecteer Netwerk en internet > Netwerkcentrum > Geavanceerde instellingen voor delen.
  3. Selecteer Netwerkontdekking inschakelen.
  4. Selecteer Delen van bestanden en printers inschakelen onder Privé.
  5. Sla de wijzigingen op.

Cnc gedeelde map functies uitschakelen

Open ten slotte het Configuratiescherm, selecteer Programma's en klik op Windows-functies in- of uitschakelen.

Cnc gedeelde map functies uitschakelen

Scroll naar beneden en controleer of SMB 1.0 Client is aangevinkt.

Cnc gedeeld smb 1.0

Start de computer opnieuw op.

2. Sluit uw CNC machine aan op het netwerk

Schakel uw besturing in en wacht tot het systeem is opgestart.

Minimaliseer het PlanetCNC-venster om het bureaublad te zien. Klik op het WiFi-pictogram rechtsonder en schakel WiFi in.

Mekanika Cnc gedeelde map Wifi aanzetten op tour raspberry pi

Je ziet nu een lijst met alle beschikbare lokale netwerken. Klik op de naam van je netwerk en typ indien nodig het wachtwoord.

Je kunt je besturingseenheid ook rechtstreeks op je router aansluiten met een ethernetkabel en het WiFi-configuratiegedeelte overslaan.

Start de Raspberry Pi opnieuw op door op het raspberry-pictogram te klikken, uit te loggen en vervolgens opnieuw op te starten.

Cnc gedeelde map netwerkontdekking opnieuw opstarten

3. Bestanden delen

Ga terug naar je computer, open de bestandsverkenner en navigeer naar Netwerk. Je zou een apparaat moeten zien met de naam RASPBERRYPI.

Mekanika Cnc gedeelde map Raspberry pi

Dubbelklik op dit apparaat om toegang te krijgen tot de gedeelde map van je machine.

Als daarom wordt gevraagd, kun je de standaard gebruikersnaam en wachtwoord van de Raspberry Pi invoeren:
gebruikersnaam: pi
wachtwoord: raspberry

Je hebt nu toegang tot de gedeelde map en kunt er bestanden in kopiëren. Ze verschijnen automatisch in dezelfde map op je computer.

Cnc Shared Folder Pc Access

Cnc gedeelde map Raspberry Pi toegang

Om toegang te krijgen tot die map vanaf uw computer, klikt u gewoon op de snelkoppeling linksonder en navigeert u naar Gedeeld.

Gedeeld bestand opgeslagen op uw CNC-machine (Mac OS)

Zorg ervoor dat je computer verbonden is met je lokale netwerk voordat je begint.

Schakel de besturing in en wacht tot het systeem start.

Minimaliseer het PlanetCNC-venster om het bureaublad te zien. Klik op het WiFi-pictogram rechtsonder en schakel WiFi in.

MAC gedeelde map schakelaar op Wifi

Je ziet nu een lijst met alle beschikbare lokale netwerken. Klik op de naam van je netwerk en typ indien nodig het wachtwoord.

Je kunt je besturingseenheid ook rechtstreeks op je router aansluiten met een ethernetkabel en het WiFi-configuratiegedeelte overslaan.

Start de Raspberry Pi opnieuw op door op het raspberry-pictogram te klikken, uit te loggen en dan opnieuw op te starten.

MAC gedeelde map computer opnieuw opstarten

Ga terug naar je Mac computer, open de Finder en navigeer naar Netwerk. Je zou een apparaat met de naam RASPBERRYPI moeten zien. Dubbelklik erop.

Dossier partagé Mac Finder

Als daarom wordt gevraagd, kun je de standaard gebruikersnaam en wachtwoord van de Raspberry Pi invoeren:
gebruikersnaam: pi
wachtwoord: raspberry

Je hebt nu toegang tot de gedeelde map en kunt er bestanden in kopiëren. Ze verschijnen automatisch in dezelfde map op je computer.

Om toegang te krijgen tot die map vanaf uw computer, klikt u gewoon op de snelkoppeling linksonder en navigeert u naar Gedeeld.

MAC voor cnc mekanika gedeelde map

Access a Folder Stocked on your Computer from your CNC (IN BETA TESTING)

This is our recommended setting:
Configuring a shared folder on your personal computer so you can access your files when navigating on your CNC machine. This way, you can work on your projects on your computer, save the G-code files in this shared folder, then go to your machine and open those files directly without the need for a USB key.

The only condition: both the computer and the machine have to be connected to the same internet network to see the files on the machine (it can be by Ethernet cable or WiFi, it doesn't matter as long as the network is the same).
 

1.A. Windows 11 - PC Configuration

 
First we need to setup the shared folder on your Windows 11 PC.

1.1. Windows user with password

To access the folder from an external machine, you'll be requested the password of a user of the PC.

  • For security reasons, we recommend creating a new separate account that has no access to important things on your computer and will be only used to share the files. 
    Go to Settings > Accounts Other Users > Add an account, and keep note of the Username and Password you choose.
  • If you don't want to create one, or if your network is very secure, you can also use your regular Windows account.
    But if you use a PIN and not a password to connect to your account, it won't be usable from an external machine: you will have to create a real password in Settings > Accounts > Sign-in options.

1.2. Shared folder configuration

  • Right-click on the folder you want to share > Properties > Sharing > Advanced Sharing
  • Check "Share this folder" (you can put a sharing name if you want it to be different than the folder's name)
  • Click OK

Advanced Sharing Windows11

  • We'll now give permissions to the account we just created so it can access the folder.
  • Click on Share > select the account and click Add (in my example I called the account "admin").
  • Give Read/Write permissions to the account, then click Share and Finish.
    (if you made the settings while logged as the sharing account, it will already be "owner" of the folder which is fine).
  • If a pop-up to activate Windows network discovery appears, click Yes.

Share Permissions Windows11

  • Note the PC name (e.g., "MYPC") and the Folder's Share Name (e.g., "shared-folder") to enter the info in the machine later.
    They are shown in the sharing window in "Network path" (in my example the path is "\\QUENTINMEKANIKA\shared-folder" so, my PC name = QUENTINMEKANIKA and Share name = shared-folder).

 

1.B. Mac OS Configuration (to be tested)

1.1. Shared folder configuration

  • On your Mac, choose Apple menu > System Settings, click General in the sidebar, then click Sharing.
  • Take note of the Computer's Name for the next steps.
  • Below Content & Media, click the Info button next to File Sharing.
  • Turn on File Sharing.
  • Click Options, then turn on “Share files and folders using SMB.”
  • Add the folder you want to share with the +.
  • Take note of the name of the folder too for the next steps.

 

2. CNC Machine Configuration 

IMPORTANT: Using the Virtual Keyboard

In several steps you will be required to type some text on the machine, but it doesn't have a keyboard.
Connecting an external keyboard to the machine can bring some complications, so here's a solution: the virtual keyboard.

  • Go to Raspberry Logo > Accessories > Virtual Keyboard (it may also be accessible by a shortcut on the taskbar)
  • A keyboard will appear on the screen, you can use it as a regular keyboard using the touchscreen.
  • Special characters are accessible through the shift button on the left

2.1. Connecting the CNC to the Internet

If it is not the case yet, we need to give internet access to the Raspberry Pi (the computer) of the machine. Remember it has to be on the same network as the computer sharing the file.
 
The easiest way is to connect an Ethernet cable at the back of the control unit. Otherwise you can connect it by WiFi this way:
  • Turn on your control unit and wait for the system to start.
  • Minimize the PlanetCNC window to see the desktop.
  • Click on the bottom-right WiFi icon (2 bars with red crosses) and turn on the WiFi.
  • You should see a list of all the local networks available after a while.
  • Click on the name of your network and type the security key using the virtual keyboard.

Wifi Raspberry Pi

2.2. The Configuration Script for the CNC Machine

  • Download this Mekanika File Sharing Setup Script (contact us to get the file for the moment) and extract the 2 scripts inside on a USB drive.
  • Plug the USB drive into the machine and Copy the 2 files to the Raspberry Pi's Desktop (you can drag and drop from the USB drive or press and hold on the files to access the right click menu).
  • Open a Terminal (Black icon in the taskbar at the bottom)
  • Use the virtual keyboard to enter this line (exactly) then press Enter:
bash ~/Desktop/setup_fileshare.sh
  • The installation script will begin, follow the instructions in the terminal.
    When there is a list, type the number of your choice  then press Enter
    When a question ends with y/n you have to type Y for yes or N for no then press Enter
Raspberry Pi Command in Terminal
  • The installation script will begin, follow the instructions in the terminal.
    When there is a list, type the number of your choice then press Enter (e.g. 1 for English, 2 for French)
    When a question ends with y/n you have to type Y for yes or N for no, then press Enter.

Pi Share Mekanika

  • Complete the instructions until it says you are done, then restart the machine:
    Raspberry logo > Shutdown > Reboot.
That's it !
 

3. How it works

  • The shared folder will be accessible on the CNC at  the folder you specified (by defaut it will be the name of your computer and folder) and visible on the explorer just like a regular folder.
  • As long as your computer is on the same network, you'll have access to the files in the shared folder.
  • You can add more users sharing their files or more folders to share by launching the same script again. You can then choose to add the user/folder to the same "/mnt/shared" folder or create a separate one.
  • If you can't see files inside the folder: go to View > Reload Folder to refresh the folder.

4. Common Issues in the configuration script

  • Failed to access the computer:
    you are probably not on the same network, or your IP configuration 
  • "Could not resolve"
    > Try using the PC's IP address (e.g., 192.168.1.1) instead of its name

5. Uninstall

You can uninstall one or all users/shared folders by launching the uninstall script with the command:

bash ~/Desktop/uninstall_fileshare.sh

Then follow the instructions on screen.

Over Mekanika

Mekanika is een Belgisch bedrijf gevestigd in Brussel dat als ambitie heeft om lokale productie toegankelijker te maken dankzij een 100% open-source benadering.

We ontwerpen en produceren CNC frees- en zeefdrukmachines van hoge kwaliteit die een reputatie hebben opgebouwd voor betrouwbaarheid en gebruiksgemak. Onze gereedschappen worden geleverd in volledig gedocumenteerde kits, zodat ze gemakkelijk kunnen worden aangepast aan specifieke behoeften.

Bezoek onze Store om meer te weten te komen, of bekijk onze online bronnen en tutorials om verder te leren.

Gerelateerde artikelen

Resuming an Interrupted Milling Progam on PlanetCNC
Een onderbroken freesprogramma hervatten op PlanetCNC

Planet CNC biedt de mogelijkheid om een G-code vanaf een specifieke regel te starten in plaats van vanaf het begin. Dit kan handig zijn om een taak te hervatten die om verschillende redenen is onderbroken, zoals een programma-/computercrash, een stroomstoring of een noodstop.

Quentin Liard

Quentin Liard

Customer Support

 <img src="image.jpg" alt="">
Begrijpen en optimaliseren van je vacuümtafel

Ontdek hoe je de prestaties van je vacuümtafel kunt maximaliseren door praktische tips over snijdstrategieën, spoilerboard-onderhoud en veel meer te leren.

Maxime Gravet

Maxime Gravet

Product Engineering