krummigudna
06-03-2008, 08:37 PM
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 parallelports.
Can i configure those 8 ports in "stepconf" wizard ?
How do i get those ports upp and running ?:confused:
acondit
06-03-2008, 11:00 PM
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 ?:confused: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
krummigudna
06-04-2008, 07:32 AM
Thank you for good answers Alan.:)
I will only be using 2 or 3 ports for HALUI on a lathe.
If i understand you right, i dont have to define MAX_PORTS in
hal_parport.c mentioned in the documents ?
KRUMMI
SWPadnos
06-04-2008, 09:14 AM
Thank you for good answers Alan.:)
I will only be using 2 or 3 ports for HALUI on a lathe.
If i understand you right, i dont have to define MAX_PORTS in
hal_parport.c mentioned in the documents ?
KRUMMINo, you don't have to change the source code, unless you need more than the 8 ports allowed by default. :)
The code as it is allows you to use from 0 to 8 ports.
- Steve
krummigudna
06-04-2008, 11:07 AM
OK now i get it.:idea:
Of course, thats the source code.
Now the clouds are not as thick in my head.
Thank you Steve :)
KRUMMI