Advanced Search

Search Results (Searched for: )

  • nanowhat
  • nanowhat
09 Oct 2025 21:23
Axis control via ModbusTCP was created by nanowhat

Axis control via ModbusTCP

Category: General LinuxCNC Questions

I have been fighting these iX7NH drives for several days and they still won't reliably communicate via ethercat. However, they talk ModbusTCP just fine. What's the best way to control axis drives via ModbusTCP? The machine being driven is a pallet changer for a milling machine, so path accuracy doesn't matter, only endpoint repeatability. I figure it won't matter that I can't have CSP mode.

In order to make the drive move the motor, I have to:
  1. Set coil 0x12 == 1 (SV_ON: This enables the drive output)
  2. Specify movement speed (register 0x6034), acceleration (register 0x6036), and deceleration (0x6038)
  3. Specify the target position (register 0x6025)
  4. Set the control word (register 0x6001) to 0x30, then immediately to 0x20 (I tried this without linuxCNC, in Python, with no delay between the statements, and the servo system executed the move correctly)
Step 1 only has to happen once, step 2 whenever the application requires it, and steps 3/4 whenever a movement must happen.
It seems that I could use MB2HAL to create HAL pins for coil 0x12, registers 0x6034, 0x6036, 0x6038, and 0x6025, and data from LinuxCNC's motion planner would sail right through to the drives, but what about the control word register?
I have to set and then clear bit 5 whenever I want the drives to make a movement.
  • Hendrixx
  • Hendrixx
09 Oct 2025 20:21
Replied by Hendrixx on topic XHC-WHB04B-04 Got it working

XHC-WHB04B-04 Got it working

Category: Advanced Configuration

You're welcome, I'm glad you got it worked out. On the topic of separate machines, the logic is there and holds water; it's almost like multiprocess welders, unless you drop some serious money, you're compromising. And I, for one reason or another in the past, needed both couldn't afford both, or didnt have the space, I know I'm basically handicapping the machine, whichever gui is loaded but not ot the point, parts are out spec, or customers bringing stuff back. The plan is to build another machine for a 3 to 5k fiber laser, ditch the plasma altogether, and mount an ATC spindle and vacuum holding to this current one. I've been really good this year, hopefully a smoking deal comes through on BidSpotter for a laser source. This is the 5th iteration of a CNC gantry-style machine I've built. I went HAM on it just because I'm tired of being tired of not being satisfied with it.  The .5" flat bar on top has a reference shoulder machined in and a skimmed on both sides im gonna use jack screws every 12" or so in pairs to get this thing as coplanar, square and level as pyhics will allow, me to and then use a metalized epoxy to bed the bar to the frame and finaly a few stitch welds to lock it in.  ce la vie i gues. Your set up is pretty gangster 

 
  • Doc_emmet
  • Doc_emmet
09 Oct 2025 19:39
Replied by Doc_emmet on topic REMAP=M6 modalgroup=6 python=atc_toolchange

REMAP=M6 modalgroup=6 python=atc_toolchange

Category: Advanced Configuration

Hello, what is the content of toplevel.py?

import oword
import remap
  • PCW
  • PCW's Avatar
09 Oct 2025 19:35
Replied by PCW on topic Stepper Motor Speed is too slow

Stepper Motor Speed is too slow

Category: Basic Configuration

FF0 should be 0
  • RLA
  • RLA
09 Oct 2025 18:59
Replied by RLA on topic AC Servo change to run

AC Servo change to run

Category: General LinuxCNC Questions

Thanks for reply..so I just need to lookup how to configure as spindle...no wiring...speed controlled by gcode?...motor driver would need parameters changed or can that be done through linuxcnc?

Thanks again!!
  • Todd Zuercher
  • Todd Zuercher's Avatar
09 Oct 2025 18:50
Replied by Todd Zuercher on topic Gmoccapy tool setter install "errors"

Gmoccapy tool setter install "errors"

Category: Gmoccapy

The problem is that you can not reuse a hal pin anywhere in that hal file or another hal file. However you can connect multiple hal input pins to a hal signal name (but only one hal output pin).

Not seeing what you have going on in your other hal files I think this might get you going change this line in your post gui hal file from:
net tool-change gmoccapy.toolchange-change <= iocontrol.0.tool-change
to:
net tool-change-request iocontrol.0.tool-change

That may still not get your config working, if you have other similar mistakes in your postgui hal file. But it will get you on to the next one.
  • Fastfred
  • Fastfred
09 Oct 2025 18:27
Gmoccapy tool setter install "errors" was created by Fastfred

Gmoccapy tool setter install "errors"

Category: Gmoccapy

Hi need some advice I tried to do this much as possible on my own but ran into a error not sure whats the best way to get around it.Looks like i have two pins for tool change ? 

File Attachment:

File Name: linuxcnc.report.txt
File Size:10 KB

File Attachment:

File Name: linuxcnc.report.txt
File Size:10 KB

File Attachment:

File Name: custom_postgui.hal
File Size:0 KB

File Attachment:

File Name: CNC.ini
File Size:6 KB
  • Todd Zuercher
  • Todd Zuercher's Avatar
09 Oct 2025 17:59
Replied by Todd Zuercher on topic Setting Values in INI vs HAL

Setting Values in INI vs HAL

Category: Basic Configuration

For one, thing the "Calibration" window will not show that as a tune-able option in the calibration window.
  • Todd Zuercher
  • Todd Zuercher's Avatar
09 Oct 2025 17:53
Replied by Todd Zuercher on topic AC Servo change to run

AC Servo change to run

Category: General LinuxCNC Questions

I'm not sure that you can do that within a single Linuxcnc configuration, but you can set up 2 separate configs, one using the servo as a 4th axis and a separate one where it is configured as a lathe spindle. Both configs could reside in the same config directory and share most of the config hal files. They would need to have their own ini file though.
  • richcolvin
  • richcolvin's Avatar
09 Oct 2025 17:53
Setting Values in INI vs HAL was created by richcolvin

Setting Values in INI vs HAL

Category: Basic Configuration

Is there any reason to set the values for pins / parameters in the INI vs. the HAL?  Is using the INI simply a best practice? 

For example, this line are in the HAL file:

          setp pid.u.Pgain                            [JOINT_4]P

and this in in the INI file

          P                    = 1000.0

I assume I could set this value in the HAL file without using the INI file:

          setp pid.u.Pgain                            1000.0

 
  • richcolvin
  • richcolvin's Avatar
09 Oct 2025 17:49
Replied by richcolvin on topic Stepper Motor Speed is too slow

Stepper Motor Speed is too slow

Category: Basic Configuration

ACTIONS TAKEN:
I re-added these lines to the HAL file:

setp pid.u.Pgain                            [JOINT_4]P
setp pid.u.Igain                            [JOINT_4]I
setp pid.u.Dgain                            [JOINT_4]D
setp pid.u.bias                             [JOINT_4]BIAS
setp pid.u.FF0                              [JOINT_4]FF0
setp pid.u.FF1                              [JOINT_4]FF1
setp pid.u.FF2                              [JOINT_4]FF2
setp pid.u.deadband                         [JOINT_4]DEADBAND
setp pid.u.maxoutput                        [JOINT_4]MAX_OUTPUT

and these to the INI file

BIAS                 = 0.0
DEADBAND             = 0.00005
MAX_OUTPUT           = 10.0
OUTPUT_SCALE         = 1.000
OUTPUT_OFFSET         = 0.000
P                    = 1000.0
I                    = 0.0
D                    = 0.0
FF0                  = 1.0
FF1                  = 1.0
FF2                  = 0.0

RESULTS:
That seems to have fixed the speed problem I was having. However, a new problem has now arisen:  When I initiate the move, either by jogging (e.g., 0.1") or using the Gcode (e.g., G0 u-0.1 f1), the stepper motor
  1. moves the piece some distance (let's assume it is 0.1"),
  2. reverses back that same distance,
  3. then re-executes steps 1-2 until I stop LinuxCNC.
  • DerKlotz
  • DerKlotz
09 Oct 2025 17:34

Homing Cycle deaktivieren und Achsen von Hand Nullen

Category: Deutsch

Hallo und danke,
vor etwa 1h habe ich eine andere Möglichkeit gefunden. In der pncconfig auf der zweiten oder dritten Seite gibt es eine Option, die man an oder abwählen kann. Heisst sinngemäß "Homing vor MDI" notwendig.
  • marcelovx23
  • marcelovx23
09 Oct 2025 17:31
Replied by marcelovx23 on topic XHC-WHB04B-04 Got it working

XHC-WHB04B-04 Got it working

Category: Advanced Configuration

First of all, thank you so much for your effort and for sharing your files—without them I never would have gotten mine working.
I learned the hard way that it’s not practical to have one machine serve as both a router and a plasma cutter, so I developed a very affordable “plasma router” that works perfectly, and now I keep the two machines separate.
I’m leaving a video so you can see it running in case it helps, and a link where you can download the 3D model and wiring diagrams. I’m sharing it as open-hardware to give back a little of the much that the community—and generous acts like yours—have given me.


3D model and wiring files here
opencnc.mx/wordpress/index.php/elementor-420/
  • RLA
  • RLA
09 Oct 2025 17:25
AC Servo change to run was created by RLA

AC Servo change to run

Category: General LinuxCNC Questions

 Hi..have an ac servo motor setup as 4th axis on wood lathe for position to carve....now i was hoping to use same motor for continuous run as lathe turning...Is this doable?...if so does it require any additional wiring/...I have a Mesa 7i96s  with ethernet..I normally would just try and figure out but I am very pressed for time on this one so any help would be greatly appreciated..

Thanks!,

Rick
  • Tchefter
  • Tchefter's Avatar
09 Oct 2025 16:46

Homing Cycle deaktivieren und Achsen von Hand Nullen

Category: Deutsch

Moin,

in deinermaschine.ini
Also die ini heist so wie du deine Maschine konfiguriert hast.

Gruß
Displaying 2881 - 2895 out of 22411 results.
Time to create page: 0.227 seconds
Powered by Kunena Forum