Hi Alfred.

Several of the developers spent time trying to figure out a way to convert the 
second parport configuration options from EMC to EMC2.  If memory serves this 
was the only recommendation of the Fest at NIST that was not able to be 
implemented.  I'm not at home right now so can't test and send a sample hal 
file.  The steps to setting one up working from stepper inch are like this.

In the standard_pinout.hal file you need to add the parport and connect its 
functions to threads.  The existing file looks like this.

# first load the parport driver
loadrt hal_parport cfg="0x0378"
#
# next connect the parport functions to threads
# read inputs first
addf parport.0.read base-thread 1
# write outputs last
addf parport.0.write base-thread -1
#

The hal manual suggests the following sort of expansion of the single parport 
load command.

loadrt hal_parport cfg="0x278 0x378 in 0x20A0 out"

Since the command defaults to out and that was the way the old second parport 
worked you can simply insert the two addresses between "".

Now you need to add the second parport to the appropriate threads.  You could 
just copy the existing addf lines and change to parport.1.xxx.  If you are 
being time conscious you could add the second parport's functions to the servo 
thread rather than the base.

With these changes you will see the second parport when you start up the 
configuration and look at it with halshow or halcmd.  From there you should be 
able to figure out how to connect the extra pins to the signals you want to use 
them for.

Good luck.

Rayh


On Sat, 14 Apr 2007 13:42:31 -0400, Alfred Smart <[EMAIL PROTECTED]>, "Enhanced 
Machine Controller (EMC)" <[EMAIL PROTECTED]> said:
>  Someone must have upgraded from emc to emc2,
> using there old hardware configurations with the extra parallel port.
>does anyone have a sample .ini they have had success with?
>where to add the second parallel port address?
>looking for an easy transition.
>I also halui's feed hold to a hard switch looks inviting.
>Thanks
>
>
>

-------------------------------------------------------------------------
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to