Author Topic: PMDX126, PMDX134, ESS and Mach4 - Lots of Pictures  (Read 4544 times)

san83

  • Posts: 8
    • View Profile
PMDX126, PMDX134, ESS and Mach4 - Lots of Pictures
« on: July 27, 2016, 09:31:52 AM »
Hello -

I`m setting up my control with PMDX126, PMDX 134, Ethernet Smooth Stepper and Mach4. I`m able to communicate with ESS.  There is power going into the motor - this i know cause the I can`t rotate the shaft by hand.  I am not able to get motion on the motors. I`m guessing the Step and Dir signals are not being conveyed from the ESS to the PMDX134. I`m still unclear about setting the Mach4, see screen shots. Am I missing anything. The wiring make sense? The jumpers? I did reverse the Step and Dir pin outs as I read the Dir are on even and Steps are on odd, then I tried the other way around - but I still can`t get the motors to move.

Also, you can see in the picture that the ribbon cable connecting the ESS to PMDX134 is twisted, as the layout is different from the manual - but it still makes the connection as it is supposed to do I think. When I send commands in Mach4, the screen coordinates update but nothing on the motors, which means commands are not being routed to PMDX126 - ESS - PMDX134 and then to the motors. Where is the issue here?

The Motors are wired as Bipolar Series.

Any help to get me up and running will be greatly appreciated.

Here are the pictures of the wiring, and the configuration.

<iframe width="480" height="360" src="http://s44.photobucket.com/user/san8330/embed/slideshow/"></iframe>




Bob at PMDX

  • Administrator
  • Posts: 368
    • View Profile
    • PMDX
Re: PMDX126, PMDX134, ESS and Mach4 - Lots of Pictures
« Reply #1 on: July 27, 2016, 10:50:31 AM »
The ribbon cables look OK.

But your motor configuration is a bit mixed up.

(a) The image of the ESS I/O Configuration dialog shows the motor step/dir assigned to port 2.  This needs to be port 1.

(b) You also have Pin2 mapped to Motor0 step, where that needs to be Motor0 Dir.  I know you mentioned that you swapped the step/dir and it didn't work either way.  That is because of (a) above.

(c) In the ESS I/O config dialog, you have pins 2&3 going to Motor0/X axis, but in the Mach4 "Axis Mapping" dialog, you have Motor1 mapped to X and Motor0 mapped to Y.  I am not very familiar with the ESS configuration, and it may be that the "Custom Name" field had no meaning or function beyond a user-readable label for the signal.  However, for your later sanity I suggest that these should be consistent.  If you really want Motor1 mapped to the X axis as shown in the Mach4 dialog, then change the "Custom Name" entries in the ESS config to match that.  If you really want Motor0 mapped to the X axis as indicated in the ESS config dialog, then change the Mach4 axis mapping to match.

(d) Further complicating this is the PMDX-134 calls the 4 motors "Axis #1" through "Axis #4".

The main question is which motor driver on the PMDX-134 is controlling the X axis?  If it is the driver in the "Axis #1" position, then the X axis must be driven by Port1 Pin2 (dir) and Pin3 (step), and the Y axis by Port1 Pin4 (dir) and Pin5 (step).  If the driver in the "Axis #2" position on the PMDX-134 is driving the X axis (not logical to me, but it isn't my machine, so whatever makes sense to you), then the X axis must be driven by Port1 Pin4 (dir) and Pin5 (step), with the Y axis driven by Port1 Pin2 (dir) and Pin3 (step)


So to summarize all the changes, and presuming that the X axis is driven from the PMDX-134 "Axis #1" driver:

(1) In the ESS I/O config, disable and un-map Port 2 pins 2 through 5

(2) In the ESS I/O config, enable Port 1 pins 2 through 5 and map as follows:
     Port1-Pin2  "Motor0 Dir"      "X Dir"
     Port1-Pin3  "Motor0 Step"   "X Step"
     Port1-Pin4  "Motor1 Dir"      "Y Dir"
     Port1-Pin5  "Motor1 Step"   "Y Step"

(3) In the Mach4 config, "Axis Mapping" tab, map Motor0 to the X axis and Moto1 to the Y axis (the opposite of what is shown in the picture).

The makes the lowest motor number (Motor0) the the lowest numbered position on the PMDX-134 (Axis #1).  It also maps Motor0 to the lowest lettered axis (X).

Consistency is the key to being able to figure out your configuration months or even years from now if you need to change it or replicate it.  Keeping Motor0 mapped to the PMDX-134 Axis #1, Motor1 mapped to PMDX-134 Axis #2, etc. will help save your sanity.  You can map them to X, Y, Z as you see fit, though again, if possible, Motor0=X, Motor1=Y is the most straight forward.

Bob
Engineering Hell: Everything's right and nothing works.
Bob's Corollary: If everything's right and nothing works, double check your assumptions.

san83

  • Posts: 8
    • View Profile
Re: PMDX126, PMDX134, ESS and Mach4 - Lots of Pictures
« Reply #2 on: July 27, 2016, 11:06:27 AM »
Bob, Thanks for the reply. I set it on Port2 after I watched this tutorial https://www.youtube.com/watch?v=oEuxOf2kuR8  Are Motors always mapped to Port 1? Do I need to enable any jumpers?

I realize the mapping is off, I`m going to change it. I was doing some trial and error with swapping motors, mapping etc.

Bob at PMDX

  • Administrator
  • Posts: 368
    • View Profile
    • PMDX
Re: PMDX126, PMDX134, ESS and Mach4 - Lots of Pictures
« Reply #3 on: July 27, 2016, 12:02:09 PM »
Which port the motors are mapped to depends on the breakout board and which port on the ESS you have the breakout board connected to.  In that video he apparently had the motors connected to a board that was on port 2.  When using the PMDX-126/PDMX-134 combination AND with the ESS port1 connected to the PMDX-126 port 1, and ESS port 2 connected to the PMDX-126 port 2 (it is really hard to connect them the other way around), then the motor signals are always on port 1. This is mentioned in the PMDX-126 manual bit it is not obvious.  Look at section 11.14 where it describes the signals going from the PMDX-126 to the J19 connector (which feeds the PMDX-134).

There are no jumpers settings on the PMDX-126 associated with the step and direction pinouts.

Bob
Engineering Hell: Everything's right and nothing works.
Bob's Corollary: If everything's right and nothing works, double check your assumptions.

san83

  • Posts: 8
    • View Profile
Re: PMDX126, PMDX134, ESS and Mach4 - Lots of Pictures
« Reply #4 on: July 28, 2016, 08:48:54 AM »
Bob - Thank you. The issue has been resolved after following your suggestions.