Advanced Search

Search Results (Searched for: )

  • juergen-home
  • juergen-home
12 Sep 2025 11:25 - 12 Sep 2025 11:28
A basic .hal file for a simple gamepad was created by juergen-home

A basic .hal file for a simple gamepad

Category: HAL Examples

This is a basic .hal file for a simple gamepad.
I use this for manual milling on the diy cnc.
For my safety I removed the joysticks and only use the buttons pressed by a 3d printed plug.

#
# jog with 1,2,3,4,11,12
# select jog speed with 9,10
# select increment with 5,6,7,8
# start program with 16
# pause program with 14
# mist-coolant  with 15
# e-stop with 13
#
 
 


 
  • unknown
  • unknown
12 Sep 2025 11:00
Replied by unknown on topic The forum is really laggy recently.

The forum is really laggy recently.

Category: Forum Questions

It's not a redirect, it's being hosted on another unverified server, linuxcnc.langdonstaab.ca . A redirect would be mean putting in forum.linuxcnc.org and then being sent to another server.

This is a case of having to contact another server, that being linuxcnc.langdonstaab.ca, which if it was redirecting to forum.linuxcnc.org, how would speed up the response of the machine at forum.linuxcnc.org ?

I'm under no illusion it's a DNS thing, but some maybe, based on tommy's comments. Tommy was also mentioning ROOT servers within the context of routing, this is incorrect. I even posted a link to the role of ROOT servers on the internet.
To summarise:
1 DNS is not the issue, I confirmed this early on via an entry for forum.linucnc.org in my /etc/hosts file. So no external DNS is required resolving the IP address for forum.linuxcnc.org on that machine. This file is used to resolve localhost to 127.0.0.1.
2 The OP is not providing any DNS service, as some may think & have stated.
3 The slow response of the forum is the machine at forum.linuxcnc.org
4 Connecting to linuxcnc.langdonstaab.ca will not speed up the response time of the server at fourm.linuxcnc.org
5 Nor will connecting linuxcnc.langdonstaab.ca speed up DNS resolution.
6 linuxcnc.langdonstaab.ca must be running a local instance of the forum, how this has been accomplished I can not say. But his lack of response to any questions regarding security and permission make me somewhat suspicious.
7 linuxcnc.langdonstaab.ca & forum.linuxcnc.org are on two different machines.
8 Even if one machine had both addresses assigned to it, which makes no sense, it would not resolve any issues with slow response times.

Just for context:
I have a server at home with one NIC that provides a wiki, ftp, file servers, web servers and a gitlab server, all of which have different ip addresses assigned to unique FQDNs on my intranet. The name resolution is handled by a BSD machine running router/dns/dhpcd services, hence I can access every machine via a name, whether it be ssh, file services or any another service that may require name resolution.
  • hellvetica
  • hellvetica
12 Sep 2025 10:52

Recompiling the motmod modules to expose pos-cmd pins

Category: Advanced Configuration

I figured it out.
I created 2 pins:
pos_cmd_override and pos_cmd_override_enable
to emc/motion/axis.c as well as add the variables in the emcmot_axis_t and axis_hal_t structs.
Created getter functions like in the axis.c and the corresponding declaration in axis.h

Then in axis_calc_motion in axis.c i added
```
if (axis_get_pos_cmd_override_enable(axis_num)) {
axis->teleop_tp.pos_cmd = axis_get_pos_cmd_override(axis_num);
axis->teleop_tp.enable = 1;
axis->teleop_tp.max_vel = axis->vel_limit;
axis->teleop_tp.max_acc = axis->acc_limit;
}

```
Now I can set the pins to the desired robot position and the trajectory planner will do the rest. I can also use useful feedback pins like in-position which i couldn't do when using external offsets.
  • scsmith1451
  • scsmith1451's Avatar
12 Sep 2025 10:50

Having issues calling ACTION.CALL_MDI() from python handler

Category: O Codes (subroutines) and NGCGUI

Ahh, no linuxcnc was not running. I was testing the handler via halcmd. Let me put it into the machine and see if it works correctly there.

Regards,
  • jrc
  • jrc
12 Sep 2025 09:59

CiA 402 progress (RTelligent and Leadshine working!)

Category: EtherCAT

Many thanks for this! I am using (or rather trying to use!) 2 units of 2CS3E-D507 dual-stepper drives for the arm and carousel platters in a dual-carousel machine, and need a little help with working out how to define the joints and address each stepper motor in the drive separately.

Looking at just one stepper drive, say for the right-hand carousel, if its index is 9, I assume I need to put in my ethercat.xml something like:
<slave idx="9" type="2CS3E-D507" name="ATC-Right" />

possibly with some modParam entries as needed.
The question is what do I need to do after than in machine.ini, machine.hal, and cia402.comp so that I can address each of the two motors (two in each drive) separately and associate each of them with its own individual joint. And once I have done than, what is the name of each of them?
Normally they end up producing a lot of pins with a "base name" which looks like "lcec.0.x.", thus lcec.0.4.cia_statusword for example.

My naive idea is to put something like this in machine.ini, assuming this carousel uses joints 6 and 7 :
#*** RIGHT CAROUSEL *******************************
#** arm **
[JOINT_6]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -10.0
MAX_LIMIT = 200.0
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
FERROR = 1000
MIN_FERROR = 1000
HOME_ABSOLUTE_ENCODER = 2
#** platter **
[JOINT_7]
TYPE = LINEAR (maybe "ANGULAR"?)
HOME = 0.0
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
FERROR = 1000
MIN_FERROR = 1000
HOME_ABSOLUTE_ENCODER = 2
#******************************************

cia402.comp presumably needs something like:
 
##########################\n
# Functions servo-thread\n
##########################\n
addf lcec.read-all servo-thread\n

addf cia402.6.read-all servo-thread\n
addf cia402.7.read-all servo-thread\n

addf motion/ PIDs / PCL / etc .\n

addf cia402.6.write-all servo-thread\n
addf cia402.7.write-all servo-thread\n

addf lcec.write-all servo-thread\n
#########################################\n
#nets .....\n

What about machine.hal? Presumably the top part needs something like :
addf cia402.6.read-all        servo-thread
addf cia402.7.read-all        servo-thread
addf cia402.6.write-all       servo-thread
addf cia402.7.write-all       servo-thread

However, what do I need to put lower down to link the joints 6 and 7, cia402's and lcec's?
My current bit for the X-axis using EL8 servo drives looks like the code below. What is the rough equivalent for a dual-stepper drive that needs to associate each of the two steppers controlled by the drive to joints 6 and 7 respectively?
#*******************
#  AXIS X  lcec.0.5 cia402.0 joint.0
#*******************

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

# joint signals for motion
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-enable      joint.0.amp-enable-out => cia402.0.enable
net x-amp-fault   joint.0.amp-fault-in   <= cia402.0.drv-fault

# ethercat to cia402 driver
net x-statusword      lcec.0.5.cia-statusword  => cia402.0.statusword
net x-opmode-display  lcec.0.5.opmode-display  => cia402.0.opmode-display
net x-drv-act-pos     lcec.0.5.actual-position => cia402.0.drv-actual-position

# cia402 driver to ethercat
net x-controlword         cia402.0.controlword         => lcec.0.5.cia-controlword
net x-modes-of-operation  cia402.0.opmode              => lcec.0.5.opmode
net x-drv-target-pos      cia402.0.drv-target-position => lcec.0.5.target-position

# homing
#net x-home-request joint.0.request-custom-homing => cia402.0.home
#net x-homing joint.0.is-custom-homing <= cia402.0.stat-homing
#net x-homed joint.0.custom-homing-finished <= cia402.0.stat-homed

Many thanks!
  • Hakan
  • Hakan
12 Sep 2025 09:16
Replied by Hakan on topic The forum is really laggy recently.

The forum is really laggy recently.

Category: Forum Questions

The whole point is that it should appear to be somewhere else. It's not. It's a redirect.
Forget DNS. It's not.
 
  • unknown
  • unknown
12 Sep 2025 08:48 - 12 Sep 2025 08:53
Replied by unknown on topic The forum is really laggy recently.

The forum is really laggy recently.

Category: Forum Questions

Please be aware it not a redirection, it would appear he is hosting a copy/clone of the forum at forum.linuxcnc.org.

There is no DNS running on his server, my previous post proves this by trying to get the server he is running to resolve a web address, no connection was made, the port that handles name resolution #53 gave no response. Where as in my 3 code snippet I attempted a to resolve the name of the same machine (forum.linuxcnc.org) via one of google's DNS (8.8.8.8) and everything went fine.

Tommy and others that are claiming this to be a DNS service are wrong, you are logging into a webserver, that is replicationg the one that hosts forum.linuxcnc.org, run by someone who refuses to answer any questions about security (see my post on the very first page on this thread), which surely should rasie questions.
Please think of you internet security in this matter. If something goes wrong who will take responsibility.

Quoting the OP

Who cares?

It works.

It's better than foum.limnuxcnc.org.

Who cares how it works, or why it's faster, it just is.

This statement does not fill me with confidence. If it was on the level the OP would be transparent. Do you really think he doesn't know what is going on ?
Please fellow members think, think really hard, read the whole thread, take note of how he refuses to ask any direct questions. The misspelling is direct from his post.
  • Hakan
  • Hakan
12 Sep 2025 08:34

Step By Step Help Needed . EL8 Leadshine to PI 5

Category: EtherCAT

I used a servo motor and that type of servo drive for the spindle motor of my lathe.
It is not ideal. The thing is that linuxcnc just sets a spindle speed and the servo motor
does a really quick acceleration to get to that speed. There is no ramping up/ramping down
like an axis motion.  Someone of course solved that, just didn't know about it forum.linuxcnc.org/10-advanced-configura...op-on-m-stop-command

Controlled by analog +- 10V, Beckhoff has many EtherCAT modules for that, EL4xxx series.
Mesa and EtherCAT works well together on different network adapters. Not USB network adapter, USB isn't real-time.
There are many N150 with multiple adapters, and the Odroid H4 plus isn't a bad choice either. If you can choose, choose an Intel network adapter.

EL4xx or Mesa + other computer or EtherCAT servo drive.

Your motor is a very common motor so any EtherCAT servo drive of the right size should in principle work. Ask seller though.
You do want a drive with the PV mode (Profile Velocity). That way the drive will be able to ramp up and down
the rotational speed in a controlled way.
 
  • unknown
  • unknown
12 Sep 2025 08:33
Replied by unknown on topic Installing 2.9.5 on Raspberry Pi 5

Installing 2.9.5 on Raspberry Pi 5

Category: Installing LinuxCNC

I've emailed those that have access, one gentleman is away and can not check, the other gent is on the other side of world, I'm In Australia he is US based, so we will just need to wait for answers.
  • Surmetall
  • Surmetall's Avatar
12 Sep 2025 08:16
Replied by Surmetall on topic TURRET TOE100

TURRET TOE100

Category: Turning

How cool is that! I love the coolored section view. Thank you very much for sharing.

Greetings
Tom
  • dskinne6
  • dskinne6
12 Sep 2025 07:17
Replied by dskinne6 on topic Installing 2.9.5 on Raspberry Pi 5

Installing 2.9.5 on Raspberry Pi 5

Category: Installing LinuxCNC

I have the same issue with RPI5
  • Hakan
  • Hakan
12 Sep 2025 07:08 - 12 Sep 2025 07:17
Replied by Hakan on topic The forum is really laggy recently.

The forum is really laggy recently.

Category: Forum Questions

Yes it does.Always stuck at the same place when using wget.
A bit random speed though. Sometimes very slow, like a minute and sometimes fast.
Going langdons route to the forum follows the same overall speed, but as of now is always faster.
And fetching using http is always much faster than using https, however only some static stuff like logos
can be fetched using http.
That points to the TLS handshake being the cause of delays.

But, as fun as it is to try to diagnose this from remote and coming up with temporary solutions like langdons url redirect,
it must be possible to check the website hosting the forum.
Surely someone, somewhere, hopefully the admins, knows how to have the website checked.
Right?
  • NT4Boy
  • NT4Boy
12 Sep 2025 07:07 - 12 Sep 2025 07:10
EdgeCam Post was created by NT4Boy

EdgeCam Post

Category: Post Processors

LinuxCNC Documentation Wiki: Cam Post

In this document
 


Is a reference to a download link for a file emc2_mill_v2_5.cgd  Edgecam 11.5 
The link to the file is broken. Can anyone supply the file please?
Thanks
  • juergen-home
  • juergen-home
12 Sep 2025 06:29 - 12 Sep 2025 06:36
Replied by juergen-home on topic The forum is really laggy recently.

The forum is really laggy recently.

Category: Forum Questions

Some times it takes over 60s to create a page. 
  • ziggi
  • ziggi's Avatar
12 Sep 2025 06:28 - 12 Sep 2025 06:29
Replied by ziggi on topic TURRET TOE100

TURRET TOE100

Category: Turning

And the rest
Displaying 1651 - 1665 out of 22642 results.
Time to create page: 0.601 seconds
Powered by Kunena Forum