Advanced Search

Search Results (Searched for: )

  • Aciera
  • Aciera's Avatar
04 Nov 2024 19:11
Replied by Aciera on topic ERROR: Button to run a simple routine

ERROR: Button to run a simple routine

Category: pyVCP

Doesn't sound like a problem with your pyvcp panel but rather with your subroutine path.
Have you tried running this in the MDI command input:
o<safe-go-home> call 
If that gives you the same error, which I would expect, then check that you have placed the file 'save-go-home.ngc' in a directory listed in PROGRAM_PREFIX or SUBROUTINE_PATH in your INI file.
  • digiex_chris
  • digiex_chris
04 Nov 2024 18:49

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

Category: Computers and Hardware

Awesome. I will test it with my oscilloscope. I wonder if I need something like a pull down resistor after/before the level shifter.

I noticed that the one of my outputs is not always switching. It's tied to the "machine on" but when I toggle the machine on an off, sometimes it's not reacting. I also get some error messages in the Terminal.

This is my current wiring.
 

Just a thought, try setting the feed rate very very low, and maybe with a low scale factor. I noticed on my board (based on rio-iceshield but with slightly different parts and design), after about 2khz, the output signal no longer falls near zero and I get a strange offset sawtooth on the oscilloscope. Around 1.6khz I get nearly a sine wave, but with a flat bottom. Under 1khz I get a nice square wave. So I think I have some capacitance issues or the line driver isn't fast enough. Still digging into it. the ULN2803A I used looks like it's fast enough based on the datasheet but who knows!

What error messages? I had to tune FERROR and MIN_FERROR a bit for my setup to solve some following errors.
  • Askjerry
  • Askjerry's Avatar
04 Nov 2024 18:47
ERROR: Button to run a simple routine was created by Askjerry

ERROR: Button to run a simple routine

Category: pyVCP

I have built over 40 pyvcp panels in my life... and I have a button that runs a simple routine to safely go home.
Lift the Z, move to the XY, lower the Z. Simple... here is the code.

O<safe-go-home> sub
G90 G20        
M5         
M9          
G53 G0 Z 0
G0 X0 Y0
G0 Z0         
O<safe-go-home> endsub


The panel has a button with a halpin: safe-go-home

And the custom_postgui.hal has

net panel-safe-go-home  <= halui.mdi-command-00  <= pyvcp.safe-go-home

And lastly, the INI has...

[HALUI]
# add halui MDI commands here (max 64)
MDI_COMMAND = O <safe-go-home>         CALL


All the components I've used like 40 times before.

Now... on this machine... I'm getting...

EOF in file:/usr/share/axis/images/axis.ngc seeking o-word o<safe-go-home> from line 0

What the heck?
  • PCW
  • PCW's Avatar
04 Nov 2024 18:23

Unexpected realtime delay on task 0 with period 1000000

Category: QtPyVCP

Did you try pinning the IRQ?

This script can be used for testing:

 

File Attachment:

File Name: pinirq_2024-11-04.txt
File Size:1 KB


chmod +x pinirq.txt

then

./pinirq.txt [ethernet_device_name]

My home desktop (a HP EliteDesk G1) needs this
its running  6.11.0-rc3-rt3

Note that Debian RT kernels tend to be terrible
 
  • Aciera
  • Aciera's Avatar
04 Nov 2024 18:21 - 04 Nov 2024 18:22

Unexpected realtime delay on task 0 with period 1000000

Category: QtPyVCP


I tried searching for a repository of the kernel to see if i could dig through and see what changes were made but its very difficult, it looks like kernel.org was the most informative but i still could not find an actual repository with a history tree to hunt through.  anyone that could direct me to the spot to start digging?


Have you tried importing the rt git project into a git client (eg gitKraken) and then compare 2 branches?
git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git
Displaying 22546 - 22550 out of 22550 results.
Time to create page: 0.624 seconds
Powered by Kunena Forum