Hello Guest it is April 18, 2024, 04:37:01 PM

Author Topic: Mach4 jogging output.. diagnostics screen  (Read 2659 times)

0 Members and 1 Guest are viewing this topic.

Mach4 jogging output.. diagnostics screen
« on: February 25, 2019, 06:33:07 PM »
I have had no luck with Mach4 jogging correctly.
Setup is Mach4 hobby, UC100, Sherline motor drivers, Sherline lathe, Backlash disabled (set to 0.0000)
Jogging increment set to 0.001 inch.
Jogging .001 should require 16 steps.
Testing done on Z axis.
Axis homed to 0.000
Onscreen Z+ jog button clicked, and diagnostic screen shows for motor 2 (my Z axis motor)
EX_JOG_INCR,        0,        0,        0,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        0,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        0,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        0,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        2,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        2,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        2,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        3,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        3,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        4,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        4,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        4,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        5,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        6,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        6,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        7,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        7,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        8,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        8,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        9,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       10,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       10,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       11,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       11,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       12,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       12,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       13,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       13,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       13,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       14,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       14,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       14,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       15,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       15,        0,        0,        0,        0,        0
EX_STOP_REQ,        0,        0,       16,        0,        0,        0,        0,        0
EX_NONE    ,        0,        0,        0,        0,        0,        0,        0,        0
DRO shows position at 0.001 correctly.

When clicking Z+ again, diagnostics show
EX_JOG_INCR,        0,        0,        0,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        0,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        0,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        0,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        2,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        2,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        2,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        3,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        3,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        4,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        4,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        4,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        5,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        6,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        6,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        7,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        7,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        8,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        8,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        9,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       10,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       10,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       11,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       11,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       12,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       12,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       13,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       13,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       13,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       14,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       14,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       14,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       15,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,       15,        0,        0,        0,        0,        0
EX_STOP_REQ,        0,        0,       16,        0,        0,        0,        0,        0
EX_NONE    ,        0,        0,       16,        0,        0,        0,        0,        0
DRO still shows 0.001, instead of 0.002

Jogging again moves Z by .001

Every other jogging move results in no actual movement.

A couple more diagnostic logs with the intermediate lines removed:

...
EX_JOG_INCR,        0,        0,       16,        0,        0,        0,        0,        0
EX_STOP_REQ,        0,        0,       32,        0,        0,        0,        0,        0
------ lines removed
EX_NONE    ,        0,        0,       16,        0,        0,        0,        0,        0
...
EX_JOG_INCR,        0,        0,       16,        0,        0,        0,        0,        0
------ lines removed
EX_STOP_REQ,        0,        0,       32,        0,        0,        0,        0,        0
EX_NONE    ,        0,        0,       32,        0,        0,        0,        0,        0
...

Also, setting jog increment to 0.100 inch  and jogging Z+ should output 1600 pulses, but outputs only 1599.  Then jogging Z- by 0.1 outputs 1600 pulses in reverse direction, so it does not return to zero.  Every time jogging Z+ and then Z- leaves the position farther off from zero, so a cumulative error is introduced.

BTW, what does EX_NONE indicate
Re: Mach4 jogging output.. diagnostics screen
« Reply #1 on: February 25, 2019, 07:19:53 PM »
Hi,
that looks like the Sim(ulator) diagnostic output.

Are you sure that you have the UC100 plugin enabled and selected as the current motion control?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach4 jogging output.. diagnostics screen
« Reply #2 on: February 25, 2019, 08:01:28 PM »
Hi,
that looks like the Sim(ulator) diagnostic output.

Are you sure that you have the UC100 plugin enabled and selected as the current motion control?

Craig
Yes, enabled and current.
Re: Mach4 jogging output.. diagnostics screen
« Reply #3 on: February 25, 2019, 08:10:06 PM »
Hi,
can you post a screen shot of the diagnostic page?.

I have a ESS and the diagnostic page is distinctly different to the example you have posted.
It may be the UC100 diagnostics looks very similar to the Sim plugin diagnostic.

Do your stepper drivers have an Enable input and is that input working?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach4 jogging output.. diagnostics screen
« Reply #4 on: February 25, 2019, 08:20:40 PM »
Its not UC100 diagnostics, its the built in Mach4 diagnostics selected from the Mach4 main menu bar. 
I'll try to grab a screen shot tomorrow, since I am not in my shop at present.

Stepper drivers do have enables, and they do work.  Everything works correctly as far as I can tell except jogging and backlash compensation.  Backlash compensation is a real disaster and is unusable.

Re: Mach4 jogging output.. diagnostics screen
« Reply #5 on: February 25, 2019, 09:00:34 PM »
Hi,

Quote
Backlash compensation is a real disaster and is unusable

The UC100 (or the UC300 or the UC400) DOES NOT support backlash compensation in Mach4. CNCDrive is a relatively
recent newcomer to the Mach4 market. Their Mach4 plugin is underdeveloped, no backlash comp, lathe threading,
THC etc. All the basic functions it does have like probing and homing seem to work fine. Given CNCDrive has their
own CNC software (UCCNC) it may be some while, if ever that they develop those features.

Quote
Its not UC100 diagnostics, its the built in Mach4 diagnostics selected from the Mach4 main menu bar. 

That is the Sim plugin diagnostic. It does not reflect what the UC100 is doing. The diagnostic page is specifically
tied to, and written by the same developer as the motion control plugin it is supposed to be diagnosing.

In your case you need to display the UC100 diagnostic. As I don't have it I cant tell you what it looks like.

I'm even more suspicious that the Sim diagnostic that you have displayed suggests that the Sim plugin is working.

Quote
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        1,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        2,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        2,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        2,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        3,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        3,        0,        0,        0,        0,        0
EX_JOG_INCR,        0,        0,        4,        0,        0,        0,        0,        0

The incrementing number in the motor2 column suggest that the axis is incrementing. But this is of course the Sim plugin and
specifically CANNOT cause motion. This suggests to me that despite your belief that the UC100 is the current motion plugin
the evidence you have posted suggests otherwise.

Would you be kind enough to double check the current motion device per the attached picture. Note that I have the Sim plugin
running on my laptop. I have the ESS plugin loaded but as the ESS is in the workshop I cant plug it in and therefore
Mach bombs because it can't communicate with its designated motion device if I select the ESS as current motion device.

Craig

'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach4 jogging output.. diagnostics screen
« Reply #6 on: February 25, 2019, 09:19:13 PM »
I have never enabled the sim plugin.  I have a dial indicator set up and I watch the handwheels spin on the lathe as I jog.
As I said, I have backlash turned off, set to 0.000 so that is not the issue I posted about.

UC100 does not have much in the way of diagnostic screens.  They are limited to indicator lights for the signal lines, but no logging of commands or steps.

Just by watching the handwheels verifies that the jogging is not correct. 
Tomorrow, I will get some screen grabs to show how Mach is set up and how I got the diagnostic file.

With the lathe, I can live without backlash comp, as most of the cutting I do is in one direction, and backlash doesn't matter during tool retraction.  Its a must for my mill though.

It would be very helpful to know what Mach sends to the UC100 and what it sends back.  I don't see the protocol documented anywhere.


« Last Edit: February 25, 2019, 09:23:37 PM by wgpeters »
Re: Mach4 jogging output.. diagnostics screen
« Reply #7 on: February 25, 2019, 09:55:24 PM »
Hi,

Quote
It would be very helpful to know what Mach sends to the UC100 and what it sends back.  I don't see the protocol documented anywhere.

Nor will you, that's like looking under the hood, there is proprietary information there, not just NFS's but CNCDrives as well.

Quote
I have never enabled the sim plugin

The Sim plugin is enabled and selected as motion controller by default. Please double check the selected motion controller.

I am very surprised that the UC100 does not have a well developed diagnostic page. I have attached a picture of the
diagnostic screen for the ESS, with the note that the latest build of the ESS plugin diagnostic is even more loaded with stuff.

Quote
With the lathe, I can live without backlash comp, as most of the cutting I do is in one direction, and backlash doesn't matter during tool retraction.  Its a must for my mill though.

To my knowledge none of the UC***** series has backlash comp nor does PMDX. That leaves PoKeys 57CNC, Warp9 ESS
and Vital Sytems Hicon that do have it.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach4 jogging output.. diagnostics screen
« Reply #8 on: February 26, 2019, 06:46:50 PM »
Quote
To my knowledge none of the UC***** series has backlash comp nor does PMDX. That leaves PoKeys 57CNC, Warp9 ESS
and Vital Sytems Hicon that do have it.
According to their documentation it does have backlash comp, at least for Mach3

I have attached a screenshot of my motion device selection, a screenshot of the UC100 diagnostic screen which is pretty useless.
I also attached a portion of a diagnostic logfile which was made by continuously jogging Z+ by .001 (16 steps)

I removed all the intermediate steps for each jog, as only the first and last are interesting.

When I jog, the first jog moves the stepper correctly.  The next jog just jiggles the stepper,  then the next jog moves the stepper again.
Every other step works ok.

The correct jog ends with the line EX_NONE set to the beginning step.
The next jog starts again where the previous EX-NONE says.

This is exactly what the stepper does.  A good jog, then the next jog backs up to the start position of the previous jog and repeats the steps.
Re: Mach4 jogging output.. diagnostics screen
« Reply #9 on: February 26, 2019, 06:59:05 PM »
Hi,


Quote
According to their documentation it does have backlash comp, at least for Mach3

That may be the case for Mach3 but my understanding is that is not the case for Mach4. You will have to check with CNCDrive
directly on that matter.

Thanks for the double check of the active motion device status.

Did you notice in the logfile that the increment between successive time slices are 16. I'm wondering if the motion controller is
not responding fast enough. May I suggest lowering the Jog Rate (in Mach) down to a very slow speed, say 2% and try
again.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'