[Emc-users] My New D519MO Motherboard does not load EMC 10.04.

2010-10-05 Thread Don Stanley
Hi All;
The EMC Errors File is probably telling me what is
wrong but I'm on too many shifts today to figure it out.

EMC Errors:
Print file information:
RUN_IN_PLACE=no
EMC2_DIR=
EMC2_BIN_DIR=/usr/bin
EMC2_TCL_DIR=/usr/share/emc/tcl
EMC2_SCRIPT_DIR=
EMC2_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/emc2
EMC2_CONFIG_DIR=
EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
EMC2_EMCSH=/usr/bin/wish8.5
EMC2 - 2.4.3
Machine configuration directory is '/home/jetmill1/emc2/configs/JETMill1'
Machine configuration file is 'jetmill1.ini'
INIFILE=/home/jetmill1/emc2/configs/JETMill1/jetmill1.ini
PARAMETER_FILE=univstep.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
HALUI=
DISPLAY=axis
NML_FILE=
Starting EMC2...
Starting EMC2 server program: emcsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting EMC2 IO program: io
emc/iotask/ioControl.cc 752: can't load tool table.
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=1382
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
insmod: error inserting
'/usr/realtime-2.6.32-122-rtai/modules/emc2/hal_ppmc.ko': -1 Operation not
permitted
jetmill1_load.hal:8: exit value: 1
jetmill1_load.hal:8: insmod failed, returned -1
See the output of 'dmesg' for more information.
1382
  PID TTY  STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[   22.599543] I-pipe: Domain RTAI registered.
[   22.599564] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[   22.599572] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu
4.4.3-4ubuntu5) .
[   22.599701] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs
DISPATCHED), ISOL_CPUS_MASK: 0).
[   22.599707] PIPELINE layers:
[   22.599713] f8ef9e20 9ac15d93 RTAI 200
[   22.599718] c085cb20 0 Linux 100
[   22.650704] RTAI[malloc]: global heap size = 2097152 bytes, .
[   22.651826] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: , kstacks pool size = 524288 bytes.
[   22.651839] RTAI[sched]: hard timer type/freq = APIC/10391650(Hz);
default timing: periodic; linear timed lists.
[   22.651847] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq =
1662835000 hz.
[   22.651853] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[   22.651992] RTAI[usi]: enabled.
[   22.760282] RTAI[math]: loaded.
[   22.961406] PARPORT: linux parport parport0 does not support mode 4.
[   22.961412] PARPORT: continuing anyway.
[   22.961806] PPMC: ERROR: no boards found on bus 0, port 0378
[   22.961817] PPMC: ERROR: no USC/UPC for extra dac at bus 0, slot 0
[   22.961827] PPMC: shutting down
[   24.042285] RTAI[math]: unloaded.
[   24.081766] SCHED releases registered named ALIEN RTGLBH
[   24.146026] RTAI[malloc]: unloaded.
[   24.244025] RTAI[sched]: unloaded (forced hard/soft/hard transitions:
traps 0, syscalls 0).
[   24.250639] I-pipe: Domain RTAI unregistered.
[   24.250788] RTAI[hal]: unmounted.

I have tried CMOS printer settings EPP and ECP with no change.
What is mode 4?
Which is the prefered setting EPP or ECP, when it is working?

Help and Thanks
Don
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] free cad software

2010-10-05 Thread noel
Everyone,

 

I just heard about this from my local Solidworks dude.

Definitely worth checking out.

 

http://www.3ds.com/products/draftsight

 

 

Noel Rodes

Rogue Engineering

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] EMC aborting on startup with Segmentation Fault

2010-10-05 Thread Michał Geszkiewicz
Try disabling ati binary drivers.
Use only software emulation and see what happens.

regards,
Michael


W dniu 05.10.2010 20:22, Dennis pisze:
> I've run into a problem that's driving me right over the edge!!  I
> upgraded my desktop system to Ubuntu 10.04 (from 8.04).  This is the
> system I use to prepare g-code for my CNC machine's control PC.  I use
> only EMC2 simulation mode on my desktop to verify everything appears
> correct before I take the code down to the actual CNC machine.
>
> I used GIT to retrieve version 2.4.4 and compiled it with the simulation
> flag set.  When I start EMC2 using SIM - AXIS, it aborts immediately
> with the following message:
> /home/user/emc2/scripts/emc: line 654:  9590 Segmentation fault
> $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
>
> DMESG Output =
> [10400.374828] __ratelimit: 15 callbacks suppressed
> [10400.374832] axis[2680]: segfault at 4 ip 00c5def6 sp bf811490 error 4
> in libGL.so.1.2[bf8000+a7000]
>
> The problem appears to be related to display, most likely AXIS, since
> other modes appear to work fine (i.e. servo simulation).  Don't know if
> this is relevant, but my system uses two displays driven by a Radeon VE
> card.
>
> I AM STUMPED!!  I've searched the forums and found reference to errors
> very much like this, but didn't find the solution posted anywhere!!
>
> If anyone has any suggestions at all, I'd be most grateful!
> Dennis
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2&  L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
>


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] EMC aborting on startup with Segmentation Fault

2010-10-05 Thread Dennis
I've run into a problem that's driving me right over the edge!!  I 
upgraded my desktop system to Ubuntu 10.04 (from 8.04).  This is the 
system I use to prepare g-code for my CNC machine's control PC.  I use 
only EMC2 simulation mode on my desktop to verify everything appears 
correct before I take the code down to the actual CNC machine.

I used GIT to retrieve version 2.4.4 and compiled it with the simulation 
flag set.  When I start EMC2 using SIM - AXIS, it aborts immediately 
with the following message:
/home/user/emc2/scripts/emc: line 654:  9590 Segmentation fault  
$EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS

DMESG Output =
[10400.374828] __ratelimit: 15 callbacks suppressed
[10400.374832] axis[2680]: segfault at 4 ip 00c5def6 sp bf811490 error 4 
in libGL.so.1.2[bf8000+a7000]

The problem appears to be related to display, most likely AXIS, since 
other modes appear to work fine (i.e. servo simulation).  Don't know if 
this is relevant, but my system uses two displays driven by a Radeon VE 
card.

I AM STUMPED!!  I've searched the forums and found reference to errors 
very much like this, but didn't find the solution posted anywhere!!

If anyone has any suggestions at all, I'd be most grateful!
Dennis

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] iocontrol user-enable-out

2010-10-05 Thread Lars Andersson
Some more observations:

Display mode of "Emergency button" is controlled by iocontrol.0.enable-in
and nothing else.

iocontrol.0.user-enable-out is controlled by pushing the GUI "Emergency
button" in a (IMHO) backwards way, 

if enable-in is true pushing "Emergency button"  brings enable-out false
(well, OK on that)

if enable-in is true pushing "Emergency button" again will not bring
enable-out true (this is not logical to me) 

if enable-in is false pushing "Emergency button"  brings enable-out true
(this is not logical to me)

Also this is not reflected in button grapic.

I would like to have enable-out true if and only if enable-in is true and
"GUI Emergency button" not pushed.  

Anyone care to comment on this?
 
> I originally thought that "iocontrol.0.user-enable-out" should follow
> the
> upper left (red) button, but so far, in my case, it is acting funny
> (That
> means I don't understand it).
> 
> >From HAL Configuration WATCH I learn the following:
> 
> If " iocontrol.n.emc-enable-in" is false "iocontrol.0.user-enable-out"
> IS
> following Emergency stop GUI button.
> If " iocontrol.n.emc-enable-in" is true "iocontrol.0.user-enable-out"
> stays
> true if it was before, pushing GUI button brings it false and then it
> stays
> false until " iocontrol.n.emc-enable-in" goes FALSE which makes
> "iocontrol.0.user-enable-out" TRUE.
> 
> What am I missing?
> 
> I have taken "iocontrol.0.user-enable-out" out of the estop logic to
> get
> things going, this means Estop on machine is operational, Axis GUI
> Estop is
> not operational but visually following the external Estop.
> 
> net charge-pump <= charge-pump.out
> net charge-pump => parport.0.pin-16-out
> net estop-ext <= parport.0.pin-10-in-not
> net estop-ext => iocontrol.0.emc-enable-in
> net estop-ext => charge-pump.enable
> 
> // Lars A
> 
> 
> 
> > -Original Message-
> > From: Don Stanley [mailto:dstanley1...@gmail.com]
> > Sent: den 3 oktober 2010 00:49
> > To: Enhanced Machine Controller (EMC)
> > Subject: Re: [Emc-users] iocontrol user-enable-out
> >
> > On Sat, Oct 2, 2010 at 3:30 PM, Lars Andersson
> > wrote:
> >
> > > Hi list,
> > >
> > >
> > >
> > > How is "iocontrol user-enable-out" controlled?
> > >
> > That is the pin that goes false when an Estop condition exists, as
> the
> > Integrator Manual states.
> > In the EMC Axis display, the button in the upper left with a red
> circle
> > and
> > white X inside displays the state of that pin and provides an
> operator
> > input to control the state except when some internal condition is
> > causing
> > Estop. (Other ENC displays have their own button arrangements).
> > Typically an external Estop button or an EMC axis (joint) tracking
> > error
> > are the type events that will drive that pin false.
> >
> > Through whatever logic you setup in the .hal file to drive
> > iocontrol.n.emc-enable-in true should require "iocontrol user-enable-
> > out"
> > to be true.
> > Good luck
> > Don
> >
> > >
> > >
> > >
> > > I remember using a tool that created a graphic pictore of HAL nets.
> I
> > have
> > > lost it and cannot find it again. Any pointers please?
> > >
> > >
> > >
> > > cheers,
> > >
> > > Lars A
> > >
> > >
> > >
> > >
> > > ---
> --
> > -
> > > Start uncovering the many advantages of virtual appliances
> > > and start using them to simplify application deployment and
> > > accelerate your shift to cloud computing.
> > > http://p.sf.net/sfu/novell-sfdev2dev
> > > ___
> > > Emc-users mailing list
> > > Emc-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/emc-users
> > >
> > -
> --
> > ---
> > Start uncovering the many advantages of virtual appliances
> > and start using them to simplify application deployment and
> > accelerate your shift to cloud computing.
> > http://p.sf.net/sfu/novell-sfdev2dev
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> ---
> ---
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
h

Re: [Emc-users] M101 - M199 problem

2010-10-05 Thread Gene Heskett
On Tuesday, October 05, 2010 12:38:54 pm Igor Chudov did opine:

> I would like to respectfully disagree.
> 
> I do not see why one needs to run as root just to solve basic
> permissions or path issues.
> 
> And I also do not see why being on the internet is going to ruin
> latency.
> 
> Additionally, being on the internet would enable one to get system
> updates.
> 
I have to agree with Igor here.  Emc runs as well from a user account as it 
does from root, permissions problems are, with all due respect, usually 
caused by mucking about in the user account while root. We call that 
PEBKAC.

AND the machine being on the internet has no apparent/detectable by me 
effect on latency.  I have had konversation going and logging the emc 
channel, browsed the web (usually to the emc wiki pages for coding help) 
and or edited gcode, all while my machine was busy carving something.  And 
its only an XP1400 runing at 1600 mhz, with half a gig of ram.
> i
> 
> On Tue, Oct 5, 2010 at 11:11 AM, Schooner  
wrote:
> >> �Because of this I also tried a bash script
> >> �that called the C program and got the same result (no response).
> >> Both work �from the command line. �I get no errors from EMC2.
> >> 
> >> �I have entered a echo command in the bash script that is shown when
> >> I run it �from the command prompt. When run from EMC2 should it
> >> appear in a terminal �window?
> > 
> > Hi
> > 
> > I think you are heading down the classic ladder path to achieve your
> > overall end, but I don't recall seeing your having solved the initial
> > problem of executing scripts etc from a M1XX command.
> > 
> > I had some problems getting hal commands to run within a bash script
> > called from M1xx, a while ago.
> > 
> > First off, unless your controller computer is permanently connected to
> > the internet, (why would you, hardly going to improve latency) �just
> > log in as, install as and run everything as root.
> > Sorts out all the problems with permissions, ownership etc. �The
> > 'middle-man will get you' paranoids will argue against it, but for a
> > stand alone computer, I really do not see the problem.
> > 
> > Obviously ensure that M1xx file is in the path pointed to by
> > PROGRAM_PREFIX in your .ini file
> > If somehow you have 2 entries in your .ini file, EMC only reads the
> > first one.
> > Wonder how I found that out!
> > 
> > If you launch EMC as child process within a terminal (ie without the
> > trailing & ) you will get stderr etc from emc and any processes
> > launched from within it, eg bash or your C program.
> > It was seeing this and using debug outputs, that enabled me to
> > discover that EMC reads M101 P3 and then passes 3.00 instead of
> > just 3, to my M101 script!
> > 
> > As an example the below M101 script uses calls to halcmd to adjust the
> > scale and stepgen associated with my spindle, to account for pulley
> > changes.
> > 
> > regards
> > 
> > Schooner
> > 
> > /#!/bin/bash
> > 
> > ## sets scale gain to make output speed accurate
> > ## for each of 4 pulley settings
> > 
> > if [ ! $# == 1 ]; then
> > � echo "Usage: M101 n - where n is speed range 1 - 4"
> > � exit 1
> > fi
> > 
> > ## emc takes the M101 P3 for example and passes 3.00
> > ## to this script!!!
> > ## need to convert first
> > 
> > float=$1
> > int=${float/\.*}
> > # DEBUG � �echo "$float converted to $int"
> > 
> > 
> > case $int in
> > 
> > � � 1 ) halcmd setp scale.0.gain 0.8
> > � � � � halcmd setp stepgen.4.maxvel 2400;;
> > 
> > � � 2 ) halcmd setp scale.0.gain 1.24
> > � � � � halcmd setp stepgen.4.maxvel 1200;;
> > 
> > � � 3 ) halcmd setp scale.0.gain 3.55
> > � � � � halcmd setp stepgen.4.maxvel 600;;
> > 
> > � � 4 ) halcmd setp scale.0.gain 6
> > � � � � halcmd setp stepgen.4.maxvel 300;;
> > esac
> > 
> > exit 0/
> > 
> > --
> >  Beautiful is writing same markup. Internet Explorer 9
> > supports standards for HTML5, CSS3, SVG 1.1, �ECMAScript5, and DOM L2
> > & L3. Spend less time writing and �rewriting code and more time
> > creating great experiences on the web. Be a part of the beta today.
> > http://p.sf.net/sfu/beautyoftheweb
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> -- Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, bal

Re: [Emc-users] M101 - M199 problem

2010-10-05 Thread Igor Chudov
I would like to respectfully disagree.

I do not see why one needs to run as root just to solve basic
permissions or path issues.

And I also do not see why being on the internet is going to ruin latency.

Additionally, being on the internet would enable one to get system updates.

i

On Tue, Oct 5, 2010 at 11:11 AM, Schooner  wrote:
>>  Because of this I also tried a bash script
>>  that called the C program and got the same result (no response). Both work
>>  from the command line.  I get no errors from EMC2.
>
>>  I have entered a echo command in the bash script that is shown when I run it
>>  from the command prompt. When run from EMC2 should it appear in a terminal
>>  window?
>>
>
> Hi
>
> I think you are heading down the classic ladder path to achieve your
> overall end, but I don't recall seeing your having solved the initial
> problem of executing scripts etc from a M1XX command.
>
> I had some problems getting hal commands to run within a bash script
> called from M1xx, a while ago.
>
> First off, unless your controller computer is permanently connected to
> the internet, (why would you, hardly going to improve latency)  just log
> in as, install as and run everything as root.
> Sorts out all the problems with permissions, ownership etc.  The
> 'middle-man will get you' paranoids will argue against it, but for a
> stand alone computer, I really do not see the problem.
>
> Obviously ensure that M1xx file is in the path pointed to by
> PROGRAM_PREFIX in your .ini file
> If somehow you have 2 entries in your .ini file, EMC only reads the
> first one.
> Wonder how I found that out!
>
> If you launch EMC as child process within a terminal (ie without the
> trailing & ) you will get stderr etc from emc and any processes launched
> from within it, eg bash or your C program.
> It was seeing this and using debug outputs, that enabled me to discover
> that EMC reads M101 P3 and then passes 3.00 instead of just 3, to my
> M101 script!
>
> As an example the below M101 script uses calls to halcmd to adjust the
> scale and stepgen associated with my spindle, to account for pulley changes.
>
> regards
>
> Schooner
>
> /#!/bin/bash
>
> ## sets scale gain to make output speed accurate
> ## for each of 4 pulley settings
>
> if [ ! $# == 1 ]; then
>   echo "Usage: M101 n - where n is speed range 1 - 4"
>   exit 1
> fi
>
> ## emc takes the M101 P3 for example and passes 3.00
> ## to this script!!!
> ## need to convert first
>
> float=$1
> int=${float/\.*}
> # DEBUG    echo "$float converted to $int"
>
>
> case $int in
>
>     1 ) halcmd setp scale.0.gain 0.8
>         halcmd setp stepgen.4.maxvel 2400;;
>
>     2 ) halcmd setp scale.0.gain 1.24
>         halcmd setp stepgen.4.maxvel 1200;;
>
>     3 ) halcmd setp scale.0.gain 3.55
>         halcmd setp stepgen.4.maxvel 600;;
>
>     4 ) halcmd setp scale.0.gain 6
>         halcmd setp stepgen.4.maxvel 300;;
> esac
>
> exit 0/
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] M101 - M199 problem

2010-10-05 Thread Schooner
>  Because of this I also tried a bash script
>  that called the C program and got the same result (no response). Both work
>  from the command line.  I get no errors from EMC2.

>  I have entered a echo command in the bash script that is shown when I run it
>  from the command prompt. When run from EMC2 should it appear in a terminal
>  window?
>

Hi

I think you are heading down the classic ladder path to achieve your 
overall end, but I don't recall seeing your having solved the initial 
problem of executing scripts etc from a M1XX command.

I had some problems getting hal commands to run within a bash script 
called from M1xx, a while ago.

First off, unless your controller computer is permanently connected to 
the internet, (why would you, hardly going to improve latency)  just log 
in as, install as and run everything as root.
Sorts out all the problems with permissions, ownership etc.  The 
'middle-man will get you' paranoids will argue against it, but for a 
stand alone computer, I really do not see the problem.

Obviously ensure that M1xx file is in the path pointed to by 
PROGRAM_PREFIX in your .ini file
If somehow you have 2 entries in your .ini file, EMC only reads the 
first one.
Wonder how I found that out!

If you launch EMC as child process within a terminal (ie without the 
trailing & ) you will get stderr etc from emc and any processes launched 
from within it, eg bash or your C program.
It was seeing this and using debug outputs, that enabled me to discover 
that EMC reads M101 P3 and then passes 3.00 instead of just 3, to my 
M101 script!

As an example the below M101 script uses calls to halcmd to adjust the 
scale and stepgen associated with my spindle, to account for pulley changes.

regards

Schooner

/#!/bin/bash

## sets scale gain to make output speed accurate
## for each of 4 pulley settings

if [ ! $# == 1 ]; then
   echo "Usage: M101 n - where n is speed range 1 - 4"
   exit 1
fi

## emc takes the M101 P3 for example and passes 3.00
## to this script!!!
## need to convert first

float=$1
int=${float/\.*}
# DEBUGecho "$float converted to $int"


case $int in

 1 ) halcmd setp scale.0.gain 0.8
 halcmd setp stepgen.4.maxvel 2400;;

 2 ) halcmd setp scale.0.gain 1.24
 halcmd setp stepgen.4.maxvel 1200;;

 3 ) halcmd setp scale.0.gain 3.55
 halcmd setp stepgen.4.maxvel 600;;

 4 ) halcmd setp scale.0.gain 6
 halcmd setp stepgen.4.maxvel 300;;
esac

exit 0/

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Kearney and Trecker Milwaukeematic IIIb progress

2010-10-05 Thread Igor Chudov
Very neat!

On Tue, Oct 5, 2010 at 10:15 AM, sam sokolik  wrote:
>  3 axis moving! ;)
>
> http://www.youtube.com/watch?v=pOHL_KlUdqw
>
> sam
>
> On 9/6/2010 11:38 AM, sam sokolik wrote:
>>    2 axis moving!
>>
>> http://www.youtube.com/watch?v=QU_O_Z7Vv8c
>>
>> sam
>>
>> On 8/26/2010 4:38 PM, sa...@empirescreen.com wrote:
>>> Well - I fail at copy and paste...
>>>
>>> this should work better.
>>>
>>> I thought I would give an update on our ongoing project.
>>>
>>> This is a 60's vintage NC that used hydraulic servos.  we are converting it 
>>> to EMC2 using not quite as old Inland servos. (80's vintage) they are 8 
>>> brush low rpm high torque.  (with the amc drives we are using - it will be 
>>> 40ft-lbs peak.)  We are using 2 mesa 5i20 boards as we are needing a good 
>>> 70+ i/o + atleast 7 encoder counters and 5 +/-10v outputs.  We are at the 
>>> point where the machine is waking up.  the mesa hardware is awesome (thank 
>>> to peter and seb for their work).
>>>
>>> Be sure to watch the 2 videos at the end of this email.
>>>
>>> lets see if I can create a linear picture show...
>>> this is what the machine looked like in the 60s
>>> http://electronicsam.com/images/KandT/oldkandt.JPG
>>>
>>> this is what the machine looks like now
>>> http://electronicsam.com/images/KandT/DSCCurrent.JPG
>>>
>>> getting rid of the old control
>>> http://www.electronicsam.com/images/control.jpg
>>>
>>> this is the old electrical box
>>> http://electronicsam.com/images/KandT/conversion/mainelectricalbox.JPG
>>>
>>> we welded 2 of the same boxes together for new electronics.
>>> http://electronicsam.com/images/KandT/conversion/moreelec.jpg
>>>
>>> here is it mostly hooked up
>>> http://electronicsam.com/images/KandT/conversion/mostio.JPG
>>>
>>> This is the x,z,b gearbox - the old control used 1 hydraulic servo to run 
>>> all 3 axis
>>> http://electronicsam.com/images/KandT/conversion/xaxis/start.JPG
>>>
>>> open
>>> http://electronicsam.com/images/KandT/conversion/xaxis/start.JPG
>>>
>>> stripped
>>> http://electronicsam.com/images/KandT/conversion/xaxis/stripped.JPG
>>>
>>> shafts extended out so we can hook the servos up.
>>> http://electronicsam.com/images/KandT/conversion/xaxis/3shafts.JPG
>>>
>>> servo plate mounted
>>> http://electronicsam.com/images/KandT/conversion/servo/x-zservo_mount.jpg
>>>
>>> belts (B axis still needs a solution)
>>> http://electronicsam.com/images/KandT/conversion/servo/belts.jpeg
>>>
>>> Because we are still using the z axis drive train that goes up though the 
>>> saddle - we needed to get the backlash out of it.  It uses split gears to 
>>> do that.  Grinding 1 washer thinner takes the backlash out of 5 sets of 
>>> gears. the washer is the spacer between the 2 lower small gears.
>>> http://electronicsam.com/images/KandT/conversion/zaxis/gears.JPG
>>>
>>> we still have to mount the y axis servo. - The plan is to direct couple 
>>> into this shaft.
>>> http://electronicsam.com/images/KandT/conversion/yaxis/yaxisshaft.JPG
>>>
>>> here is the tool chain logic working...
>>> http://www.youtube.com/watch?v=4nuRea6615s
>>>
>>> here is the first closed loop movement with the x axis
>>> http://www.youtube.com/watch?v=FgOqEz5Tk-Y
>>>
>>> Getting there :)  Very happy with the progress.  (I only work on it about 
>>> once a week.)
>>>
>>> sam
>>>
>>>
>>> On Thu, 26 Aug 2010 16:27:29 -0500
>>>       wrote:
 I thought I would give an update on our ongoing project.

 This is a 60's vintage NC that used hydraulic servos.  we are converting 
 it to EMC2 using not quite as old Inland servos. (80's vintage) they are 8 
 brush low rpm high torque.  (with the amc drives we are using - it will be 
 40ft-lbs peak.)  We are using 2 mesa 5i20 boards as we are needing a good 
 70+ i/o + atleast 7 encoder counters and 5 +/-10v outputs.  We are at the 
 point where the machine is waking up.  the mesa hardware is awesome (thank 
 to peter and seb for their work).

 Be sure to watch the 2 videos at the end of this email.

 lets see if I can create a linear picture show...
 this is what the machine looked like in the 60s
 http://electronicsam.com/images/KandT/oldkandt.JPG

 this is what the machine looks like now
 http://electronicsam.com/images/KandT/DSCCurrent.JPG

 getting rid of the old control
 http://www.electronicsam.com/images/control.jpg

 this is the old electrical box
 http://electronicsam.com/images/Kand...ctricalbox.JPG

 we welded 2 of the same boxes together for new electronics.
 http://electronicsam.com/images/Kand...n/moreelec.jpg

 here is it mostly hooked up
 http://electronicsam.com/images/Kand...ion/mostio.JPG

 This is the x,z,b gearbox - the old control used 1 hydraulic servo to run 
 all 3 axis
 http://electronicsam.com/images/Kand...axis/start.JPG

 open
 http://electronicsam.com/images/Kand...axis/start.JPG

 stripped
 http://electro

Re: [Emc-users] Kearney and Trecker Milwaukeematic IIIb progress

2010-10-05 Thread sam sokolik
  3 axis moving! ;)

http://www.youtube.com/watch?v=pOHL_KlUdqw

sam

On 9/6/2010 11:38 AM, sam sokolik wrote:
>2 axis moving!
>
> http://www.youtube.com/watch?v=QU_O_Z7Vv8c
>
> sam
>
> On 8/26/2010 4:38 PM, sa...@empirescreen.com wrote:
>> Well - I fail at copy and paste...
>>
>> this should work better.
>>
>> I thought I would give an update on our ongoing project.
>>
>> This is a 60's vintage NC that used hydraulic servos.  we are converting it 
>> to EMC2 using not quite as old Inland servos. (80's vintage) they are 8 
>> brush low rpm high torque.  (with the amc drives we are using - it will be 
>> 40ft-lbs peak.)  We are using 2 mesa 5i20 boards as we are needing a good 
>> 70+ i/o + atleast 7 encoder counters and 5 +/-10v outputs.  We are at the 
>> point where the machine is waking up.  the mesa hardware is awesome (thank 
>> to peter and seb for their work).
>>
>> Be sure to watch the 2 videos at the end of this email.
>>
>> lets see if I can create a linear picture show...
>> this is what the machine looked like in the 60s
>> http://electronicsam.com/images/KandT/oldkandt.JPG
>>
>> this is what the machine looks like now
>> http://electronicsam.com/images/KandT/DSCCurrent.JPG
>>
>> getting rid of the old control
>> http://www.electronicsam.com/images/control.jpg
>>
>> this is the old electrical box
>> http://electronicsam.com/images/KandT/conversion/mainelectricalbox.JPG
>>
>> we welded 2 of the same boxes together for new electronics.
>> http://electronicsam.com/images/KandT/conversion/moreelec.jpg
>>
>> here is it mostly hooked up
>> http://electronicsam.com/images/KandT/conversion/mostio.JPG
>>
>> This is the x,z,b gearbox - the old control used 1 hydraulic servo to run 
>> all 3 axis
>> http://electronicsam.com/images/KandT/conversion/xaxis/start.JPG
>>
>> open
>> http://electronicsam.com/images/KandT/conversion/xaxis/start.JPG
>>
>> stripped
>> http://electronicsam.com/images/KandT/conversion/xaxis/stripped.JPG
>>
>> shafts extended out so we can hook the servos up.
>> http://electronicsam.com/images/KandT/conversion/xaxis/3shafts.JPG
>>
>> servo plate mounted
>> http://electronicsam.com/images/KandT/conversion/servo/x-zservo_mount.jpg
>>
>> belts (B axis still needs a solution)
>> http://electronicsam.com/images/KandT/conversion/servo/belts.jpeg
>>
>> Because we are still using the z axis drive train that goes up though the 
>> saddle - we needed to get the backlash out of it.  It uses split gears to do 
>> that.  Grinding 1 washer thinner takes the backlash out of 5 sets of gears. 
>> the washer is the spacer between the 2 lower small gears.
>> http://electronicsam.com/images/KandT/conversion/zaxis/gears.JPG
>>
>> we still have to mount the y axis servo. - The plan is to direct couple into 
>> this shaft.
>> http://electronicsam.com/images/KandT/conversion/yaxis/yaxisshaft.JPG
>>
>> here is the tool chain logic working...
>> http://www.youtube.com/watch?v=4nuRea6615s
>>
>> here is the first closed loop movement with the x axis
>> http://www.youtube.com/watch?v=FgOqEz5Tk-Y
>>
>> Getting there :)  Very happy with the progress.  (I only work on it about 
>> once a week.)
>>
>> sam
>>
>>
>> On Thu, 26 Aug 2010 16:27:29 -0500
>>   wrote:
>>> I thought I would give an update on our ongoing project.
>>>
>>> This is a 60's vintage NC that used hydraulic servos.  we are converting it 
>>> to EMC2 using not quite as old Inland servos. (80's vintage) they are 8 
>>> brush low rpm high torque.  (with the amc drives we are using - it will be 
>>> 40ft-lbs peak.)  We are using 2 mesa 5i20 boards as we are needing a good 
>>> 70+ i/o + atleast 7 encoder counters and 5 +/-10v outputs.  We are at the 
>>> point where the machine is waking up.  the mesa hardware is awesome (thank 
>>> to peter and seb for their work).
>>>
>>> Be sure to watch the 2 videos at the end of this email.
>>>
>>> lets see if I can create a linear picture show...
>>> this is what the machine looked like in the 60s
>>> http://electronicsam.com/images/KandT/oldkandt.JPG
>>>
>>> this is what the machine looks like now
>>> http://electronicsam.com/images/KandT/DSCCurrent.JPG
>>>
>>> getting rid of the old control
>>> http://www.electronicsam.com/images/control.jpg
>>>
>>> this is the old electrical box
>>> http://electronicsam.com/images/Kand...ctricalbox.JPG
>>>
>>> we welded 2 of the same boxes together for new electronics.
>>> http://electronicsam.com/images/Kand...n/moreelec.jpg
>>>
>>> here is it mostly hooked up
>>> http://electronicsam.com/images/Kand...ion/mostio.JPG
>>>
>>> This is the x,z,b gearbox - the old control used 1 hydraulic servo to run 
>>> all 3 axis
>>> http://electronicsam.com/images/Kand...axis/start.JPG
>>>
>>> open
>>> http://electronicsam.com/images/Kand...axis/start.JPG
>>>
>>> stripped
>>> http://electronicsam.com/images/Kand...s/stripped.JPG
>>>
>>> shafts extended out so we can hook the servos up.
>>> http://electronicsam.com/images/Kand...is/3shafts.JPG
>>>
>>> servo plate mounted
>>> http://elect

Re: [Emc-users] Parport questions

2010-10-05 Thread Mike Cinquino
Kirk,

I got the bash script working just in time to move on to using classic
ladder... :) It turned out to be the parport.1.pin-2-out vs
parport.1.pin-02-out 02 fixed it.

I got a ladder program in but not working yet. I am not sure what is going
on. I think it is something I am missing in the hal file. I am able to get
my I/O pins assigned but I am having a weird result. If I go into hal meter
I can locate the pins and in the case of the iocontrol.0.tool-prep-number =>
classicladder.0.s32in-00  I am able to view the data change on both when I
issue a T gcode as I expected.  I am not having any luck getting the watch
window to work however in CL. I believe I should be seeing the integer on
%IW0 but when I enter that in the watch window I get nothing... I am
thinking I have something wrong in in my assignment. I had to break away
from it for a while and I won't be able to look at it again until this
evening. I will let you know how I make out.

The wsum method you described looks clean and to the point. I was originally
hoping that was possible but did not see the wsum I will probably give that
a try as well.

Thanks again for all your help,

Mike
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users