Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
11 Apr 2025 22:45
  • sin-do-re
  • sin-do-re
11 Apr 2025 22:43

EtherCAT + 7i96s for encoder input and analog output

Category: EtherCAT

Hello 
I have managed to get a few motors running with etherCAT, but I still need a simple I/O system with analog out and encoder input, to use a mesa THCAD.

How is it feasible? Do I need a dual Ethernet card? 
The PCs I’m using have a single Ethernet port, so to run both mesa and ethercat I will need another Ethernet system, to have different NICs, right?

thank you.
  • Grotius
  • Grotius's Avatar
11 Apr 2025 22:25 - 11 Apr 2025 22:26
Replied by Grotius on topic ETHERCAT WAIT SYNC

ETHERCAT WAIT SYNC

Category: EtherCAT

Hi,

The corbett install uses systemctl to start & stop the ethercat bus.
In debian 12 & 13 i use /etc/init.d/ethercat start.

At what time is your ethercat bus started, at pc boot time?
  • Grotius
  • Grotius's Avatar
11 Apr 2025 22:12
Replied by Grotius on topic Running an external program from a HAL pin

Running an external program from a HAL pin

Category: HAL

@Pcw,

Yes, that should work.
Script below works.

$ halcmd -s show pin halui.estop.is-activated
prints:
halui bit   OUT FALSE halui.estop.is-activated

Then get the FALSE or TRUE in a script:

Warning: Spoiler!
  • PCW
  • PCW's Avatar
11 Apr 2025 21:51 - 11 Apr 2025 21:58

Running an external program from a HAL pin

Category: HAL

Another possibility would be a script with halcmd  in a loop,
watching the desired pin/signal  (halcmd -s show pin spindle.0.on | grep TRUE)
(this could also turn off the spindle if LinuxCNC was not running)
Displaying 17296 - 17301 out of 17301 results.
Time to create page: 1.685 seconds
Powered by Kunena Forum