Hello Guest it is April 21, 2021, 01:49:47 PM

Author Topic: Mach 4 setting up software I/O.  (Read 1020 times)

0 Members and 1 Guest are viewing this topic.

Offline Stev

*
  •  16 16
    • View Profile
Mach 4 setting up software I/O.
« on: May 18, 2020, 11:56:08 AM »
Hi I'm trying to figure out how to setup the mach 4 system and the whole setting up the I/O is confusing, I'm using this stepper motor and driver kit from eBay. https://www.ebay.com/itm/151796936792
I'm using a UC100 motion controller.

The pictures here show what I have absolutely no clue on what to do.
Don't know what pin is for what, don't know what exactly to enable or don't.

Thanks for any help.20200517-190938" border="0

20200517-190945" border="0
Re: Mach 4 setting up software I/O.
« Reply #1 on: May 18, 2020, 08:49:22 PM »
Go to your Mach4 Hobby folder on your C: drive and open the folder called Docs. Lots of great information that explains how to do what you need to do.
Once you have read the manuals 3 or 4 times, please get back to us with the wiring diagrams for the stepper drives and the Breakout board you are using.
 A wiring diagram for the UC100 motion controller would also be helpful.


Mike
We never have the time or money to do it right the first time, but we somehow manage to do it twice and then spend the money to get it right.

Offline Stev

*
  •  16 16
    • View Profile
Re: Mach 4 setting up software I/O.
« Reply #2 on: May 19, 2020, 12:58:05 PM »
Here's the wiring diagram, I don't have an emergency stop or limit switches installed yet.

The manuals I've went over multiple times already and they don't directly say what to do in the output and input signals, how do I know what pin goes to what motor? How do you assign keys?

s-l1600" border="0

Offline Stev

*
  •  16 16
    • View Profile
Re: Mach 4 setting up software I/O.
« Reply #3 on: May 19, 2020, 06:09:58 PM »
I figured out the pin outputs I guess, but when I hit any of the jog buttons the program closes.

 :-\20200519-170112-HDR" border="0
20200519-170100" border="0
20200519-170128" border="0
20200519-170117" border="0
20200519-170133" border="0
Re: Mach 4 setting up software I/O.
« Reply #4 on: May 19, 2020, 09:58:36 PM »
Hi,
if I understand you are using a UC100?

A UC100 is limited to one ports worth of IO, so pins 1,2-9,14,16 and 17 are outputs while pins 10,11,12,13 and 15 are inputs.

You have barley enough outputs for step and direction  outputs to six motors and that does not allow any output pins for the spindle
nor enable pins.

Second issue you have (in your screen shot) you have assigned X++, X--, Y++,Y-- etc as OUTPUTS????? Limit switches are
INPUTS to Mach, not outputs.

Your step/direction signal are Mach outputs, if you scroll down the OutputSignal page you will find the Step/Direction outputs to each motor.

To be honest I think that you are too IO limited with a UC100, you need an Ethernet SmoothStepper or a UC300.

Craig
My wife left with my best friend...
     and I miss him!

Offline Stev

*
  •  16 16
    • View Profile
Re: Mach 4 setting up software I/O.
« Reply #5 on: May 19, 2020, 11:36:22 PM »
Quote
Your step/direction signal are Mach outputs, if you scroll down the OutputSignal page you will find the Step/Direction outputs to each motor.

Which part exactly in the output signal page? There's nothing that says step/direction.
Re: Mach 4 setting up software I/O.
« Reply #6 on: May 20, 2020, 01:03:38 AM »
Hi,
OK, they are not on the Mach Control plugin OutputSignals page so they must be on the UC100 plugin page.
Can you post a screen shot of the settings page/pages of the UC100 plugin?

I use the ESS and that will no doubt be different.

Craig
My wife left with my best friend...
     and I miss him!

Offline Stev

*
  •  16 16
    • View Profile
Re: Mach 4 setting up software I/O.
« Reply #7 on: May 20, 2020, 10:57:21 AM »
Screen-Hunter-01" border="0
Screen-Hunter-02" border="0
Screen-Hunter-03" border="0
Screen-Hunter-04" border="0
<a target='_blank' href='https://imgbb.com/'>image hosting[/url]
Re: Mach 4 setting up software I/O.
« Reply #8 on: May 20, 2020, 11:37:50 AM »
Hi,
OK you have in the UC100 plugin assigned the output pins 2-6 as motor outputs for
motors 0-3.

In your previous post you have assigned pins 2-7 as X, Y an Z limits and homes????
Firstly limits and homes are inputs....not outputs.

In Machs Control plugin on the OutputSignals page clear all the assignmements you have made
(X++,X--,Y++,Y--,Z++,Z--,XHome,YHome,ZHome).

That should allow you to control three motors. How do you want to controll the others?

Craig
My wife left with my best friend...
     and I miss him!

Offline Stev

*
  •  16 16
    • View Profile
Re: Mach 4 setting up software I/O.
« Reply #9 on: May 20, 2020, 12:02:43 PM »
Hi,
OK you have in the UC100 plugin assigned the output pins 2-6 as motor outputs for
motors 0-3.

In your previous post you have assigned pins 2-7 as X, Y an Z limits and homes????
Firstly limits and homes are inputs....not outputs.

In Machs Control plugin on the OutputSignals page clear all the assignmements you have made
(X++,X--,Y++,Y--,Z++,Z--,XHome,YHome,ZHome).

That should allow you to control three motors. How do you want to controll the others?

Craig

I thought those outputs were for assigning the pins to tell which way the motors should go.
 X++ = Pin2
 X-- = Pin3

The program shows its jogging but none of my motors are actually moving?

Screen-Hunter-06" border="0
« Last Edit: May 20, 2020, 12:13:06 PM by Stev »