Hello Guest it is April 17, 2024, 09:05:07 PM

Author Topic: Changing pin outputs for axes  (Read 1172 times)

0 Members and 1 Guest are viewing this topic.

Changing pin outputs for axes
« on: October 24, 2018, 07:49:34 AM »
Hi there,

I have a Mach 3 USB breakout board. When I connect it up with stepper and driver to the x-axis (XP and XD) and give x-axis jog commands/GCODE commands, it works fine. I have set the ports and pins setting at 2&3.

Now here's the thing. If I disable X axis and instead put the Y-axis port/pin setting at 2&3, then give y-axis commands, then the same stepper should move, right? But it doesn't! Worse, the x-jog command still works as before ( even though it is disabled in ports and pins ). Though g-code command doesn't work.

Is there something I am missing about the setting of ports and pins?

What I really want to do is use 2 translational and 2 rotational axes, eg. X,Z,A,B, rather than X,Y,Z,A

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Changing pin outputs for axes
« Reply #1 on: October 24, 2018, 10:17:49 AM »
The board you have may be hardwired or programmed so that the ports and pins are fixed, and can't be changed.

You may need a different controller to do what you want.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Changing pin outputs for axes
« Reply #2 on: October 25, 2018, 12:37:56 AM »
Yup, I think you are right. I messed around a lot and no matter what I set the pin numbers to they work only for x-axis.

One more question, what is the difference between a 'port' and a 'pin' .

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Changing pin outputs for axes
« Reply #3 on: October 25, 2018, 08:21:25 AM »
Ports and pins usually refer to a PC's parallel port, each with 25 pins. Many motion controllers use the same terminology, and often the same connectors. But in reality, there are no actual "ports" on a motion controller. They are just a method to assign pins to input and output functions. Pins are really just inputs or outputs.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html