z auto touch off
02 Aug 2013 21:15 #37359
by charrier
z auto touch off was created by charrier
hi all
i use linuxcnc 2.5.2 with ubuntu 10.4
i try to use z auto touch off like the thread on the wiki classic ladder example but my result is bad plenty error and i don't understand
i put in the ini file the mdi command, in the .xml the button, in postgui file the connection, .
i try to install all by step by step and i try to lauch axis, at the begin all is good but when i change in custon.hal the load of z button touch off.clp
the problem come whit the errors that you find under that .
thanks for your reply
best regards
rv
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.2
Machine configuration directory is '/home/charrier/linuxcnc/configs/ma-machine'
Machine configuration file is 'ma-machine.ini'
INIFILE=/home/charrier/linuxcnc/configs/ma-machine/ma-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...
Killing task linuxcncsvr, PID=26126
INFO CLASSICLADDER---I/O modbus master closed!
INFO CLASSICLADDER---I/O modbus master (Ethernet) init ok !
INFO CLASSICLADDER---I/O modbus master closed!
INFO CLASSICLADDER---I/O modbus master (Ethernet) init ok !
ERROR CLASSICLADDER- Error intializing classicladder user module.
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
HAL: ERROR: duplicate component name 'classicladder'
custom.hal:3: program 'classicladder' failed, returned 255
26126
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
ULAPI: WARNING: module 'HAL_classicladder' failed to delete shmem 03
Kernel message information:
[372891.984942] I-pipe: Domain RTAI registered.
[372891.984957] RTAI[hal]: <3.6.1> mounted over IPIPE-NOTHREADS 2.0-04.
[372891.984960] RTAI[hal]: compiled with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3).
[372891.984966] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[372891.984969] PIPELINE layers:
[372891.984972] dcbbb000 9ac15d93 RTAI 200
[372891.984974] c0383180 0 Linux 100
[372892.000070] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[372892.000686] RTAI[sched]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[372892.000692] RTAI[sched]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing: periodic; linear timed lists.
[372892.000696] RTAI[sched]: Linux timer freq = 250 (Hz), CPU freq = 1999814000 hz.
[372892.000700] RTAI[sched]: timer setup = 2010 ns, resched latency = 2689 ns.
[372892.103483] RTAI[math]: loaded.
[372892.285685] config string '0x378 out '
[372892.299594] creating ladder-state
[372893.527227] RTAI[math]: unloaded.
[372893.620099] SCHED releases registered named ALIEN RTGLBH
[372893.633708] RTAI[malloc]: unloaded.
[372893.732382] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[372893.734894] I-pipe: Domain RTAI unregistered.
[372893.734905] RTAI[hal]: unmounted.
i use linuxcnc 2.5.2 with ubuntu 10.4
i try to use z auto touch off like the thread on the wiki classic ladder example but my result is bad plenty error and i don't understand
i put in the ini file the mdi command, in the .xml the button, in postgui file the connection, .
i try to install all by step by step and i try to lauch axis, at the begin all is good but when i change in custon.hal the load of z button touch off.clp
the problem come whit the errors that you find under that .
thanks for your reply
best regards
rv
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.2
Machine configuration directory is '/home/charrier/linuxcnc/configs/ma-machine'
Machine configuration file is 'ma-machine.ini'
INIFILE=/home/charrier/linuxcnc/configs/ma-machine/ma-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...
Killing task linuxcncsvr, PID=26126
INFO CLASSICLADDER---I/O modbus master closed!
INFO CLASSICLADDER---I/O modbus master (Ethernet) init ok !
INFO CLASSICLADDER---I/O modbus master closed!
INFO CLASSICLADDER---I/O modbus master (Ethernet) init ok !
ERROR CLASSICLADDER- Error intializing classicladder user module.
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
HAL: ERROR: duplicate component name 'classicladder'
custom.hal:3: program 'classicladder' failed, returned 255
26126
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
ULAPI: WARNING: module 'HAL_classicladder' failed to delete shmem 03
Kernel message information:
[372891.984942] I-pipe: Domain RTAI registered.
[372891.984957] RTAI[hal]: <3.6.1> mounted over IPIPE-NOTHREADS 2.0-04.
[372891.984960] RTAI[hal]: compiled with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3).
[372891.984966] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[372891.984969] PIPELINE layers:
[372891.984972] dcbbb000 9ac15d93 RTAI 200
[372891.984974] c0383180 0 Linux 100
[372892.000070] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[372892.000686] RTAI[sched]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[372892.000692] RTAI[sched]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing: periodic; linear timed lists.
[372892.000696] RTAI[sched]: Linux timer freq = 250 (Hz), CPU freq = 1999814000 hz.
[372892.000700] RTAI[sched]: timer setup = 2010 ns, resched latency = 2689 ns.
[372892.103483] RTAI[math]: loaded.
[372892.285685] config string '0x378 out '
[372892.299594] creating ladder-state
[372893.527227] RTAI[math]: unloaded.
[372893.620099] SCHED releases registered named ALIEN RTGLBH
[372893.633708] RTAI[malloc]: unloaded.
[372893.732382] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[372893.734894] I-pipe: Domain RTAI unregistered.
[372893.734905] RTAI[hal]: unmounted.
Please Log in or Create an account to join the conversation.
02 Aug 2013 22:43 #37366
by ArcEye
Replied by ArcEye on topic z auto touch off
Hi
zip seems corrupt, just contains a symlink
This is the error, I would suspect you are loading classicladder in your main hal file then doing it again in your custom.hal file
regards
zip seems corrupt, just contains a symlink
HAL: ERROR: duplicate component name 'classicladder'
custom.hal:3: program 'classicladder' failed, returned 255
This is the error, I would suspect you are loading classicladder in your main hal file then doing it again in your custom.hal file
regards
Please Log in or Create an account to join the conversation.
02 Aug 2013 23:09 #37370
by charrier
Replied by charrier on topic z auto touch off
hi arc eye thanks for your reponse
i put a # on custom hal file but i don't now where i must insert the name of .clp file for classic ladder can open it when axis open.
i can open it manualy but automaticly must be better
you have i am sure a solution
rv
i put a # on custom hal file but i don't now where i must insert the name of .clp file for classic ladder can open it when axis open.
i can open it manualy but automaticly must be better
you have i am sure a solution
rv
Please Log in or Create an account to join the conversation.
03 Aug 2013 16:12 - 03 Aug 2013 18:40 #37376
by ArcEye
Replied by ArcEye on topic z auto touch off
Hi
The zip is still wrong
You have zipped a symlink called ma-machine which points to /home/charrier/linuxcnc/configs/ma-machine
instead of zipping the actual folder
In the meantime, this shows you how to load classicladder programs
regards
EDIT
Or this even
www.linuxcnc.org/docs/devel/html/ladder/classic_ladder.html
The zip is still wrong
You have zipped a symlink called ma-machine which points to /home/charrier/linuxcnc/configs/ma-machine
instead of zipping the actual folder
In the meantime, this shows you how to load classicladder programs
regards
EDIT
Or this even
www.linuxcnc.org/docs/devel/html/ladder/classic_ladder.html
Last edit: 03 Aug 2013 18:40 by ArcEye.
Please Log in or Create an account to join the conversation.
03 Aug 2013 16:59 #37377
by cncbasher
Replied by cncbasher on topic z auto touch off
in your main hal file :
# Chargement de Classicladder avec modbus maƮtre inclus (La GUI doit tourner avec Modbus)
loadusr classicladder --modmaster custom.clp
and also in your custom.hal
loadusr -w classicladder --nogui Touch_OFF_Button.clp
in your hal file you are loading 2 classic ladder programs
one in your main hal file and the other in your custom,hal
# Chargement de Classicladder avec modbus maƮtre inclus (La GUI doit tourner avec Modbus)
loadusr classicladder --modmaster custom.clp
and also in your custom.hal
loadusr -w classicladder --nogui Touch_OFF_Button.clp
in your hal file you are loading 2 classic ladder programs
one in your main hal file and the other in your custom,hal
Please Log in or Create an account to join the conversation.
05 Aug 2013 20:12 - 05 Aug 2013 23:15 #37412
by charrier
Replied by charrier on topic z auto touch off
Hi thanks
good target it's the reponse
now a new things i suppose make an error somwhere with the classic ladder example in the wiki : wiki.linuxcnc.org/cgi-bin/wiki.pl?ClassicLadderExamples
Single button probe/touchoff z auto touch off on button because nothing move
my mdi command are good i see in classiq ladder the mdi mode change, button z touch off too
, but ----[/[
%B0 and %B1 not turn on or off
i must forgot somethings but i don't now where
the mdi command g38.2 z-3 f16 work well
thanks
rv
good target it's the reponse
now a new things i suppose make an error somwhere with the classic ladder example in the wiki : wiki.linuxcnc.org/cgi-bin/wiki.pl?ClassicLadderExamples
Single button probe/touchoff z auto touch off on button because nothing move
my mdi command are good i see in classiq ladder the mdi mode change, button z touch off too
, but ----[/[
%B0 and %B1 not turn on or off
i must forgot somethings but i don't now where
the mdi command g38.2 z-3 f16 work well
thanks
rv
Last edit: 05 Aug 2013 23:15 by charrier.
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds