Hello Guest it is April 24, 2024, 08:57:19 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Silvio Hospental

Pages: 1
1
Mach4 General Discussion / Mach4 OB Axis Move in Real Time
« on: September 12, 2020, 06:01:09 AM »
Hy to all

I have Retrofit a old Fanuc Tape Drill with a CS Lab IP-S controller / Delta Servos and a China Spindle Motor.

The Spindle is Wired with a Step/Dir Signal and is a V Belt drive, for the correct control of the angle of the Spindle i use e external Encoder that is driven with a Timingbelt direkt to the Spindle.

I have set in Mach4 the Spindle as a OB Axis

For the Toolchange Turret i use the Spindle that have a gear for this. 

I use this Script for to move the Spindle in the correct Angle:


-----------------------------------------------------------------
local hreg1 = mc.mcRegGetHandle (inst,"CSMIO-ENC/Encoder Angle 0" ) -- read the Angle from the external Encoder
         local val2 = mc.mcRegGetValue (hreg1)
         local grad = 0.00010934
                        local WZgrad = 276.8 -- angle that must be for toolchange
                        local Pos2 = 360-val2
         local Pos4 = Pos2+WZgrad
         local Pos5 = Pos4*grad*-1
         rc = mc.mcJogSetAccel(inst, mc.AXIS6, 25);
         rc = mc.mcJogSetRate(inst, mc.AXIS6,1.5)
         rc = mc.mcJogIncStart(inst, mc.AXIS6, Pos5)
-----------------------------------------------------------------

When i move the axis with the "JogIncStart" script, the move the value the i say but in this movement can be that the V Belt from Spindle Motor to the Spindle slip, so is the end position not correct.

Now my question is it possible to move the Spindle in "Realtime" with the feedback of the External Encoder?

Attached i have the complet M6 Script for this Machine.

Best Regards for your help and replays

Silvio


 







2
Mach4 General Discussion / Mach4 M19 Spindle Orientation on a Mill
« on: June 25, 2020, 12:27:04 PM »
Hello everyone, I am new here in the forum.

I have a problem and can't find a solution.
It is a converted Fanuc Drill Mate:
Controller: CS Lab IP-S
Spindle: Controlled by Step / Dir
Mach4 newest version and newest plugin from CS Lab.

My problem is that I want to orient the spindle with the M19 macro and the spindle orient example.

Well I do not come up with the solution how to proceed here or what I have to adapt in the examples that are in the Lua script folder.

Can someone help me there?

Pages: 1