Your machine limits are not set correctly.
Good morning to all.
Example:
In my CNC I've a 2 meters work limit on Y axis.
If I launch a G-Code with a line of Y=2100 the machine run until this line, after I've a "machine limit reached" message. It is a correct behavior?
Can I analyze my G-code BEFORE i run it, for to see limit error? Or I've made any mistake in configuration?
Thank's
Similar Threads:
- force analysis
- Need Help!- Motion Analysis Help
- Need Help!- New Machine Analysis
Your machine limits are not set correctly.
Why this?
Okay, maybe I'm not explaining this right...
I've my limit set on Xaxis 0 and 1000, for example.
I set my zero on zero of machine.
If I launch g-code X1500 the machin must not run, correct?
Instead machine start and only when reach 1000 it stop and send message (machine limit reached)...
I hope I've been clear...
L.
Indeed, some kind of precheck if the machine is capable of running the complete code, within its set limits, would be nice.
This can be easy done in OnStart script. Just compare _prog_min_? and _prog_max_? parameters with _motorlimit_? parameters.
I had this on mine machine and I hated it. I prefer to check bounds in 3D display.
Adding
o<chksize> if[#<_prog_min_x> LT #<_motorlimit_xn> OR #<_prog_max_x> GT #<_motorlimit_xp> OR #<_prog_min_y> LT #<_motorlimit_yn> OR #<_prog_max_y> GT #<_motorlimit_yp>]
(msg, Warning, Toolpath exceeds Machine Limits)
O<chksize> endif
to the onstart script seems to give the desired result.
Yes, I wrote something like this and it works...
Thank's, again
For every axes:
o<chkx> if [#<_prog_max_x> GT #<_motorlimit_xp> OR #<_prog_min_x> LE #<_motorlimit_xn>]
M64 H1 Q0 L10
M64 H1 P3 Q1 L10
(msg, Asse X fuori limite)
M2
o<chkx> endif
(M64 H1 P3 Q1 L10 run red light)