Re: [Emc-users] homing

2007-05-21 Thread Jon Elson
Stuart Stevenson wrote:
> Gentlemen,
> I have uploaded a picture to imagebin. The name of the picture is stustev.
> This is a screen shot of the feedback from the homing cycle of my
> machine. I am using ppmc boards and EMC2-head.
> The machine moves positive to the home switch.
> I have the latch velocity set very low.
> The machine reverses direction.
> The machine display sets to zero and counts very slow.
> The machine will stop momentarily.
> The display will set to a number that seems to be the disance to
> the start up position.
> The machine then moves to the start up position. (display zero)
> The display turns green.
> Take a look at the screen shot.

Could anybody take a look at his picture and see if they can 
suggest what is happening here?  Here's the URL: 
http://imagebin.org/8621

Clearly, index-enable is getting shut off before the index pulse 
comes true.  I cannot see how the hardware or driver, as it is 
now written, can do this.

Here's his ini file :
# EMC controller parameters for generic controller. Make these 
what you need
# for your system.

# General note: Comments can either be preceded with a # or ; - 
either is
# acceptable, although # is in keeping with most linux config files.


# General section 
-
[EMC]

# Version of this INI file
VERSION =   $Revision: 1.3.4.5 $

# Name of machine, for use with display, etc.
MACHINE =   DAHLIH

# Name of NML file to use, default is emc.nml
NML_FILE =  emc.nml

# Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h 
for others
DEBUG = 0
# DEBUG =   0x0007
# DEBUG =   0x7FFF

# Sections for display options 

[DISPLAY]

# Name of display program, e.g., xemc
# DISPLAY = axis
# DISPLAY =   mini
# DISPLAY =   usrmot
  DISPLAY =tkemc

PYVCP = spindle.xml

# Cycle time, in seconds, that display will sleep between polls
CYCLE_TIME =0.100

# Path to help file
HELP_FILE = tkemc.txt

# Initial display setting for position, RELATIVE or MACHINE
POSITION_OFFSET =   RELATIVE

# Initial display setting for position, COMMANDED or ACTUAL
POSITION_FEEDBACK = ACTUAL

# Highest value that will be allowed for feed override, 1.0 = 100%
MAX_FEED_OVERRIDE = 1.2

# Prefix to be used
PROGRAM_PREFIX = /home/stustev/emc2/nc_files

# Introductory graphic
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 2

# Enable popup balloon help
BALLOON_HELP = 1

# Task controller section 
-
[TASK]

# Name of task controller program, e.g., bridgeporttask
TASK =  milltask
# TASK =minimilltask

# Cycle time, in seconds, that task controller will sleep 
between polls
CYCLE_TIME =0.010

# Part program interpreter section 

[RS274NGC]

# File containing interpreter variables
PARAMETER_FILE =dahlih.var

# Motion control section 
--
[EMCMOT]

EMCMOT =  motmod

# Key for real OS shared memory, e.g., for simulated motion
SHMEM_KEY = 111

# Timeout for comm to emcmot, in seconds
COMM_TIMEOUT =  1.0

# Interval between tries to emcmot, in seconds
COMM_WAIT = 0.010

# Base task period, in nanoseconds - this is the fastest thread 
in the machine
BASE_PERIOD =5
# Servo task period, in nanoseconds - will be rounded to an 
integer multiple
#   of BASE_PERIOD
SERVO_PERIOD =   100
# Trajectory Planner task period, in nanoseconds - will be 
rounded to an
#   integer multiple of SERVO_PERIOD
TRAJ_PERIOD =1000

# Hardware Abstraction Layer section 
--
[HAL]

# The run script first uses halcmd to execute any HALFILE
# files, and then to execute any individual HALCMD commands.
#

# list of hal config files to run through halcmd
# files are executed in the order in which they appear

HALFILE =dahlih_load.hal
HALFILE =dahlih_servo.hal
HALFILE =dahlih_motion.hal
HALFILE =dahlih_io.hal

HALFILE =dahlih_jog.hal

HALUI =  halui

POSTGUI_HALFILE =dahlih_axis.hal

# list of halcmd commands to execute
# commands are executed in the order in which they appear
#HALCMD =save neta

# Trajectory planner section 
--
[TRAJ]

AXES =  3
# COORDINATES = X Y Z R P W
COORDINATES =   X Y Z
HOME =  0 0 0
LINEAR_UNITS =  inch
ANGULAR_UNITS = degree
CYCLE_TIME =0.010
DEFAULT_VELOCITY =  0.15
MAX_VELOCITY =  2.0
DEF

Re: [Emc-users] Multi I/O Driver support - kernel patch

2007-05-21 Thread Emory Smith

loadrt probe_parport
loadrt hal_parport cfg="0x278 out 0x20A0 out"
The 0x20a0 here comes from the manual and mine is different
and is what I got from 'lspci -v'. Also using a PCI parport with
Sunix chip.

hth,
e

On 5/21/07, Cliff Haslam <[EMAIL PROTECTED]> wrote:


Hi

I'm changing from Dos-based CNC to emc2 (and new to Linux and emc). If I
understand correctly, to get a second parallel port (in addition to the
motherboard Parallel port) from the PCI 2-port parallel card I need to patch
the kernel for 'Multi I/O driver support'. The PCI card is found with lspci
-v and the pinout.hal is configured but the port remains uninitialised.

The PCI card (SUNIX/Digitus) driver installation provides a patch. What
would be the correct kernel source for 2.6.15-magma (the latest live CD
installation)?.  Is it available from
http://www.kernel.org/pub/linux/kernel/v2.6/?. ..or am I off on a
tangent?   TIA

Cheers
Cliff

--
Discover the new Windows Vista Learn 
more!

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users





--
Emory Smith
[EMAIL PROTECTED]
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] estop writes to toolchange pin out?

2007-05-21 Thread Jeff Epler
On Sun, May 20, 2007 at 03:24:07PM -0400, Alfred Smart wrote:
> When I put my mill into estop it writes to iocontrol.0.tool-change pin
> out is this a bug?

I tested with emc 2.1.4, configs/sim/axis.ini, using halscope to trigger
on rising or falling edges of iocontrol.0.tool-change and found the
following:
 * If iocontrol.0.tool-change is FALSE, then going from MACHINE ON to
   ESTOP with the button on the AXIS GUI does not alter
   iocontrol.0.tool-change

 * If iocontrol.0.tool-change is TRUE, then going from MACHINE ON
   to ESTOP with the button on the AXIS GUI sets iocontrol.0.tool-change
   to FALSE.

Is this the behavior you saw?  I am pretty sure it's a deliberate
behavior, and I don't see why it would be problematic.  If you ESTOP in
the middle of a tool change, it's entirely possible that after fixing
the problem it doesn't make sense to continue the tool change operation
(and there's no point anyhow, since the subsequent gcode instruction
won't be executed either).  

Jeff

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Multi I/O Driver support - kernel patch

2007-05-21 Thread Jeff Epler
emc does not use the linux kernel's parallel port driver, so patching
the kernel for your PCI parallel card won't work and won't change
anything.

Here is the experience of one user with a "NetMos" chipset PCI parallel
card:
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?NetMos
after finding the address with 'lspci', that address is simply given to
'loadrt hal_parport'.

Jeff
PS to get the source for the exact kernel you're running, 2.6.15-magma,
use apt or an apt front-end to install the package
"linux-source-2.6.15-magma" -- but as I said I don't think that patching
the kernel is going to make any difference here

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Multi I/O Driver support - kernel patch

2007-05-21 Thread Cliff Haslam
Hi 
 
I'm changing from Dos-based CNC to emc2 (and new to Linux and emc). If I 
understand correctly, to get a second parallel port (in addition to the 
motherboard Parallel port) from the PCI 2-port parallel card I need to patch 
the kernel for 'Multi I/O driver support'. The PCI card is found with lspci -v 
and the pinout.hal is configured but the port remains uninitialised. 
 
The PCI card (SUNIX/Digitus) driver installation provides a patch. What would 
be the correct kernel source for 2.6.15-magma (the latest live CD 
installation)?.  Is it available from 
http://www.kernel.org/pub/linux/kernel/v2.6/?. ..or am I off on a tangent?   
TIA  
 
Cheers 
Cliff
_
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] How to

2007-05-21 Thread Rod Welland
Thank s Guys for the response sorry Im a bit late repying but I work a 12hr 
day and night shift pattern and when on shift the PC doesnt go on.

I did now about the Bios and boot order, in fact the pc in my shed boots 
first from A:\ then CD then H/D this is because I still boot to DOS some 
times from a floppy.
In this respect what I was'nt sure of was how the disc or partition was 
formated to except Linux but from your replies this is obviously done when 
you boot from the LiveCD.

I think you hit it on the head Ray Nero has not created a boot disc there is 
only one file on the CD and not the 9 or so I should be seeing. So I,m going 
to download another CD burning prog form the internet today and have another 
go.

All my previous CNC progs are DOS based. The one I use most is TurboCNC, 
current Ver. 4.01 which is a great prog and has a good user forum. But its 
been a while since it was updated probably due to lack of  time avaliable 
from Dave's real time job. But hey we all have to earn a living and I can 
only extend my thanks to him for giving us a great program. Although I'm 
sure I'll continue to use TurboCNC I think its time to look at something 
else and from the response I've had from my first quiery on EMC2 from you 
guy's I think this is a great start as I,m sure to run into a few more 
problems.

Thanks Rod



- Original Message - 
From: "Ray Henry" <[EMAIL PROTECTED]>
To: "Enhanced Machine Controller (EMC)" 
Sent: Friday, May 18, 2007 1:25 PM
Subject: Re: [Emc-users] How to


>
> Welcome, Rod
>
> Glad to hear of your interest in EMC2.  There may be a few issues with
> Nero and burning.  IMO it has to do with those other OS folk not wanting
> bootable stuff reproduced.  After you've burned one, pop it into the
> reader again and look at the file structure on the disk.  If there is
> only one file with an .iso or .img or some such extenison, Nero did not
> make a bootable disk.  If there are 9 or so directories and a few files
> then you've got a good disk.  I don't know how to make Nero do this but
> somewhere buried in the tabs or preferences there should be a bootable
> or direct copy ability.
>
> That done, you'll need to make certain that the "sacrificial" machine
> can boot from CDROM and has the CD reader as first boot device.  These
> are bios settings.  Once you've got it booted up you will see an install
> icon on the display.  During that process you'll be asked if you want to
> save some of the old file system or can Ubuntu use the whole disk.
>
> Good luck
>
> Ray
>
>
>
> On Fri, 2007-05-18 at 13:06 +0100, Rod Welland wrote:
>> I,m totally new to Linux of any kind but I wish to use EMC2 I have
>> downloaded the liveCD and created an image on a CD using Nero but
>> can't seem to get it to do anything. Its supposed to be bootable but
>> does this mean bootable in XP as well or bootable in linux and I
>> assume that this means putting the CD in the drive and restarting the
>> PC by swithcing off and on again. Also if I like it and by all that
>> Ive seen on it I probably will I have a 800Mhz pentium PC with Windows
>> 98 and a 10Gig H/D that I could dedicate to Linux and EMC2. So, how
>> would I go about this, ie could I re-format it using Windows or DOS or
>> does Linux use a totally different format system. In which case would
>> I need to source another bit of software to do this or does the Linux
>> install do this for me. Also will EMC2 only work under Ubuntu or would
>> it also work under Mandrake 10.1 because I also have a copy of this
>> which apparently will install alongside Windows which would be useful
>> on my indoor PC which has 170Gig of H/D.
>> There a few questions here but I think my first priority is to try to
>> get the Live CD up and running and see where to go from there.
>>
>> Hoping some of you guy,s out there can help.
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___ Emc-users mailing list 
>> Emc-users@lists.sourceforge.net 
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
> 



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your