Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
20 May 2024 13:19
Replied by PCW on topic 7i76 analog input

7i76 analog input

Category: General LinuxCNC Questions

I skipped one very important setup question:

What are the scalemax parameters for the 7I76 analog inputs?
  • greg23_78
  • greg23_78
20 May 2024 13:17
Replied by greg23_78 on topic problem or2 for select low gear

problem or2 for select low gear

Category: HAL

while writing this post i noticed that i hadn't declared

addf or2.1 servo-thread

by doing this all works.
  • greg23_78
  • greg23_78
20 May 2024 12:55
problem or2 for select low gear was created by greg23_78

problem or2 for select low gear

Category: HAL

I have a small problem with my gearbox, I would like to force my low gear to prevent my spindle head from turning when I change my tool (my carousel makes my spindle turn a few degrees and the next tool is no longer in front of my centring pin).
To do this, I use or2.
before my modification, my speed change worked perfectly when I rotated my spindle, but since I've tried to force the gear, my gear no longer works.
loadrt or2 count=2
addf or2.0                    servo-thread

net low-gear-carousel motion.digital-out-07
net low-gear-no-delayed gearchange.0.low-gear => timedelay.3.in
net low-gear-delayed <= timedelay.3.out
net low-gear-delayed  =>  or2.1.in0
net low-gear-carousel =>  or2.1.in1
net low-gear-or2 <= or2.1.out
net low-gear-or2 => hm2_5i25.0.7i77.0.0.output-03

what mistake did i make?
  • nauman
  • nauman's Avatar
20 May 2024 12:07 - 20 May 2024 12:13

Permission problem when loading custome hal module

Category: General LinuxCNC Questions

I have sudoer user 'cncmod' and I used 'sudo halcompile --install cncmod.c' still same problem.

more info

Install link

ls -l /dev/mem
  crw-rw-rw-. 1 root kmem 1, 1 Oct 26  2023 /dev/mem
ls -l /dev/gpiomem
  crw-rw-rw-. 1 root root 237, 0 Oct 26  2023 /dev/gpiomem
groups cncmod
  cncmod wheel
 
  • strahlensauger
  • strahlensauger's Avatar
20 May 2024 11:58
Replied by strahlensauger on topic 7c80 stepgens 2 and 3 defect

7c80 stepgens 2 and 3 defect

Category: Driver Boards

Just to close this thread,
after reworking I discovered a lose solder pin.
So it was the driver chip,
thanks to PCW everything is
working fine.
  • tommylight
  • tommylight's Avatar
20 May 2024 11:45

Permission problem when loading custome hal module

Category: General LinuxCNC Questions

Create a normal user in Fedora and run LinuxCNC from that user, usually a "sudoer" account on most distros.
Most software with direct kernel access will not run as root in most distros, due to potential to wreck havoc if misused.

I am trying to load/install one custom module using 'sudo halcompiler --install cncmod'

the line should be sudo halcompile
notice the missing R .
  • nauman
  • nauman's Avatar
20 May 2024 11:09 - 20 May 2024 11:24

Permission problem when loading custome hal module

Category: General LinuxCNC Questions

Hi all
I am trying to load/install one custom module using 'sudo halcompiler --install cncmod'
it is installing and I can see module in '/lib/linuxcnc/modules/cncmod.so'
But the problem is when I load this module in my config it is giving me permission problem but same module is working fine in debain linuxcnc official distribution.

Environment
Host OS: Fedora iot 38

Error:

Debug file information:
bcm2835_spi_begin failed. Are you running with root privlages??
cncmod: rtapi_app_main: Operation not permitted (-1)
./CNC-MOD.hal:10: waitpid failed /usr/bin/rtapi_app cncmod
./CNC-MOD.hal:10: /usr/bin/rtapi_app exited without becoming ready
./CNC-MOD.hal:10: insmod for cncmod failed, returned -1
11193
11206
Stopping realtime threads
Unloading hal components
cncmod: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Unexpected realtime delay on task 0 with period 25000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
<commandline>:0: unloadrt failed



And code where error is coming in my module is

if (!rt_bcm2835_init()) {
  rtapi_print_msg(RTAPI_MSG_ERR,"rt_bcm2835_init failed. Are you running with root privlages??\n");
  return -1;
}



How can I set the right permission in fedora same like linuxcnc debain
I also attach linuxcnc.report for more details.
Thank you
  • Thayloreing
  • Thayloreing
20 May 2024 11:00
I can no longer access a Linuxcnc page was created by Thayloreing

I can no longer access a Linuxcnc page

Category: LinuxCNC Documents

Good morning, I used this linuxcnc page to see the specifications of the linuxcnc components, but now I can even access the page, but when I click on a component to see the explanation, it gives an error saying that that page no longer exists, this Is it an error or has the page been discontinued? Follow the link at the bottom of the page, to test try pressing on a component it takes you to a page saying that there is no more information

linuxcnc.org/docs/devel/html/fr/hal/components.html
 
  • Grotius
  • Grotius's Avatar
20 May 2024 09:44
Replied by Grotius on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

Hi,

The look ahead seems to work. It's based on this skeleton code.
It was fucking frustrating designing this code. It seems so simple, but it was not.
It took me day's. In the end i first designed a working skeleton code. Then i was sure faults where
not related to this look ahead skeleton code. From there i calculated the velocity end's for the optimizer
by a trapezium velocity profile. As this is the fastest algo.

Then in the component the skeleton code is integrated as a look_ahead_optimizer .
Then with hal pins you can enable the look ahead and define the nr off look ahead lines.
If no values are given, it sets standard 20 look ahead lines, and standard the look ahead is active.

Then for arc's it uses a integrated velocity optimizer, these settings have to be ported to hal pins too in a later moment.
The perfect arc velocity is now set to radius 5 mm with velocity 1400 mm/min. All other arc velocity's are derived from
this setting.

The component now does not use the grbl's corner algo.

There is a tiny bug when the planner uses end velocity from current segment to next segment. The joint[n]
graph's in the scope show's little transition spikes, however the scurve graph output is ok.
I could not find the problem in a short time, so to solve this,
enable this line. The backend runners will filter the transition spikes out.
  • pmchetan
  • pmchetan
20 May 2024 08:01

Help wiring up BLDC drives with BISSC linear encoder to 6i25_7i76_7i74

Category: Basic Configuration

The drive in pulse mode isn't working with 7i76. I tried tune axis during pncconf to let 7i76 talk to the drive and get something on the motor, but I get nothing. Any 7i76 firmware I flash seem to be missing dpll.01.timer-us and stepgen.timer-number I tried MesaCT to flash 5i25_7i76x2, 5i25_7i76_7i74, 5i25_7i76_7i77 as well as I downloaded the bit files from mesa website and flashed using mesaflash 3.4.6 running linuxcnc 2.9.2 on debian 12.

I thought both +5v pin on the 7i76 daughterboard as well as my BLDC drive are +5v out, so I haven't connected them. Is it safe to connect?
  • jimmyrig
  • jimmyrig
20 May 2024 07:00 - 20 May 2024 07:04

qtplasmac 2.10 arc ok, thcad thc, and Thcad Ohmic troubleshooting help needed.

Category: Plasmac

Might have found it, started an issue.

github.com/LinuxCNC/linuxcnc/issues/2983

this is in the homing.c file

here is the code throwing the error, think it calls home abort for the joint

/* check for reached end of move */
if (! (&joints[jno])->free_tp.active) {
/* reached end of move without hitting switch */
(&joints[jno])->free_tp.enable = 0;
rtapi_print_msg(RTAPI_MSG_ERR,_("j%d end of move in home state %d"),jno, H[jno].home_state);
H[jno].home_state = HOME_ABORT;
return 1; // abort reqd
}


However the home abort case only does the current joint not all of them.

case HOME_ABORT:
H[joint_num].homing = 0;
H[joint_num].homed = 0;
H[joint_num].joint_in_sequence = 0;
joint->free_tp.enable = 0;
H[joint_num].home_state = HOME_IDLE;
H[joint_num].index_enable = 0;
immediate_state = 1;
break;




simple loop might fix the issue??? hope im understanding this correctly. e.g.

case HOME_ABORT:
for (int i = 0; i < all_joints; i++) {
H.homing = 0;
H.homed = 0;
H.joint_in_sequence = 0;
H.home_state = HOME_IDLE;
H.index_enable = 0;
joints.free_tp.enable = 0;
}
immediate_state = 1;
break;
  • phillc54
  • phillc54's Avatar
20 May 2024 04:26 - 20 May 2024 04:27

qtplasmac 2.10 arc ok, thcad thc, and Thcad Ohmic troubleshooting help needed.

Category: Plasmac

z axis, if failed to home (broken stepper wire) would still cause the x and y axis to move even after it failed!!!!!! had this happen twice over the last year with the thin nema 17 wires breaking at the connectors after all those pierces.


This looks like a LinuxCNC bug, I see the same behaviour in AXIS. I get the below error message but X and Y do go through their homing sequence.

  • Mr. Mass
  • Mr. Mass's Avatar
20 May 2024 03:24
Replied by Mr. Mass on topic Simple router

Simple router

Category: Show Your Stuff

Finished and posted a 3d model of this machine - grabcad.com/library/cnc-machine-a63-1
  • timaer
  • timaer
20 May 2024 02:58

Help,Leadshine DM556 open-loop stepper config

Category: EtherCAT

Hi,everyone,I'm a new diving to ethercat ,I want to config a machine using ethercat with 3 leadshine DM556 open-loop stepper. Is there anyone be very kind to offer me a sample code(including .ini,.hal,.xml stuffs) or link which can make the open-loop stepper works .Appreciate for any comments ,thanks
Displaying 26116 - 26130 out of 26531 results.
Time to create page: 0.676 seconds
Powered by Kunena Forum