Re: auto Z origin on lathe
[ delivering a stable machine condition before using G22, and a proper PZ ]
hello all this thing generally occurs as default, so you dont have to worry about it; problems may appear when improper safe positions are used, or when using G22 for at least 2 times on same part, because screw ball area is changed
1) running a simple code, without touching the material :
Code:
G29 PZ=69 (*1)
G22 PZ=69 Z-15 G94 F100*5 D15 G91 (*1) (*2)
G28
i runned this code a few times, and between each run i have moved the turret :
... to left or to right
... by hand wheel or by the arrows
... with low or high feed
... in front of the chuck or far from the chuck
as it can be seen in attached image 1, the effort is not identical
2) adding movement before the G22, so to normalize the effort diagram :
Code:
G00 X+200 Z+200 G91
X-200 Z-190
Z-10
G29 PZ=69 (*1)
G22 PZ=69 Z-15 G94 F100*5 D15 G91 (*1) (*2)
G28
trials are shown in image 2 : effort is normalized now ( last 2 runs are in a different screw ball area; at run 4 i have reduced the feed from the potentiometer, checking not to hit the tailstock )
movement before G22 must exist and be repeatable, so to normalize the servos effort when G22 begins
this code :
... safe position
... rapid movement to G22_start_position
... G22, may not be good : if during the rapid movement only X is traveling a lot ( from X+limit towards the part ), and Z is traveling short ( this may succumb the Z servo )
so i suggest this approach :
... safe position
... rapid movement to G22_start_position.X G22_start_position.Z+10
... rapid movement to G22_start_position ( this line should normalize the servo )
... G22
*or just control the safe position, being sure that Z servo during approaching has enough travel, to reach a normal feed
with this approach, repetability is achieved : start-up effort is stable and also the normalization effort is stable; just replace PZ=69 with a value greater with 3..5 units than the normalized effort and hit the material PZ=25..30% should deliver in most cases ... kindly !
(*1)
PZ=69 is totally random; idea is to run a blank trial ( without touching the material ) and have an active torque limit big enough, so things will run smooth; this limit may be maximized in this stage, because servos will never reach it; after such trials, it can be lowered and material can be hit; if such trials are runned with a lower PZ, than the machine may stop without touching the material, but also very close to it, so making it hard to guess that the code is not working as it should
(*2)
turret should always execute the full travel and raise an error at the end; this is normal, and the error says that during the travel, the desired effort limit ( PZ=... ) was not reached; this is simply solved by hitting the material without reaching the end Z
Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg