NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Configuring LinuxCNC Basic Configuration Need to connect pin problem

Welcome, Guest
Username: Password: Remember me

TOPIC: Need to connect pin problem

Re:Need to connect pin problem Edited 02 Jui 2012 11:51 #20609

  • cwebs
  • cwebs's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 123
  • Karma: 5
cwebs wrote:
BigJohnT wrote:
In your main ini file uncomment the last line by removing the # in front of loadusr.

Test run that.

John
This line is not in the .ini. It is in the .hal

Removed the comment and no change. Program runs and pin 16-out works the relay. Joypad dead.

This removel of comments kills Linuxcnc with error reports

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-2.6.24-16-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.4
LINUXCNC - 2.5.0-62-g2e08696
Machine configuration directory is '/home/carl/linuxcnc/configs/Carl_CNC'
Machine configuration file is 'carl.ini'
INIFILE=/home/carl/linuxcnc/configs/Carl_CNC/carl.ini
PARAMETER_FILE=carl.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
Starting TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=5589
Killing task milltask, PID=5723
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.
Could not open command file 'postgui.hal'
5589
PID TTY STAT TIME COMMAND
5723
PID TTY STAT TIME COMMAND
5723 ? Z 0:00 [milltask] <defunct>
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 922.262281] I-pipe: Domain RTAI registered.
[ 922.262294] RTAI[hal]: <3.6.1> mounted over IPIPE-NOTHREADS 2.0-04.
[ 922.262297] RTAI[hal]: compiled with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3).
[ 922.262302] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 922.262305] PIPELINE layers:
[ 922.262307] dcce5000 9ac15d93 RTAI 200
[ 922.262309] c0383180 0 Linux 100
[ 922.275775] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 922.276382] RTAI[sched]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 922.276388] RTAI[sched]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing: periodic; linear timed lists.
[ 922.276418] RTAI[sched]: Linux timer freq = 250 (Hz), CPU freq = 2165053000 hz.
[ 922.276421] RTAI[sched]: timer setup = 2010 ns, resched latency = 2689 ns.
[ 922.351715] RTAI[math]: loaded.
[ 922.487512] config string '0x378 out '
[ 925.903226] RTAI[math]: unloaded.
[ 925.961431] SCHED releases registered named ALIEN RTGLBH
[ 925.976219] RTAI[malloc]: unloaded.
[ 926.075717] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 926.077642] I-pipe: Domain RTAI unregistered.
[ 926.077650] RTAI[hal]: unmounted.
The administrator has disabled public write access.

Re:Need to connect pin problem Edited 02 Jui 2012 11:56 #20610

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 5081
  • Thank you received: 102
  • Karma: 136
cwebs wrote:
BigJohnT wrote:
In your main ini file uncomment the last line by removing the # in front of loadusr.

Test run that.

John
This line is not in the .ini. It is in the .hal

Removed the comment and no change. Program runs and pin 16-out works the relay. Joypad dead.

Sorry about the ini/hal typo, trying to run parts on the VMC...

Back to this step, does the joypad show up in show hal configuration? if so it is not dead, just not connected.

John
Last Edit: 02 Jui 2012 12:03 by BigJohnT.
The administrator has disabled public write access.

Re:Need to connect pin problem Edited 02 Jui 2012 11:59 #20611

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 5081
  • Thank you received: 102
  • Karma: 136
Could not open command file 'postgui.hal'

Did you rename your custom_postgui.hal to postgui.hal?

John
The administrator has disabled public write access.

Re:Need to connect pin problem Edited 02 Jui 2012 12:11 #20613

  • cwebs
  • cwebs's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 123
  • Karma: 5
BigJohnT wrote:
Could not open command file 'postgui.hal'

Did you rename your custom_postgui.hal to postgui.hal?

John

I must of missed the file rename!!! Everything seems to work after I renamed the custom_postgui to postgui.
Thank you, Thank you, and Thank you for the time to help me. I now have to make a wig out of the hair on the floor. Carl

PS, I still ain't gut a clue what we did. LOL
The administrator has disabled public write access.

Re:Need to connect pin problem Edited 02 Jui 2012 12:17 #20615

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 5081
  • Thank you received: 102
  • Karma: 136
cwebs wrote:
BigJohnT wrote:
Could not open command file 'postgui.hal'

Did you rename your custom_postgui.hal to postgui.hal?

John

I must of missed the file rename!!! Everything seems to work after I renamed the custom_postgui to postgui.
Thank you, Thank you, and Thank you for the time to help me. I now have to make a wig out of the hair on the floor. Carl

PS, I still ain't gut a clue what we did. LOL

I think we just got all of the T's crossed and the I's dotted... try superglue on your hair.

John
The administrator has disabled public write access.

Re:Need to connect pin problem Edited 02 Jui 2012 12:22 #20616

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 5081
  • Thank you received: 102
  • Karma: 136
I did notice something strange in show hal configuration when the signal name had a period in it. the name was displayed under machine instead of by itself... dunno if that has anything to do with the price of tea in China or not but that was the only thing I really changed.

John
The administrator has disabled public write access.
Moderators: Rick G
Time to create page: 1.034 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.