Setting up a 5i25/G540/7i76 Gantry

More
7 years 8 months ago #126582 by MartyJ
It loads it, sits there for 3-4 minutes with the interface blank, then the only error in the debug is emcTrajInit failed, can't initialize motion which it tries several times before shutting down.

Here's the output from the terminal:
Code:
LINUXCNC - 2.8.0-pre1-4582-gfb7599824 Machine configuration directory is '/home/marty/linuxcnc/configs/MCJmill' Machine configuration file is 'MCJmill.ini' Starting LinuxCNC... Found file(REL): ./MCJmill.hal Note: Using POSIX realtime hm2: loading Mesa HostMot2 driver version 0.15 hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7 hm2_pci: discovered 5i25 at 0000:05:00.0 hm2/hm2_5i25.0: Smart Serial Firmware Version 43 Board hm2_5i25.0.7i76.0.0 Hardware Mode 0 = standard Board hm2_5i25.0.7i76.0.0 Software Mode 0 = io_spin Board hm2_5i25.0.7i76.0.0 Software Mode 1 = io_ana_spin Board hm2_5i25.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv hm2/hm2_5i25.0: 34 I/O Pins used: hm2/hm2_5i25.0: IO Pin 000 (P3-01): IOPort hm2/hm2_5i25.0: IO Pin 001 (P3-14): PWMGen #0, pin Out0 (PWM or Up) (Output) hm2/hm2_5i25.0: IO Pin 002 (P3-02): StepGen #0, pin Step (Output) hm2/hm2_5i25.0: IO Pin 003 (P3-15): IOPort hm2/hm2_5i25.0: IO Pin 004 (P3-03): StepGen #0, pin Direction (Output) hm2/hm2_5i25.0: IO Pin 005 (P3-16): StepGen #4, pin Step (Output) hm2/hm2_5i25.0: IO Pin 006 (P3-04): StepGen #1, pin Step (Output) hm2/hm2_5i25.0: IO Pin 007 (P3-17): IOPort hm2/hm2_5i25.0: IO Pin 008 (P3-05): StepGen #1, pin Direction (Output) hm2/hm2_5i25.0: IO Pin 009 (P3-06): StepGen #2, pin Step (Output) hm2/hm2_5i25.0: IO Pin 010 (P3-07): StepGen #2, pin Direction (Output) hm2/hm2_5i25.0: IO Pin 011 (P3-08): StepGen #3, pin Step (Output) hm2/hm2_5i25.0: IO Pin 012 (P3-09): StepGen #3, pin Direction (Output) hm2/hm2_5i25.0: IO Pin 013 (P3-10): Encoder #0, pin A (Input) hm2/hm2_5i25.0: IO Pin 014 (P3-11): Encoder #0, pin B (Input) hm2/hm2_5i25.0: IO Pin 015 (P3-12): Encoder #0, pin Index (Input) hm2/hm2_5i25.0: IO Pin 016 (P3-13): IOPort hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort hm2/hm2_5i25.0: IO Pin 027 (P2-07): Smart Serial Interface #0, pin TxData0 (Output) hm2/hm2_5i25.0: IO Pin 028 (P2-08): Smart Serial Interface #0, pin RxData0 (Input) hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort hm2/hm2_5i25.0: IO Pin 031 (P2-11): Encoder #1, pin Index (Input) hm2/hm2_5i25.0: IO Pin 032 (P2-12): Encoder #1, pin B (Input) hm2/hm2_5i25.0: IO Pin 033 (P2-13): Encoder #1, pin A (Input) hm2/hm2_5i25.0: registered hm2_5i25.0: initialized AnyIO board at 0000:05:00.0 Found file(REL): ./custom.hal (0, ' = ', '/usr/bin/gmoccapy') (1, ' = ', '-ini') (2, ' = ', '/home/marty/linuxcnc/configs/MCJmill/MCJmill.ini') **** GMOCCAPY GETINIINFO **** Preference file path: /home/marty/linuxcnc/configs/MCJmill/MCJmill.pref ('found kinematics module', ['trivkins', 'coordinates=XYZX']) ('Entry =', 'trivkins') ('Entry =', 'coordinates=XYZX') ('found the following coordinates', 'xyzx') ('Number of joints = ', 4) 4 COORDINATES found = xyzx ('Fount double letter ', ['x']) axis x0 = joint 0 axis y = joint 1 axis z = joint 2 axis x1 = joint 3 Combi_DRO_y = joint 1 Combi_DRO_x = joint 0 Combi_DRO_z = joint 2 **** GMOCCAPY GETINIINFO **** No DEFAULT_SPINDLE_SPEED entry found in [DISPLAY] of INI file **** GMOCCAPY GETINIINFO **** No MAX_RAPID_OVERRIDE entry found in [DISPLAY] of INI file Default settings 100 % applied! USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed Waiting for component 'inihal' to become ready...........USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed ...................USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed ....................USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed ....................USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed .................**** GMOCCAPY INFO **** **** No gmoccapy2.glade file present **** ...USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed ....................USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed ....................USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed ....................USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed ....................USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed ..........emc/task/emctaskmain.cc 3033: can't initialize motion .........USRMOT: ERROR: command timeout HAL: ERROR: exit called before init <commandline>:0: waitpid failed milltask inihal <commandline>:0: milltask exited without becoming ready

Please Log in to join the conversation.

More
7 years 8 months ago #126583 by PCW
Ha! I think you took simplification a bit too far

There are no active functions in your hal file
(no addf lines so nothing can actually happen)

edit
You could use a pncconf created hal file as an example of the needed addf lines

Please Log in to join the conversation.

More
7 years 8 months ago #126584 by MartyJ
Good suggestion. I've reflashed to g540x2 and build a config in PNCConf, we'll see where that takes me. Thanks.

Please Log in to join the conversation.

More
7 years 8 months ago #126598 by MartyJ
Ok, back to the firmware with G540 and 7i76 and it looks like everything is going together well.

I think the last hurdle to deal with for the time being is that I am getting consistent spikes up to 80k-90k nanoseconds, sometimes even 150k. I just got a spike of jitter up to 7,000,000 (7ns).

Servo period is 1000000 and watchdog is set to 50ms (which seems generous?).

This is a 5i25 connected to a Core 2 Duo machine running Stretch. It is a fresh install, nothing else going on. I'll go through and check any bios settings, but I've run other parport-based CNC software successfully off this machine for about seven years.

Any suggestions on other things I should check? If nothing else I'll just try another PC, this one has given me plenty of value as it is.

Please Log in to join the conversation.

More
7 years 8 months ago #126608 by MartyJ
As usual, there's no solution that' can't be solved by more hardware. Set up a different PC, now I'm getting a jitter readings of 30k-50k on both threads. I'll take it and move on to getting this thing productive again.

Please Log in to join the conversation.

Time to create page: 0.049 seconds
Powered by Kunena Forum