Schaublin 125-CNC retrofit.

More
3 years 6 months ago #268734 by spumco
Replied by spumco on topic Schaublin 125-CNC retrofit.
I hate to divert Mark's thread on a tangent... but how do you GOTO in LCNC?  I thought that was verboten because reasons.

Or is this for a non-LCNC machine?
The following user(s) said Thank You: smc.collins
More
3 years 6 months ago #268736 by smc.collins
Replied by smc.collins on topic Schaublin 125-CNC retrofit.
I didn't realize that, doh, I had been learning the fanuc code for another project. 




O<jog_tool_up_down> SUB

#<_halui_input1> = #<_ini[halui.jog.tool_up]>
#<_halui_input2> = #<_ini[halui.jog.tool_down]>

(Initialize block numbers)
#100 = 0

WHILE [#100 LT 1]

(If halui input1 is triggered, jog tool up)
IF [#<_halui_input1> EQ 1] AND [#<_halui_input2> EQ 0] THEN
G28 (Move to tool change position)
M6 T[ATC_NEXT]
M61 Q[ATC_CURRENT]
G43 (Load and store the tool offsets)
#100 = 1
ENDIF

(If halui input2 is triggered, jog tool down)
IF [#<_halui_input1> EQ 0] AND [#<_halui_input2> EQ 1] THEN
G28 (Move to tool change position)
M6 T[ATC_PREV]
M61 Q[ATC_CURRENT]
G43 (Load and store the tool offsets)
#100 = 1
ENDIF

ENDWHILE

(Ensure a tool is set in the turret)
IF [ATC_CURRENT GT 0] THEN
M6 T[ATC_CURRENT] (Set the current tool in the turret)
ENDIF

O<jog_tool_up_down> ENDSUB

 
The following user(s) said Thank You: spumco
More
3 years 3 months ago #274634 by Miller Turner
Replied by Miller Turner on topic Schaublin 125-CNC retrofit.

You could simply replace the synchro resolvers with a conventional encoder and drive the motors with a DC servo drive. I have the cncdrive DG4S servo drivers in my 1983 Shizuoka mill . They work fine with the SEM brushed motors and Heidenhain clone encoders originally fitted. The original tachos are no longer required with modern digital drivers, but I left those where they were due to the way they are fitted within the motors.

The original controller in the Shizuoka drove analogue servo amplifiers and DC brushed motors but the Micon control software dealt in digital units of course. So the initial output from the controller was step/dir, with a "positioner" module to compare that with the encoder feedback and generate an analogue (+/-10V) signal for the amps. So step/dir interfaces in analogue servo systems are not unheard of.
Hi Muzzer,

Are you still running the Linux CNC - MESA - DG4S setup on your lathe?

Thanks,

Frans
 
More
3 years 3 months ago #274657 by RotarySMP
Replied by RotarySMP on topic Schaublin 125-CNC retrofit.
Hi Frans, what do you mean by DG4S?
Mark
More
3 years 3 months ago #274672 by spumco
Replied by spumco on topic Schaublin 125-CNC retrofit.
Mark -

I think he's referring to these
[url] www.shop.cncdrive.com/index.php?productID=366 [/url]

That Muzzer mentioned in this thread back in 2021.  Nothing to do with you or the Schaublin I suspect.

 
The following user(s) said Thank You: RotarySMP
More
3 years 3 months ago - 3 years 3 months ago #274677 by RotarySMP
Replied by RotarySMP on topic Schaublin 125-CNC retrofit.
Thanks. I used AC servos.
Last edit: 3 years 3 months ago by RotarySMP.
Moderators: piasdom
Time to create page: 6.516 seconds
Powered by Kunena Forum