Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
05 Jan 2025 22:27
Replied by PCW on topic wiring MPGs to 7i96s

wiring MPGs to 7i96s

Category: Driver Boards

do the inputs:

hm2_7i96s.0.inm.00.input-00
hm2_7i96s.0.inm.00.input-01

Change when you move the jog wheel?

If not, there may be a wiring error or the MPG A/B outputs don't have enough swing.

Check the high level at the 7I96S inputs. if lower than say 3.5V they may
need a pullup resistor to 5V to get enough swing for the isolated inputs

If the swing is too low, another option is to tie the 7I96S input common to +5V
(but this forces all inputs to be sourcing 5V type)
 
  • Lcvette
  • Lcvette's Avatar
05 Jan 2025 22:07
Replied by Lcvette on topic wiring MPGs to 7i96s

wiring MPGs to 7i96s

Category: Driver Boards

Ok moved mpg gnd to tb3-12, still nothing, im really stumped on this one.
  • Murphy
  • Murphy
05 Jan 2025 21:54 - 05 Jan 2025 22:20

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

Hooked the scope up while the motor was running. And it's interference that seems to be causing the loss of counting. Pulses look terrible .I'd imagine it's the motor is causing it. I have filters and coils on the AC lines and motor lines from the VFD. The encoder is mounted in a 3D printed mounting so it's not touching the case. When I ground the outer encoder case to a ground it helps a little but not much. Any ideas to mitigate the noise. Should I get another encoder with differential outputs and single end it close to the ec500? Or use the existing encoder and put a differential IC close to the encoder and Rx IC single end close to the ec500?
  • Lcvette
  • Lcvette's Avatar
05 Jan 2025 21:25 - 05 Jan 2025 21:30
Replied by Lcvette on topic wiring MPGs to 7i96s

wiring MPGs to 7i96s

Category: Driver Boards

I have TB3 input common as ground to the 24v power supply and inputs are 24v+ to the individual input temrinals, the mpg is pulling 5v+ power and ground from TB1-1 & 6.  so ground should be common for mpg and normal inputs.  still not working, must be something in my hal?
  • Lcvette
  • Lcvette's Avatar
05 Jan 2025 21:22
Replied by Lcvette on topic wiring MPGs to 7i96s

wiring MPGs to 7i96s

Category: Driver Boards

Yes, the only thing different is the source pin of the counts



having a heck of a time figuring this out, have the axis select working and the increments select working and showing in halshow but cannot get the counts to move.  wired as shown in the example what did i miss?  is there a setting for the 7i96s? jumpers? didn't see anything for mpg in the manual for it, only for the encoder input for spindle.  anyone have a suggestion?  mpg.hal pastebin below:

pastebin.com/6zAJv63y

Thanks in advance!
  • tommylight
  • tommylight's Avatar
05 Jan 2025 20:02
Replied by tommylight on topic QtPlasmaC estop stuck

QtPlasmaC estop stuck

Category: Plasmac

Moved this to PlasmaC section and had to change the tittle as it is not LinuxCNC issue, but it surely still is an QtPlasmaC issue, apparently.
I am sure i have mentioned this a year or two back, but i can not find it here or on the NAS as to what i changed for it to work. Will try again later, hopefully.
-
Personally, the e-stop behavior should have not been changed, ever, and no latches.
  • RNJFAB
  • RNJFAB
05 Jan 2025 19:27
QtPlasmaC estop stuck was created by RNJFAB

QtPlasmaC estop stuck

Category: Plasmac

Hey All,

So new CNC built and i'm trying to connect to it. and thats fine, however I cant get linuxcnc to do anything once open, the estop is stuck on.

 

 linuxcnc
LINUXCNC - 2.9.0~pre1+git20230208.f1270d6ed7
Machine configuration directory is '/home/cnc/linuxcnc/configs/test10'
Machine configuration file is 'test10.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./test10.hal

identityKinematicsSetup: coordinates:XYYZ
   Joint 0 ==> Axis X
   Joint 1 ==> Axis Y
   Joint 2 ==> Axis Y
   Joint 3 ==> Axis Z
identityKinematicsSetup: Recommend: kinstype=both

hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 10.10.10.10: INFO: Hardware address (MAC): 00:60:1b:16:03:5b
hm2_eth: discovered 7I96
hm2/hm2_7i96.0: Low Level init 0.15
hm2/hm2_7i96.0: Smart Serial Firmware Version 43
hm2/hm2_7i96.0: 51 I/O Pins used:
hm2/hm2_7i96.0:     IO Pin 000 (TB3-01): IOPort
hm2/hm2_7i96.0:     IO Pin 001 (TB3-02): IOPort
hm2/hm2_7i96.0:     IO Pin 002 (TB3-03): IOPort
hm2/hm2_7i96.0:     IO Pin 003 (TB3-04): IOPort
hm2/hm2_7i96.0:     IO Pin 004 (TB3-05): IOPort
hm2/hm2_7i96.0:     IO Pin 005 (TB3-06): IOPort
hm2/hm2_7i96.0:     IO Pin 006 (TB3-07): IOPort
hm2/hm2_7i96.0:     IO Pin 007 (TB3-08): IOPort
hm2/hm2_7i96.0:     IO Pin 008 (TB3-09): IOPort
hm2/hm2_7i96.0:     IO Pin 009 (TB3-10): IOPort
hm2/hm2_7i96.0:     IO Pin 010 (TB3-11): IOPort
hm2/hm2_7i96.0:     IO Pin 011 (TB3-13/TB3-14): SSR #0, pin Out-00 (Output)
hm2/hm2_7i96.0:     IO Pin 012 (TB3-15/TB3-16): SSR #0, pin Out-01 (Output)
hm2/hm2_7i96.0:     IO Pin 013 (TB3-17/TB3-18): SSR #0, pin Out-02 (Output)
hm2/hm2_7i96.0:     IO Pin 014 (TB3-19/TB3-20): SSR #0, pin Out-03 (Output)
hm2/hm2_7i96.0:     IO Pin 015 (TB3-21/TB3-22): SSR #0, pin Out-04 (Output)
hm2/hm2_7i96.0:     IO Pin 016 (TB3-23/TB3-24): SSR #0, pin Out-05 (Output)
hm2/hm2_7i96.0:     IO Pin 017 (TB1-02/TB1-03): StepGen #0, pin Step (Output)
hm2/hm2_7i96.0:     IO Pin 018 (TB1-04/TB1-05): StepGen #0, pin Direction (Output)
hm2/hm2_7i96.0:     IO Pin 019 (TB1-08/TB1-09): StepGen #1, pin Step (Output)
hm2/hm2_7i96.0:     IO Pin 020 (TB1-10/TB1-11): StepGen #1, pin Direction (Output)
hm2/hm2_7i96.0:     IO Pin 021 (TB1-14/TB1-15): StepGen #2, pin Step (Output)
hm2/hm2_7i96.0:     IO Pin 022 (TB1-16/TB1-17): StepGen #2, pin Direction (Output)
hm2/hm2_7i96.0:     IO Pin 023 (TB1-20/TB1-21): StepGen #3, pin Step (Output)
hm2/hm2_7i96.0:     IO Pin 024 (TB1-22-TB1-23): StepGen #3, pin Direction (Output)
hm2/hm2_7i96.0:     IO Pin 025 (TB2-02/TB2-03): StepGen #4, pin Step (Output)
hm2/hm2_7i96.0:     IO Pin 026 (TB2-04/TB2-05): StepGen #4, pin Direction (Output)
hm2/hm2_7i96.0:     IO Pin 027 (TB2-07/TB2-08): Encoder #0, pin A (Input)
hm2/hm2_7i96.0:     IO Pin 028 (TB2-10/TB2-11): Encoder #0, pin B (Input)
hm2/hm2_7i96.0:     IO Pin 029 (TB2-13/TB2-14): Encoder #0, pin Index (Input)
hm2/hm2_7i96.0:     IO Pin 030 (TB2-16/TB2-17): IOPort
hm2/hm2_7i96.0:     IO Pin 031 (TB2-18/TB2-19): IOPort
hm2/hm2_7i96.0:     IO Pin 032 (internal): IOPort
hm2/hm2_7i96.0:     IO Pin 033 (internal): SSR #0, pin AC Ref (internal) (Output)
hm2/hm2_7i96.0:     IO Pin 034 (P1-01/DB25-01): IOPort
hm2/hm2_7i96.0:     IO Pin 035 (P1-02/DB25-14): IOPort
hm2/hm2_7i96.0:     IO Pin 036 (P1-03/DB25-02): IOPort
hm2/hm2_7i96.0:     IO Pin 037 (P1-04/DB25-15): IOPort
hm2/hm2_7i96.0:     IO Pin 038 (P1-05/DB25-03): IOPort
hm2/hm2_7i96.0:     IO Pin 039 (P1-06/DB25-16): IOPort
hm2/hm2_7i96.0:     IO Pin 040 (P1-07/DB25-04): IOPort
hm2/hm2_7i96.0:     IO Pin 041 (P1-08/DB25-17): IOPort
hm2/hm2_7i96.0:     IO Pin 042 (P1-09/DB25-05): IOPort
hm2/hm2_7i96.0:     IO Pin 043 (P1-11/DB25-06): IOPort
hm2/hm2_7i96.0:     IO Pin 044 (P1-13/DB25-07): IOPort
hm2/hm2_7i96.0:     IO Pin 045 (P1-15/DB25-08): IOPort
hm2/hm2_7i96.0:     IO Pin 046 (P1-17/DB25-09): IOPort
hm2/hm2_7i96.0:     IO Pin 047 (P1-19/DB25-10): IOPort
hm2/hm2_7i96.0:     IO Pin 048 (P1-21/DB25-11): IOPort
hm2/hm2_7i96.0:     IO Pin 049 (P1-23/DB25-12): IOPort
hm2/hm2_7i96.0:     IO Pin 050 (P1-25/DB25-13): IOPort
hm2/hm2_7i96.0: registered
Found file(lib): /usr/share/linuxcnc/hallib/qtplasmac_comp.hal
Found file(REL): ./custom.hal
QSocketNotifier: Can only be used with threads started with QThread
   



 
  • endian
  • endian's Avatar
05 Jan 2025 19:17
Replied by endian on topic Delta B3 index homing

Delta B3 index homing

Category: EtherCAT

hi,

no all cia402 has same homing subroutine call and you will probably have to customize for your driver yourself... I have done it in dominiks component cia402.comp but for my driver it was little bit different and therefore I recall it as ds402.comp because of Kollmorgen standard ... but for inspiration should be goot for you... you can customize your driver which will be workable for your stuff for 100% 

for index homing you have to define them in the SDO startup config probably

regards

 
  • rasmus
  • rasmus
05 Jan 2025 19:14
Replied by rasmus on topic Retrofitting HURCO BMC30

Retrofitting HURCO BMC30

Category: Milling Machines

Question, do anybody know the gear ratio between the screws and servos on a machine with Siemens servos?
The servos are 1ft5 Servos and the pitch of the screws seems to be 12 mm what i could measure with calipers. 

 
  • dschultz
  • dschultz
05 Jan 2025 19:08
Replied by dschultz on topic Beckhoff Compatibility

Beckhoff Compatibility

Category: EtherCAT

Ok, that is what I'm currently using and it works well, I thought maybe it would make more sense to run the VFD through Beckhoff thus all connections to the PC would be EtherCAT. I'll probably continue with USB.
Thanks!
  • RicardoCNC
  • RicardoCNC
05 Jan 2025 18:11

HAL Component Issues with Custom Hardware (Data Sharing and Pin Initialization )

Category: HAL

Thank you for your feedback, error operation not permitted fo the rtapi_app_main was probably due to the fact the i returned -1 when the function hal_pin_float_new failed.

to install (compile) it, i simply use the following command :
ricardo@RicardoCNC:~/Desktop/linuxcnc-config/src$ sudo halcompile --install my_handler.c
[sudo] password for ricardo:
Compiling realtime my_handler.c
Linking my_handler.so
cp my_handler.so /usr/lib/linuxcnc/modules/

I could solve this first part of the problem by using the function hal_pin_float_newf.

However, i have a different issue now, i do not exactly now what it did wrong on my config files. I uploaded everything.

Thanks for you valuable help
  • RicardoCNC
  • RicardoCNC
05 Jan 2025 17:59

HAL Component Issues with Custom Hardware (Data Sharing and Pin Initialization )

Category: HAL

Hello again,

Solve the first part of the problem. i do not know exactly why but i could not make work hal_pin_float_new but if i used instead  hal_pin_float_newf with a structure it works.

however, i am still seeing some issue as you can see per the annexed screenshot. The emcMotionInit is not able to start. 

Do you have any idea what i am doing wrong ? My goal for not is just to have a component that can output/input the theoretical/real position.

i updated the files and they are annexed.

Thanks in advance for your help
  • tommylight
  • tommylight's Avatar
05 Jan 2025 17:58

HAL Component Issues with Custom Hardware (Data Sharing and Pin Initialization )

Category: HAL

how did you install the my_handler.c file?
From the error report, my_handler has no access rights to rtapi_app_main.
  • Rune_cnc
  • Rune_cnc
05 Jan 2025 16:44
Replied by Rune_cnc on topic My Speeds dont work for my M codes.

My Speeds dont work for my M codes.

Category: G&M Codes

Thanks for you input.
You where correct. Im almost embaressed to tell this.
I turned off the machine and had xmas/new year.

Came back at it was working.
Just needed a good reboot.

But I have a follow up question.
I cant figure out why it gets in to a frenzy when I press stopp.

Must be the driver.
But is there any way to stop this.
in linuxcnc.

youtube.com/shorts/21x_UrOSCuE?si=IMhtfS7cgKt6L2Jk

What is deadband for

 
  • RicardoCNC
  • RicardoCNC
05 Jan 2025 16:05

HAL Component Issues with Custom Hardware (Data Sharing and Pin Initialization )

Category: HAL

Dear LinuxCNC Enthusiasts,

I’m new to LinuxCNC and working on a custom setup. My hardware includes a PCI board (not Mesa or parallel port), which handles real-time interrupts. The drives manage their own position PID loops; they only require the theoretical trajectory, which I provide via a proprietary protocol using a custom library. Feedback data, like actual position, is also available if needed.Since my setup is non-standard, I’ve manually created the necessary INI, HAL, and HAL C files. However, I’m encountering the following errors:   
HAL: ERROR: pin_new(my_handler.0-pos-cmd) called with already-initialized memory
HAL: ERROR: data_ptr_addr not in shared memory
Failed to create x_pos_cmd pin.


I use hal_malloc, and insure proper initialitation, but the errors persist.The 3 files that i use are attached. At this point, i would just need a sample to a component that will simply print out the theoritical possition and sent back this theoritical position as the real position (just for the example)I’d greatly appreciate guidance on debugging or examples of similar setups.

Thanks in advance for your help!
Displaying 20551 - 20565 out of 21764 results.
Time to create page: 0.377 seconds
Powered by Kunena Forum