Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: deepak dudeja on February 22, 2018, 03:33:15 AM

Title: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 22, 2018, 03:33:15 AM
hi in my CNC if I jog the X axis or Y axis both the axis move together ...i.e if up arrow i want to move x axis in + direction Y also moves along same with the Y axis movement and in - direction move.
Please help to resolve this problem.
Thanks in advance
DD
Title: Re: X Y axis move togehter with Arrows key
Post by: joeaverage on February 22, 2018, 03:39:10 AM
Hi,
you need to check that your step and direction pins are correctly assigned, it sounds like you have both X and Y step inputs being feed from a single signal.

Craig
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 23, 2018, 03:19:28 PM
hi Craig,
Thanks for your reply I was also thinking the same thing but don't know to assign correct pins to step and direction can you elaborate the same enabling me to understand how to assign the right pins? once again thanks for your support i really appreciate it ..
regards,
DD
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 23, 2018, 03:27:57 PM
Craig Can you give me your email id i'll send all the screen shots of the Mach3 confg. in my machine , easy for you to tell me where I am doing wrong?
regards,
DD
Title: Re: X Y axis move togehter with Arrows key
Post by: joeaverage on February 23, 2018, 03:57:16 PM
Hi,
a screen shot of Machs Ports & Pins Motor page should be enough.

Craig
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 02:10:10 AM
Rest images I'll send you tonight ...
Title: Re: X Y axis move togehter with Arrows key
Post by: TPS on February 24, 2018, 02:46:50 AM
can you try to enter a G69 in MDI Input,
just to make sure X/Y plane is not turned.

just a idea
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 02:48:23 AM
Ok sir I'll try tonight and will update you..thanks for the support..
Title: Re: X Y axis move togehter with Arrows key
Post by: joeaverage on February 24, 2018, 03:03:03 AM
Hi,
I've had a look at your pin assignments and they look OK.
May I suggest when you post a pic that you crop and resize it with something like 'Paint' so that it will fit on the screen, it helps convey info better.

What I read is:
X axis enabled step= port1 pin 2 dir =port1 pin3
Y axis enabled step=port1 pin 5  dir=port1 pin6
Z axis enabled step=port1 pin 8 dir= port1 pin9
A axis disabled step=port1 pin8 dir=port1 pin9      A duplication, shouldn't matter given that the axis is disabled but confusing, I would correct it.
B axis disabled unassigned
C axis disabled unassigned
Spindle enabled step=port1 pin 17 dir= port1 pin1

Can you confirm? I found it difficult to read the pic having to scan around with the scroll bars.

Thomas's suggestion about checking the active plane is very good.

The other suggestion is that some how you are feeding the same signals to both the X and Y axis drivers. Do you have separate drivers or all on one board?

Craig
Title: Re: X Y axis move togehter with Arrows key
Post by: TPS on February 24, 2018, 03:05:58 AM
also some more Information about the wiring, and used hardware would be helpful.
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 07:59:21 AM
Hi,
I've had a look at your pin assignments and they look OK.
May I suggest when you post a pic that you crop and resize it with something like 'Paint' so that it will fit on the screen, it helps convey info better.

What I read is:
X axis enabled step= port1 pin 2 dir =port1 pin3
Y axis enabled step=port1 pin 5  dir=port1 pin6
Z axis enabled step=port1 pin 8 dir= port1 pin9
A axis disabled step=port1 pin8 dir=port1 pin9      A duplication, shouldn't matter given that the axis is disabled but confusing, I would correct it.
B axis disabled unassigned
C axis disabled unassigned
Spindle enabled step=port1 pin 17 dir= port1 pin1

Can you confirm? I found it difficult to read the pic having to scan around with the scroll bars.

Thomas's suggestion about checking the active plane is very good.

The other suggestion is that some how you are feeding the same signals to both the X and Y axis drivers. Do you have separate drivers or all on one board?

Craig

Sorry Craig for the Picture I clicked it from my mobile..next time I'll keep in mind and yes the Pin and ports you wrote are right///regards DD
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 08:21:03 AM
I tried G69 nothing happened..Please find enclosed some pictures of controller
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 08:42:43 AM
Please find more pictures for your perusal
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 08:44:03 AM
Picture2
Title: Re: X Y axis move togehter with Arrows key
Post by: TPS on February 24, 2018, 09:04:49 AM
what manufacturer is this controler, any Manual?
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 09:11:12 AM
It's Chinese From ...Charmhigh Technology Limited
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 10:04:21 AM
No manual
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 10:16:40 AM
Hi,
I just checked in MPG Mode X+ , Y+ , Y- and X- all are working fine....only with the keyboard it's both moving together...
Title: Re: X Y axis move togehter with Arrows key
Post by: Klaus1311 on February 24, 2018, 11:13:49 AM
Hi,

is your hotkey assignment ok?


Klaus
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 12:55:14 PM
let me check
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 01:10:50 PM
attached is my hotkey window I don't know how to set this or it's configured ok or not ? please help
Title: Re: X Y axis move togehter with Arrows key
Post by: joeaverage on February 24, 2018, 03:24:59 PM
Hi,
those Hotkeys assignments are OK, and the pic showing them is certainly big enough!

Hoe about some shots (resized) of your drivers and a shot of your wiring diagram.

Craig
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 03:29:36 PM
Pictures for the driver I already posted the CNC controller but wiring it's all enclosed I don't know how to send the same.. ???
Title: Re: X Y axis move togehter with Arrows key
Post by: joeaverage on February 24, 2018, 03:42:46 PM
Hi,
I see the pics you've posted but they need to be resized in order to get any useful info from them.

Craig
Title: Re: X Y axis move togehter with Arrows key
Post by: joeaverage on February 24, 2018, 04:11:57 PM
Hi,
I've had a closer look and the board is hardwired in such a manner that you cannot assign motor outputs as you please. You have to follow th
manufacturers numbering scheme.

I have indicated the area that you need to study. I want some close up pics of that area. Make sure you resize them, if you keep on posting
ridiculously outsized pics I cant be bothered to help.

Craig
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 24, 2018, 04:58:48 PM
I am sorry Craig I m trying my best to resize the pictures, as I am new to this environment i don't know what size pictures are suitable here but i'll  try again to resize the pictures and will post here soon...once again sorry for the inconvenience..
Title: Re: X Y axis move togehter with Arrows key
Post by: joeaverage on February 24, 2018, 05:42:08 PM
Hi,
roughly 1000 pixels on a side means you can view the picture in total.

Craig
Title: Re: X Y axis move togehter with Arrows key
Post by: TPS on February 25, 2018, 04:28:08 AM
the only Thing witch is corious is,
that in MPG mode the axis move separat, just in continious jog they move together.

in an other aplication like Notepad your arrow key's are working 'normaly'?
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 25, 2018, 06:21:11 AM
Hi Craig,
I tried my level best to resize the picture using GIMP hope this time it will be OK in size.
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 25, 2018, 06:24:52 AM
second Picture
Title: Re: X Y axis move togehter with Arrows key
Post by: joeaverage on February 25, 2018, 06:52:38 AM
Hi,
yes they are much better.

It looks like your motor outputs are correct.  The layout of the signals suggests
X axis step=pin2
          dir=pin3
Y axis step=pin5
          dir=pin6
Z axis step=pin8
          dir=pin9

Your spindle assignments look wrong
Spindle step=pin16
             dir=pin14

One thing I think you should change is on the Outputs page
X enable=pin4
Y enable=pin4
Z enable=pin4

Craig
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 25, 2018, 07:19:17 AM
Thanks Craig I'll do the same and get back to shortly..
regards,
DD
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 25, 2018, 07:29:24 AM
I changed the Pin numbers as you suggested but the same condition....
regards,
DD
Title: Re: X Y axis move togehter with Arrows key
Post by: joeaverage on February 25, 2018, 12:30:38 PM
Hi,
I can only conclude that the board is faulty.

Take it up with the peron you bought it from to replace it.

Craig
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 26, 2018, 01:40:25 AM
Hi Craig,
One of my friend also bought the same machine with same controller let me borrow his controller and check on my machine, i'll update you in few hours.
regards,
DD
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 26, 2018, 12:33:31 PM
I changed the controller and checked the second controller pins configuration it was 100% same as mine and after changing the controller the same result nothing changes How it's possible if my controller is faulty his should be ok ..
Title: Re: X Y axis move togehter with Arrows key
Post by: joeaverage on February 26, 2018, 12:48:51 PM
Hi,
yes that would tend to indicate that Mach is causing the X and Y axes move together.

Try MDIing some separate X and Y moves:

G0 X50
X0
Y50
Y0

That should move X 50mm then back again, then Y 50mm and back again. Does it do that or do both axes move together?
When the axes move together do both the X&Y DROs change together?

Does your friend have his machine set up and running?

Craig
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 26, 2018, 01:26:21 PM
Ok Craig I'll do the same and about my friend he is not using his machine since last 15 days but as per him he was not facing the problem i am facing..
I'll update you tomorrow ..
regards, DD
Title: Re: X Y axis move togehter with Arrows key
Post by: Klaus1311 on February 26, 2018, 01:44:16 PM
could you please put your used profile (xx.XML) here?

Klaus
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 27, 2018, 02:06:54 AM
Hi Klaus,
I am not technically sound in this machine so didn't understand can you please elaborate ?
regards,
DD
Title: Re: X Y axis move togehter with Arrows key
Post by: Klaus1311 on February 27, 2018, 02:49:40 AM
Hi

All parameters of Mach3 are stored in a so called profile. If you used the default settings at install, this file resides in C:\Mach3, the default name is Mach3Mill.xml. If you don't want to show it on the forum, you can send me the file. My email klaus.dietz@kd-dietz.de

Klaus
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 27, 2018, 04:19:41 AM
Ok Klaus,
I'll send you till tomorrow ..Today out of station.
Thanks for your support.
regards,
DD
Title: Re: X Y axis move togehter with Arrows key
Post by: rcaffin on February 27, 2018, 04:27:29 AM
I get the impression that g1 x10 works just fine? Ditto g1 y10?
IF so, then all the electronics, the wiring and the motors are just fine. If they were not, those instructions would not work properly.

If it is only a jog command which goes wrong, then the problem lies between the keyboard and the Mach keyboard input - that part of Mach which collects the key strokes. If the Hotkeys photo is still valid, then I can only suggest reinstalling Mach3, preferably (VERY preferably) version .062

Cheers
Roger
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 28, 2018, 11:01:32 AM
Hi Craig,
G0 X50
X0
Y50
Y0

That should move X 50mm then back again, then Y 50mm and back again....yes G0 X50 ----only X moved to 50 then X0 come to home position...same with Y Axis..
regards,
DD
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on February 28, 2018, 11:12:34 AM
Ok Klaus,
I'll send you till tomorrow ..Today out of station.
Thanks for your support.
regards,
DD
Hi Klaus I mailed you the XML files don't know whether you were asking for the same or something else..
with best regards,
DD
Title: Re: X Y axis move togehter with Arrows key
Post by: joeaverage on February 28, 2018, 06:55:49 PM
Hi,
I think Roger is right, if the machine MDIs OK then the keyboard data is getting scrambled.
Re-installing Mach with fresh download, version 062 preferred.

Craig
Title: Re: X Y axis move togehter with Arrows key
Post by: Klaus1311 on March 01, 2018, 02:50:14 AM
Hi
I think I found the culprit. It's a setting in the profile. I have to figure out how to change this parameter. Another solution would be generate a new profile.

Klaus
Title: Re: X Y axis move togehter with Arrows key
Post by: rcaffin on March 01, 2018, 03:17:29 AM
Hi Klaus

Give generously! What setting? So we know for the future.

Cheers
Roger
Title: Re: X Y axis move togehter with Arrows key
Post by: Klaus1311 on March 01, 2018, 05:30:18 AM
Hi Roger

this explanation regards the dialog "Port Setup and Axis selection Input signals"

this problem occurs if Emulated is checked and the Hotkey settings are mixed up in x and y direction.

to correct this, change
JogX++ to 39
JogX--   to 37
JogY++ to 38
JogY--   to 40

or uncheck the "Emulated" button.


Klaus



Title: Re: X Y axis move togehter with Arrows key
Post by: rcaffin on March 01, 2018, 05:56:32 AM
Hi Klaus
That is the standard Mach3 config, but it is also what the OP's JPG showed.
Now, the emulated button - don't know.

Cheers
Roger
Title: Re: X Y axis move togehter with Arrows key
Post by: Klaus1311 on March 01, 2018, 06:08:59 AM
Hi Roger

you're rigth. But the profiles I got were opposite. Keys up / down were 39 37 which is x-direction.

Klaus
Title: Re: X Y axis move togehter with Arrows key
Post by: rcaffin on March 01, 2018, 06:15:50 AM
Does that explain why X & Y were moving together though?

Strange stuff ...

Cheers
Roger
Title: Re: X Y axis move togehter with Arrows key
Post by: Klaus1311 on March 01, 2018, 06:32:27 AM

Yes, but only if "Emulated" is also checked.


Klaus
Title: Re: X Y axis move togehter with Arrows key
Post by: rcaffin on March 01, 2018, 03:36:26 PM
Bugs maybe in the version OP is using?

Cheers
Roger
Title: Re: X Y axis move togehter with Arrows key
Post by: Klaus1311 on March 01, 2018, 03:58:40 PM
Hi

I don't think so. You can test it with the standard screen 1024.set. Just change the settings, in the "Port Setup and Axis Selection". I tested on Win10 Mach3 V3.043.062 without a parallel port and could see the x and y movement on the DRO's.

Klaus
Title: Re: X Y axis move togehter with Arrows key
Post by: rcaffin on March 01, 2018, 04:11:47 PM
Hi Klaus

I am not sure what I should be looking for, or what settings I should be changing. I fiddled around a bit with enabling/disabling the ports on my desk PC but the correct DROs still changed as expected with the arrow keys.
Ah - I do not have a pendant on my desk machine. But the pendant I use on the actual machine works fine.

What am I missing? Suggestions?

Cheers
Roger
Title: Re: X Y axis move togehter with Arrows key
Post by: Klaus1311 on March 01, 2018, 04:27:11 PM
Hi Roger,

I also don't have a pendant. Try the following:
Ports and Pins -> Input Signals
Jog X++    Enabled Emulated Hotkey 38 (arrow up)
Jog X--      Enabled Emulated Hotkey 40 (arrow down)
Jog Y++    Enabled Emulated Hotkey 39 (arrow right)
Jog Y--      Enabled Emulated Hotkey 37 (arrow left)

Apply
Reset
occasionally I had to change the Jog mode with the fly out dialog
Jogging with the arrow keys up, down, left or riight show x and y movement on the DRO's

Klaus
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on March 02, 2018, 10:13:57 AM
Hi Roger,

I also don't have a pendant. Try the following:
Ports and Pins -> Input Signals
Jog X++    Enabled Emulated Hotkey 38 (arrow up)
Jog X--      Enabled Emulated Hotkey 40 (arrow down)
Jog Y++    Enabled Emulated Hotkey 39 (arrow right)
Jog Y--      Enabled Emulated Hotkey 37 (arrow left)

Apply
Reset
occasionally I had to change the Jog mode with the fly out dialog
Jogging with the arrow keys up, down, left or riight show x and y movement on the DRO's

Klaus
THANKS ALOT KLAUS....PROBLEM SOLVED
Title: Re: X Y axis move togehter with Arrows key
Post by: deepak dudeja on March 02, 2018, 10:16:51 AM
Thanks everyone///Thanks for your support ...Craig , Klaus , Roger ..... problem solved by assigning corresponding  Hotkeys...