Re: [Emc-users] Axis error

2013-05-28 Thread andy pugh
On 28 May 2013 14:09, Andrew parallel.kinemat...@gmail.com wrote:

 Then I tried to include your changes to current axis.py and compiled again.
 Now I see axis.set-world mode pin in machine configuration, but when I try
 to use it error pops

 ja3-delta.hal:284: Pin 'axisui.set-world-mode' does not exist

This is just the normal no gui pins until the gui is loaded thing,
anything that rweferences the new pin needs to be in the postgui
halfile.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis error

2013-05-28 Thread Andrew
2013/5/28 andy pugh bodge...@gmail.com

 On 28 May 2013 14:09, Andrew parallel.kinemat...@gmail.com wrote:

  Then I tried to include your changes to current axis.py and compiled
 again.
  Now I see axis.set-world mode pin in machine configuration, but when I
 try
  to use it error pops
 
  ja3-delta.hal:284: Pin 'axisui.set-world-mode' does not exist

 This is just the normal no gui pins until the gui is loaded thing,
 anything that rweferences the new pin needs to be in the postgui
 halfile.

 Thanks a lot! Never used gui pins before. I'll try that tomorrow.

Andrew
--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis error

2012-11-08 Thread Viesturs Lācis
2012/11/8 Viesturs Lācis viesturs.la...@gmail.com:
 2012/11/8 andy pugh bodge...@gmail.com:
 Yes, I am liking modifying axis.py more.

 Try this version. It has a HAL pin called axisui.set-world-mode

 Thank You! I somehow did not realize that I could take an existing HAL
 pin and try to replicate it...
 I will now try this out and will report back.

YAY! It is working! At least in simulator.
Thank You very much!

IIRC this switch to world mode automatically issue has been
discussed by other users as well, so what are the chances to put
Andy's changes in master? I do not see that they would change existing
behavior in any way, simply add a new HAL pin. I suspect that proper
way would be submitting a patch file, but I have no idea, how to
create one.

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Axis error

2012-11-07 Thread Viesturs Lācis
Hello!

In my attempts to reduce operators' errors due to leaving machine in
joint mode after homing all joints, I am trying to create a button in
Axis GUI that would switch to world mode. I am trying to add it right
next to Home axis and Touch off buttons in Manual Control tab to
make it as convenient as possible - press Home All and then World
mode.
The reason for this is that I am getting sick of customer complaining
about why are there those 2 modes and why can't it switch them
automatically then, none of our existing machines has such a
weirdness. There are hundreds of employees for that client and I have
no idea, how many of them have to work with that machine (they are
constantly rotating from one task to another), I suspect that it is
more than 10, but I have no way to check and they would not tell me.
There is a small instruction attached to machine about the basic steps
to get it going (including a sentence in bold of _mandatory_ switching
to world mode after homing all joints), but apparently they do not
seem very eager to read it and they keep ignoring my reminders about
the purpose of that instruction.
I tried classicladder for automatic switching to world mode after all
joints are homed. I can get the logics correct and it actually works
correctly. But the thing is that it is all fine until LinuxCNC
finishes running a g-code file - Axis GUI will set it to maual/joint
mode as Axis GUI was never told to be in teleop mode - neither Shift+4
nor View - World mode was pressed and there is no HAL pin that I
could trigger from classicladder for this purpose...
I am blaming Axis GUI, because, when classicladder triggers
halui.mode.teleop pin, joint numbers in DRO and on Manual Control tab
switch over to axis letters, and machine behaves correctly -
kinematics are applied etc, but when I open View menu, I see that of
those 2 radiobuttons at very bottom - Joint mode and World mode,
the bullet is still next to Joint mode. So after running a g-code
file is finished, it switches from auto to manual mode, but
remains in joint mode, just as the bullet next to Joint mode mode
tells it to do.

So I copied both axis and axis.tcl files in their respective
directories, renamed them to cnc and cnc.tcl respectively, set the INI
file to use cnc for DISPLAY and started playing with them in monkey
see, monkey do manner - trying to copy the code that creates existing
buttons and rename appropriate parts. I gave a name of world to that
button and kept it in the same $_tabs_manual.jogf.zerohome frame,
where Home axis and Touch-off buttons already reside.

The thing is that I am receiving this error startup of LinuxCNC:

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/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.1-33-g03be66a
Machine configuration directory is '/home/vie/linuxcnc/configs/sim/axis'
Machine configuration file is 'cnc.ini'
INIFILE=/home/vie/linuxcnc/configs/sim/axis/cnc.ini
PARAMETER_FILE=sim.var
TASK=milltask
HALUI=halui
DISPLAY=cnc
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: cnc
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=736
Killing task milltask, PID=773
ERROR CLASSICLADDER-   Error intializing classicladder user module.
creating ladder-state
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
GANTRYKINS: joints[0] = 0
GANTRYKINS: joints[1] = 1
GANTRYKINS: joints[2] = 2
GANTRYKINS: joints[3] = 3
GANTRYKINS: joints[4] = 4
GANTRYKINS: joints[5] = 5
GANTRYKINS: joints[6] = -1
GANTRYKINS: joints[7] = -1
GANTRYKINS: joints[8] = -1
Traceback (most recent call last):
  File /usr/bin/cnc, line 2864, in module
root_window.tk.call(setup_widget_accel, widgets.worldmode,
_(World mode))
_tkinter.TclError: invalid command name
.pane.top.tabs.fmanual.jogf.zerohome.world
736
  PID TTY  STAT   TIME COMMAND
773
  PID TTY  STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components


I suspect that this is the crucial line:
_tkinter.TclError: invalid command name
.pane.top.tabs.fmanual.jogf.zerohome.world

What is puzzling me is where does fmanual part of that string come
from? Searching both usr/bin/axis and usr/share/axis/tcl/axis.tcl do
not show such a word, so I am out of any ideas, where to look.

I would appreciate any pointer to the cause of this childish mistake
that I am making here.

-- 

Re: [Emc-users] Axis error

2012-11-07 Thread andy pugh
On 7 November 2012 23:32, Viesturs Lācis viesturs.la...@gmail.com wrote:

 I am trying to create a button in
 Axis GUI that would switch to world mode.

I wonder if it would be better (and possibly easier) to add a HAL pin
to the axisgui (a partial clone of the set-manual-mode pin)

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis error

2012-11-07 Thread Viesturs Lācis
2012/11/8 andy pugh bodge...@gmail.com:
 Yes, I am liking modifying axis.py more.

 Try this version. It has a HAL pin called axisui.set-world-mode

Thank You! I somehow did not realize that I could take an existing HAL
pin and try to replicate it...
I will now try this out and will report back.

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users