How to configure pause/resume over pin 10 of parallel port?

More
10 Nov 2024 16:20 #314193 by langdons
I have a CNC machine that uses a PMDX-122 breakout board.
It is connected to my PC via a parallel port PCIe card and a parallel port cable.
The PC runs LinuxCNC on Debian.

LinuxCNC can communicate with the breakout board without problem.

How can I configure my HAL config file so LinuxCNC pauses whatever it is doing when the PC recieves a signal on pin 10 on the parallel port and resumes whatever it was doing when the PC stops recieving a signal on pin 10 after a slight delay (to allow the router bit to accelerate)?

I would also like to configure the home switches.
Pins 11, 12, 13, and 15 are available for miscellaneous communication to the PC.

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

More
10 Nov 2024 16:27 #314194 by langdons
The PMDX board is configured (with jumpers) to ignore the input value of pin 17.
The data buffer is set to out (from PC to motor drivers) and is always enabled, regardless of E-Stop signal form the E-Stop button.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Nov 2024 19:58 #314205 by tommylight
It all should be possible to configure using the included wizards, did you try them?
Use StepConf for parallel port or PncConf for Mesa boards.
Also, pin 17 is output, so what input are you reffering to?

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

More
15 Nov 2024 18:20 #314547 by langdons
Pin 17 is an input on the breakout board.
It is an output on the PC.
(Technically, it is bi-directional)

yyao.ca/projects/ParallelPortLinux/

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

More
18 Nov 2024 14:12 - 18 Nov 2024 14:15 #314755 by langdons
What included wizards are you referring to?
LinuxCNC is not exactly user-friendly.

Debian is also kinda weird and unintuitive.
I am an Ubuntu 22.04/24.04 and macOS High Sierra user.
Last edit: 18 Nov 2024 14:15 by langdons. Reason: Fixed typo

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

More
18 Nov 2024 14:23 #314756 by langdons
Here is my final decision for pinouts:

Pause/!Resume: Pin 10
!Limit_X: Pin 12
!Limit_Y: Pin 13
!Limit_Z: Pin 15

! means logical not ("Active LOW").

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

More
20 Nov 2024 13:38 #314906 by langdons
I tried the included wizard (stepconf).

The system works now.

Thank you tommylight!

However, I have pin 1 configured as "Spindle ON", but the output on the pin does not change.

What do I do now?

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

More
20 Nov 2024 13:48 #314908 by langdons
How does LinuxCNC determine the output of Spindle ON?

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
20 Nov 2024 15:53 #314921 by tommylight
Spindle.n.on
That should be the hal pin controlling the spindle (on phone can not check).
If using later versikn of LinuxCNC, the spindle on gcode is
M3 S24000 $0
S24000 is the RPM
$0 is spindle 0 of the first installed spindle as there can be several spindles.
One thing to keep in mind, if you set just the spindle on pin, it should just turn the spindle on, but if you do have a spindle pwm pin, then the spindle will not trun on from gcode without the speed value included.
! Means active low in 3d printers :)
Active low is whatever signal sign or name with the dash above.
What GUI are you using?

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

More
20 Nov 2024 16:30 #314926 by langdons
I think I'm using Axis as my GUI.
I am using LinuxCNC version 2.9.3.

BTW, right now, the system does not actually work.
I am just testing it.
The old stepper drivers broke (I think).

I am still waiting fir the new one to arrvie from China from Ebay.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum