Page 2 of 2
Re: ATC TURRET turn
Posted: Thu Sep 26, 2019 10:21 am
by axmem
Can't get my turret to work on my lathe.
I have followed the Acorn axis driven turret procedure.
ACORN_4.14_Lathe_Axis_Driven_Turret.zip
Copied and pasted macro files.
I have set parameters 60, 160, 161 as per instructions
and I'm getting this message As per picture.
Please find attached files
Can you tell me what am I doing wrong?
Re: ATC TURRET turn
Posted: Thu Sep 26, 2019 10:25 am
by martyscncgarage
Please explain the expected sequence of events.
Marty
Re: ATC TURRET turn
Posted: Thu Sep 26, 2019 10:36 am
by Centroid188
The G-code on screen looks like the line is missing a ";" at the beginning of line, as this is a comment line the control needs to skip....
Re: ATC TURRET turn
Posted: Thu Sep 26, 2019 10:43 am
by axmem
My turret is going to be driven with stepper motor.
In order to change tool the piston needs to be actuated that will push front plate assembly M10 (turret) and than stepper motor will index the turret to required position.
Once position of the turret have been reached piston will return. (springs on the assembly will take care of pulling the assembly back)
This can be achieved with M10 M11 Command
I have defined the parameter 161 to be consistent with 6 tools.
My stepper motor is also set that 1=1 tool position as per instructions.
Re: ATC TURRET turn
Posted: Thu Sep 26, 2019 1:52 pm
by Muzzer
As Centroid 188 says, if you look carefully you have typed a ":" instead of ";". So it doesn't recognise the character as a comment demarker and thinks this is a command with no parameters.
Re: ATC TURRET turn
Posted: Thu Sep 26, 2019 2:25 pm
by axmem
Thank you for help.
I have managed to get the turret moving and index properly.
Problem I have is when I power down machine and home it. Turret looses position displaying 0.
Also it doesn't seems to update tool nr just the offset nr
Obviously I'm missing something.
please find attached macro:
;------------------------------------------------------------------------------
; Filename: cnctch.mac
; Description: Axis driven tool change macro for Lathe
; Notes: Turns/rev must be configured 1 = 1 turret position change
; Turret is on 4th axis, positions are in machine position.
; Requires: Machine home must be set prior to use.
;
;#100 = Number turret positions
;#101 = Calculated position to move to when requested position < current position.
;#4120 = requested tool
;#20601-#20604 = Counts per unit for axes1-4
;#5021-#5024 is the current machine position for axes 1(#5021) through 4(#5024)
;------------------------------------------------------------------------------
IF #50001 ;Prevent lookahead from parsing past here
IF #4201 || #4202 THEN GOTO 1000 ;Skip macro if graphing or searching
IF [ABS[#4120-#5024] < .005] THEN GOTO 1000
IF #5024 > #4120 THEN #101 = [6 + #4120] ELSE #101 = #4120
IF #4120 > 6 THEN GOTO 1000
M05
M09
G30P1
M10
G04P2.
G53 G00 A#101
M26 /A L[#4120*#20604]
M11
G04P2.
#150 = #4120
N1000 ;Macro finished
Re: ATC TURRET turn
Posted: Fri Sep 27, 2019 2:36 am
by axmem
I don' know why, but when I run tool change from MDI turret always lands on right spot.
But when I run tool change from programme it seems to always counting incrementally.