On Wed, Apr 22, 2009 at 06:02:49AM -0700, George Reeder wrote:
> I am copying lines from "CHAPTER 22 MPG PENDANT   22.2 Hook it up in HAL" 
> to my Servo_Sim .hal file and running the Servo_Sim program after I install 
> each line in the .hal file. Most lines go in and the program still runs 
> however not all.
> The problem lines are:
> 
> loadrt encoder num_chan=1
> (This gets an error because the hal file already has that line with 
> num_chan=6)

then you'll have to use num_chan=7 and renumber the encoder used by the
MPG to be 6 instead of 0.  This is what the docs mean when they say
    In your custom.hal file or other .hal file add the following making
    sure you don't have mux4 or an encoder already in use. If you do just
    increase the counts and change the reference number.   ^^^^^^^^^^^^^^
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> net scale1 mux4.0.se10 <= parport.1.pin-09-in
> (This and all the other lines with pin numbers get errors saying 
> "servo_sim.hal :124: pin 'mux4.0.0se10'  does not exist")

either you're missing a 'loadrt' line for the mux4 -- perhaps you
commented too many lines when trying to fix the encoder problem?  The
example shows 'loadrt mux4 count=1'.

Jeff

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to