Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: scrambled on May 07, 2010, 01:13:58 AM
-
Hi all-
I have been reading the forums for several weeks, and I am more confused now than ever. But on the bright side, I finally have my 6 x 12 oxy/ propane table running good enough to make parts.
Here is my question. I am trying to add a fault circuit to my table, and the best OEM code I can find to stop the motion of the table is OEM 1021.
When I set up the ports and pins in the input config page I have set OEM trigger #4 to port 2 pin 3
then on the hotkeys setup page I have OEM #4 set to 1021.
I have also emulated OEM trigger #4 to the "F" key
When I short (jump together ) the two terminal on the I/O board I can see the RAW Ports and Pin change states, but nothing else happens
When I press the "F" key, the raw ports and pins led changes states, and the system goes into reset.
I am using granite devices servo drives
I am using the BOB from candcnc
I am sure that I am missing something simple. any ideas?
Steve
for some reason I cant post the pictures. I will try to edit the post later and add the pictures
-
Not sure if I am following but if all you are wanting to do is stop execution of G Code when an input becomes active then you can use Input 1 for that. Have a look on General Config page, lower left and you will see where to enable that function.
Hood
-
Hood-
Thanks for the info on using input #1. It should work for what I want, but it does not :(
When I short the two terminals together on the BOB, now the LED labled input #1 turns on, and the RAW ports and pin LED in my first post turn on.
It just appears that Mach does not know what to do with the information once it is recieved.
Any other ideas?
thanks for the help
Steve
-
What are you expecting it to do?
It works fine here, what it does is, will not allow G Code to run if Input 1 is active and if Code is running it will stop execution of that code if Input 1 becomes active.
Hood
-
Hood-
I am using Granite Devices for my servo drives. My gantry is large, and it uses 2 servos. Every once and a while I will get a fault on one of the servo drives, and one drive stops. The other is strong enough to make the gantry still move, but it does not travel square, and I scrap whatever part I am making.
I have a relay that turns on when any of the drives fault. I am wanting to take the dry contacts from the relay, and connect them to the I/O board.
The problem is that MACH is not responding to any input. The RAW port and pins on the diagonstic page showes that the signal is getting to the computer, it is just that MACH is ignoring it.
Steve
-
Hi Steve Silly question you said you configured to port 2 you are using two ports from the computer ? and you have set up both ports in config ? I notice from your screen shot on pins you have a port 8 ?
If you only have one port set up then you would still get the led's to light up but they couldn't do anything
Paul
Did say it may be a silly question
-
Weldsol-
The port "8" is part of the design from candcnc. It is some type of virtual port. I do have 2 parallel ports installed.
At this time there are no silly questions. I am sure it is something simple, I just can't find it.
Steve
-
Hi scrambled - have you ticked "Program Safety Lockout" as Hood advised?
Ian
-
Now I understand what you are doing I think if I were you I would have a real E-Stop. I have this setup on my lathe and mills so that if any of the drives fault it switches a relay which will in turn remove the enable from all the other drives, it will also break the software E-Stop string. With that All drives stop due to hardware and further Mach gets put into reset.
If you didnt want it like that then you could do as I said with the programme inhibit but problem with that is as soon as you reset the drive the code would continue unless you have pressed Reset or have a Brain or macropump do that.You could also simply have a Brain look at an input and if it sees it it will do an E-Stop.
Hood
-
Stirling- Yes I did check the "Program Safety Lockout" and nothing happened. Using the diagnostic screen, I can watch "input 1" turn on and off.
Hood-
My setup has 6 physical e-stops mounted around the table.
If you are bored, here is a link to my table on cnczone
http://cnczone.com/forums/showthread.php?t=33773
so is there any other type of input mapping?
Steve
-
Steve I dont understand why your code is not halting if you have the settings correct, it works fine here.
As said however its probably not the best way for you to do it in the situation as really you want it to E-Stop, or at least I think you would as you will be needing to re-reference. You could of course still use it and have extra VB in a macropump or use a Brain to do a stop and rewind of the code but I think it would just be as easy to have the Brain do the E-Stop as soon as it sees the input. Personally I also have the enable signals broken by the relay, this is just an added safety thing which I prefer to have.
Will have a look at your thread on the zone in a bit.
Hood
-
Hood-
I did some testing today, and I am still not having any luck. I tried one of the other inputs on the I/O card and nothing.
Right now, I have the port 2 pin4 (AUX1) set to turn on input #1 in Mach when the torch presses down on the plate and lifts off the micro switch.
When the twitch is made, the input #1 on the diagnostic screen turns on.
What G code would I use to reset the z axis to 0 once the torch micro switch is triggered?
I am trying to determine where the problem is happening in MACH. If I can get Mach to actually do something when one of the AUX inputs is triggered, then I can rule out the candcnc I/O cards.
Does this make any sense?
Steve
-
What do you mean by AUX1?
Please attach your xml
Hood
-
Hood-
I think this is the one I am using.
When I get to the house, I will post more information
Steeve
-
Hood-
here is where I got the name and the port and pin location
This is the I/O card from candcnc.com
-
Have never seen that board before but know what you are meaning now :)
In the xml you have attached you dont have Input 1 enabled also you dont have it set to Port 2 Pin 4, further you dont have the setting in General Config chosen.
Hood
-
Hood-
I have been trying different ports and pins trying to get something to work. I quess I did not re-enable input #1. But I had it enabled during the weekend when I was trying to get it to work.
Steve
-
What input will you be using for the fault signal from the drives? I can quickly make a brain up that will E-Stop Mach if the fault is seen.
Hood
-
Hood-
I am wanting to use port2 pin3 for the fault. It can be any input number that you need to use. To my knowledge, none have been used so far.
Thanks for all the help.
Steve
-
Ok place this in your Brains folder, start Mach and go to Operator menu then Brain Control, click on the Brain and enable then reload and any time Input 2 becomes active the E-Stop should happen.
Hood
-
Hood-
I installed everything, and for once I can not make the drives fault. I will be cutting some plate this weekend, and it will get a good test. I should know then how it works.
So are brains just ladder logic? I have not looked at them until now.
Thanks again for all the help
I will keep you posted
Steve