Advanced Search

Search Results (Searched for: )

  • my1987toyota
  • my1987toyota's Avatar
20 Aug 2024 09:28
Replied by my1987toyota on topic Сreating a component

Сreating a component

Category: General LinuxCNC Questions

I need to get around to doing this sort of thing myself. I usually use Classic ladder when I do things like that but
Classic Ladder feels like overkill when doing 1 or 2 simple things.
  • rodw
  • rodw's Avatar
20 Aug 2024 09:26
Replied by rodw on topic Video about shielding cnc machine wiring

Video about shielding cnc machine wiring

Category: Computers and Hardware

Our government thought we needed a level playing field so tarrifs are typically 5%. But we have FTA's (Free trade agreements) with a lot of countries including USA, UK, China and India where the tarrifs are waived. Typically though these need a certificate of origin (COO) stating  its made in our partner country. Generally, these are issued by the government for a fee. Sometimes its just as easy to pay the tarrif instead of pay the fee which also saves time.

Oh and we still have a luxury car tax to protect our local car industry which shut down totally a few years ago.
  • slowpoke
  • slowpoke
20 Aug 2024 09:22 - 20 Aug 2024 09:24
Replied by slowpoke on topic Scaling 0-1024 to 0-102

Scaling 0-1024 to 0-102

Category: HAL

 

 

 
Thanks for that.
The visual (block diagram) explanation works much better for me than the plain text explanation that I initially found.
excerpt from my postgui for anyone trying to figure this out in the future.... this works for me:
#  Analog Inputs - Jog Speed
loadrt scale count=1
addf scale.0 servo-thread
setp scale.0.offset 0.0
setp scale.0.gain 0.12
net jog-pot-in scale.0.in <= arduino.ain.0
net jog-speed halui.axis.jog-speed <= scale.0.out
  • rodw
  • rodw's Avatar
20 Aug 2024 09:17
Replied by rodw on topic best linuxcnc version for beginner

best linuxcnc version for beginner

Category: Installing LinuxCNC

Enough sarcasm.
The latest official ISO from the Linuxcnc home page is the way to go, it should “just work”.
Regarding your error, please relay the exact error you are getting, then we can move on.
 

I hope so.Took me months to build.... even Cornholio helped!

Linuxcnc is generally very good at reporting errors but you need to start it from the command prompt by typing linuxcnc to get the best reporting.
But typing "linuxcnc -l" where -l is "L for last", loads the last config you opened and I use it all the time as its a great shortcut
  • my1987toyota
  • my1987toyota's Avatar
20 Aug 2024 09:16 - 20 Aug 2024 09:17
Replied by my1987toyota on topic Video about shielding cnc machine wiring

Video about shielding cnc machine wiring

Category: Computers and Hardware

I am curious if they ( Government ) use the same rhetoric of they need to get away from imports, add tariffs for said imports while simultaneously
importing more products. At least that is how it seems here in the states.
  • rodw
  • rodw's Avatar
20 Aug 2024 08:59
Replied by rodw on topic Gui for standalone thc

Gui for standalone thc

Category: Plasma & Laser

Start with Axis always... move to another GUI once you have a good moving machine.

As an alternative view point, a stepper driven torch lifter with float switch and breakaway costs about $500. I just shipped a 72 kg QTplasmac controller package today, and we are replacing a motor driven torch lifter. He is also getting a 433 mhz wireless pendant. The client is really excited about the addidtional safety features he will get like breakaway, probe pausing motion if triggered by cutting and moving from DM542 drivers on 24 volts to Lam Technologies DS1076 drivers with 60 volt AC power, high quality Moon's motors with custom made 5:1 planetary gearboxes will lift this old slug into orbit!
Here is the lifter (200mm travel)
 

 
  • rodw
  • rodw's Avatar
20 Aug 2024 08:36

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Strange, the parts I ordered on Sunday night from Element 14 arrived on Thursday with DHL ex UK. No wonder they don't hold stock here anymore.
  • rodw
  • rodw's Avatar
20 Aug 2024 08:32
Replied by rodw on topic Video about shielding cnc machine wiring

Video about shielding cnc machine wiring

Category: Computers and Hardware

Yes, its sad, We used to manufacture everything but sucumbed to China. But we are barely 10% of your size. Parts I used to manufacture I get made in China or India because I could not reliably source raw  material. One part I needed 50mm lengths of Silicone hose and when I asked if the manufacturer could cut to length they said no, my choice was 1 metre or six inches (they imported ex USA), Consequently the cost was about $17 a piece. But the cost in China when I went to a trade show there was $2.60 and nothing was a problem. In fact the same supplier is currently making a sample batch of 50 custom intercooler hoses with OEM fittings each end...
  • besriworld
  • besriworld
20 Aug 2024 08:26
Replied by besriworld on topic LinuxCNC starts when PC is turned on.

LinuxCNC starts when PC is turned on.

Category: Basic Configuration

Thanks for the link! The mistake was that I did not save the session
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
20 Aug 2024 08:17
Replied by Cant do this anymore bye all on topic best linuxcnc version for beginner

best linuxcnc version for beginner

Category: Installing LinuxCNC

No double posting, one thread per issue.
  • Moutomation
  • Moutomation
20 Aug 2024 07:44
Replied by Moutomation on topic gmoccapy pins

gmoccapy pins

Category: Gmoccapy

Great, just what I wanted, thank you very much for your support.
  • mighty_mick
  • mighty_mick's Avatar
20 Aug 2024 07:17
Replied by mighty_mick on topic How to make HAL pins from .c kinematics file?

How to make HAL pins from .c kinematics file?

Category: HAL

in the lines below, you are actually creating a variable to hold your data in program memory.

struct haldata {
hal_float_t *pivot_length;
hal_float_t *x_offset;
hal_float_t *y_offset;
} *haldata;

You need to expose that addresses named x_offset, y_offset, pivot_length to hal layer, this means exporting pin. As aciera said, you can use hal_pin_float_newf function to export it. You can also use other functions to export it, they are declared at src/hal/lib/hal.h file.

This exporting process works like this:
1- You have a struct in your program memory and it is only for your program, not for other programs.
2- With this exporting functions, you are sharing your program's memory with other programs. You can consider it like giving a permission to hal layer to access your program's memory. You are registering your program's memory to public area.
3- Afte exporting your pins, you are giving ability to use that pin names in hal layer appropriately. for example, if you use this code block,
result = hal_pin_float_newf(HAL_IN,&(haldata->pivot_length),comp_id,
"%s.pivot-length", "component-name");
it means you are exporting haldata->pivot_length memory area to hal layer with name component-name.pivot-length. After that, you can use it in your hal file with this name.

I recommend to read about Inter Process Communication mechanisms in Linux, especially shared memory. LinuxCNC uses shared memory to register hal pins.
  • Aciera
  • Aciera's Avatar
20 Aug 2024 06:30
Replied by Aciera on topic gmoccapy pins

gmoccapy pins

Category: Gmoccapy

I'm not sure I understand which file needs to go where but you can check for file existance using 'os.path.exists(file)':
if os.path.exists(source1):
   print("The file exists.")
else:
  print("The file does not exis so we copy it from the mnt to the taglio folder") 
  shutil.copyfile(source1, destination1)
  • Moutomation
  • Moutomation
20 Aug 2024 06:05 - 20 Aug 2024 06:06
Replied by Moutomation on topic gmoccapy pins

gmoccapy pins

Category: Gmoccapy

For example, if we can do this, there is always this file in the mnt folder. If there is no this file in the taglio folder, if we copy this file from the mnt folder to the taglio folder, my problem will be solved again.
for example:
#!/usr/bin/env python3
import os
import time
import hal
import linuxcnc
import shutil
source1 = "/mnt/CutDocument.txt"
destination1 = "/mnt/taglio/CutDocument.txt"
if there is no CutDocument
shutil.copyfile(source1, destination1)


source = "/mnt/taglio/CutDocument.txt"
destination = "/mnt/CutDocument.txt"

h = hal.component("file-check")
h.newpin("file-changed", hal.HAL_BIT, hal.HAL_OUT)
h.ready()
# create a connection to the status channel
s = linuxcnc.stat()
# this is the file being checked for updates (example looks for 'file.txt' in the config folder)
file_path = '/mnt/taglio/CutDocument.txt'
# wait time in milliseconds between file checks
check_interval = 1000
# length of output pulse in milliseconds
pulse_length = 1000
  • Aciera
  • Aciera's Avatar
20 Aug 2024 05:56

How to make HAL pins from .c kinematics file?

Category: HAL

you also need to call the 'hal_pin_float_newf()' to create the pins:

So after this:
result = hal_pin_float_newf(HAL_IN,&(haldata->pivot_length),comp_id,
                                "%s.pivot-length",kp->halprefix);

add this
    result = hal_pin_float_newf(HAL_IN,&(haldata->x_offset),comp_id,"%s.x-offset",kp->halprefix);
    if(result < 0) goto error;
    result = hal_pin_float_newf(HAL_IN,&(haldata->y_offset),comp_id,"%s.y-offset",kp->halprefix);
    if(result < 0) goto error;
Displaying 22831 - 22845 out of 24960 results.
Time to create page: 0.457 seconds
Powered by Kunena Forum