Advanced Search

Search Results (Searched for: )

  • masawee
  • masawee
Today 15:57 - Today 15:59
Replied by masawee on topic LinuxCNC with Raspberry pi 4

LinuxCNC with Raspberry pi 4

Category: General LinuxCNC Questions

have anybody make rpi4 working linuxcnc, what need doing gpio pins config, this hal,demo and html not help anything what need doing, not understand what must make, ewer not has written and understand code, only test run "blink" code and working.

just buy rpi4 and encoder wheel, buttons, rotate switch, shift level converter 3,3V to 5V and stepper motor drivers DM556 and nema 23 470 OZ/ 3 Nm motors, and install rpi4 linuxcnc image to card and run image, ok, but were is config wisard gpio pins ?
config wisard has only paraller port pin config.
pnc config has only ower expensive mesa card config.
how config all pins to rpi4 gpio ???? has anybody make this and can tell step by step or send config files what need rpi4 working whit this linuxcnc rpi image.
image boot and run ok, step conf wisard no help how gpio pins setting.
  • masawee
  • masawee
Today 15:22
Replied by masawee on topic LinuxCNC at RPI4 with using IO Pins only ?

LinuxCNC at RPI4 with using IO Pins only ?

Category: Installing LinuxCNC

arduino shield can use only toy motors, less than 2A motors can use, not have cnc machine motors too small, normal cnc used nema 23 470 OZ 3Nm motor 3-6Ampere current minimum cnc motors. and not need BOB card use big stepper motor drivers etc, DM556 drivers,
  • masawee
  • masawee
Today 15:18
Replied by masawee on topic LinuxCNC at RPI4 with using IO Pins only ?

LinuxCNC at RPI4 with using IO Pins only ?

Category: Installing LinuxCNC

not is problem rpi use 3,3V and then use shift level converter module, cost 1-4 $ about and convert this gpio 3,3V to 5V out, then this 5V can connect wire to stepper motor drivers ETC, DM556.
  • masawee
  • masawee
Today 15:15

configuring my GPIO pins to linuxcnc with Raspberry pi 4

Category: HAL

what this is, not understand lot say hal need write code but not understand anything what code need write, not easy help, lot has only english plaa plaa plaa but no say how use gpio pins linuxcnc rpi4 stepper drivers pins step and dir and enable, paraller port has simple easy but why not rpi4 have same system can add pins and step/dir, number. etc, pin 17 is x axis step, pin 13 is x axis dir, were this is, or not have why not.
  • masawee
  • masawee
Today 15:07

configuring my GPIO pins to linuxcnc with Raspberry pi 4

Category: HAL

i just install rpi4 linuxcnc image to my rpi4 but step conf wisard not have gpio pins can config, how make this, i looking today pnc config but has only mesa card config, no working if need only gpio pins output to stepper driver board DM556. i use gpio pns and shift level converter 3.3V to 5V convert and then 5V can use output to stepper driver, but how config all gpio pins what i need use. step conf wisard not can, pnc config wisard no can its only mesa card conf. how peoples has made rpi gpio run drivers and inputs.

rpi4 boot ok linuxcnc 2.9.x whit my HDMI display but not old VGA display say only out off range 1. rpi used mini HDMI to vga cable and working good normal image raspian, but not whit linuxcnc image .
  • tommylight
  • tommylight's Avatar
Today 14:53

current latest download of LinuxCNC V2.9.8 will not install GRUB on several PC's

Category: Installing LinuxCNC

Does the PC boot and work in live mode?
To many errors, seems like failing memory module or controller....
  • fts
  • fts
Today 14:51

current latest download of LinuxCNC V2.9.8 will not install GRUB on several PC's

Category: Installing LinuxCNC

> that looks like its looking on the cd/DVD. If this is not on installation, edit your sources file to remove the CD/DVD settings

I'm not sure whether the cdrom:// is referencing an actual CD or it's looking on the USB key that I had flashed with the image. I wasn't hearing any attempted access to the DVD drive though that might not mean much. (Do you know?)

The installation worked after I rebooted and ran through the installation from scratch and let the thing have an Internet connection (DHCP lease FWIW) to do what it wanted to do. Going back and reconfiguring the network and package portions without rebooting was not enough to resolve the GRUB installation issue.
  • tommylight
  • tommylight's Avatar
Today 14:50

Crazy characters in code after import from another document (Word or eq.)

Category: G&M Codes

Do not use windows editors or office suits for editing machine files.
Use simple text editors such as notepad on windows or mousepad, gedit, nano, geany, etc on Linux.
  • Xnke
  • Xnke
Today 14:38

current latest download of LinuxCNC V2.9.8 will not install GRUB on several PC's

Category: Installing LinuxCNC

I am also trying to use the latest ISO with the Preempt-RT kernel, and the installer fails at the "installing system" step. It also can't format the boot partition as vfat, because apparently the module to read and write FAT32 or FAT16 isn't included? I also have issues with the Realtek firmware for the NIC not being included either.

In order of appearance:

Need non-free firmware, rtl8106g-2.fw not included. I insert removable media (USB thumbdrive) with the realtek firmware .deb and the actual .fw file and it apparently can't access this, even when prompted. Leads to no network access during install.

During partitioning, I prefer seperate /, /tmp, /bin, and /home partitions, but I can work in anything that works. Unfortuntately, no matter what partitioning system I use, even the suggested systems, I get the same error during the installation step: Installing system failed. If I drop to a terminal and do a "cd / && ls" , I can see all the normal things I would expect, but if I try to mount sda0,1 at /, then cd to it and ls, I get what looks normal, but I have not done a comparison yet to see how much is missing.

Finally, if I just push it forward to install grub and try to boot a possibly crippled system, it fails to install grub and complains that it cannot access /boot due to not having the vfat module.

I've downloaded and verified the .iso and burned it with Rufus using both the .iso and dd methods, and I get consistently the same results.

System is a J3445 Celeron 1.5ghz with 4gb of ram and a 140gb Sandisk SSD.
  • sivaraj
  • sivaraj
Today 12:30

400V Servo (51 Nm) mit EtherCAT / CiA402 in LinuxCNC – bezahlbarer Drive gesucht

Category: Deutsch

Based on the manual (download.sew-eurodrive.com/download/pdf/29194652.pdf), your motor appears to be an 8-pole motor.

For an 8-pole motor to operate at 4500 RPM, it requires a frequency supply of approximately 300 Hz, which is supported by most modern drives.

Please note that the 400 V value refers to the inverter-rated voltage, not the motor's rated voltage. You can find additional details in the following document (see page 44):
download.sew-eurodrive.com/download/pdf/29133866.pdf

I found a similar motor with name plate details in this ebay listing:
www.ebay.de/itm/168190225800

This motor rated Power is 5.29 kW

Usys 400 V is the inverter-rated voltage

Motor rated voltage: 328 V

It is not strictly necessary for the drive’s current rating to match the motor’s maximum current, especially if you have a large gear ratio. In such cases, a lower power drive can be used. For example:

11 kW drive should work well . Estimate the torque required

Even a 7.5 kW drive may also be sufficient depending on the application

However, if you plan to use the motor at its maximum rating (48 A with 51 Nm at 4500 RPM), this would require approximately a 22 kW drive.

Another important consideration is the type of encoder installed on the motor. You may need to ensure the encoder is compatible with the selected drive, or possibly replace it to match the drive requirements.

I have seen CTB China drives were used by Linuxcnc user,You can check CTB universal drive with Ethercat interface
  • Badger1875
  • Badger1875
Today 12:11

Crazy characters in code after import from another document (Word or eq.)

Category: G&M Codes

Hi folks,

did this appear  to anyone of you in former times?

I'm  fairly new to CNC and brandnew to LinuxCNC (MiniMill 2.9) and I needed a 'warmup_routine' for my machine, so I used the help of AI and generated a file to my purpose.
I imported the code to my Windows editor and saved the file as <name>.ngc.
I wrote shorter files on my own in g-code in advance, saved them, transfered them to the machine and opened them: they worked from the first second.

As I tried to open the g-code with the AI generated parts, I recieved absolute trashed characters in the code, the complete code was unreadable!

When I opened this file with the 'gedit' from Linux, everything looked fine...

Anyone of has some ideas, tipps or solutions?

Greetz

Freddie
 
  • kb0thn
  • kb0thn
Today 11:31

Laser power scaling based on speed and direction

Category: HAL Examples

Much thanks to iforce2d for this implementation and write-up. I just deployed a slightly tweaked version of it to my 4x10' router that has a 40 watt laser as second spindle. 

I had to modify the component to force zero power output when there was no motion. It looks like the original first line of code can result in a NaN and then my machine was ending up with a 50% PWM output in that state. So I force NaN to zero. That worked okay in my testing at a fixed z height. But when running an actual program I retract Z between parts and I was finding that Z only motion was leaving the laser stuck on. So now I also force zero power output when X and Y motion are essentially zero.
component aprs_laserreg "";

pin in   float inpower    "Desired laser power at constant speed";
pin in   float reqspd    "Requested speed, connect to motion.requested-vel";
pin in   float curspd    "Current speed, connect to motion.current-vel";
pin in   float velx    "Current speed x component, connect to joint.0.vel-cmd";
pin in   float vely    "Current speed y component, connect to joint.1.vel-cmd";
pin in   float velz    "Current speed y component, connect to joint.1.vel-cmd";
pin in   float share    "Fraction of power given to pure Y movement, eg. 0.6";
pin out  float outpower "Scaled output laser power";

function _ fp "Update the laser power";

license "GPL";

;;

#include <math.h>

FUNCTION(_) {
	outpower = inpower * (curspd / reqspd);
	    
	float angle = atan2(fabs(velx), fabs(vely));  // angle away from y in radians
	float horz = angle / (0.5*M_PI);          // 1 when moving perfectly along x axis
	outpower *= share + (1-share) * horz;

	if ( outpower > inpower )
		outpower = inpower;        
	if ( outpower > 100 )
		outpower = 100;        
	if ( ( fabs(velx)<1e-6 && fabs(vely)<1e-6 ) || isnan(outpower) || outpower < 0 )
		outpower = 0;

}

I use a bunch of MESA cards including a 7I77 and a 7I76. And then some additional IO boards linked via serial. I never figured out how to get a hardware PWM output. So I am using software PWM for driving the laser. Here are the relevant sections of my custom.hal file showing how it all goes together:
# laser engraver
# software PWM
loadrt pwmgen output_type=0
addf pwmgen.update      servo-thread
addf pwmgen.make-pulses servo-thread # should be base-thread
setp pwmgen.0.enable TRUE
setp pwmgen.0.scale 65535

# based on https://forum.linuxcnc.org/47-hal-examples/54073-laser-power-scaling-based-on-speed-and-direction
loadrt lincurve personality=2
loadrt aprs_laserreg # for some reason the component gets renamed to aprs-laserreg (ie changes _ to -)

addf lincurve.0         servo-thread
addf aprs-laserreg.0    servo-thread # I don't seem to have a base-thread. I think because it is MESA


# Laser power mapping (0-100 -> 0-65535)
setp lincurve.0.x-val-00 0
setp lincurve.0.y-val-00 0

setp lincurve.0.x-val-01 100 
setp lincurve.0.y-val-01 65535 

net laser-requested-speed      motion.requested-vel    => aprs-laserreg.0.reqspd
net laser-current-speed        motion.current-vel      => aprs-laserreg.0.curspd
net laser-velx                 joint.0.vel-cmd         => aprs-laserreg.0.velx
net laser-vely                 joint.1.vel-cmd         => aprs-laserreg.0.vely
net laser-velz                 joint.2.vel-cmd         => aprs-laserreg.0.velz
setp aprs-laserreg.0.share     1.0 

net laser-percent              spindle.1.speed-out      => aprs-laserreg.0.inpower
net laser-regulated-percent    aprs-laserreg.0.outpower => lincurve.0.in
net laser-65535                lincurve.0.out           => pwmgen.0.value
net laser-pwm                  pwmgen.0.pwm             => optimat_o_laser_engraver_pwm

# second spindle we will always consider to be at speed
net laser-at-speed => spindle.1.at-speed
sets laser-at-speed true
  • Hakan
  • Hakan
Today 10:59
Replied by Hakan on topic CiA 402 Folder Missing

CiA 402 Folder Missing

Category: EtherCAT

It is encoder pulses per mm, maybe your value isn't far off then.
It is suspicious if it start moving very fast. Use halshow to look at the
variables between cia402 and lcec and see if they look ok in size,
moves when they should etc.
  • Finngineering
  • Finngineering
Today 09:45
Replied by Finngineering on topic Strange preview for circular arc (G2/G3)

Strange preview for circular arc (G2/G3)

Category: G&M Codes

Thank you Hannes. I made a bug report as you suggested:
github.com/LinuxCNC/linuxcnc/issues/3855

This was a real use case and a toolpath I intended to use immediately. I was trying for an hour or so, wondering how I can mess up or misunderstand such a simple command. I then gave up and made this thread some time later. I would think I had the command right from the start, just that incorrect preview threw me off. And I did have a fair bit of confidence in the preview, because I had previously used several somewhat complicated CAM generated programs, and the preview always looked fine. Well, at least I know the reason now.
  • Konstantin
  • Konstantin
Today 07:57
Replied by Konstantin on topic CiA 402 Folder Missing

CiA 402 Folder Missing

Category: EtherCAT

About the cia402.0.pos-scale, I wrote 100 000 to just start with some value. My encoders are 23bit, therefore 8 388 608 pulses per motor revolution. On my current plasma machine I have a 1:10 planetary gearbox that I plan to use when I upgrade the machine motors to servo motors and LinuxCNC. The rack gear pitch diameter is 50 mm, therefore the circumference is 157.07963267949 mm. This the linear distance that the axis will travel for 1 revolution of the rack gear or 10 revolutions of the motor.

Therefore the cia402.0.pos-scale = ((encoder res * gear ratio)/distance per rev). I am not sure what value I should use for distance per rev - is it the linear distance per the rack gear revolution or the linear distance per motor revolution(that is linear distance per rack gear revolution / gear ratio)?
Displaying 1 - 15 out of 18315 results.
Time to create page: 0.175 seconds
Powered by Kunena Forum