Yes, when the underlying parallel port supports setting data pins 2-9 to
input mode by setting the 0x20 bit of the control register, emc2 can use
them that way.
In the 'loadrt parport' line, specify the direction after the port
address, as the following sample suggestion suggests:
halcmd: loadrt hal_parport cfg="0x378 in"
halcmd: show pin *in
Component Pins:
Owner Type Dir Value Name
3 bit OUT FALSE parport.0.pin-02-in
3 bit OUT FALSE parport.0.pin-03-in
3 bit OUT FALSE parport.0.pin-04-in
3 bit OUT FALSE parport.0.pin-05-in
3 bit OUT FALSE parport.0.pin-06-in
3 bit OUT FALSE parport.0.pin-07-in
3 bit OUT FALSE parport.0.pin-08-in
3 bit OUT FALSE parport.0.pin-09-in
3 bit OUT FALSE parport.0.pin-10-in
3 bit OUT FALSE parport.0.pin-11-in
3 bit OUT FALSE parport.0.pin-12-in
3 bit OUT FALSE parport.0.pin-13-in
3 bit OUT FALSE parport.0.pin-15-in
halcmd: show pin *out
Component Pins:
Owner Type Dir Value Name
3 bit IN FALSE parport.0.pin-01-out
3 bit IN FALSE parport.0.pin-14-out
3 bit IN FALSE parport.0.pin-16-out
3 bit IN FALSE parport.0.pin-17-out
This is hiding in the html/pdf documentation, as well:
http://linuxcnc.org/docs/html/hal_drivers.html#r1_1_1
Jeff
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users