
06-03-2008, 11:00 PM
|
 | | | Join Date: Apr 2005 Location: USA
Posts: 1,774
| |
Originally Posted by krummigudna Hello every one.
I am new to EMC2 and i can not find any file named hal_parport.c or MAX_PORTS ( to define number of ports).
I have read that i can control 8 parallel ports.
Can i configure those 8 ports in "stepconf" wizard ? |
I am almost positive that the answer to the above question is no. Stepconfig is limited to assignments for one parport. You could use it as a starting point for the first port. What kind of machine are you thinking of that will require eight parallel ports? How do i get those ports up and running ? |
You will have to write (or modify) you own ".hal" file that will assign the pins and ports and it will need to contain a line like this that assigns all the port addresses and whether they are assigned non-default input or output functions:
loadrt hal_parport cfg="0x278 0x378 in 0x20A0 out"
Read the documentation on HAL and PARPORT in EMC_USER_MANUAL.pdf in particular chapters 6, 7, and 8.
Alan
__________________ http://www.alansmachineworks.com |