Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: artemonster on August 10, 2010, 05:46:18 AM
-
Hello everyone,
recenly i have made my system and now want to clarify some problems, that have occured.
Please sorry, if theese questions already were answered(i have searched in forum, but couldn't find any answers)
So:
1)Serial output wont work. I've enabled Event Driven Serial Control under Ports&Pins, Configured Baudrate at GeneralConfig.
So i have serial data sniffer, and if i send commands with Serial Monitor(that one under Function Cfg's menu) its all ok- sniffer shows all data, that was sent.
But i need to send commands from a macro. like M666.m1s contains:
SendSerial("EMON") - and this doesnt work. also tried Call SendSerial("EMON") - doesn't work also.
Any ideas?
2) Limit switches. So i have 3 switches for every axis(2 of them) 2 limit and 1 homing.
So when limit switch is triggered, Mach3 comes in ESTOP mode, and disables all command execution, so i cant even turn off windings, to manually adjust position of my XY-Table. Do i need some kind of external switch\button, that will disable my limitsensors? Wiring is simple: every switch(hall effect sensor with open collector) is directly connected trough a pull-down resistor to the LPT input.
And also homing problem: Mach3 makes homing per software, and doesn't look at home sensors (just till X and Y coordinates per software will be zeros)
So i need that he will make homing, until homing switches are triggered.
Thanks.
-
Sorry cant be of any help with serial as I have only ever used serial Modbus.
For your limits there is an override button on I think Diagnostics page, press that and you can reset and jog off. There is also an Auto one which allows you just to reset and jog off without having to press the override button.
How are you doing the Homing move?
Hood
-
Thanks for help. Autooverride really helped!
I do homing with
REF ALL HOME button
-
Ok sounds like your home switches are active when not hit, either that or they are not configured correctly in Ports and Pins. Have a look on diagnostics and see if they are lit when you press and go out when not. If its the opposite then change the active state.
Hood
-
With ports&pins is all ok. When i manually move XY-Table, at Diagnostics tab all looks fine. When triggered, lights with yellow.
-
I cant figure out, what's going on with offests. Now showed, X +128.7000 and Y -9.9
And when i press homing button, Y just starts do decrement
-
When you press Ref All do the axis start to move ?
Do the Machine Coordinates zero?
If you attach your xml I can have a look and see if I can replicate your issue.
Hood
-
So i've started the system, and ajusted table so, that it is at home position. then i have pressed Zero X and Zero Y to make coords 0. But machine coords are 136 and -79.
And when i press ref all home - only Y axis start to move, and it passes Home mark ( at diagnostics tab M2Home lits yellow and then turn black again) and continuing to move for eternity =)
What kind of xml file do you need?
And big thanks for your support!
At diagnostics tab:
Current position Machine Coord Work Offset
X 0 +107 +107
Y 0 -84 -84
I've tried to make offsets zero, but it wont work(
-
The xml is the one for your profile, if using the standard Mach3Mill profile then it will be called Mach3Mill.xml, if you have a custom profile then it will be called by the name of your custom profile. You will find it in your main Mach3 folder.
To attach to the forum use the additional options button to then browse to the file on your drive. You will likely need to rename it though as the forum only accepts a file once so copy the xml to your desktop first and rename to artemonster.xml
Hood
-
Here it is.
It's really strange, that when i press REF ALL HOME only 1 axis moves. When i press GO TO ZERO, then all 2 are moving
-
Try loading the standard screenset and see if that helps.
Hood
-
already tried(
-
Seems to work fine here using your xml, Y moves, switch is seen, it backs off then sets zero. X then moves and sees switch then backs off then sets zero.
I presume your switches are Normally open switches by the way your xml is set up, is that correct?
Oh and to answer your previous question, that is correct, when pressing the Ref All button your Z will move first, then Y then X then A etc. As you dont have a Z then it will move Y first.
The Go to Zero is moving your axis to work offset zero and will move both axis at the same time.
Hood
Hood
-
Yeah. My switches are open collector with PNP. So when not triggered = 5V , triggered = 0V. In ports&pins is set ActiveLow on every sensor.
I just dont understand, why mach3 skippes homeswitch tiggering and continuing to move...
You have said: "Y moves, switch is seen, it backs off then sets zero."
Maybe with this "backs off" stage is something wrong. Maybe there is some setting, that will say, how much you need to back off... or smth like that.
-
Maybe there is some setting, that will say, how much you need to back off... or smth like that.
Mach backs off until it sees the Input going inactive again. I dont understand why homing is not working for you if you are seeing the home input LED go active when the switch is hit then Mach has to be seeing it as it is showing on the diagnostics page.
If I think of anything else I will shout back but afraid I am out of ideas at the moment :(
Hood
-
Ok. But anyway, biig thanks for help!
Also, Serial Port problem solved. This serial monitor have took control of port. So i've changed there setting to port 2, leaving in general settings port 1. Now all works fine, and VB has access to com port ^^
-
I have something in the back of my mind about someone else having problems with prox sensors and homing. I think it was the Yahoo group so might be worth your while posting there and seeing if you can get an answer.
Good that you have the serial working :)
Hood