5i25 and 7i77 Do I need to reflash?

More
08 Sep 2018 21:43 #117225 by cncnoob1979
Hey guys! I started my machine after a long hiatus and for the life of me I can figure out what I was messing with when I last shut it down.

But I think i have a firmware issue. I am not getting a blinking light on the 7i77 and field power and 5v seems to be there.

sudo mesaflash --device 5i25 --readhmid >pinout.txt
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA5I25
  FPGA Size: 9 KGates
  FPGA Pins: 144
  Number of IO Ports: 2
  Width of one I/O port: 17
  Clock Low frequency: 33.3333 MHz
  Clock High frequency: 200.0000 MHz
  IDROM Type: 3
  Instance Stride 0: 4
  Instance Stride 1: 64
  Register Stride 0: 256
  Register Stride 1: 256

Modules in configuration:

  Module: WatchDog
  There are 1 of WatchDog in configuration
  Version: 0
  Registers: 3
  BaseAddress: 0C00
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: IOPort
  There are 2 of IOPort in configuration
  Version: 0
  Registers: 5
  BaseAddress: 1000
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: MuxedQCount
  There are 12 of MuxedQCount in configuration
  Version: 3
  Registers: 5
  BaseAddress: 3600
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: MuxedQCountSel
  There are 1 of MuxedQCountSel in configuration
  Version: 0
  Registers: 0
  BaseAddress: 0000
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: SSerial
  There are 1 of SSerial in configuration
  Version: 0
  Registers: 6
  BaseAddress: 5B00
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 64 bytes

  Module: LED
  There are 1 of LED in configuration
  Version: 0
  Registers: 1
  BaseAddress: 0200
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

Configuration pin-out:

IO Connections for P3
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1      0   IOPort       SSerial          0        TXEn3           (Out)
14      1   IOPort       SSerial          0        TXData3         (Out)
 2      2   IOPort       SSerial          0        RXData3         (In)
15      3   IOPort       SSerial          0        TXData2         (Out)
 3      4   IOPort       SSerial          0        RXData2         (In)
16      5   IOPort       SSerial          0        TXData1         (Out)
 4      6   IOPort       SSerial          0        RXData1         (In)
17      7   IOPort       MuxedQCountSel   0        MuxSel0         (Out)
 5      8   IOPort       MuxedQCount      0        MuxQ-A          (In)
 6      9   IOPort       MuxedQCount      0        MuxQ-B          (In)
 7     10   IOPort       MuxedQCount      0        MuxQ-IDX        (In)
 8     11   IOPort       MuxedQCount      1        MuxQ-A          (In)
 9     12   IOPort       MuxedQCount      1        MuxQ-B          (In)
10     13   IOPort       MuxedQCount      1        MuxQ-IDX        (In)
11     14   IOPort       MuxedQCount      2        MuxQ-A          (In)
12     15   IOPort       MuxedQCount      2        MuxQ-B          (In)
13     16   IOPort       MuxedQCount      2        MuxQ-IDX        (In)

IO Connections for P2
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1     17   IOPort       SSerial          0        TXEn6           (Out)
14     18   IOPort       SSerial          0        TXData6         (Out)
 2     19   IOPort       SSerial          0        RXData6         (In)
15     20   IOPort       SSerial          0        TXData5         (Out)
 3     21   IOPort       SSerial          0        RXData5         (In)
16     22   IOPort       SSerial          0        TXData4         (Out)
 4     23   IOPort       SSerial          0        RXData4         (In)
17     24   IOPort       MuxedQCountSel   6        MuxSel0         (Out)
 5     25   IOPort       MuxedQCount      3        MuxQ-A          (In)
 6     26   IOPort       MuxedQCount      3        MuxQ-B          (In)
 7     27   IOPort       MuxedQCount      3        MuxQ-IDX        (In)
 8     28   IOPort       MuxedQCount      4        MuxQ-A          (In)
 9     29   IOPort       MuxedQCount      4        MuxQ-B          (In)
10     30   IOPort       MuxedQCount      4        MuxQ-IDX        (In)
11     31   IOPort       MuxedQCount      5        MuxQ-A          (In)
12     32   IOPort       MuxedQCount      5        MuxQ-B          (In)
13     33   IOPort       MuxedQCount      5        MuxQ-IDX        (In)

The culprit is the
hm2_5i25.0: initialized AnyIO board at 0000:04:01.0
./bridgeport.hal:106: Pin 'hm2_5i25.0.7i77.0.0.output-00' does not exist

So I assume while I was messing with PP2 I must have gotten flashed while I thought I was being careful...

any help greatly appreciated...
bridgeport@bridgeport-H81M-S2PH ~ $ linuxcnc
LINUXCNC - 2.8.0~pre1
pickconfig: installed aux examples: /usr/share/linuxcnc/aux_examples/NativeCAM
Machine configuration directory is '/home/bridgeport/linuxcnc/configs/axis_test'
Machine configuration file is 'bridgeport.ini'
Starting LinuxCNC...
Found file(REL): ./bridgeport.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:04:01.0
hm2/hm2_5i25.0: Smart Serial Firmware Version 43
Board hm2_5i25.0.7i77.0.1 Hardware Mode 0 = standard
Board hm2_5i25.0.7i77.0.1 Software Mode 0 = analogout_enables
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): IOPort
hm2/hm2_5i25.0:     IO Pin 002 (P3-02): IOPort
hm2/hm2_5i25.0:     IO Pin 003 (P3-15): Smart Serial Interface #0, pin TxData1 (Output)
hm2/hm2_5i25.0:     IO Pin 004 (P3-03): Smart Serial Interface #0, pin RxData1 (Input)
hm2/hm2_5i25.0:     IO Pin 005 (P3-16): IOPort
hm2/hm2_5i25.0:     IO Pin 006 (P3-04): IOPort
hm2/hm2_5i25.0:     IO Pin 007 (P3-17): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_5i25.0:     IO Pin 008 (P3-05): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_5i25.0:     IO Pin 009 (P3-06): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_5i25.0:     IO Pin 010 (P3-07): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_5i25.0:     IO Pin 011 (P3-08): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_5i25.0:     IO Pin 012 (P3-09): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_5i25.0:     IO Pin 013 (P3-10): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_5i25.0:     IO Pin 014 (P3-11): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_5i25.0:     IO Pin 015 (P3-12): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_5i25.0:     IO Pin 016 (P3-13): Muxed Encoder #2, pin Muxed Index (Input)
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): IOPort
hm2/hm2_5i25.0:     IO Pin 028 (P2-08): IOPort
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): IOPort
hm2/hm2_5i25.0:     IO Pin 032 (P2-12): IOPort
hm2/hm2_5i25.0:     IO Pin 033 (P2-13): IOPort
hm2/hm2_5i25.0: registered
hm2_5i25.0: initialized AnyIO board at 0000:04:01.0
./bridgeport.hal:106: Pin 'hm2_5i25.0.7i77.0.0.output-00' does not exist
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
hm2_5i25.0: dropping AnyIO board at 0000:04:01.0
hm2/hm2_5i25.0: unregistered
RTAPI_PCI: Unmapped 65536 bytes at 0xb6784000
hm2_pci: driver unloaded
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/bridgeport/linuxcnc_debug.txt
and
    /home/bridgeport/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

Please Log in or Create an account to join the conversation.

More
09 Sep 2018 01:23 #117229 by PCW
Does look like a issue with the isolated I/O section sine the analog section is found but not the digital so no or low field power, VIN jumper in wrong position setup jumper in wrong position etc, etc

Please Log in or Create an account to join the conversation.

More
09 Sep 2018 02:45 #117230 by cncnoob1979
Thanks PCW!

I traced it down to a faulty wiring. I'll keep a look out for this next time, until then, thanks sir!

NO Field or 5v, the wiring was in my transformer.

Please Log in or Create an account to join the conversation.

More
09 Sep 2018 14:10 #117232 by cncnoob1979
I thought I was out of the woods, but ....

Cr15 is Flashing Green and I am having following errors, so I can not home.
I really wish I remember what I was doing last year with this mill.

I really don't want to brick myself If I can help it. (if I haven't already)

Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA5I25
  FPGA Size: 9 KGates
  FPGA Pins: 144
  Number of IO Ports: 2
  Width of one I/O port: 17
  Clock Low frequency: 33.3333 MHz
  Clock High frequency: 200.0000 MHz
  IDROM Type: 3
  Instance Stride 0: 4
  Instance Stride 1: 64
  Register Stride 0: 256
  Register Stride 1: 256

Modules in configuration:

  Module: WatchDog
  There are 1 of WatchDog in configuration
  Version: 0
  Registers: 3
  BaseAddress: 0C00
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: IOPort
  There are 2 of IOPort in configuration
  Version: 0
  Registers: 5
  BaseAddress: 1000
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: MuxedQCount
  There are 12 of MuxedQCount in configuration
  Version: 3
  Registers: 5
  BaseAddress: 3600
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: MuxedQCountSel
  There are 1 of MuxedQCountSel in configuration
  Version: 0
  Registers: 0
  BaseAddress: 0000
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: SSerial
  There are 1 of SSerial in configuration
  Version: 0
  Registers: 6
  BaseAddress: 5B00
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 64 bytes

  Module: LED
  There are 1 of LED in configuration
  Version: 0
  Registers: 1
  BaseAddress: 0200
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

Configuration pin-out:

IO Connections for P3
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1      0   IOPort       SSerial          0        TXEn3           (Out)
14      1   IOPort       SSerial          0        TXData3         (Out)
 2      2   IOPort       SSerial          0        RXData3         (In)
15      3   IOPort       SSerial          0        TXData2         (Out)
 3      4   IOPort       SSerial          0        RXData2         (In)
16      5   IOPort       SSerial          0        TXData1         (Out)
 4      6   IOPort       SSerial          0        RXData1         (In)
17      7   IOPort       MuxedQCountSel   0        MuxSel0         (Out)
 5      8   IOPort       MuxedQCount      0        MuxQ-A          (In)
 6      9   IOPort       MuxedQCount      0        MuxQ-B          (In)
 7     10   IOPort       MuxedQCount      0        MuxQ-IDX        (In)
 8     11   IOPort       MuxedQCount      1        MuxQ-A          (In)
 9     12   IOPort       MuxedQCount      1        MuxQ-B          (In)
10     13   IOPort       MuxedQCount      1        MuxQ-IDX        (In)
11     14   IOPort       MuxedQCount      2        MuxQ-A          (In)
12     15   IOPort       MuxedQCount      2        MuxQ-B          (In)
13     16   IOPort       MuxedQCount      2        MuxQ-IDX        (In)

IO Connections for P2
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1     17   IOPort       SSerial          0        TXEn6           (Out)
14     18   IOPort       SSerial          0        TXData6         (Out)
 2     19   IOPort       SSerial          0        RXData6         (In)
15     20   IOPort       SSerial          0        TXData5         (Out)
 3     21   IOPort       SSerial          0        RXData5         (In)
16     22   IOPort       SSerial          0        TXData4         (Out)
 4     23   IOPort       SSerial          0        RXData4         (In)
17     24   IOPort       MuxedQCountSel   6        MuxSel0         (Out)
 5     25   IOPort       MuxedQCount      3        MuxQ-A          (In)
 6     26   IOPort       MuxedQCount      3        MuxQ-B          (In)
 7     27   IOPort       MuxedQCount      3        MuxQ-IDX        (In)
 8     28   IOPort       MuxedQCount      4        MuxQ-A          (In)
 9     29   IOPort       MuxedQCount      4        MuxQ-B          (In)
10     30   IOPort       MuxedQCount      4        MuxQ-IDX        (In)
11     31   IOPort       MuxedQCount      5        MuxQ-A          (In)
12     32   IOPort       MuxedQCount      5        MuxQ-B          (In)
13     33   IOPort       MuxedQCount      5        MuxQ-IDX        (In)
bridgeport@bridgeport-H81M-S2PH ~ $ linuxcnc
LINUXCNC - 2.8.0~pre1
pickconfig: installed aux examples: /usr/share/linuxcnc/aux_examples/NativeCAM
Machine configuration directory is '/home/bridgeport/linuxcnc/configs/axis_test'
Machine configuration file is 'bridgeport.ini'
Starting LinuxCNC...
Found file(REL): ./bridgeport.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:04:01.0
hm2/hm2_5i25.0: Smart Serial Firmware Version 43
Board hm2_5i25.0.7i77.0.0 Hardware Mode 0 = standard
Board hm2_5i25.0.7i77.0.0 Software Mode 0 = input_output
Board hm2_5i25.0.7i77.0.0 Software Mode 1 = io_analog
Board hm2_5i25.0.7i77.0.0 Software Mode 2 = io_analog_fieldvoltage
Board hm2_5i25.0.7i77.0.0 Software Mode 3 = io_encoder_analog_fieldvoltage
Board hm2_5i25.0.7i77.0.1 Hardware Mode 0 = standard
Board hm2_5i25.0.7i77.0.1 Software Mode 0 = analogout_enables
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): IOPort
hm2/hm2_5i25.0:     IO Pin 002 (P3-02): IOPort
hm2/hm2_5i25.0:     IO Pin 003 (P3-15): Smart Serial Interface #0, pin TxData1 (Output)
hm2/hm2_5i25.0:     IO Pin 004 (P3-03): Smart Serial Interface #0, pin RxData1 (Input)
hm2/hm2_5i25.0:     IO Pin 005 (P3-16): Smart Serial Interface #0, pin TxData0 (Output)
hm2/hm2_5i25.0:     IO Pin 006 (P3-04): Smart Serial Interface #0, pin RxData0 (Input)
hm2/hm2_5i25.0:     IO Pin 007 (P3-17): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_5i25.0:     IO Pin 008 (P3-05): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_5i25.0:     IO Pin 009 (P3-06): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_5i25.0:     IO Pin 010 (P3-07): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_5i25.0:     IO Pin 011 (P3-08): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_5i25.0:     IO Pin 012 (P3-09): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_5i25.0:     IO Pin 013 (P3-10): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_5i25.0:     IO Pin 014 (P3-11): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_5i25.0:     IO Pin 015 (P3-12): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_5i25.0:     IO Pin 016 (P3-13): Muxed Encoder #2, pin Muxed Index (Input)
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): IOPort
hm2/hm2_5i25.0:     IO Pin 028 (P2-08): IOPort
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): IOPort
hm2/hm2_5i25.0:     IO Pin 032 (P2-12): IOPort
hm2/hm2_5i25.0:     IO Pin 033 (P2-13): IOPort
hm2/hm2_5i25.0: registered
hm2_5i25.0: initialized AnyIO board at 0000:04:01.0
Found file(REL): ./custom.hal
note: MAXV     max: 2.000 units/sec 120.000 units/min
note: LJOG     max: 2.000 units/sec 120.000 units/min
note: LJOG default: 0.250 units/sec 15.000 units/min
note: jog_order='XYZ'
note: jog_invert=set([])
gladevcp: auxiliary dir: /usr/share/linuxcnc/aux_gladevcp/NativeCAM
gladevcp: importing: /usr/share/linuxcnc/aux_gladevcp/NativeCAM/pref_edit.py
gladevcp: auxiliary dir: /usr/share/linuxcnc/aux_gladevcp/NativeCAM
gladevcp: importing: /usr/share/linuxcnc/aux_gladevcp/NativeCAM/pref_edit.py
gladevcp: auxiliary dir: /usr/share/linuxcnc/aux_gladevcp/NativeCAM
gladevcp: importing: /usr/share/linuxcnc/aux_gladevcp/NativeCAM/pref_edit.py
gladevcp: importing: /usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.py

NativeCAM info:
   inifile = /home/bridgeport/linuxcnc/configs/axis_test/bridgeport.ini
  NCAM_DIR = /home/bridgeport/linuxcnc/configs/axis_test/ncam
   SYS_DIR = /usr/share/linuxcnc/aux_gladevcp/NativeCAM
   program = /usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.py


[RS274NGC]SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities:/home/stacie/linuxcnc/configs/bridgeport_axis/macros/
  Real paths:
   /usr/share/linuxcnc/aux_gladevcp/NativeCAM/lib/mill
   /usr/share/linuxcnc/aux_gladevcp/NativeCAM/lib/utilities

Using default mill/menu.xml,  no mill/menu-custom.xml found

/usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.py:2644: GtkWarning: IA__gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
  mi = _action.create_menu_item()
gladevcp: importing: /usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.py
gladevcp: importing: /usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.py
Previous work not saved as current work
/usr/bin/gladevcp:187: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  builder.add_from_file(xmlname)
****  probe_screen GETINIINFO **** 
 Preference file path: /home/bridgeport/linuxcnc/configs/axis_test/bridgeport.pref
/usr/bin/gladevcp:298: GtkWarning: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17
  gtk.main()
joint 2 following error
emc/task/taskintf.cc 944: Error on joint 2, command number 212
joint 0 following error
emc/task/taskintf.cc 944: Error on joint 0, command number 241
joint 1 following error
emc/task/taskintf.cc 944: Error on joint 1, command number 269
joint 1 following error
emc/task/taskintf.cc 944: Error on joint 1, command number 360
joint 1 following error
emc/task/taskintf.cc 944: Error on joint 1, command number 389
task: main loop took 0.109158 seconds

I confirmed at the 7i77 that I have 5v and 24v field power @ the terminal blocks. I have not moved any jumpers since Ive installed the 5i25 / 7i77 cards.

I have 4 amber LED's on and one flashing green one.

So is this my card(s) or am i looking at something else here?

Please Log in or Create an account to join the conversation.

More
09 Sep 2018 14:15 #117233 by PCW
Sounds like a tuning/setup issue

Please Log in or Create an account to join the conversation.

More
09 Sep 2018 14:33 #117234 by cncnoob1979
Well Im not getting anything from halscope from my encoders. Im going through the troubleshooting process now.

Which bit file would I need for my setup? I may try a reflash as well.

the 5i25_7i77x2 if I remember correctly right?

Ill download the manual again to figure out the reflash procedures. Im on 32bit so I shouldn't have to worry about getting corrupted.

Please Log in or Create an account to join the conversation.

More
09 Sep 2018 14:36 #117235 by PCW
Your firmware is fine, no need to change it

Please Log in or Create an account to join the conversation.

More
09 Sep 2018 15:00 #117237 by cncnoob1979
I just tried Path Pilot and it works fine.... with the exact same configuration that Im using in linuxcnc. The hal and Ini are derivatives of my linuxcnc configuration.

I can home, jog and use as normal. So the card/encoders/servo's functions correctly.... I did just build another linuxcnc master. Ill build the latest stable and see if this is my issue.

Please Log in or Create an account to join the conversation.

More
09 Sep 2018 15:04 #117238 by cncnoob1979
Alright 2.7.14 build in progress. Ill update when its done and if that was my issue.

Please Log in or Create an account to join the conversation.

More
09 Sep 2018 15:52 #117241 by cncnoob1979
Ok that did not work. Im on 2.7.14 and exact same symptoms. Path Pilot works fine.


I want to go through the relfash procedure. Peter please let me know which bit file I need to use. This may not be the issue as you have already pointed out, but I'm at my wits end. I never had any issue with my setup or configuration. I have even tried my backup configurations.


I copied over path pilots ini and hal file and tried that setup as well. Still the same issue (after editing them of course)

Something is squirrelly

Does anything pop out at you looking at my Hal and INI files? Maybe I changed something a year ago, but that doesnt explain Path Pilot working without a hitch, using the same configuration.

hal file
# Generated by PNCconf at Mon Jan 18 14:56:08 2016
# If you make changes to this file, they will be
# overwritten when you run PNCconf again

loadrt trivkins
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt hostmot2
loadrt hm2_pci config=" num_encoders=5 num_pwmgens=5 num_stepgens=0 sserial_port_0=100xxx" 
setp    hm2_5i25.0.watchdog.timeout_ns 5000000
loadrt pid names=pid.x,pid.y,pid.z,pid.s
loadrt oneshot names=os1,os2,os3,os4,os5
loadrt not count=4
loadrt conv_float_s32 names=cnvf,cnvr,cnvs
loadrt debounce cfg=2
loadrt and2 count=12
loadrt or2 count=10
loadrt toggle count=1
loadrt toggle2nist count=1
loadrt flipflop names=ff1,ff2
loadrt near count=2
loadrt scale names=scale.sp,scale.jog,scale-fo,scale-ro,scale-so,scale-maxa
loadrt abs names=abs.spindle
loadrt lowpass names=lowpass.spindle
loadrt limit1 count=2
loadrt limit2 count=1
loadrt mux2 count=3

addf hm2_5i25.0.read          servo-thread
addf motion-command-handler   servo-thread
addf motion-controller        servo-thread
addf pid.x.do-pid-calcs       servo-thread
addf pid.y.do-pid-calcs       servo-thread
addf pid.z.do-pid-calcs       servo-thread
addf pid.s.do-pid-calcs       servo-thread
addf hm2_5i25.0.write         servo-thread
addf os1                      servo-thread
addf os2                      servo-thread
addf os3                      servo-thread
addf os4                      servo-thread
addf os5                      servo-thread
addf not.0		      servo-thread
addf not.1		      servo-thread
addf not.2		      servo-thread
addf cnvf                     servo-thread
addf cnvr                     servo-thread
addf cnvs                     servo-thread
addf debounce.0 	      servo-thread
addf and2.0		      servo-thread
addf and2.1		      servo-thread
addf and2.2		      servo-thread
addf and2.3		      servo-thread
addf and2.4		      servo-thread
addf and2.5		      servo-thread
addf and2.6		      servo-thread
addf and2.7		      servo-thread
addf and2.8		      servo-thread
addf and2.9		      servo-thread
addf and2.10		      servo-thread
addf and2.11		      servo-thread
addf or2.0		      servo-thread
addf or2.1		      servo-thread
addf or2.2		      servo-thread
addf or2.3		      servo-thread
addf or2.4		      servo-thread
addf or2.5		      servo-thread
addf or2.6		      servo-thread
addf or2.7		      servo-thread
addf or2.8		      servo-thread
addf or2.9		      servo-thread
addf toggle.0		      servo-thread
addf toggle2nist.0	      servo-thread
addf ff1		      servo-thread
addf ff2		      servo-thread
addf near.0                   servo-thread
addf near.1                   servo-thread
addf scale.sp		      servo-thread
addf scale.jog   	      servo-thread
addf scale-fo   	      servo-thread
addf scale-ro   	      servo-thread
addf scale-so   	      servo-thread
addf scale-maxa   	      servo-thread
addf abs.spindle	      servo-thread
addf lowpass.spindle	      servo-thread
addf limit1.0		      servo-thread
addf limit1.1		      servo-thread
addf limit2.0		      servo-thread
addf mux2.0		      servo-thread
addf mux2.1		      servo-thread
addf mux2.2		      servo-thread

######################################################################################
######################################################################################
######################################################################################
#################################### AXIS HAL ########################################
######################################################################################
######################################################################################
######################################################################################

#########################################--- "ESTOP-OUT" ---##############
#	            "Estop output logic"                               ###
#	 	    "Enables 10CR to enable power up"                  ###
#	 	    "Drives DC Interlock relay"                        ###
# --- "ESTOP-OUT" ---#####################################################

net estop-out   	hm2_5i25.0.7i77.0.0.output-00
net machine-is-enabled  hm2_5i25.0.7i77.0.0.output-01

###################################################################
# 			"Overrides"                               #
###################################################################
# "Read analog inputs from the override knobs. Full scale will be"#
# "approximately 24v. Scale the input accordingly. 1.0 = 100%"    #
#                                                                 #
# "Scale up the raw values 100x so that when converted to"        #
# "integers we have good resolution."                             #
# "The results will be between 0 and 2400."                       #
###################################################################

################"--- Feed Override ---"##################
# 		Convert from float to S32    		#         
#########################################################
# "Read in analog input and send to halui.feed-override"
# "Enable direct count input"

net  scale_ovr  => scale-fo.gain   scale-ro.gain   scale-so.gain
sets scale_ovr 100.0
#100

net fo-ena   halui.feed-override.count-enable   halui.feed-override.direct-value
sets fo-ena 1

# "Scale down the value to a percentage"

net scf-scale   => halui.feed-override.scale
sets scf-scale 0.000852

net scf-raw 	  scale-fo.in   	       <=  hm2_5i25.0.7i77.0.0.analogin0
net scf-raw-adj   cnvf.in   		       <=  scale-fo.out
net scf-s 	  halui.feed-override.counts   <=  cnvf.out


################"--- Rapid Override ---"#################
# 		Convert from float to S32    		#         
#########################################################
# "Read in analog input and send to halui.rapid-override"
# "Enable direct count input"

net ro-ena   halui.rapid-override.count-enable 	 halui.rapid-override.direct-value
sets ro-ena 1

# "Scale down the value to a percentage"

net scr-scale   => halui.rapid-override.scale
sets scr-scale 0.00044

net scr-raw      scale-ro.in     	       <=  hm2_5i25.0.7i77.0.0.analogin1
net scr-raw-adj  cnvr.in         	       <=  scale-ro.out
net scr-s        halui.rapid-override.counts   <=  cnvr.out


###############"--- Spindle Override ---"################
# 		Convert from float to S32    		#         
#########################################################
# "Read in analog input and send to halui.spindle-override"
# "Enable direct count input"

net so-ena   halui.spindle-override.count-enable   halui.spindle-override.direct-value
sets so-ena 1

# "Scale down the value to a percentage"

net scs-scale   => halui.spindle-override.scale
sets scs-scale 0.0005
#0.0005

# "Add an offest so that we have a minimum override of 30%"
#net scs-offset   => scale-so.offset
#sets scs-offset 100

net scs-raw       scale-so.in   		  <=  hm2_5i25.0.7i77.0.0.analogin2
net scs-raw-adj   cnvs.in       		  <=  scale-so.out
net scs-s         halui.spindle-override.counts   <=  cnvs.out


#########################################################
# 	      "External Pause/Resume Section"  	 [Stop]	#         
#########################################################

setp debounce.0.delay 20

net pause-resume-btn 	and2.0.in0 	        and2.1.in0   <= hm2_5i25.0.7i77.0.0.input-17-not
net pause-on 		toggle2nist.0.is-on     and2.0.in1      and2.3.in1 	<= halui.program.is-paused
net run-on 		and2.1.in1 	     <= halui.program.is-running
net pause-sig 		or2.0.in0 	     <= and2.0.out
net resume-sig 		or2.0.in1 	     <= and2.1.out
net toggle-ok 		toggle.0.in 	     <= or2.0.out
net togglesig 		toggle2nist.0.in     <= toggle.0.out
net toggleon 		halui.program.pause  <= toggle2nist.0.on
net toggleoff 		halui.program.resume <= toggle2nist.0.off

#########################################################
# 		"External Run/Step Section"  	[Start]	#         
#########################################################

net run-step-btn   and2.2.in0 	          and2.3.in0 		<= hm2_5i25.0.7i77.0.0.input-16
net idle-on 	   and2.2.in1          <= halui.program.is-idle
net run-sig 	   halui.mode.auto        halui.program.run 	<= and2.2.out
net step-sig 	   halui.program.step  <= and2.3.out

#####################################################################################
#    "This is how The External Step/Pause buttons function:"                        #
#####################################################################################
# "Pressing Run/Step will begin executing a program.                                #
# Pressing Hold/Resume while a program is running will pause the program.           #
# Pressing Run/Step while a program is paused will single step the program.         #
# Pressing Hold/Resume while a program is paused will return it to normal run mode."#
#####################################################################################



#######################################################################
#		"Manual Panel/Joystick Jog signals"                   #           
#######################################################################
#			    "JOG X"                                   #           
#######################################################################
net jog-x-pos 		hm2_5i25.0.7i77.0.0.input-06 	or2.4.in0
net jog-x-pos-p 	hm2_5i25.0.7i77.0.0.input-20 	or2.4.in1
net or-out0		or2.4.out 			halui.jog.0.plus

net jog-x-neg 		hm2_5i25.0.7i77.0.0.input-07 	or2.5.in0
net jog-x-neg-p 	hm2_5i25.0.7i77.0.0.input-21 	or2.5.in1
net or-out1		or2.5.out 			halui.jog.0.minus

#######################################################################
#			    "JOG Y"                                   #           
#######################################################################

net jog-y-pos 		hm2_5i25.0.7i77.0.0.input-08 	or2.6.in0
net jog-y-pos-p 	hm2_5i25.0.7i77.0.0.input-19 	or2.6.in1
net or-out2		or2.6.out 			halui.jog.1.plus

net jog-y-neg 		hm2_5i25.0.7i77.0.0.input-09 	or2.7.in0
net jog-y-neg-p 	hm2_5i25.0.7i77.0.0.input-18 	or2.7.in1
net or-out3		or2.7.out 			halui.jog.1.minus

#######################################################################
#			    "JOG Z"                                   #           
#######################################################################

net jog-z-pos 		hm2_5i25.0.7i77.0.0.input-10 	or2.8.in0
net jog-z-pos-p 	hm2_5i25.0.7i77.0.0.input-22 	or2.8.in1
net or-out4		or2.8.out 			halui.jog.2.plus

net jog-z-neg 		hm2_5i25.0.7i77.0.0.input-11 	or2.9.in0
net jog-z-neg-p 	hm2_5i25.0.7i77.0.0.input-23 	or2.9.in1
net or-out5		or2.9.out 			halui.jog.2.minus


#	"Using or2 with two inputs"
#net signal-a 	  input-a 	=> or2.0.in0
#net signal-b 	  input-b 	=> or2.0.in1
#net or-out 	  or2.0.out 	=> input

# "Joystick switches (currently unused)"

#net jog-continuous <=  hm2_5i25.0.7i77.0.0.input-12

#############################################################
# "JOG Rates - Select the limited rate when we jog z minus" #         
#############################################################

setp limit1.0.max 20
net jog-speed      =>  limit1.0.in  => mux2.0.in0
net jog-speed-lim  <= limit1.0.out =>  mux2.0.in1
net jog-z-neg      => mux2.0.sel
net jog-speed-sel  <= mux2.0.out => halui.jog-speed

###############################################################
# 		"Home switch inputs"			      #
###############################################################

net home-x        <=  hm2_5i25.0.7i77.0.0.input-13
net home-y        <=  hm2_5i25.0.7i77.0.0.input-14
net home-z        <=  hm2_5i25.0.7i77.0.0.input-15

#########################################################
# 			"X AXIS"	                #         
#########################################################

setp   pid.x.Pgain     			[AXIS_0]P
setp   pid.x.Igain     			[AXIS_0]I
setp   pid.x.Dgain     			[AXIS_0]D
setp   pid.x.bias      			[AXIS_0]BIAS
setp   pid.x.FF0       			[AXIS_0]FF0
setp   pid.x.FF1       			[AXIS_0]FF1
setp   pid.x.FF2       			[AXIS_0]FF2
setp   pid.x.deadband  			[AXIS_0]DEADBAND
setp   pid.x.maxoutput 			[AXIS_0]MAX_OUTPUT
setp   pid.x.error-previous-target true
setp   pid.x.maxerror .0005

net x-index-enable  <=> pid.x.index-enable
net x-enable        =>  pid.x.enable
net x-pos-cmd       =>  pid.x.command
net x-vel-cmd       =>  pid.x.command-deriv
net x-pos-fb        =>  pid.x.feedback
net x-output        =>  pid.x.output

#############################################
# ---"X AXIS PWM Generator signals/setup"---#
#############################################

setp   hm2_5i25.0.7i77.0.1.analogout0-scalemax  [AXIS_0]OUTPUT_SCALE
setp   hm2_5i25.0.7i77.0.1.analogout0-minlim    [AXIS_0]OUTPUT_MIN_LIMIT
setp   hm2_5i25.0.7i77.0.1.analogout0-maxlim    [AXIS_0]OUTPUT_MAX_LIMIT

net x-output  => hm2_5i25.0.7i77.0.1.analogout0
net x-pos-cmd    axis.0.motor-pos-cmd
net x-enable     axis.0.amp-enable-out

########################################
# "X AXIS enable _all_ sserial pwmgens"#
########################################

net x-enable   hm2_5i25.0.7i77.0.1.analogena

################################################
# ---"X AXIS Encoder feedback signals/setup"---#
################################################

setp    hm2_5i25.0.encoder.00.counter-mode 0
setp    hm2_5i25.0.encoder.00.filter 1
setp    hm2_5i25.0.encoder.00.index-invert 0
setp    hm2_5i25.0.encoder.00.index-mask 0
setp    hm2_5i25.0.encoder.00.index-mask-invert 0
setp    hm2_5i25.0.encoder.00.scale  [AXIS_0]ENCODER_SCALE

net x-pos-fb      			    <=  hm2_5i25.0.encoder.00.position
net x-vel-fb      			    <=  hm2_5i25.0.encoder.00.velocity
net x-pos-fb      			    =>  axis.0.motor-pos-fb
net x-index-enable    axis.0.index-enable  <=>  hm2_5i25.0.encoder.00.index-enable
net x-pos-rawcounts        		    <=  hm2_5i25.0.encoder.00.rawcounts

###################################################
# ---"X AXIS home / limit switch signals"---      #
###################################################

net home-x     	    =>  axis.0.home-sw-in
net x-neg-limit     =>  axis.0.neg-lim-sw-in
net x-pos-limit     =>  axis.0.pos-lim-sw-in

#########################################################
# 			"Y AXIS"	                #         
#########################################################

setp   pid.y.Pgain     			[AXIS_1]P
setp   pid.y.Igain     			[AXIS_1]I
setp   pid.y.Dgain     			[AXIS_1]D
setp   pid.y.bias      			[AXIS_1]BIAS
setp   pid.y.FF0       			[AXIS_1]FF0
setp   pid.y.FF1       			[AXIS_1]FF1
setp   pid.y.FF2       			[AXIS_1]FF2
setp   pid.y.deadband  			[AXIS_1]DEADBAND
setp   pid.y.maxoutput 			[AXIS_1]MAX_OUTPUT
setp   pid.y.error-previous-target true
setp   pid.y.maxerror .0005

net y-index-enable  <=> pid.y.index-enable
net y-enable        =>  pid.y.enable
net y-pos-cmd       =>  pid.y.command
net y-vel-cmd       =>  pid.y.command-deriv
net y-pos-fb        =>  pid.y.feedback
net y-output        =>  pid.y.output

#############################################
# ---"Y AXIS PWM Generator signals/setup"---#
#############################################

setp   hm2_5i25.0.7i77.0.1.analogout1-scalemax  [AXIS_1]OUTPUT_SCALE
setp   hm2_5i25.0.7i77.0.1.analogout1-minlim    [AXIS_1]OUTPUT_MIN_LIMIT
setp   hm2_5i25.0.7i77.0.1.analogout1-maxlim    [AXIS_1]OUTPUT_MAX_LIMIT

net y-output  => hm2_5i25.0.7i77.0.1.analogout1
net y-pos-cmd    axis.1.motor-pos-cmd
net y-enable     axis.1.amp-enable-out

###############################################
# ---"Y AXIS Encoder feedback signals/setup"---#
###############################################

setp    hm2_5i25.0.encoder.01.counter-mode 0
setp    hm2_5i25.0.encoder.01.filter 1
setp    hm2_5i25.0.encoder.01.index-invert 0
setp    hm2_5i25.0.encoder.01.index-mask 0
setp    hm2_5i25.0.encoder.01.index-mask-invert 0
setp    hm2_5i25.0.encoder.01.scale  [AXIS_1]ENCODER_SCALE

net y-pos-fb               		    <=  hm2_5i25.0.encoder.01.position
net y-vel-fb               		    <=  hm2_5i25.0.encoder.01.velocity
net y-pos-fb               		    =>  axis.1.motor-pos-fb
net y-index-enable    axis.1.index-enable  <=>  hm2_5i25.0.encoder.01.index-enable
net y-pos-rawcounts        		    <=  hm2_5i25.0.encoder.01.rawcounts

###################################################
# ---"Y AXIS home / limit switch signals"---      #
###################################################

net home-y     	    =>  axis.1.home-sw-in
net y-neg-limit     =>  axis.1.neg-lim-sw-in
net y-pos-limit     =>  axis.1.pos-lim-sw-in

#########################################################
# 			"Z AXIS"	                #         
#########################################################

setp   pid.z.Pgain     			[AXIS_2]P
setp   pid.z.Igain     			[AXIS_2]I
setp   pid.z.Dgain     			[AXIS_2]D
setp   pid.z.bias      			[AXIS_2]BIAS
setp   pid.z.FF0       			[AXIS_2]FF0
setp   pid.z.FF1       			[AXIS_2]FF1
setp   pid.z.FF2       			[AXIS_2]FF2
setp   pid.z.deadband  			[AXIS_2]DEADBAND
setp   pid.z.maxoutput 			[AXIS_2]MAX_OUTPUT
setp   pid.z.error-previous-target true
setp   pid.z.maxerror .0005

net z-index-enable  <=> pid.z.index-enable
net z-enable        =>  pid.z.enable
net z-pos-cmd       =>  pid.z.command
net z-vel-cmd       =>  pid.z.command-deriv
net z-pos-fb        =>  pid.z.feedback
net z-output        =>  pid.z.output

#############################################
# ---"Z AXIS PWM Generator signals/setup"---#
#############################################

setp   hm2_5i25.0.7i77.0.1.analogout2-scalemax  [AXIS_2]OUTPUT_SCALE
setp   hm2_5i25.0.7i77.0.1.analogout2-minlim    [AXIS_2]OUTPUT_MIN_LIMIT
setp   hm2_5i25.0.7i77.0.1.analogout2-maxlim    [AXIS_2]OUTPUT_MAX_LIMIT

net z-output  => hm2_5i25.0.7i77.0.1.analogout2
net z-pos-cmd    axis.2.motor-pos-cmd
net z-enable     axis.2.amp-enable-out

################################################
# ---"Z AXIS Encoder feedback signals/setup"---#
################################################

setp    hm2_5i25.0.encoder.02.counter-mode 0
setp    hm2_5i25.0.encoder.02.filter 1
setp    hm2_5i25.0.encoder.02.index-invert 0
setp    hm2_5i25.0.encoder.02.index-mask 0
setp    hm2_5i25.0.encoder.02.index-mask-invert 0
setp    hm2_5i25.0.encoder.02.scale  [AXIS_2]ENCODER_SCALE

net z-pos-fb               		  <=  hm2_5i25.0.encoder.02.position
net z-vel-fb               		  <=  hm2_5i25.0.encoder.02.velocity
net z-pos-fb               		  =>  axis.2.motor-pos-fb
net z-index-enable  axis.2.index-enable  <=>  hm2_5i25.0.encoder.02.index-enable
net z-pos-rawcounts        		  <=  hm2_5i25.0.encoder.02.rawcounts

###################################################
# ---"Z AXIS home / limit switch signals"---      #
###################################################

net home-z     	 =>  axis.2.home-sw-in
net z-neg-limit  =>  axis.2.neg-lim-sw-in
net z-pos-limit  =>  axis.2.pos-lim-sw-in

#########################################################
# 			"SPINDLE"	                #         
#########################################################

setp   pid.s.Pgain     			[SPINDLE_9]P
setp   pid.s.Igain     			[SPINDLE_9]I
setp   pid.s.Dgain     			[SPINDLE_9]D
setp   pid.s.bias      			[SPINDLE_9]BIAS
setp   pid.s.FF0       			[SPINDLE_9]FF0
setp   pid.s.FF1       			[SPINDLE_9]FF1
setp   pid.s.FF2       			[SPINDLE_9]FF2
setp   pid.s.deadband  			[SPINDLE_9]DEADBAND
setp   pid.s.maxoutput 			[SPINDLE_9]MAX_OUTPUT
setp   pid.s.error-previous-target true
setp   pid.s.maxerror .0005

net spindle-index-enable <=> pid.s.index-enable
net spindle-enable        => pid.s.enable
net spindle-vel-cmd-rpm   => pid.s.command
net spindle-vel-fb-rpm    => pid.s.feedback
net spindle-output        <= pid.s.output

################################################
# ---"SPINDLE control signals"---              #
################################################

net spindle-vel-cmd-rps         <=  motion.spindle-speed-out-rps
net spindle-vel-cmd-rps-abs     <=  motion.spindle-speed-out-rps-abs
net spindle-vel-cmd-rpm         <=  motion.spindle-speed-out
net spindle-vel-cmd-rpm-abs     <=  motion.spindle-speed-out-abs
#net spindle-enable             <=  motion.spindle-on
#net spindle-cw                 <=  motion.spindle-forward
#net spindle-ccw                <=  motion.spindle-reverse
net spindle-brake               <=  motion.spindle-brake
net spindle-revs                =>  motion.spindle-revs
net spindle-at-speed            =>  motion.spindle-at-speed
net spindle-vel-fb-rps          =>  motion.spindle-speed-in
net spindle-index-enable       <=>  motion.spindle-index-enable

#################################################
# ---"SPINDLE at speed signals"---              #
#################################################

sets spindle-at-speed true


#########################################################
# 			"MISC SIGNALS"	                #         
#########################################################

net joint-select-a        halui.joint.0.select
net x-is-homed            halui.joint.0.is-homed
net jog-x-analog          halui.jog.0.analog
net joint-select-b        halui.joint.1.select
net y-is-homed            halui.joint.1.is-homed
net jog-y-analog          halui.jog.1.analog
net joint-select-c        halui.joint.2.select
net z-is-homed            halui.joint.2.is-homed
net jog-z-analog          halui.jog.2.analog
net jog-selected-pos      halui.jog.selected.plus
net jog-selected-neg      halui.jog.selected.minus
net spindle-manual-cw     halui.spindle.forward
net spindle-manual-ccw    halui.spindle.reverse
net spindle-manual-stop   halui.spindle.stop
net machine-is-on         halui.machine.is-on
net MDI-mode              halui.mode.is-mdi

###########################
#  ---"coolant signals"---#
###########################

net coolant-mist      <=  iocontrol.0.coolant-mist
net coolant-flood     <=  iocontrol.0.coolant-flood


##############################################################
# 		"Probe input & output"			     #
##############################################################

#net probe-in 	  <= hm2_5i25.0.7i77.0.0.input-23   => or2.3.in0
#net toolset-in   <= hm2_5i25.0.7i77.0.0.input-24   => or2.3.in1
#net probe-signal <= or2.3.out 			    => motion.probe-input

#"Output a short pulse to the probe LED/Beeper on contact"

#setp os5.falling FALSE
#setp os5.rising TRUE
#newsig os5Time float
#net os5Time => os5.width
#sets os5Time 0.02
#net probe-signal => os5.in
#net probe-led <= os5.out => hm2_5i25.0.7i77.0.0.output-10


net probe-in     =>  motion.probe-input

##################################
#  ---"motion control signals"---#
##################################

net in-position               <=  motion.in-position
net machine-is-enabled        <=  motion.motion-enabled

##########################
#  ---"estop signals"--- #
##########################

net estop-out     <=  iocontrol.0.user-enable-out
net estop-out     =>  iocontrol.0.emc-enable-in

#########################################################
# 		"Manual Tool Change"                    #         
#########################################################

loadusr -W hal_manualtoolchange
net tool-change-request     iocontrol.0.tool-change       =>  hal_manualtoolchange.change
net tool-change-confirmed   iocontrol.0.tool-changed      <=  hal_manualtoolchange.changed
net tool-number             iocontrol.0.tool-prep-number  =>  hal_manualtoolchange.number
net tool-prepare-loopback   iocontrol.0.tool-prepare      =>  iocontrol.0.tool-prepared


#########################################################
# 		"SHARED JOGWHEEL MPG"                   #         
#########################################################

net joint-selected-count     <=  hm2_5i25.0.encoder.03.count

#########################################
#########     "for axis x MPG"	#########
#########################################

setp axis.0.jog-vel-mode 0
net  selected-jog-incr    =>  axis.0.jog-scale
#net jog-ena-x            =>  axis.0.jog-enable
net  joint-selected-count =>  axis.0.jog-counts

#########################################
#########     "for axis y MPG"	#########
#########################################

setp axis.1.jog-vel-mode 0
net  selected-jog-incr    =>  axis.1.jog-scale
#net jog-ena-y            =>  axis.1.jog-enable
net  joint-selected-count =>  axis.1.jog-counts

#########################################
#########     "for axis z MPG"	#########
#########################################

setp axis.2.jog-vel-mode 0

# "Limit Z motion, should be about 20 FPM"

setp limit1.1.max [MPG]Z_MINUS_LIMIT
net  selected-jog-incr    =>  limit1.1.in
net  selected-jog-incr-z <= limit1.1.out  =>  axis.2.jog-scale
#net jog-ena-z            =>  axis.2.jog-enable
net  joint-selected-count =>  axis.2.jog-counts

# "Scale the jog rate (FPM) to an increment per Handwheel count"

setp scale.jog.gain [MPG]HAND_WHEEL_SCALE
net  jog-speed	    => scale.jog.in


#########################################################
# 		   "MPG JOG SELECTED"	                #         
#########################################################

net jog-ena-z       hm2_5i25.0.7i77.0.0.input-25      =>   axis.2.jog-enable
net jog-ena-z-not   hm2_5i25.0.7i77.0.0.input-25-not  =>   and2.11.in0
net jog-ena-x       hm2_5i25.0.7i77.0.0.input-24      =>   axis.0.jog-enable
net jog-ena-x-not   hm2_5i25.0.7i77.0.0.input-24-not  =>   and2.11.in1
net jog-ena-y       and2.11.out                       =>   axis.1.jog-enable

sets selected-jog-incr .000001
sets jog-speed 100


#########################################################
# "POST GUI FILE BERTHA Jog signals"			#
#########################################################
#net jog-speed <= gscreen.jog-spd-out
#net jog-inc   <= screen.jog-inc-out
#net jog-ena-x <= gscreen.jog-enable-x-out
#net jog-ena-y <= gscreen.jog-enable-y-out
#net jog-ena-z <= gscreen.jog-enable-z-out

ini file
# Generated by PNCconf at Fri Jan 15 18:07:07 2016
# If you make changes to this file, they will be
# overwritten when you run PNCconf again

[EMC]
MACHINE = bridgeport
DEBUG = 0

[DISPLAY]
#DISPLAY = gmoccapy
DISPLAY = axis
EMBED_TAB_NAME=Huanyang VFD
#EMBED_TAB_LOCATION=ntb_user_tabs
EMBED_TAB_COMMAND=halcmd loadusr -Wn vfd gladevcp -c vfd -x {XID} -u handler.py huanyang.glade

EMBED_TAB_NAME=Probe Screen 
#EMBED_TAB_LOCATION=ntb_user_tabs
EMBED_TAB_COMMAND=halcmd loadusr -Wn probe_screen gladevcp -c probe_screen -u python/probe_screen.py -x {XID} probe_icons/probe_screen.glade

#******** required 'NativeCAM' items:********************************************
##  ncam.ui is required in this directory, relative or absolute
            
GLADEVCP = -U --catalog=mill ncam.ui
PROGRAM_PREFIX = ncam/scripts/
           
# NCAM_DIR ***'MUST'*** match the first dir of SUBROUTINE_PATHS
NCAM_DIR = ncam
#********************************************************************************

EDITOR = kate
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 2.000000
MAX_SPINDLE_OVERRIDE = 1.20000
MIN_SPINDLE_OVERRIDE = 0.050000
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 3
PROGRAM_PREFIX = /home/stacie/linuxcnc/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
POSITION_FEEDBACK = ACTUAL
DEFAULT_LINEAR_VELOCITY = 0.250000
MAX_LINEAR_VELOCITY = 2.0
MIN_LINEAR_VELOCITY = 0.010000
DEFAULT_ANGULAR_VELOCITY = 0.250000
MAX_ANGULAR_VELOCITY = 1.000000
MIN_ANGULAR_VELOCITY = 0.010000
EDITOR = gedit
GEOMETRY = xyz

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
FEATURES=30
PARAMETER_FILE = linuxcnc.var

#******** required 'NativeCAM' items will be created the first time***
#    "NCAM_DIR must be specified"
SUBROUTINE_PATH = ncam/lib/mill:ncam/lib/utilities:/home/stacie/linuxcnc/configs/bridgeport_axis/macros/
#*********************************************************************


[TOOLSENSOR]
# Control probe rapid feed (in machine units per minute)
RAPID_SPEED = 100

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
SERVO_PERIOD = 1000000

[HOSTMOT2]
# **** This is for info only ****
# DRIVER0=hm2_pci
# BOARD0=5i25

[HAL]
HALUI = halui
HALFILE = bridgeport.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
SHUTDOWN = shutdown.hal

[HALUI]

[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 6.0
MAX_VELOCITY = 6.00

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

#********************
# Axis X
#********************
[AXIS_0]
TYPE = LINEAR
HOME = 0.0
FERROR = 1.003
MIN_FERROR = 1.003
MAX_VELOCITY = 3.10
MAX_ACCELERATION = 5.0
P = 150
I = 0
D = 0
FF0 = 0
FF1 = 2.74
FF2 = 0.003   
BIAS = 0
DEADBAND = 0.00009
MAX_OUTPUT = 10
ENCODER_SCALE = -50800
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -17.755
MAX_LIMIT = 0.04
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0.5
HOME_LATCH_VEL = 0.017
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 1

#********************
# Axis Y
#********************
[AXIS_1]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.003
MIN_FERROR = 0.003
MAX_VELOCITY = 3.10
MAX_ACCELERATION = 5.0
P = 150
I = 0
D = 0
FF0 = 0
FF1 = 2.74
FF2 = 0.003
BIAS = 0
DEADBAND = 0.000059
MAX_OUTPUT = 10
ENCODER_SCALE = -50800
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -11.373
MAX_LIMIT = 0.303
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 0.500000
HOME_LATCH_VEL = 0.016667
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 2

#********************
# Axis Z
#********************
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.003
MIN_FERROR = 0.003
MAX_VELOCITY = 2.5
MAX_ACCELERATION = 5.0
P = 150
I = 0
D = 0
FF0 = 0
FF1 = 2.74
FF2 = 0.003
BIAS = 0
DEADBAND = 0.000059
MAX_OUTPUT = 10
ENCODER_SCALE = -50800
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -4.465
MAX_LIMIT = 0.069
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 0.50000
HOME_LATCH_VEL = 0.016667
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 0

#********************
# Spindle 
#********************
[SPINDLE_9]
P = 0
I = 0
D = 0
FF0 = 1
FF1 = 0
FF2 = 0
BIAS = 0
DEADBAND = 0
MAX_OUTPUT = 10

#********************
# Handwheel
#********************
[MPG]
HAND_WHEEL_SCALE = 0.00000016
Z_MINUS_LIMIT = 0.000008

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.209 seconds
Powered by Kunena Forum