Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: cncbobuk on January 12, 2015, 08:51:28 AM
-
Sorry about this I know this has been covered before but I've done a lot of searching round on here for the answer but can't get to the solution to my problem.
My machine has a gantry driven by 2 steppers (Y axis, A slave) I have 2 home switches connected to their own inputs. When I hit "Ref all home" Z axis refs ok, X axis refs ok then Y begins to travel towards the switch. If I operate the Y axis switch nothing happens, the Y motor continues in the same direction, if I operate the A switch the A axis motor reverses then stops after coming off the switch but the Y axis motor continues. Nothing I do will stop the Y motor other than an emergency stop. I have checked the diagnostic screen and all switches operate as expected. What am I missing?
My button script is as follows,
DoOEMButton (24) 'ref Z
DoOEMButton (22) 'ref X
DoOEMButton (23) 'ref Y
DoOEMButton (25) 'ref A
DoOEMButton (133)
DoOEMButton (134)
DoOEMButton (135)
Many thanks,
Bob.
-
Its been a long time since I did anything with slaved homing but see if changing the Home Slave with Master setting in General config makes a difference if you change it.
Hood
-
Tried that, if I check this the Y motor runs on it's own the A motor doesn't run at all.
-
Are any of the Home switch LEDs, on the Diagnostics page, lit when not activated?
If you attach your xml I will see if I can figure out the issue.
Hood
-
Many thanks, all switches behave correctly on the diagnostics screen.
Attached xml as requested, hope this helps.
Your help is much appreciated,
Bob.
-
Sorry about this but I don't seem to be able to upload the file, all I get is an error message,
"Sorry! There is already an attachment with the same filename as the one you tried to upload. Please rename the file and try again."
What am I doing wrong?
-
rename your file to cncbobuk.xml for example.
-
Here goes..........
-
Ok you seem to be using some kind of external controller that I have never heard of.
The external controller will control the homing so you would need to contact them to see, if in the first place, it supports slaved homing. If it does then they should be able to tell you how it needs to be set up.
Hood
-
Ok thanks for the info, that's another dead end then as it's a Chinese board and getting any help on it is next to impossible. I had assumed that as all the inputs work as expected it would be ok. interestingly if I use just one home swicth and simply slave the Y and A motors it works fine>?????
-
IF you are going to Home slaved axis (YA) then you need to use RefCombination() to do the slaved axis (YA).
Just a thought, (;-)
-
IF you are going to Home slaved axis (YA) then you need to use RefCombination() to do the slaved axis (YA).
Just a thought, (;-)
I've seen this referenced before, sorry to be thick but what do you you mean? do I put !RefCombination()" somewhere in the button script, if so exactly where? What should my script look like?
Many thanks,
Bob.
-
A quick search "RefCombination" will reveal GADS of info.
Here is just a clip of one of Poppabears posts:
RefCombination(int number)
1 = ref X
2 = ref Y
3 = ref X&Y same time,
4 = ref Z
5 = ref X&Z same time
6 = ref Y&Z same time
7 = ref X&Y&Z same time
8 = ref A
9 = ref X&A same time
10 = ref Y&A same time
11 = ref X&Y&A same time
12 = ref Z&A same time
13 = ref X&Z&A same time
14 = ref Y&Z&A same time
15 = ref X&Y&Z&A same time
16 = ref B
17 = ref X&B same time
18 = ref Y&B same time
19 = ref X&Y&B same time
20 = ref Z&B same time
21 = ref X&Z&B same time
22 = ref Y&Z&B same time
23 = ref X&Y&Z&B same time
24 = ref A&B same time
25 = ref X&A&B same time
26 = ref Y&A&B same time
27 = ref X&Y&A&B same time
28 = ref Z&A&B same time
29 = ref X&Z&A&B same time
30 = ref Z&Y&A&B same time
31 = ref X&Y&Z&A&B same time
32 = ref C
33 = ref X&C
34 = ref Y&C
35 = ref X&Y&C,
36 = ref Z&C
37 = ref X&Z&C
38 = ref Y&Z&C
39 = ref X&Y&Z&C
40 = ref A&C
41 = ref X&A&C,
42 = ref Y&A&C
43 = ref X&Y&A&C
44 = ref Z&A&C
45 = ref X&Z&A&C
46 = ref Y&Z&A&C,
47 = ref X&Y&Z&A&C
48 = ref B&C
49 = ref X&B&C
50 = ref Y&B&C
51 = ref X&Y&B&C,
52 = ref Z&B&C
53 = ref X&Z&B&C
54 = ref Y&Z&B&C
55 = ref X&Y&Z&B&C
56 = ref A&B&C,
57 = ref X&A&B&C
58 = ref Y&A&B&C
59 = ref X&Y&A&B&C
60 = ref Z&A&B&C
61 = ref X&Z&A&B&C,
62 = ref Y&Z&A&B&C
63 = ref X&Y&Z&A&B&C
:)