Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mark3796

Pages: [1] 2
1
OK, I admit I was sceptical.

I had learned about building a CNC machine by building an x-carve. I had no problems with noise, but I did use capacitors to filter noise on the limit switches following Ben Harper's suggestion here: https://www.instructables.com/id/End-Stop-Limit-Switch-Problems/
So when I built my new machine, I thought it was just a matter of scaling up: Bigger, stronger aluminium extrusions, proper linear guides, nice big stepper motors, beefy timing belts and a smarter interface than Arduino, hence the Gecko 540 and the PMDX 411.

Steve from PMDX said it was likely noise.

12strings, you were right! It's taken me a while, but I have completely rewired my machine and the problems are all solved.

Here's what I did:
1. replaced all stepper wiring with 4-core shielded microphone cable
2. replaced all limit switch wiring with 2-core shielded microphone cable
3. grounded all cable shielding to the machine frame in such a way that all the machine rails and gantry are connected to earth and all the cable shields are grounded at one end
4. inside the control box I moved all the AC wiring over to one side away from the power supply to the Gecko and any Gecko wiring
5. took particular care to keep the AC supply to the router separated from all the other wiring and laid it against the edge of the metal control box (kind of tucked into a recess). The control box is also connected to earth.
6. kept the AC to the router outside the cable ducts, allowing further separation.
7. where I couldn't use shielded cable, for example, the last little bit to the steppers, I used twisted pair wiring

In short, I did everything I could to reduce/isolate any potential sources of noise and to shield out as much noise as I could from the control side.
And it works a treat now!!!!

Thanks for all your help.

2
Update.
The idea of using the old XP machine was to test out a couple of doubts that were nagging me.
1. Was the laptop not synching with the PMDX? That is, busy doing background tasks like checking wifi, antivirus, online accounts like OneDrive, etc. The XP machine was stripped right back with no antivirus, no internet connection, as few background processes as possible. But it was worse!
2.  Was there a problem with my USB connections? I connected the PMDX straight to the USB port on the XP machine, but again it was worse.
I removed the "A" axis entirely. Then I went back to using my laptop and the 3-axis router profile. I had a couple of errors--
I had Mach 4 open and PMDX plugged in, but I had the machine powered off. When I powered it up I got this:
E-Stop is in effect!  Clear the E-Stop condition.
E-Stop cleared!
PMDX: Communication error 'No Device Found'
PMDX: Could not disable the PMDX-SmartBOB-USB, error 'Cannot communicate with device'
PMDX: Communication status 'Sync'd to Device'
PMDX: DEVICE ERROR 'SYSTEM ERROR(18): Packet timeout, communications lost'

I restarted everything and had a good run. After a bit of time I got a homing error--
PMDX: Error 7 (Communication error) queuing HOME pkt for axis 'X' motor 'Master' (id 0), aborting HOME cmd
PMDX: Error 7 (Communication error) queuing HOME pkt for axis 'Y' motor 'Master' (id 1), aborting HOME cmd

After this I had quite a good run with no problems.

So now I'm beginning to think that there might be some setting that could be tweaked. The rotating "A" axis adds a level of complexity to the control. When running the simpler 3 axis profile with relatively simple G-code (repetition drilling), everything seems fine.

Any suggestions appreciated.

3
Thanks 12strings, but no joy with any of that.

What are you using between the PMDX-411 and your motor drivers?  Some break-out board?  G540? PMDX-340?
G540

When you added the 4th axis, did you add or change the motor power supply?
No. I reconfigured my machine. When I first made this machine I had two motors on the y-axis; motor "A" was slave to "Y". I was getting annoyed with the gantry having to be set up for square every time I wanted to use it. I connected a shaft between both sides of "Y" so that both sides of the gantry are driven from one motor. So now I had an extra motor. This is what I used to create the new "A, rolls around X" configuration.

Do you get the error even if you never move the (new) 4th axis?
OK, so this was a really good question. I got to thinking all sorts of ways about the problem. I tried an old computer I had in the spare room. It's an XP machine. I uninstalled just about every program on it and set it up with the PMDX driver and Mach4. I was able to plug the PMDX straight into the XP computer without using a USB extension cable. Mach 4 runs fine. I unplugged the new "A" axis and tried the 3 axis router profile. Unfortunately, things got worse. Even just jogging the machine without powering up the router I get "PMDX: DEVICE ERROR 'SYSTEM ERROR(18): Packet timeout, communications lost' and "PMDX: Communication error 'Lost Sync'" and even the old "PMDX: Could not disable the PMDX-SmartBOB-USB, error 'Cannot communicate with device'".

What if you try "air cutting" with your router un-powered?  Do you still get the "packet timeout" errors?
Yes, see above.

Check your machine wiring and try to keep al limit/home switch wiring as far from the motor/power wiring as possible.
I don't think that is the problem. I haven't changed the wiring much at all and it was going really well for a while. The "Y" limit switches wiring path is well away from the stepper motor wiring.

4
Hi there,
Me again. You replaced my PMDX 411 recently and it's been good as gold. I was running as a Mach4 3 axis router and although I haven't done any very big jobs, everything was running smoothly and as expected.
I recently added a fourth axis. I created a new profile on Mach4 using Mach4 mill. I copied most of the configuration settings across from the Mach4 Router profile and then played around getting the A axis revolving around X. After a bit of fine tuning I ran a few test cuts. everything seems OK except I get some weird crashes. Here is the history from the most recent few runs.
Any thoughts?

PMDX: Communication status 'Sync'd to Device'
Home switch Z Home tripped!
Home switch X Home tripped!
Home switch Y Home tripped!
Current tool == Selected tool so there is nothing to do
Current tool == Selected tool so there is nothing to do
PMDX: DEVICE ERROR 'SYSTEM ERROR(18): Packet timeout, communications lost'
PMDX: Communication error 'Lost Sync'
PMDX: Communication status 'Sync'd to Device'
Home switch Z Home tripped!
Home switch X Home tripped!
PMDX: Error 7 (Communication error) queuing HOME pkt for axis 'Y' motor 'Master' (id 1), aborting HOME cmd
Home switch Z Home tripped!
Home switch X Home tripped!
Home switch Y Home tripped!
Cycle Stopped
Home switch Z Home tripped!
Home switch X Home tripped!
Home switch Y Home tripped!
Current tool == Selected tool so there is nothing to do
Cycle Stopped
Home switch Z Home tripped!
Home switch X Home tripped!
Home switch Y Home tripped!
Current tool == Selected tool so there is nothing to do
Current tool == Selected tool so there is nothing to do
PMDX: Communication error 'Lost Sync'
PMDX: Communication status 'Sync'd to Device'
PMDX: DEVICE ERROR 'SYSTEM ERROR(18): Packet timeout, communications lost'

Cheers
Mark

5
Hi 12strings,
Thanks for all your patience and help. I finally got the machine running. Bit of fine tuning to go, but it works a treat.
Oh, and the PMDX411 is sweet!
https://youtu.be/vLdB0obilP4
Cheers
Mark

6
Hi 12strings,
I think that was the most helpful reply I've had with this!
I made a copy of the Mach4Mill profile and then enabled the PMDX on the Configure->Control->plugins tab. I hadn't thought of doing that. I don't get the message now. It's 1.30 am on a cold winter's night here in Melbourne, Australia, so I'm going to try this out in the morning. But I was getting that error all the time with the copy of the PMDX sample profile.
BTW, which profile would you recommend for a three axis CNC router? Mach4Mill or Mach4 Router?

Cheers!

7
Hi 12strings,
I think this problem was related to my other post here:
https://www.pmdx.com/PMDX-Forums/index.php?topic=593.0;topicseen
"Lua: Error occurred while opening file. Is this a problem?"
It's the middle of the night here (1:14 am, cold winter night!). But you may have fixed the problem in the other post. In the morning, I will try again.
Just for the record, I was jogging, step.
You'll have to help me out with the DRO? Not sure what that means.
I appreciate your humour! That was a very tech support question! I was originally only having this problem with the Z-axis, but yesterday I was getting it on the x axis as well.

8
Here is a longer version from the Mach4 dialog history:
PMDX: Communication status 'Sync'd to Device'

Lua: Error occurred while opening file

cannot open C:\Mach4Hobby\Profiles\Mark-CNC\Macros\mcLua.mcc: No such file or directory

Home switch Y Home tripped!

Home switch X Home tripped!

Home switch Z Home tripped!

E-Stop condition!

E-Stop is in effect! Clear the E-Stop condition.

Clear E-Stop!

Clear E-Stop!

Clear E-Stop!

E-Stop cleared!

Lua: Error occurred while opening file

cannot open C:\Mach4Hobby\Profiles\Mark-CNC\Macros\mcLua.mcc: No such file or directory

E-Stop cleared!

PMDX: No synchronized position from motion planner

E-Stop cleared!

PMDX: No synchronized position from motion planner

PMDX: DEVICE ERROR 'SYSTEM ERROR(7): Motion Calc Underrun'

9
Nope, it's definitely not cogging. I'm using a Tr8*8(P2) metric lead screw. It travels about 6 mm up or down, so that means it does about 3 revolutions. It travels this amount regardless of whether I put in a value of 20, 200, 1000 or 10000 in steps per unit.

10
When I run a copy of the PMDX sample profile in Mach4 the history includes the following:

"PMDX: Communication status 'Sync'd to Device'
Lua: Error occurred while opening file
cannot open C:\Mach4Hobby\Profiles\Mark-CNC\Macros\mcLua.mcc: No such file or directory"

I don't get this when I run any of the other Mach4 profiles (I did this to test). Is this a problem? Also, the PMDX doesn't show up as a Motion Device in the configuration menu in the other profiles (Configure/Select Motion Device). It only shows up in the PMDX Sample Profile.
running Mach4 Version 4.2.0.4162
PMDX 411 plug-in version 0.53.263, bootloader version 1.13.73, Firmware version 0.60.208
Is this normal? Or is there a problem here?

11
OK, so I had a flaky unit. I sent it back to Steve and he tested it and replaced it with a new one. Apparently there was an intermittent connection on the board. That would explain the inconsistent behaviour. This one works fine now. I have to say that was great backup.
I have a new problem now, that maybe more to do with Mach4 than the PMDX unit. I will ask the question here, in case someone can answer it. I'll ask it over at the Mach4 forums as well.
I am in the process of setting up my machine. Changing the motor settings in Mach4 configuration motor settings works for all of the axis except the z-axis. It doesn't seem to matter how many steps I put into the dialog, the motor always moves the axis about 5 mm when jogging. It's got me baffled.

12
Don't know if this is relevant,
https://community.st.com/s/question/0D50X00009XkXrSSAV/st-link-v2-virtual-com-port-driver-not-working-on-windows-10
I think they are discussing this:
https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/usb-driver-installation-based-on-compatible-ids
I read through this thinking there might something I could do on my side, but this is for developers and way over my head.


13
Thanks 12strings, all good questions and worth asking.
I have tried both USB ports on the Surface. Same result.
The USBs on the surface seem fine. Other things work fine.
I tried the PMDX-411 on my old machine, which is a more traditional desk top with USB 2 ports. It also runs Windows 10 though, and I got the same result. First time I plugged it in I got the "USB device not recognised The last USB device you connected malfunctioned and Windows does not recognise it." message. The second time I plugged it in I got the ST32 Virtual COM port in FS mode. This was all without attempting to install any drivers and letting Win10 use the "in the box" driver. I tired troubleshooting, tried Win 10 updating the driver, still no luck. And yeah, I'm not using any extra cables, just the 16" one that is built into the PMDX-411.
Googling "ST32 Virtual COM port in FS mode" brings up a lot of puzzled posts on this topic. Looks like I'm not the only one with this problem.
I'm wondering if it's a Win 10 issue.
Cheers, Mark

14
Thanks for your reply 12strings.
You are quite right I have uninstalled and re-installed the COM port driver several times. The 1.4.0.0 version I got from another FAQ post (I think it was for the PMDX 422). It was the only one I could get to run. It now shows up in my Device Manager.
Again you are right. The Surface book has two USB ports. They are both USB 3.
The behaviour is sporadic and quite random. Nearly every time I plug the PMDX-411 into the USB I get an error message "USB device not recognised The last USB device you connected malfunctioned and Windows does not recognise it."
That's why I included the properties from the COM port settings. "Device Driver. Bits per second: 9600, Data bits: 8, Parity: None, Stop bits: 1, Flow control: None." My first machine was an X-Carve, running Universal G Code Sender through an Arduino (Grbl) and a CNC Shield. With that setup, the Baud Rate was critical. Anything slower than 115200 and the Arduino would not respond. I was wondering if there might be something wrong with the default COM port settings. I have no idea what is in the PMDX-411, but I'm guessing it must be some kind of STMicroelectronics chip, given that's the COM port driver. I even hunted around and found an installer for an  STMicroelectronics Virtual COM Port V 1.5.0.0. but had no luck with that either.
The behaviour has also deteriorated. At one point I actually had my home-built CNC router up and running to the point of being able to jog the motors. That was after I managed to clear the E-stop--thanks for your reply on that one as well. Unfortunately, everything stopped working shortly after that and I have had no luck since.
I sent a de-bug report to Support@PMDX.
Any tips or clues will be appreciated.

15
Hi,
I’m running Mach4Hobby_4.2.0.4162 on a Surface Book 2, Windows 10 Pro 1809, OS b 17763.529
I had a lot of trouble getting the Com port installed. I now have STMicroelectronics Virtual COM Port V 1.4.0.0 showing in my Device Driver. Bits per second: 9600, Data bits: 8, Parity: None, Stop bits: 1, Flow control: None.
Unfortunately, Mach 4 is not playing nice with PMDX 411. The following is some history (with duplicate lines removed for concision).

PMDX: Communication status 'Sync'd to Device'
Lua: Error occurred while opening file
cannot open C:\Mach4Hobby\Profiles\MarkCNC\Macros\mcLua.mcc: No such file or directory
PMDX: Communication error 'Lost Sync'
PMDX: Could not disable the PMDX-SmartBOB-USB, error 'Cannot communicate with device'
Lua: Error occurred while opening file
cannot open C:\Mach4Hobby\Profiles\MarkCNC\Macros\mcLua.mcc: No such file or directory
PMDX: Spindle speed failed for RPM 0, max RPM 10000, Cannot communicate with device
PMDX: Could not disable the PMDX-SmartBOB-USB, error 'Cannot communicate with device'
E-Stop cleared!
--------------------------------------------------
PMDX: Could not enable the PMDX-SmartBOB-USB, error 'Cannot communicate with device'
Lua: Error occurred while opening file
cannot open C:\Mach4Hobby\Profiles\MarkCNC\Macros\mcLua.mcc: No such file or directory
PMDX: Invalid or unknown PMDX-SmartBOB-USB device found
Lua: Error occurred while opening file
cannot open C:\Mach4Hobby\Profiles\MarkCNC\Macros\mcLua.mcc: No such file or directory
PMDX: Spindle speed failed for RPM 0, max RPM 10000, Cannot communicate with device
PMDX: Invalid or unknown PMDX-SmartBOB-USB device found
----------------------------------------------------------------
Lua: Error occurred while opening file
cannot open C:\Mach4Hobby\Profiles\MarkCNC\Macros\mcLua.mcc: No such file or directory
PMDX: Invalid or unknown PMDX-SmartBOB-USB device found
Lua: Error occurred while opening file
cannot open C:\Mach4Hobby\Profiles\MarkCNC\Macros\mcLua.mcc: No such file or directory
PMDX: Spindle speed failed for RPM 0, max RPM 10000, Cannot communicate with device
PMDX: Invalid or unknown PMDX-SmartBOB-USB device found
E-Stop cleared!

Pages: [1] 2