Advanced Search

Search Results (Searched for: raspberry)

29 Nov 2023 19:08

Strange issue with conditional code

Category: O Codes (subroutines) and NGCGUI

Using LinuxCNC 2.10 and a Raspberry Pi 4 with the AXIS GUI. I am trying to cut a number of slots in a stack of three parts, making several passes to complete the depth.
When I load the following code, AXIS displays a rotating circle that just hangs there - sometimes if I hit ESC, it clears and I can run the code.
The cutter goes to the initial depth, and makes the cut. On the second pass, the cutter depth increases, but the program just keeps on looping, like it never sees the conditional at o110.
Any ideas? I also would like to have a means of displaying the variables in a message as the program runs.
%
(Flatware support #1)
#<count> = 3 (Number of parts)
#<width> = 0.75 (Thickness of part)
#<length> = [[#<width> * #<count>] + 0.75] (Length of cut)
#<depth> = -0.05 (Depth of each pass)
s18000 m03 (Spindle 10,000 RPM, turn on clockwise)
g20 (inch mode)
g90 (absolute mode)
g54 (fixture zero)
(First six slots)
#1 = #<depth> (current cut depth)
#2 = 0.1 (end cut depth)
g0 z[#<depth>] (initial cut depth)
o100 while [#1 LE #2]
g0 x0.45 (Start of first cut)
g0 y[#<length>] (make a cut)
g0 y0 (return to start)
#1 = [#1 + #<depth>]
o110 if [#1 GT #2]
#1 = #2
o110 endif
g0 z[#2] (go deeper)
o100 endwhile
%
29 Nov 2023 15:08

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

First, what operating system are you using? and second, what platform do you use it on? (Raspberry, Desktop PC etc), in RaspOS dhcpcd.conf is in /etc/dhcpcd.conf, the nano editor if it does not find the file creates a new blank one, if you are using RPI and RaspOS, try:
sudo nano /etc/dhcpcd.conf
In the video that I pointed out before Scott explains this, there are different tutorials on the internet on how to configure a static IP in RaspOS and other operating systems.
29 Nov 2023 13:54 - 29 Nov 2023 13:56

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

Hello 0jw, yes you need to configure the static IP address, I previously understood that you wanted to change it in the remora-eth component, I don't understand you much when you talk about Windows..., if you want to ping the card from Windows, configure your static IP in 10.10.10.X different from 10.10.10.10 because this would be the EC500 board, from the videos that I pointed out to you before Scott shows how to do it on a Raspberry under RaspOS, linuxcnc has a learning curve so I recommend that you look at the documentation Also the remora documentation, Scott's videos are also very instructive, after all this start from the sample configuration files that are in the LinuxCNC folder in the Remora-RT1052-cpp repository, greetings
29 Nov 2023 02:22 - 29 Nov 2023 02:28

In using ECR60+NPN(GPIO), I encountered an issue.

Category: EtherCAT

I'll provide a detailed explanation of some of the things I'm currently working on and the issues I've encountered:

1、Python is not used for real-time processing tasks. Its role is solely to read and invoke relevant APIs from the LinuxCNC Python module, as I have rewritten the GUI using HTML.



2、I use the ECR60 to drive stepper motors, and I haven't connected the NPN limit switches to the ECR60's IO; instead, I've connected them to the GPIO pins on the Raspberry Pi.

3、To display the position information of each axis in the HTML GUI and the calculation formula for tool position simulation, here are the details:
actual_position[i] - g5x_offset[i] - tool_offset[i] - g92_offset[i]

Based on the above situation, the motor control and the triggering of the NPN limit switches are working perfectly fine. The axis position information obtained during normal machining processes is accurate. Now, the issues I am encountering are as follows:

1、After triggering the NPN limit switches, the motors rotate as expected, but there is no change in the data for actual_position. This results in a lack of synchronization in the axis position information and tool position simulation displayed in the HTML GUI.

I also tried some experiments based on your feedback:

1、I compiled a component named "armcnc_home" following the documentation (linuxcnc.org/docs/devel/html/man/man9/homecomp.9.html) and made relevant configurations in the INI and HAL files, but it seems like it didn't provide any effective assistance:

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.000
BASE_PERIOD = 200000
SERVO_PERIOD = 1000000
HOMEMOD = armcnc_home
#*******************
#  AXIS X
#*******************

setp cia402.0.csp-mode 1
setp cia402.0.pos-scale 10000

net x-statusword      lcec.0.0.cia-statusword  => cia402.0.statusword
net x-opmode-display  lcec.0.0.opmode-display  => cia402.0.opmode-display
net x-drv-act-pos     lcec.0.0.actual-position => cia402.0.drv-actual-position
net x-drv-act-velo    lcec.0.0.actual-velocity => cia402.0.drv-actual-velocity

net x-enable     <= joint.0.amp-enable-out => cia402.0.enable
net x-amp-fault  => joint.0.amp-fault-in <= cia402.0.drv-fault
net x-pos-cmd    <= joint.0.motor-pos-cmd => cia402.0.pos-cmd
net x-pos-fb     => joint.0.motor-pos-fb <= cia402.0.pos-fb

net x-controlword         cia402.0.controlword         => lcec.0.0.cia-controlword
net x-modes-of-operation  cia402.0.opmode              => lcec.0.0.opmode
net x-drv-target-pos      cia402.0.drv-target-position => lcec.0.0.target-position
net x-drv-target-velo     cia402.0.drv-target-velocity => lcec.0.0.target-velocity

net debounce-home-x debounce.1.0.in <= armcncio.gpio.x-home
net both-home-x debounce.1.0.out
net both-home-x => joint.0.home-sw-in
net both-home-x => joint.0.neg-lim-sw-in
net both-home-x => joint.0.pos-lim-sw-in

# Here are the two added configurations:
net x-request-custom-homing <= joint.0.request-custom-homing
net x-is-custom-homing => joint.0.is-custom-homing

2、After triggering the NPN limit switches, during the homing process, I observed that the data from the "LinuxCNC Python module" API, including "joint," "joint_actual_position," and "joint_position," are continuously changing in real-time. I was considering using these values for synchronizing the axis position information and tool position simulation in the HTML GUI. However, I've noticed that after each LinuxCNC restart, the values of "joint.ferror_highmark," "joint_actual_position," and "joint_position" become extremely large. I believe that my idea of using these values for synchronization in the HTML GUI is not correct.

3、The values of "actual_position" only change after the homing process has been completed.

After these few days of tinkering, things seem to have become more complicated, and my goal is simply to ensure that the correct axis position information is displayed in the HTML GUI during the homing process. I appreciate the discussions and support you've provided regarding my issue, but I've only been working with LinuxCNC for three months, and my understanding of LinuxCNC is still at a shallow level. Therefore, I'm currently struggling to pinpoint where the problem might be occurring.


Thank you very much.

 
28 Nov 2023 11:19

Comparison between Raspian 12 Bookworm on Raspberry Pi 4 and Raspberry Pi 5

Category: Installing LinuxCNC

I think many posts in this thread are completely unrelated to the topic I started it with.
My idea was to compare the performance of the Raspbian Bookworm (and not the Debian) on Pi4 and Pi5....

ITs difficult for users to compare the products until they have a robust installation method for the pi5. But it has been reported latency is much improved.
28 Nov 2023 11:15

Comparison between Raspian 12 Bookworm on Raspberry Pi 4 and Raspberry Pi 5

Category: Installing LinuxCNC

I think many posts in this thread are completely unrelated to the topic I started it with.
My idea was to compare the performance of the Raspbian Bookworm (and not the Debian) on Pi4 and Pi5....
28 Nov 2023 01:31

Comparison between Raspian 12 Bookworm on Raspberry Pi 4 and Raspberry Pi 5

Category: Installing LinuxCNC

Andy tested this image for the Pi5 and found it worked ok except image colour depth was lacking.
drive.google.com/file/d/1H_q0Ra-27ZDOhqu...x1f/view?usp=sharing
This is just a variation of whats on the Downloads page for the 4b
27 Nov 2023 19:24

Comparison between Raspian 12 Bookworm on Raspberry Pi 4 and Raspberry Pi 5

Category: Installing LinuxCNC

Hello,

I'm sorry but I didn't understand, how to install in a simple way this last version of linuxcnc on raspberry pi4 with last version of the real time kernel .

can someone help me?

Thanks
27 Nov 2023 09:47
27 Nov 2023 04:12

Raspberry Pi 4 performance plus 7i76E

Category: General LinuxCNC Questions

I'm new to LinuxCNC I've installed the canned 2.9.1 on an RPi 4 8GB and got it to ping the 7i76E.  Then I ran the Latensy Test page and I've attached a screen shot of the page after running for about 20 minutes with no additional load.  According to pages I've seen as far as latensy test is concern the numbers that RPi 4 latensy test show is not a good candidate for any serious stepping and micro-stepping.  Since I'm pairing the RPi 4 with a hardware step generator like the 7i76E, should I just ignore the latensy test?
26 Nov 2023 21:42

Issues with Raspberry Pi4 and Mesa 7i96

Category: PnCConf Wizard

Even from the original githubConfig Menu
  • Review the userdata.txt file for further options: locales, timezone, nameserver(s) and extra wireless support
  • 1 active | 0 inactive
Name: # Your name
Username: # Your username
Password: # Your password
Enable root: # Set root password to `toor`

Linux kernel
Branch: # Supported: 6.1.y and above
Build: # Kernel build version number
Menuconfig: # Kernel menuconfig
Compiler: # GNU Compiler Collection / Clang
Ccache: # Compiler cache

Distribution
Distro: # Supported: debian, devuan and ubuntu
Release: # Debian: bullseye, bookworm, testing, unstable and sid
# Devuan: chimaera, daedalus, excalibur, testing, unstable and ceres
# Ubuntu: focal, jammy, kinetic and lunar
NetworkManager # 1 networkmanager | 0 ifupdown

Customize
Defconfig: # User defconfig
Name: # Name of _defconfig (Must be placed in defconfig dir.)

User options
Verbosity: # Verbose
Devel Rootfs: # Developer rootfs tarball
Compress img: # Auto compress img > img.xz
User scripts: # Review the README in the files/userscripts directory
User service: # Create user during first boot (bypass the user information above)
26 Nov 2023 21:37

Issues with Raspberry Pi4 and Mesa 7i96

Category: PnCConf Wizard

started with
make make kernel board=bcm2711


 
26 Nov 2023 21:05

Issues with Raspberry Pi4 and Mesa 7i96

Category: PnCConf Wizard

Had it on for a few hours now, seems to work! Throws an error about long delays but not enough to desync everything and everything keeps working without any noticeable problems.
Many thanks for the help once again!
...I might have pushed my prototype 3d-printed mounts a bit too hard...
Displaying 826 - 840 out of 1060 results.
Time to create page: 0.926 seconds
Powered by Kunena Forum