Mesa CT

More
30 Sep 2024 10:02 - 30 Sep 2024 10:29 #311057 by akim14
Mesa CT was created by akim14
I just have lots of question hoping someone can help me  trying understand how to use Mesa CT what is the Scale ,min limit,
max limit ,max vel

How do i get the PID for analog servo how do i get the values for deadband  what is the bias what is max error and max output what is FF0 FF1 FF2  
Attachments:
Last edit: 30 Sep 2024 10:29 by akim14.

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

More
30 Sep 2024 13:43 #311068 by JT
Replied by JT on topic Mesa CT
For servos you will have to "tune" them. I have a guide for that here .
Scale is the the ratio between the servo and the axis moving one user unit.
Min and Max limit is how far the axis can move.
Max velocity is how fast your axis can move.

JT

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

More
01 Oct 2024 16:08 #311118 by akim14
Replied by akim14 on topic Mesa CT
Thank you so much; that information was helpful

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

More
02 Oct 2024 04:06 #311146 by akim14
Replied by akim14 on topic Mesa CT
I keep getting these errors can you help me to see what I am doing wrong 
Attachments:

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

More
02 Oct 2024 08:05 #311157 by tommylight
Replied by tommylight on topic Mesa CT
From your error log
./main.hal:55: Pin 'hm2_7i97.0.pwmgen.00.enable' was already linked to signal 'motion-enable'
The same pin is used twice in you main.hal file.
The following user(s) said Thank You: akim14

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

More
02 Oct 2024 10:27 #311164 by JT
Replied by JT on topic Mesa CT
Attach your ini file.

JT
The following user(s) said Thank You: akim14

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

More
02 Oct 2024 12:43 #311173 by akim14
Replied by akim14 on topic Mesa CT
Here it is, as Tommy said; it does seem it's using pin 55 twice; how do I prevent mesa ct from using it as pwmgen.00.enable and motion-enable, or is something I have to edit manually

Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
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/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.3
Machine configuration directory is '/home/cnc1/linuxcnc/configs/test'
Machine configuration file is 'test.ini'
INIFILE=/home/cnc1/linuxcnc/configs/test/test.ini
VERSION=1.1
PARAMETER_FILE=parameters.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=
DISPLAY=axis
COORDINATES=X
KINEMATICS=trivkins coordinates=X
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: iov2
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./main.hal
Shutting down and cleaning up LinuxCNC...
iov2: exiting
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:17:80:4f
hm2_eth: discovered 7I97T
hm2/hm2_7i97.0: Low Level init 0.15
hm2/hm2_7i97.0: Smart Serial Firmware Version 43
hm2/hm2_7i97.0: 51 I/O Pins used:
hm2/hm2_7i97.0: IO Pin 000 (TB3-04): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 001 (TB3-08): PWMGen #1, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 002 (TB3-12): PWMGen #2, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 003 (TB3-16): PWMGen #3, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 004 (TB3-20): PWMGen #4, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 005 (AN_ENA4): PWMGen #4, pin Not-Enable (Output)
hm2/hm2_7i97.0: IO Pin 006 (TB3-24): PWMGen #5, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 007 (AN_ENA5): PWMGen #5, pin Not-Enable (Output)
hm2/hm2_7i97.0: IO Pin 008 (AN-ENA0..3): PWMGen #0, pin Not-Enable (Output)
hm2/hm2_7i97.0: IO Pin 009 (TB1-01/TB1-09): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_7i97.0: IO Pin 010 (TB1-04/TB1-12): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_7i97.0: IO Pin 011 (TB1-07/TB1-15): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_7i97.0: IO Pin 012 (TB1-17/TB2-01): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_7i97.0: IO Pin 013 (TB1-20/TB2-04): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_7i97.0: IO Pin 014 (TB1-23/TB2-07): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_7i97.0: IO Pin 015 (TB2-09/TB2-17): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_7i97.0: IO Pin 016 (TB2-12/TB2-20): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_7i97.0: IO Pin 017 (TB2-15/TB2-23): Muxed Encoder #2, pin Muxed Index (Input)
hm2/hm2_7i97.0: IO Pin 018 (Internal EncMux): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_7i97.0: IO Pin 019 (TB5-13/TB5-14): SSR #0, pin Out-00 (Output)
hm2/hm2_7i97.0: IO Pin 020 (TB5-15/TB5-16): SSR #0, pin Out-01 (Output)
hm2/hm2_7i97.0: IO Pin 021 (TB5-17/TB5-18): SSR #0, pin Out-02 (Output)
hm2/hm2_7i97.0: IO Pin 022 (TB5-19/TB5-20): SSR #0, pin Out-03 (Output)
hm2/hm2_7i97.0: IO Pin 023 (TB5-21/TB5-22): SSR #0, pin Out-04 (Output)
hm2/hm2_7i97.0: IO Pin 024 (TB5-23/TB5-24): SSR #0, pin Out-05 (Output)
hm2/hm2_7i97.0: IO Pin 025 (Internal InMux0): SSR #0, pin AC Ref (internal) (Output)
hm2/hm2_7i97.0: IO Pin 026 (Internal InMux1): InMux Input Mux #0, pin addr0 (Output)
hm2/hm2_7i97.0: IO Pin 027 (Internal InMux2): InMux Input Mux #0, pin addr1 (Output)
hm2/hm2_7i97.0: IO Pin 028 (Internal InMux3): InMux Input Mux #0, pin addr2 (Output)
hm2/hm2_7i97.0: IO Pin 029 (Internal InMuxData): InMux Input Mux #0, pin addr3 (Output)
hm2/hm2_7i97.0: IO Pin 030 (TB4-15/TB4-16): InMux Input Mux #0, pin muxdata (Input)
hm2/hm2_7i97.0: IO Pin 031 (TB4-17/TB4-18): IOPort
hm2/hm2_7i97.0: IO Pin 032 (TB4-17/TB4-18): IOPort
hm2/hm2_7i97.0: IO Pin 033 (P1-01/DB25-01): IOPort
hm2/hm2_7i97.0: IO Pin 034 (P1-02/DB25-14): IOPort
hm2/hm2_7i97.0: IO Pin 035 (P1-03/DB25-02): IOPort
hm2/hm2_7i97.0: IO Pin 036 (P1-04/DB25-15): IOPort
hm2/hm2_7i97.0: IO Pin 037 (P1-05/DB25-03): IOPort
hm2/hm2_7i97.0: IO Pin 038 (P1-06/DB25-16): IOPort
hm2/hm2_7i97.0: IO Pin 039 (P1-07/DB25-04): IOPort
hm2/hm2_7i97.0: IO Pin 040 (P1-08/DB25-17): IOPort
hm2/hm2_7i97.0: IO Pin 041 (P1-09/DB25-05): IOPort
hm2/hm2_7i97.0: IO Pin 042 (P1-11/DB25-06): IOPort
hm2/hm2_7i97.0: IO Pin 043 (P1-13/DB25-07): IOPort
hm2/hm2_7i97.0: IO Pin 044 (P1-15/DB25-08): IOPort
hm2/hm2_7i97.0: IO Pin 045 (P1-17/DB25-09): IOPort
hm2/hm2_7i97.0: IO Pin 046 (P1-19/DB25-10): IOPort
hm2/hm2_7i97.0: IO Pin 047 (P1-21/DB25-11): IOPort
hm2/hm2_7i97.0: IO Pin 048 (P1-23/DB25-12): IOPort
hm2/hm2_7i97.0: IO Pin 049 (P1-25/DB25-13): IOPort
hm2/hm2_7i97.0: registered
hm2_eth: in hm2_eth_reset
hm2_eth: HostMot2 ethernet 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
./main.hal:55: Pin 'hm2_7i97.0.pwmgen.00.enable' was already linked to signal 'motion-enable'
9944
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file: /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
pastebin.com
in order to provide information about the linuxcnc
system and configuration.

Date: Tue Oct 1 08:53:06 PM PDT 2024
UTC Date: Wed Oct 2 03:53:06 AM UTC 2024
this program: /usr/bin/linuxcnc_info
uptime: 20:53:06 up 1 day, 4:15, 1 user, load average: 2.43, 2.36, 2.20
lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
linuxcnc: /usr/bin/linuxcnc
pwd: /home/cnc1/linuxcnc/configs/test
USER: cnc1
LOGNAME: cnc1
HOME: /home/cnc1
EDITOR:
VISUAL:
LANGUAGE:
TERM: dumb
COLORTERM:
DISPLAY: :0.0
DESKTOP: lightdm-xsession
display size: 1920x1080 pixels (508x285 millimeters)
PATH: /usr/bin:/home/cnc1/linuxcnc/configs/test/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
nodename -n: cn
kernel-name -s: Linux
kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.1.106-3 (2024-08-26)
machine -m: x86_64
processor -p: unknown
platform -i: unknown
oper system -o: GNU/Linux

/proc items:
cmdline: BOOT_IMAGE=/boot/vmlinuz-6.1.0-25-rt-amd64 root=UUID=f0d74c99-fd91-4077-bbe4-47f6f5b97b4d ro quiet
model name: Intel(R) Core(TM) i7-4790S CPU @ 3.20GHz
cores: 4
cpu MHz: 3220.249
parport:
serial: 0000-0000 : serial

Versions:
gcc: gcc (Debian 12.2.0-14) 12.2.0
python: Python 3.11.2
git: git version 2.39.5
git commit: NA
tcl: 8.6
tk: 8.6
glade: not_in_PATH

linuxcnc_var all:

LINUXCNCVERSION: 2.9.3
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp
LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples
REALTIME: /usr/lib/linuxcnc/realtime
RTS: uspace
HALLIB_DIR: /usr/share/linuxcnc/hallib
PYTHON: /usr/bin/python3

dpkg -l '*linuxcnc*':
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================-============-============-=====================================================================
un linuxcnc <none> <none> (no description available)
un linuxcnc-dev <none> <none> (no description available)
un linuxcnc-doc <none> <none> (no description available)
ii linuxcnc-doc-de 1:2.9.3 all motion controller for CNC machines and robots (German documentation)
ii linuxcnc-doc-en 1:2.9.3 all motion controller for CNC machines and robots (English documentation)
ii linuxcnc-doc-es 1:2.9.3 all motion controller for CNC machines and robots (Spanish documentation)
ii linuxcnc-doc-fr 1:2.9.3 all motion controller for CNC machines and robots (French documentation)
un linuxcnc-sim <none> <none> (no description available)
un linuxcnc-sim-dev <none> <none> (no description available)
ii linuxcnc-uspace 1:2.9.3 amd64 motion controller for CNC machines and robots
ii linuxcnc-uspace-dev 1:2.9.3 amd64 PC based motion controller for real-time Linux

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

More
02 Oct 2024 13:25 - 02 Oct 2024 13:26 #311176 by JT
Replied by JT on topic Mesa CT
Can you attach your ini file? Machine configuration file is 'test.ini'

I'm going to be out of pocket for a few days so for now just comment out the offending line in main.hal line number 55.

JT
Last edit: 02 Oct 2024 13:26 by JT.

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

More
02 Oct 2024 15:45 #311182 by tommylight
Replied by tommylight on topic Mesa CT
Not pin 55, it is line 55 in the hal file, and the same pin 'hm2_7i97.0.pwmgen.00.enable' is used once more before line 55.

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

More
02 Oct 2024 16:02 #311185 by akim14
Replied by akim14 on topic Mesa CT
sorry about that here is the right file 

File Attachment:

File Name: test.ini
File Size:2 KB
Attachments:
The following user(s) said Thank You: JT

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

Time to create page: 0.099 seconds
Powered by Kunena Forum