MESA 5i23 7i44 7i49 7i37 8i20

More
19 Jun 2015 17:29 #59980 by andypugh

loadrt bldc =a,a,a
Is it OK?


No.

The manual page for bldc is here:
www.linuxcnc.org/docs/html/man/man9/bldc.9.html

You can see that the correct format is
loadrt bldc cfg="a,a,a"

Please read that manpage, bldc will make no sense at all without it.

Every other HAL component has a similar page, they are listed near the bottom of here:
www.linuxcnc.org/docs/html/

I go to those pages all the time to find out exactly what the pin names are. Have a good look at the pins of the"motion" module too.

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

More
19 Jun 2015 17:40 #59982 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
Thank you for links.
I go to study.

:)

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

More
29 Jun 2015 22:29 #60254 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
I am in next step of configuration my machine.
And next error:

**********************

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/realtime-3.4-9-rtai-686-pae/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.6.4
Machine configuration directory is '/home/emc2/linuxcnc/configs/my_LinuxCNC_machine'
Machine configuration file is 'my_LinuxCNC_machine.ini'
INIFILE=/home/emc2/linuxcnc/configs/my_LinuxCNC_machine/my_LinuxCNC_machine.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
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=5079
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/bldc.ko: File exists
my_LinuxCNC_machine.hal:9: exit value: 1
my_LinuxCNC_machine.hal:9: insmod failed, returned -1
See the output of 'dmesg' for more information.
5079
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components


***************

What does it mean?
You can not find a solution.
Thank

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

More
29 Jun 2015 22:37 #60256 by andypugh
It sounds like you have more than one "loadrt bldc...." in the HAL file.
The following user(s) said Thank You: kenny

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

More
29 Jun 2015 22:55 #60257 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
Thank
These two lines in hal generated err.

#####

loadrt bldc cfg="a,a,a"
loadrt bldc count=3

#####
Second line was deleted.
OK. :)

And next err is here:

******

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/realtime-3.4-9-rtai-686-pae/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.6.4
Machine configuration directory is '/home/emc2/linuxcnc/configs/my_LinuxCNC_machine'
Machine configuration file is 'my_LinuxCNC_machine.ini'
INIFILE=/home/emc2/linuxcnc/configs/my_LinuxCNC_machine/my_LinuxCNC_machine.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
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=5413
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
.
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/and2.ko: Unknown symbol in module
my_LinuxCNC_machine.hal:16: exit value: 1
my_LinuxCNC_machine.hal:16: insmod failed, returned -1
See the output of 'dmesg' for more information.
5413
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

###

Help me please.
Thank

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

More
29 Jun 2015 23:13 #60258 by andypugh
Sounds like a funny "loadrt and2" line.

man and2 to see the allowed module parameters

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

More
30 Jun 2015 00:37 #60259 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
Previous err was solved. :)
Thank you, but many bugs before me... :(

1st bug :

Debug file information:
my_LinuxCNC_machine.hal:54: Pin 'joint.0.vel-cmd' does not exist
8958
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Segment of my HAL:

# +++++++X Axis+++++++++
net res-x-cnts hm2_5i23.0.resolver.01.rawcounts => bldc.0.rawcounts
net x-index hm2_5i23.0.resolver.01.index-enable <=> pid.0.index-enable
#net x-home-lim hm2_5i23.0.7i37.0.0.input-14-not => joint.0.pos-lim-sw-in joint.0.neg-lim-sw-in joint.0.home-sw-in

net x-meas-angle bldc.0.rotor-angle => hm2_5i23.0.8i20.0.2.angle
setp hm2_5i23.0.8i20.0.2.current-maxlim 7.5
setp hm2_5i23.0.8i20.0.2.current-minlim -7.5
net x-cmd axis.0.motor-pos-cmd => pid.0.command
net x-vel-cmd joint.0.vel-cmd => pid.0.command-deriv
net x-fb hm2_5i23.0.resolver.01.position pid.0.feedback axis.0.motor-pos-fb
net x-vel-fb hm2_5i23.0.resolver.01.velocity pid.0.feedback-deriv
setp hm2_5i23.0.resolver.01.velocity-scale -1
net x-pid pid.0.output => hm2_5i23.0.8i20.0.2.current


+++++++++++++

2nd bug:


Debug file information:
.
my_LinuxCNC_machine.hal:64: Ini variable '[JOINT_0]PGAIN' not found.
9146
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components


Segment of HAL:

net amp-enable pid.0.enable
setp pid.0.Pgain [JOINT_0]PGAIN
setp pid.0.Igain [JOINT_0]IGAIN
setp pid.0.Dgain [JOINT_0]DGAIN
setp pid.0.bias [JOINT_0]BIAS
setp pid.0.FF0 [JOINT_0]FF0
setp pid.0.FF1 [JOINT_0]FF1
setp pid.0.FF2 [JOINT_0]FF2
setp pid.0.deadband [JOINT_0]DEADBAND
setp pid.0.maxoutput [JOINT_0]MAXOUTPUT

++++++++

Do you help me please?

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

More
30 Jun 2015 03:06 #60265 by andypugh

Thank you, but many bugs before me... :(
my_LinuxCNC_machine.hal:54: Pin 'joint.0.vel-cmd' does not exist


You are using a joints-axes style configuration with a "traditional" LinuxCNC version, and that is never going to work, because the INI file format is different and the HAL pins are different.

Your HAL file for each axis needs to look like Post 59117

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

More
30 Jun 2015 03:20 #60266 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
OK, I understand. :)

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

More
14 Jul 2015 00:52 #60617 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
Hi,
I wrote my hal file for each axis: Post 59117

And LinuxCNC generated this error:

***********
Debug file information:
my_LinuxCNC_machine.hal:65: Ini variable '[AXIS_0]PGAIN' not found.

***********

line 65 is: "setp pid.0.Pgain [AXIS_0]PGAIN"

***********

Question is: where is defined variable "[AXIS_0]PGAIN" and next variable IGAIN DGAIN etc.. ?

Thank You.

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

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