Error when homing...

Post Reply
flying_fred
Posts: 11
Joined: Sun May 29, 2016 2:18 pm

Error when homing...

Post by flying_fred »

Hi Juha,

it's been a while that I fired the Liteplacer.
I have a new projet board to place so I updated to the last SW release and fired the Liteplacer on.

I then got the following error message: {"er":{"fb":438.02,"st":220,"msg":"Soft limit exceeded"}}

Code: Select all

Clear Err.
Connecting to serial port COM4: already open
==> {"sr":""}
{"r":{"sr":{"posx":0.000,"posy":0.000,"posz":0.000,"posa":0.000,"feed":0.00,"vel":0.00,"unit":1,"coor":1,"dist":0,"frmo":1,"stat":1}},"f":[1,0,10,1190]}
ReadyEvent r:sr
{"sr":{"posx":0.000,"posy":0.000,"posz":0.000,"posa":0.000,"feed":0.00,"vel":0.00,"unit":1,"coor":1,"dist":0,"frmo":1,"stat":1}}
==> {"xjm":""}
{"r":{"xjm":200},"f":[1,0,11,9532]}
ReadyEvent r
==> {"xvm":""}
{"r":{"xvm":10000},"f":[1,0,11,3029]}
ReadyEvent r
==> {"xsv":""}
{"r":{"xsv":1200},"f":[1,0,11,267]}
ReadyEvent r
==> {"xsn":""}
{"r":{"xsn":3},"f":[1,0,11,6374]}
ReadyEvent r
==> {"xjh":""}
{"r":{"xjh":10000},"f":[1,0,11,9979]}
ReadyEvent r
==> {"xsx":""}
{"r":{"xsx":2},"f":[1,0,11,8632]}
ReadyEvent r
==> {"1mi":""}
{"r":{"1mi":8},"f":[1,0,11,7985]}
ReadyEvent r
==> {"1sa":""}
{"r":{"1sa":0.900},"f":[1,0,11,7161]}
ReadyEvent r
==> {"1tr":""}
{"r":{"1tr":39.9827},"f":[1,0,11,4992]}
ReadyEvent r
==> {"yjm":""}
{"r":{"yjm":200},"f":[1,0,11,1583]}
ReadyEvent r
==> {"yvm":""}
{"r":{"yvm":10000},"f":[1,0,11,1999]}
ReadyEvent r
==> {"ysn":""}
{"r":{"ysn":3},"f":[1,0,11,48]}
ReadyEvent r
==> {"ysx":""}
{"r":{"ysx":2},"f":[1,0,11,9141]}
ReadyEvent r
==> {"yjh":""}
{"r":{"yjh":2000},"f":[1,0,11,1938]}
ReadyEvent r
==> {"ysv":""}
{"r":{"ysv":2000},"f":[1,0,11,5664]}
ReadyEvent r
==> {"2mi":""}
{"r":{"2mi":8},"f":[1,0,11,1659]}
ReadyEvent r
==> {"2sa":""}
{"r":{"2sa":0.900},"f":[1,0,11,9295]}
ReadyEvent r
==> {"2tr":""}
{"r":{"2tr":39.9322},"f":[1,0,11,3179]}
ReadyEvent r
==> {"zjm":""}
{"r":{"zjm":80},"f":[1,0,11,8749]}
ReadyEvent r
{"r":{"zvm":5000},"f":[1,0,11,9156]}
==> {"zvm":""}
ReadyEvent r
==> {"zsn":""}
{"r":{"zsn":3},"f":[1,0,11,3721]}
ReadyEvent r
==> {"zsx":""}
{"r":{"zsx":2},"f":[1,0,11,2815]}
ReadyEvent r
==> {"zjh":""}
{"r":{"zjh":500},"f":[1,0,11,2724]}
ReadyEvent r
==> {"zsv":""}
{"r":{"zsv":1000},"f":[1,0,11,508]}
ReadyEvent r
==> {"3mi":""}
{"r":{"3mi":8},"f":[1,0,11,5332]}
ReadyEvent r
==> {"3sa":""}
{"r":{"3sa":1.800},"f":[1,0,11,1431]}
ReadyEvent r
==> {"3tr":""}
{"r":{"3tr":8.0000},"f":[1,0,11,7613]}
ReadyEvent r
==> {"ajm":""}
{"r":{"ajm":600},"f":[1,0,11,5107]}
ReadyEvent r
==> {"avm":""}
{"r":{"avm":5000},"f":[1,0,11,4]}
ReadyEvent r
==> {"4mi":""}
{"r":{"4mi":8},"f":[1,0,11,9005]}
ReadyEvent r
==> {"4sa":""}
{"r":{"4sa":0.900},"f":[1,0,11,7235]}
ReadyEvent r
==> {"4tr":""}
{"r":{"4tr":160.0000},"f":[1,0,11,2085]}
ReadyEvent r
==> {"mt":""}
{"r":{"mt":600.00},"f":[1,0,10,3845]}
mt value: 600
ReadyEvent r
==> {"zsn",3}
{"r":{"zsn":3},"f":[1,0,10,3720]}
ReadyEvent r
==> {"zsx",2}
{"r":{"zsx":2},"f":[1,0,10,2814]}
ReadyEvent r
==> {"zzb",2}
{"r":{"zzb":2.000},"f":[1,0,10,6309]}
ReadyEvent r
==> {"me":""}
{"r":{"me":null},"f":[1,0,10,3586]}
==> {"zsn",3}
{"r":{"zsn":3},"f":[1,0,10,3720]}
ReadyEvent r
==> {"zsx",2}
{"r":{"zsx":2},"f":[1,0,10,2814]}
ReadyEvent r
==> {"zzb",2}
{"r":{"zzb":2.000},"f":[1,0,10,6309]}
ReadyEvent r
Homing axis Z, timeout value: 10
==> {"gc":"G28.2 Z0"}
{"r":{},"f":[1,0,18,77]}
{"sr":{"coor":0,"dist":1,"stat":9}}
{"qr":32,"qi":1,"qo":1}
{"qr":31,"qi":1,"qo":0}
{"sr":{"posz":-1.830,"feed":1000.00,"vel":1000.00}}
{"sr":{"posz":-4.855,"vel":527.56}}
{"sr":{"posz":-5.076,"vel":0.03}}
{"qr":31,"qi":1,"qo":0}
{"sr":{"posz":-4.799,"feed":100.00,"vel":100.00}}
{"sr":{"posz":-4.474}}
{"sr":{"posz":-4.150}}
{"sr":{"posz":-3.825}}
{"sr":{"posz":-3.501}}
{"sr":{"posz":-3.176}}
{"sr":{"posz":-2.852}}
{"sr":{"posz":-2.527}}
{"sr":{"posz":-2.203}}
{"sr":{"posz":-2.000,"vel":0.09}}
{"qr":31,"qi":1,"qo":0}
{"sr":{"posz":-0.390,"feed":1000.00,"vel":657.41}}
{"sr":{"posz":-78.000,"vel":0.00}}
{"qr":32,"qi":0,"qo":1}
{"sr":{"posz":0.000,"feed":0.00,"coor":1,"dist":0,"stat":3}}
ReadyEvent stat
{"qr":32,"qi":1,"qo":1}
Homing Z done.
 -- zero Z movement command --
ReadyEvent: zero movement command
Homing axis Y, timeout value: 16
==> {"gc":"G28.2 Y0"}
{"r":{},"f":[1,0,18,77]}
{"sr":{"coor":0,"dist":1,"stat":9}}
{"qr":32,"qi":1,"qo":1}
{"qr":31,"qi":1,"qo":0}
{"sr":{"posy":-4.500,"feed":2000.00,"vel":2000.00}}
{"sr":{"posy":-6.667,"vel":0.16}}
{"qr":31,"qi":1,"qo":0}
{"sr":{"posy":-6.369,"feed":100.00,"vel":100.00}}
{"sr":{"posy":-6.045}}
{"sr":{"posy":-5.720}}
{"sr":{"posy":-5.395}}
{"sr":{"posy":-5.070}}
{"sr":{"posy":-4.745}}
{"sr":{"posy":-4.420}}
{"sr":{"posy":-4.087}}
{"sr":{"posy":-3.762}}
{"sr":{"posy":-3.437}}
{"sr":{"posy":-3.112}}
{"sr":{"posy":-2.787}}
{"sr":{"posy":-2.463}}
{"sr":{"posy":-2.138}}
{"sr":{"posy":-2.032,"vel":0.51}}
{"qr":31,"qi":1,"qo":0}
{"sr":{"posy":-399.000,"feed":2000.00,"vel":0.00}}
{"qr":32,"qi":0,"qo":1}
{"sr":{"posy":0.000,"feed":0.00,"coor":1,"dist":0,"stat":3}}
ReadyEvent stat
{"qr":32,"qi":1,"qo":1}
Homing Y done.
Homing axis X, timeout value: 39
==> {"gc":"G28.2 X0"}
{"r":{},"f":[1,0,18,77]}
{"sr":{"coor":0,"dist":1,"stat":9}}
{"qr":32,"qi":1,"qo":1}
{"qr":31,"qi":1,"qo":0}
{"sr":{"posx":-3.616,"feed":1200.00,"vel":1200.00}}
{"sr":{"posx":-4.131,"vel":1.89}}
{"qr":31,"qi":1,"qo":0}
{"sr":{"posx":-3.821,"feed":100.00,"vel":100.00}}
{"sr":{"posx":-3.496}}
{"sr":{"posx":-3.172}}
{"sr":{"posx":-2.847}}
{"sr":{"posx":-2.522}}
{"sr":{"posx":-2.197}}
{"sr":{"posx":-2.012,"vel":3.50}}
{"qr":31,"qi":1,"qo":0}
{"sr":{"posx":-598.000,"feed":1200.00,"vel":0.00}}
{"qr":32,"qi":0,"qo":1}
{"sr":{"posx":0.000,"feed":0.00,"coor":1,"dist":0,"stat":3}}
ReadyEvent stat
{"qr":32,"qi":1,"qo":1}
Homing X done.
CNC_A_m, a: 0
 -- zero A movement command --
Optical homing
BuildFunctionsList:
Meas. zoom /  / 2 /  /  /  / 
Invert /  /  /  /  /  / 
Threshold / 58 /  /  /  /  / 
Edge detect / 4 /  /  /  /  / 
GoToFeatureLocation_m(), FindTolerance: 20, MoveTolerance: 0.05
Downcamera stop: Stopped
DownCamera start, moniker= @device:pnp:\\?\usb#vid_090c&pid_037c&mi_00#6&15e3bfa2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
*** Camera started: 14, True
Optical positioning, round 0, dX= 2.669, dY= -0.686875, tries= 0
CNC_XY_m, x: 2.669, y: -0.686875
==> {"gc":"G0 X2.268 Y-1.086875"}
{"er":{"fb":438.02,"st":220,"msg":"Soft limit exceeded"}}
==> {"gc":"G0 X2.668 Y-0.686875"}
{"r":{},"f":[1,220,30,7392]}
{"sr":{"stat":2}}
{"r":{},"f":[1,203,30,9547]}
CNC_XY_m ok
Optical positioning, round 1, dX= 2.669, dY= -0.686875, tries= 0
CNC_XY_m, x: 2.669, y: -0.686875
### Cnc in error state, ignored
Optical positioning, round 2, dX= 2.649375, dY= -0.686875, tries= 0
CNC_XY_m, x: 2.649375, y: -0.686875
### Cnc in error state, ignored
Optical positioning, round 3, dX= 2.649375, dY= -0.686875, tries= 0
CNC_XY_m, x: 2.649375, y: -0.686875
### Cnc in error state, ignored
Optical positioning, round 4, dX= 2.649375, dY= -0.686875, tries= 0
CNC_XY_m, x: 2.649375, y: -0.686875
### Cnc in error state, ignored
Optical positioning, round 5, dX= 2.669, dY= -0.686875, tries= 0
CNC_XY_m, x: 2.669, y: -0.686875
### Cnc in error state, ignored
Optical positioning, round 6, dX= 2.669, dY= -0.686875, tries= 0
CNC_XY_m, x: 2.669, y: -0.686875
### Cnc in error state, ignored
Optical positioning, round 7, dX= 2.669, dY= -0.686875, tries= 0
CNC_XY_m, x: 2.669, y: -0.686875
### Cnc in error state, ignored
When I press the "Home XYZ" button it works as expected, but when I just use the "Home" button, it first homes correctly but then chokes on going to the cam home target and the connection to TinyG is lost.
I then have to reset the TinyG to get connected again (pressing "Connect" is not enough).

I tried to revert to the previous SW release to not avail. Same behaviour (that I never witnessed before).

I changed nothing to the machine since the last time it worked.

Please advise what to do.

Thanks,
Fred
flying_fred
Posts: 11
Joined: Sun May 29, 2016 2:18 pm

Re: Error when homing...

Post by flying_fred »

Hi again,

and also replying to myself...

With the "software limits exceeded" error message in mind I just had a look at the TinyG error codes and Gcodes and found something related to "soft and hard limits".
So I just checked how the tinyG was set and sure enough the soft limits switch was set. I then tried to disable the soft limits ($sl = 0) and it now just works as before.

Juha, is that mode the normal way of working ? That is soft limits disabled.

Thanks,
Fred
JuKu
Site Admin
Posts: 1114
Joined: Thu Feb 14, 2013 3:06 pm
Location: Tampere, Finland
Contact:

Re: Error when homing...

Post by JuKu »

Looks like your machine size is values are bad. If I'm right, other values might also be off, so proceed with caution.

I have no idea what might cause that. Have you done some significant changes to your computer?
mike58
Posts: 12
Joined: Sat Jan 21, 2017 12:28 pm

Re: Error when homing...

Post by mike58 »

Hello,
Im having similar or the same problem as above:
- if I Home from "Home" command button - error shows - see screen shot enclosed - re-homing request is repeated endlessly..
- if I home from XYZ it works fine.
Any tips
Attachments
Home XYZ
Home XYZ
2017-10-08 12_48_42-LitePlacerOK.png (51 KiB) Viewed 7013 times
Home
Home
2017-10-08 12_47_34-LitePlacer.png (222.07 KiB) Viewed 7013 times
JuKu
Site Admin
Posts: 1114
Joined: Thu Feb 14, 2013 3:06 pm
Location: Tampere, Finland
Contact:

Re: Error when homing...

Post by JuKu »

Short answer: send text $mt=300

Long answer: Wen motors loose power, the accurate position is lost. On the other hand, motors use power when idle. There is a timer on TinyG that turns off the power after a period of inactivity. The software reads the timer value, and when the timer expires, asks for homing. The above command sets the timeout to 5 minutes (300 sec).
mike58
Posts: 12
Joined: Sat Jan 21, 2017 12:28 pm

Re: Error when homing...

Post by mike58 »

Hello Juka,

thanks for reply - I do not get normal Home with above solution... see enclosed file
Attachments
$mt=300.txt
read out
(3.54 KiB) Downloaded 553 times
JuKu
Site Admin
Posts: 1114
Joined: Thu Feb 14, 2013 3:06 pm
Location: Tampere, Finland
Contact:

Re: Error when homing...

Post by JuKu »

Please send text $$ and send the result to me, either by email or post here. (That command sends all TinyG internal settings to log window in human readable form.)
mike58
Posts: 12
Joined: Sat Jan 21, 2017 12:28 pm

Re: Error when homing...

Post by mike58 »

Hello Juka,
Requested file enclosed,
Thanks in advance!
Mike
Attachments
MikePnP.txt
text
(16.74 KiB) Downloaded 547 times
JuKu
Site Admin
Posts: 1114
Joined: Thu Feb 14, 2013 3:06 pm
Location: Tampere, Finland
Contact:

Re: Error when homing...

Post by JuKu »

For some reason, the mt command didn't take, the log still shows "[mt] motor idle timeout 2.00 Sec".

Here are two ways to ask for the value and set it:

Code: Select all

$mt
$mt=300
or

Code: Select all

{"mt":""}
{"mt",300}
mike58
Posts: 12
Joined: Sat Jan 21, 2017 12:28 pm

Re: Error when homing...

Post by mike58 »

Hello Juha,
The second code did the magic :-)
Thank you!
Mike
Post Reply