Advanced Search

Search Results (Searched for: )

  • dannym
  • dannym
03 May 2025 11:20
Resetting A-axis was created by dannym

Resetting A-axis

Category: G&M Codes

I did some manual G-code to use a 4th axis rotary basically like a lathe.  The A axis doesn't have a homing switch.  It advances a specified number of turns as the X and Y does its thing.  

Part gets changed out, repeat.  

What's the correct G-code to reset the A axis?  Numerically, it's spooled up like 1000 turns in one direction.  Moves aren't relative and I don't need the thing to unspool 1000 turns to get back to the absolute A-axis value the next G-code run will start at.

 
  • andypugh
  • andypugh's Avatar
03 May 2025 10:20
Replied by andypugh on topic Need help with Linux 2.5 on a CNC lathe

Need help with Linux 2.5 on a CNC lathe

Category: General LinuxCNC Questions

So, does it not respond to the home button? Is the home button greyed out?
Does it jog? Are the motors locked or free?
  • andypugh
  • andypugh's Avatar
03 May 2025 10:13 - 06 May 2025 11:28

Is there a bug in the carousel component or am I doing it wrong ATC Denford

Category: Advanced Configuration

I don't think that counts mode _can_ work with a Boxford style of toolchanger as the number of steps lost when the motor stalls against the endstop is unknown.

It could be modified to work, but it might be easier to start from scratch as a single-sensor position-mode stepgen changer wasn't really considered when the component was written.

You could even consider doing all the control in the G-code subroutine:

1) Scale the stepgen so that a position shift of 1 is one pocket.
2) Connect motion.analog-in-00 to the stepgen.2.position-fb
3) Connect motion.analog-out-01 to the stepgen.2.posiiton-cmd
4) Connect the home sensor to motion.digital-in-02
(Actually, you can use any numberered analog/digital IO, you would probably use in, out and digital 00 in practice, but I made them different for clarity)

toolchange.ngc:
O<toolchange> SUB
O100 IF [#<_carousel_homed> EQ 0] ; Do we need to home?
M66 E0 L0 ; read current stepgen pos into #5399
M68 E1 Q[10 + #5399] ; set the carousel in motion, by more than the number of pockets past the current pos
M66 P2 L1 Q20 ; Wait for the home pin
O200 IF [#5399 LT 0]
(abort, home timeout)
O200 ENDIF ; end of timeout check
M66 E0 L0 ; read home pin pos into #5399
M68 E1 Q[#5399] ; goto home pin, might need an offset here
G4 P5 ; wait for stop
#<_carousel_homed> = 1 ; mark homing as done
O100 ENDIF ; end of homing

(Normal toolchange without homing)

M66 E0 L0 ; read current stepgen pos into #5399
#1 = #<_selected+pocket> - #<_current_pocket> ; calculate move distance
O300 IF [#1 LT 0] if moving to a lower number
#1 = [#1 + 8] ; for an 8-pocket changer
O300 ENDIF
M68 E1 Q[#1 + #5399] ; move the requisite number of pockets
G4 P10 ; Wait (should really wait-on-input on a stepgen-in-position signal)
M68 E1 Q[#1 + #5399 - 1] ; move back against the stop
G4 P2 ; wait to stall against the stop
M6 T<_selected_tool> G43 ; change the tool, set offsets
O<toolchange> ENDSUB ; Done
  • MakeMe12
  • MakeMe12
03 May 2025 09:01
Replied by MakeMe12 on topic Damaged 7i76

Damaged 7i76

Category: Driver Boards

I have also overpowered the 5v side of a 7i76 board for a second or so. I saw smoke at S1 and driver chips etc.
Freight is too expensive to post back and forth to USA for repairs. ( In Australia)
Can you make up a component set that would normally be damaged? I'll buy another board and the component set...... to try to recover this board for my next project.
  • Hakan
  • Hakan
03 May 2025 07:12
Replied by Hakan on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

Looks like your network adapter is not upped correctly. The master can't access ethernet.
Check "ip a", it should say UP for the adapter but I guess it won't.
Follow one of the standard debian guides to bring it up, will involve the /etc/network/interfaces file.
Can be a permission problem, check "ls  -l /dev/EtherCAT0" should say crwxrwxrwx
Try with "sudo service ethercat restart"
Also check "sudo dmesg" the last say 50 lines for anything that can help.
  • Hakan
  • Hakan
03 May 2025 07:04
Replied by Hakan on topic General Questions about using ethercat

General Questions about using ethercat

Category: EtherCAT

Good to hear, wouldn't surprise me if you change D1 and D2 to X and Z.
That config should be enough to move the axis. Try it.
Then you need to add limit switches and other switches if you have that, spindle control, pendant or gamepad and so on.
Now when linuxcnc is up and running you can easily inspect pins' values using halshow.
The drive and motors are closed-loop I guess, then you will see actual-position change when you rotate the motor shaft, even by just a little if the motors are active.
  • Roger S
  • Roger S
03 May 2025 06:48
Replied by Roger S on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

I think the installation is fine. The system reports POSIX realtime, and the pins for testing are accessible:

Owner Type Dir Value Name
4 u32 OUT 0x00000001 lcec.conf.master-count
4 u32 OUT 0x00000004 lcec.conf.slave-count

When I now call EtherCAT Master, the system reports:

Master0
Phase: Waiting for device(s)...
Active: no
Slaves: 0
Ethernet devices:
Main: 80:ee:73:fd:0f:8b (waiting...)
Link: DOWN

The network adapter is correctly entered in Ethercat.conf:

MASTER0_DEVICE="80:ee:73:fd:0f:8b"
DEVICE_MODULES="generic"

The permissions are also correct:
'KERNEL=="EtherCAT[0-9]", MODE="0777"'

However, I can no longer access the EK1100. The EK is connected to the network and shows no errors. As mentioned, everything worked fine with the same components before the reinstallation.
 
  • Onkelmat
  • Onkelmat's Avatar
03 May 2025 06:48

Drive enbale active low - simple but yet it won´t do

Category: General LinuxCNC Questions

They are enabled if pin 9 and 10 are not connected. So in default state with no external relays connected the drives are enabled.

When I short 9 to 10 they become disabled, disconnecting power to the drives and locking the driver.

I´ll measure the pins that come from the drive.
  • jochen91
  • jochen91
03 May 2025 06:41 - 03 May 2025 10:19

Planning to Retrofit a Mazak Integrex200Y Mill-Turn Machine

Category: Advanced Configuration

Hello Folks,

just a quick update: At the Moment I'm in the process of aquerring the machine. The machine was listed in working condition. But sadly it has an error in the B-axis servo amp. The seller is realy cooperative and tries to fix it asap.

In the meantime i was thinking about to major "hurdles":

1.) Milling spindle orientation

The machine can hydraulically lock the spindle via hirth coupling in 12 positions. This is of course quite importent for tuning tools and broaching tools. Of course i want to implement this feature in LCNC as well. The first solution that came to my mind is using a custom M-Code that executes a custom HAL Component.  The M-Code posting needs than to be implemented into the post processor after every tool change.

But i would prefer the solution by Mazak. They used iirc a custom tool change command and added the desired spindle angle.

It looked something like this: T01XX while XX equals the desired spindle orientation.

2. Turning spindle + C-axis + clamping I saw this is done via the PP so never mind.

There are plenty of examples on how to implement a lathe spindle + C-Axis in LCNC. What worries me is the spindle locking.
There is the INDEXER available, but this works only exclusivly with G0 moves. As soon as the G-code contains G0 CX and i.e. G1 CX FXX it does not work anymore. How can i solve this problem? My idea was to somehow use motmod.
C-axis can be locked if the next line of G-code does not move the axis and unlocked if the next line of code does. The question is how.

The bridge the waiting time for new posts on this topic here are some pictures:
 
  • tommylight
  • tommylight's Avatar
03 May 2025 04:44
Replied by tommylight on topic 3D printed stuff, showcase it here

3D printed stuff, showcase it here

Category: Additive Manufacturing

3D printed a lot of drone propellers, mostly not good or to heavy, but finally found some that are very usable, so guy named Logan on youtube, link to his video and files is on my video

Lots of mishaps went on there ... :)
  • PCW
  • PCW's Avatar
03 May 2025 04:32 - 03 May 2025 04:49

Dual control setup - comms between 2 systems- 7i94 bin file?

Category: Driver Boards

I'll try to make a bitfile  tomorrow
What do you want on the parallel expansion port?
 
(Just  checked the first post so 7I77 on parallel port)
 
  • Henk
  • Henk
03 May 2025 04:27

Dual control setup - comms between 2 systems- 7i94 bin file?

Category: Driver Boards

Definitely a better solution but I doubt time will alow for it now. 

I do think it is worth doing though, so I think i will set up a pc and ask a friend who is better skilled than me in terms of programming to have a look

Thanks Andy
Henk
  • Henk
  • Henk
03 May 2025 04:22

Dual control setup - comms between 2 systems- 7i94 bin file?

Category: Driver Boards

Hi. Thank you for the support. 

I need to commect some io boards so i need at least 2 smart serial channels.

of the 8 available ports on the 7i94, can you provide uarts on 4 of them please?

Much apreceated
Henk 
  • cakeslob
  • cakeslob
03 May 2025 02:53

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

did you run that through an AI to generate stuff?
Displaying 946 - 960 out of 26490 results.
Time to create page: 0.279 seconds
Powered by Kunena Forum