Additional Inputs

  • vre
  • Away
  • Platinum Member
  • Platinum Member
More
29 Dec 2024 01:06 - 29 Dec 2024 04:09 #317581 by vre
Additional Inputs was created by vre
What solution exists for mill front panel button inputs? These are non critical real time inputs
for example extra inputs for front panel buttons like cycle start/stop/pause/ +- x+-y+-z+-a/flood/mist/tool clamp/spindle cw-ccw-stop.
Can i use parallel port for these or something
from usb port like arduino or rs232 or rs485 port?
Last edit: 29 Dec 2024 04:09 by vre.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
04 Jan 2025 14:19 #318070 by tommylight
Replied by tommylight on topic Additional Inputs
Yes, parallel port works for that, normally it has only 5 inputs but it can be st to "input" mode giving you 13 inputs and 4 outputs.
There are also some Arduino projects around here, but i never used them.

Please Log in or Create an account to join the conversation.

  • vre
  • Away
  • Platinum Member
  • Platinum Member
More
06 Jan 2025 12:01 #318210 by vre
Replied by vre on topic Additional Inputs
How can i switch parallel to input mode?

Please Log in or Create an account to join the conversation.

More
06 Jan 2025 15:04 #318231 by jmelson
Replied by jmelson on topic Additional Inputs
You just specify input on the hal command line that instantiates the driver (hal_parport or rtapi_parport), and it will export the needed hal pins.
Jon

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
06 Jan 2025 15:14 #318232 by tommylight
Replied by tommylight on topic Additional Inputs

How can i switch parallel to input mode?

loadrt hal_parport cfg="0x378 out"
to
loadrt hal_parport cfg="0x378 in"

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.074 seconds
Powered by Kunena Forum