Advanced Search

Search Results (Searched for: )

  • Babymomoh
  • Babymomoh
Today 08:54

Documenting my journey through ethercat config.

Category: EtherCAT

My background:
 i am working as electrical panel maker for cnc machines for wood routers since 2 years for a company near me as a part timer, or you can say whenever they have a new order. they have been using cheap parallel port card with mach3. Now the computers with parallel ports being scarce they wanted me to find them something that is cheap, reliable, and something somewhat latest in technology.
 This is how I came across linuxcnc. although i knew about it long ago, but never had the chance to work on it. also i couldn't acquire mesa cards till today. so i decided to work on ethercat instead of going for specific hardware.

Hardware i am using:
XINJE DS5C1                                             Drives for axis
EK1100, EL1008, EL2008, EL4002            Beckhoff ethercat modules for input output.
  • Aciera
  • Aciera's Avatar
Today 05:42 - Today 06:57

Shutting down a standalone GLADE panel launched with gmoccapy

Category: Gmoccapy

Searching Google for an answer to this issue it suggested to put a system command in the shutdown.hal file and set the .ini parameter:

SHUTDOWN = shutdown.hal

which I have done.

I've created a bash command script, killglade, which if run from the command line kills the orphaned glade panel. In my shutdown.hal file I have the following command:

system killglade


That is pure AI generated nonsense. There is no hal command 'system':
www.linuxcnc.org/docs/stable/html/hal/ba...tml#sec:hal-commands

What you could try is start your configuration through bash and have your killglade script execute after linuxcnc is shut down:
linuxcnc path_to_your_inifile_here && bash path_to_your_bash_script_here
  • SoloRev
  • SoloRev
Today 04:56
Replied by SoloRev on topic Plasma CNC Pipe Cutting Machine

Plasma CNC Pipe Cutting Machine

Category: Plasma & Laser

I am not. I just read trivkins and it also supports xyzabc. so ill have a go at that.
  • galmiklos
  • galmiklos
Yesterday 02:49 - Yesterday 02:51
Replied by galmiklos on topic Cannot get out of Estop

Cannot get out of Estop

Category: General LinuxCNC Questions

Since I had the flexi-pi image on the SSD, I booted it, started linuxcnc in debug mode and saved the output.
I then booted the new LinuxCNC image from, the SD card, and did the same. Started linuxcnc in debug mode and saved the output.
Since the SSD is always connected, I mounted it, and so I could compare the debug output. The only difference was these lines.
DEBUG: Initialising RP1 library: rt_rp1lib_init
DEBUG: Base address:  1f00000000, size: 400000, mapped at address: 0x7ffeecb60000
DEBUG: rp1spi_init(), SPI0
DEBUG: SPI0 Base address:       50000, mapped at address: 0x7ffeecbb0000
DEBUG: dws->ver = 3430322a
DEBUG: Synopsys DWC APB SSI v4.02
DEBUG: Detected FIFO size: 64 bytes
DEBUG: Detected 32-bits max data frame size
DEBUG: Pin: MOSI -> GPIO Number: 10, FSEL Number: 0
DEBUG: Pin: MISO -> GPIO Number: 9, FSEL Number: 0
DEBUG: Pin: SCLK -> GPIO Number: 11, FSEL Number: 0
DEBUG: Pin: CS   -> GPIO Number: 8, FSEL Number: 0
DEBUG: clk_div = 10
DEBUG: BAUDR = 20000000 hz
I don't know where to get this ;library from, I thought it would be part of the "flexi" component that comes withe flexi-pi image.
  • scsmith1451
  • scsmith1451's Avatar
Yesterday 00:34

Shutting down a standalone GLADE panel launched with gmoccapy

Category: Gmoccapy

Searching Google for an answer to this issue it suggested to put a system command in the shutdown.hal file and set the .ini parameter:

SHUTDOWN = shutdown.hal

which I have done.

I've created a bash command script, killglade, which if run from the command line kills the orphaned glade panel.  In my shutdown.hal file I have the following command:

system killglade

However, the panel is not stopped upon shutdown of gmoccapy. The documentation from the web mentioned that the bash script should be in the configuration directory. While not technically in the configuration directory I created a soft link to the actual file which is in my ~/bin directory which in turn is in my search path so the file can be executed from anywhere.

Does anyone have an idea what I may be missing or any insight into running bash scripts with the system command in the shutdown.hal file?

I've attached my killglade script and my shutdown.hal file for your reference. 
  • galmiklos
  • galmiklos
Yesterday 23:53
Replied by galmiklos on topic Cannot get out of Estop

Cannot get out of Estop

Category: General LinuxCNC Questions

Yes, there is an ESTOP input on the board, but it is not triggered.

The communication between the RPi5 and the board is SPI. The firmware flashed is a customized version of remora-spi, tailored for the Flexi-HAL board by Expatria (github.com/Expatria-Technologies/remora-flexi-hal).

I don't think there is anything is wrong with the board. As I said, I have multiboot set up with an SSD and an SD card, and I have the customized linuxcnc image on the SSD from Expatria (github.com/Expatria-Technologies/Flexi-Pi). If I boot that, everything works.

My best guess is that it is the communication between the board and the Pi through SPI that isn't working for some reason.
  • PCW
  • PCW's Avatar
Yesterday 22:13 - Yesterday 22:29
Replied by PCW on topic I can't reverse the spindle rotation.

I can't reverse the spindle rotation.

Category: Basic Configuration

Can you check the output of the module with an ohmmeter?

If the PC817 module needs 5V drive you would have to connect it in sinking
mode to the 7I92. ( +5V to PC817 module IN+ 7I92 output to
PC817 module IN-  and active low output )

Is there some other issue with reverse in the hal file
( like PWM connections if you have spindle speed control )
  • tommylight
  • tommylight's Avatar
Yesterday 22:02
Replied by tommylight on topic I can't reverse the spindle rotation.

I can't reverse the spindle rotation.

Category: Basic Configuration

The LED on the PC817 module lights up when REV is on, but the spindle doesn't reverse.

  • PCW
  • PCW's Avatar
Yesterday 21:58 - Yesterday 21:59
Replied by PCW on topic I can't reverse the spindle rotation.

I can't reverse the spindle rotation.

Category: Basic Configuration

Is it a hal setup error?

For Mesa FPGA cards you need to know the GPIO pin number
for the pin and to set that GPIO pin into output mode.
  • tommylight
  • tommylight's Avatar
Yesterday 21:51 - Yesterday 21:52
Replied by tommylight on topic I can't reverse the spindle rotation.

I can't reverse the spindle rotation.

Category: Basic Configuration

Do i understand correctly, you have a BOB attached to Mesa, and then from BOB to PC817?
That seems redundant as you already have the GND's wired together, so might want to get rid of the PC817 as it is not isolating anything.
Is there any resistor on the input side of the PC817?
There must be one, probably a 47-100 ohm should work.
also, might want to try the pull down version, so the pin 9 to the other input of PC817, and the input that was on pin 9 to +5V. This might also require inverting the pin in hal.
  • tommylight
  • tommylight's Avatar
Yesterday 21:43
Replied by tommylight on topic Cannot get out of Estop

Cannot get out of Estop

Category: General LinuxCNC Questions

Does the machine have a physical e-stop?
What comms between RPI and control board?
  • galmiklos
  • galmiklos
Yesterday 21:34
Cannot get out of Estop was created by galmiklos

Cannot get out of Estop

Category: General LinuxCNC Questions

Hi,

I have a PrintNC machine with a Flexi-HAL board, and installed the customized Expatria LinuxCNC image (github.com/Expatria-Technologies/Flexi-Pi) on a Pi5, then upgraded LinuxCNC to 2.9.8. It all works fine.
I have the Pi5 with an SSD as well as an SD card, so I can kind of multiboot, and the above mentioned setup is on the SSD. I wanted to move from bookworm to trixie, so imaged the SD card with the latest trixie based LinuxCNC image (github.com/LinuxCNC/linuxcnc/releases/do...9.8_arm64_trixie.deb), and copied all the linuxcnc configuration over from the SSD.

LinuxCNC starts with the same configuration, but I cannot get out of ESTOP. I click the big red ESTOP button (using qtdragon_hd), but nothing happens.

Any advise what I can look at?

Thank you in advance!
  • Ismacr63
  • Ismacr63
Yesterday 21:26
I can't reverse the spindle rotation. was created by Ismacr63

I can't reverse the spindle rotation.

Category: Basic Configuration

Hey everyone,

I'm stuck with a weird problem and could use some advice.

I've got a 3-axis mill with a 1.8kW AC servo on the spindle. It used to run perfectly from a parallel port and a Chinese BOB. I'm now upgrading to a Mesa 7i92, still using the same BOB.

To reverse the spindle I've always used a PC817 optocoupler module. When the REV signal is active, the module pulls the servo driver's DI4 pin to GND, and the spindle reverses. Simple.

Now with the 7i92, everything else works (motion, outputs, etc.), but the spindle reversal doesn't. The LED on the PC817 module lights up when REV is on, but the spindle doesn't reverse. If I take a piece of wire and manually jumper DI4 to GND, it reverses instantly. I've even tried a brand new PC817 module – same behavior.

Wiring of the PC817:

Input side: IN → pin 9 of the BOB, GND → BOB GND

Output side: V (collector/output) → DI4 on the servo driver, GND → servo driver GND

The BOB GND and the servo driver GND are common.

What puzzles me is that this exact setup worked fine with the parallel port. Why would the 7i92 cause a problem with the same BOB and wiring? Is there something different about the 7i92 outputs that could mess with the PC817?

 Is there a better or more reliable alternative to these PC817 modules for this kind of level shifting?

Thanks in advance
  • tommylight
  • tommylight's Avatar
Yesterday 20:45
Replied by tommylight on topic one job, multiple files, one directory

one job, multiple files, one directory

Category: General LinuxCNC Questions

There are many ways of doing things in Linux and LinuxCNC, so i'll just throw this out there:
-you can have many configs for the same machine-in your case you can have PyVCP panels for chairs in one config, for beds on another config, etc, etc, as many as you care to make
-each of those configs can have it's own working directory to read files and/or MDI/O calls, etc
-each of those configs can also have it's own limits and/or speeds and/or accelerations and/or ... whatever you need
Any many more options, frankly hard to recall all at once here so i am sure i might find more later.
  • MaHa
  • MaHa
Yesterday 20:31
Replied by MaHa on topic one job, multiple files, one directory

one job, multiple files, one directory

Category: General LinuxCNC Questions

You can call offsets and subroutines with a variable:
Just some example

;select G54
#<ucs> = 54
G#<ucs>

;select from G54 to G57
#<job> = 0
o100 REPEAT[4]
#<job> = [#<job> + 1]
#<ucs> = [53 + #<job>]
G#<ucs>
o100 ENDREPEAT

and you can call numbered subroutines

#<job> = 1
#1234 = #<job>
o#1234 call

and the subroutine would be
1.ngc

o<1> sub

your code

o<1> endsub
M2

It should be possible to assign offset and call the required subroutines with variables
Displaying 1 - 15 out of 14865 results.
Time to create page: 1.315 seconds
Powered by Kunena Forum