Set up using AMC AB15A100 drives, brushed DC motor Prototrak Plus with Encoders

More
12 May 2022 16:18 #242805 by tommylight
The attached file is not the same as the one used on that screenshot.
You really have to pay attention as to what file you are editing.
Start the attached file, it will not have that error, but might have others.
The following user(s) said Thank You: new2linux

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

More
12 May 2022 17:08 - 12 May 2022 17:19 #242807 by new2linux
tommylight, Many thanks! The file that I edited, did not save to HD. I specially re-booted, so I have saved in the incorrect folder. This 2nd try looks good, well, a different error "analogout ~~. See attached file.

many thanks

Edit: I plan to # to this line as well.
Attachments:
Last edit: 12 May 2022 17:19 by new2linux.

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

More
12 May 2022 17:32 - 12 May 2022 17:34 #242809 by new2linux
tommylight, Many thanks for all your help! This attached pic is after # to 3 lines;

#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

Many thanks
Attachments:
Last edit: 12 May 2022 17:34 by new2linux.

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

More
12 May 2022 23:24 #242825 by tommylight
Well that brings us to square one, so :
-no field power to Mesa 7i77
-wrong DB25 connector to Mesa 7i77
-wrong bitfile for this setup
-bad DB25 cable
-dead 7i77
What does readhmid report?
The following user(s) said Thank You: new2linux

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

More
13 May 2022 00:13 - 13 May 2022 00:22 #242834 by new2linux
tommylight, Many, many thanks! I have not found the "readhmid report", I am not shore where to look, attached are the .ini & .hal files. I will try tomorrow again. If there is a certain place to look, please point in the best direction, I will try again. I have the original 7i77 card, that was smoked, when overpowered if we need to try something. I do not see any damage to the DB25 cable & I cannot remember where or how it was chosen, as if there is a way to tell if true DB25 cable.
Many thanks for the help.

Edit: I see this line has been # out in the .hal file. Lines 15 & 27 below the:
#*******************
# AXIS X#*******************


line 15: #net x-vel-cmd => pid.x.command-deriv

Line 27 # enable _all_ sserial pwmgens

I did not see this until just now. Many thanks

 
Attachments:
Last edit: 13 May 2022 00:22 by new2linux.

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

More
13 May 2022 13:05 - 16 May 2022 00:26 #242871 by new2linux
Many thanks, tommylight!
This is a pic of the results from "mesaflash --device 5i25 --readhmid" at terminal screen. I believe this is correct.

Edit: It appears there was more info, see 2nd pic. Edit: add complete file

This is a copy & paste of the 5i25 readhmid report.

Edit: I have rechecked the voltage to TB-1 & TB-2 & they are correct.
I have tried this & variations of this as the ip address (I need proper ip address or how to find it) of 7i77 card:
"mesaflash --device 7i77 10_10_.1 --readhmid" with the hope that the "readhmid report" settings could be available.

Edit:Plugged in the old 7i77 card, the error was nearly identical. The DB25 cable question; my cable says IEEE-1284 Compliant, I will be looking at this issue to understand what's different. I believe the cable I have will work, all pins straight through, but have seen places that will put almost any plug on each end with your request for pin out/ pin in.

Edit:If there is a real possibility that I have smoked the 7i77 card, is there a way to test??

Many thanks!

 
Attachments:
Last edit: 16 May 2022 00:26 by new2linux. Reason: add pic, add IP address question, add cable question

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

More
16 May 2022 00:29 #243054 by andypugh
LinuxCNC is not finding the 7i77. I keep saying that.

The 5i25 is working. I don't think that the 7i77 is.

Do you see _any_ HAL pins with 7i77 in them? There were none last time you posted a pin list.

Rather than screenshots of the error message, press the "select all" button at the bottom, then copy and paste it here, or to a text file. There is important information off the top and bottom of the screen.

What we _can_ see is that there are no encoders on P2 either. What does your "loadrt hostmtot2" line in the HAL say?
The following user(s) said Thank You: new2linux

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

More
16 May 2022 01:11 - 16 May 2022 14:09 #243059 by new2linux
andypugh, Many thanks!! These attached files show the pin out saved as .txt file. I also included the error file with a wire going from AMC SW-1 connector; pin 11 GND going to 7I77 CARD TB-3 connector 3 GND. When the encoders were counting, this was the wiring diagram (in the 1st post) at that time.Many thanks!

Edit: This 3rd attachment is error w/o GND wire going to TB-3; everything else is the same. If you compare this part of the file that has GND to TB-3 this has encoder info:Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Found file(REL): ./LinuxCNC.hal
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:04.0
hm2/hm2_5i25.0: Smart Serial Firmware Version 43
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): IOPort
hm2/hm2_5i25.0: IO Pin 004 (P3-03): IOPort
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:04.0
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=2493
hm2_5i25.0: dropping AnyIO board at 0000:04:04.0
hm2/hm2_5i25.0: unregistered
hm2_pci: driver unloaded
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
./LinuxCNC.hal:57: Pin 'hm2_5i25.0.7i77.0.1.analogout0' does not exist

Compare to the same area with GND connected, one has no encoder info.

RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.7.8
Machine configuration directory is '/home/emc/linuxcnc/configs/LinuxCNC'
Machine configuration file is 'LinuxCNC.ini'
INIFILE=/home/emc/linuxcnc/configs/LinuxCNC/LinuxCNC.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Found file(REL): ./LinuxCNC.hal
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=2852
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
./LinuxCNC.hal:7: waitpid failed /usr/bin/rtapi_app hostmot2
./LinuxCNC.hal:7: /usr/bin/rtapi_app exited without becoming ready
./LinuxCNC.hal:7: insmod for hostmot2 failed, returned -1
2852
  PID TTY      STAT   TIME COMMAND

It appears to me that w/o having GND (from encode/ TB-3) to AMC SW-1 pin 11 (GND) shows encoder. My thinking was that the encoders needed their own GND wire. In addition, when the only thing that worked was the DRO had the GND wire to TB-3.
Attachments:
Last edit: 16 May 2022 14:09 by new2linux.

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

More
17 May 2022 13:00 #243153 by andypugh
The encoders working doesn't tell us anything, as they are passively connected directly to the 5i25.
We are not seeing any sign of the 7i77 onboard processor working.

Attach your HAL and INI files.
The following user(s) said Thank You: new2linux

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

More
17 May 2022 13:15 - 17 May 2022 13:36 #243155 by new2linux
andypugh, Many Thanks. The .ini and . hal are attached.
Attachments:
Last edit: 17 May 2022 13:36 by new2linux.

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

Moderators: piasdom
Time to create page: 0.222 seconds
Powered by Kunena Forum