Hello Guest it is April 19, 2024, 08:04:42 PM

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 - rufan

Pages: 1
1
CS-Lab / Index ENC
« on: June 05, 2014, 03:11:52 PM »
In the past when I have no ENC installed I had a index wired to an input.
I used this Index signal to align my VFD spindle motor.

But now I have the ENC installed, and don't know how to get the Index working.
Is there a way in the software to link "encoder 1 - IN I+" to the Index signal.

Thanks,


2
CS-Lab / VFD spindle Alignment
« on: June 03, 2014, 03:18:07 PM »
Is it possible align a VFD spindle with the CSMIO IP-S

I have an encoder installed on the spindle motor, and signals go to the CSMIO-ENC threading module.
In the CSMIO diagnostic window; I see the motor speed and angle. When spindle is turned of and manual turn the spindle I can see the angle changing.
So this seem all to work.

In CSMIO plugin window> Spindle > Enable Spindle Axis is checked, Align at Stop = 0 deg.
Or is this function only for Servo Drives?

Thanks in advance.

3
CS-Lab / Soft Limit Problem
« on: January 09, 2014, 03:17:24 AM »
Recently I have swapped the ESS Smoothsteppper for the CS-Lab CSMIO/IP-S controller
When I startup Mach3 I perform a x-y-z Axis reference this is done perfectly
Then I enable the Software Limits.
Now I cannot move any axis in step mode or with G-code, when I try this I get an error message: see picture below.
The weird thing is: the only way to move the Axis with soft limit ON is if JOG is in continues mode.
Whit Soft Limits disable every thing works fine.

What can occur this problem?
Is this a CS-Lab error message? I have never had this problem or see this message before with the Smootstepper controller.
I have the latest Mach3 .066 installed and the latest CS-LAB v2.100 Plug-in installed.

4
Brains Development / Something is Ignoring the commands
« on: July 24, 2013, 08:08:06 AM »
I have setup a Brain to see when an Axis Fails, then Estop must be triggered.
But for some reason only the last line is working (OEMTR#4)
Tested signals > brain is detecting the signal and Estop turn GREEN but Mach3 do not Estop for OEMTR#2 and OEMTR#3

Brains code:
OEMTRIGGER#2 > No-Operation > Estop
OEMTRIGGER#3 > No-Operation > Estop
OEMTRIGGER#4 > No-Operation > Estop

Only OEMTRIGGER#4 is working perfect

What I am doing wrong?

5
VB and the development of wizards / ismoving() error message
« on: July 20, 2013, 02:06:21 PM »
During the toolchange the Z-axis needs to move to Z130 position but I got a ismoving() error message. See Sub MoveZ
This only happens when the routine: '-----If spindle RPM =0 and not Aligned ----- '  and   '----- If spindle RPM > 10 and not Aligned ----'  are executed
If routine '----- If spindle RPM =0 and Aligned ----' is used every thing works perfect.

Already tried this but does not help
While ismoving            While ismoving()
Wend                        Wend     

While ismoving            While ismoving
sleep 10                     Sleep 10
Wend                        Wend

I have no idea what is causing the problem, any suggestion.

This is a part of the code:
Sub AlignSpindle

'-------------------- If spindle RPM =0 and Aligned -------------------------
If GetOemDro(39) <10 Then             
  If isactive(INDEX) And isactive(OEMTRIG1) Then    
    ActivateSignal(OUTPUT9)         'Activate Locking Pin
    Exit Sub
  End If
End If

'-------------------- If spindle RPM =0 and not Aligned ---------------------
If GetOemDro(39) <10 Then                        
  Code"M4S10"
  ActivateSignal(OUTPUT9)         'Activate Locking Pin
  While Not isactive(INDEX) And Not isactive(OEMTRIG1)
    sleep 10
   Wend
   code"M5"
End If

'-------------------- If spindle RPM > 10 and not Aligned -------------------
'--------------------------- Dynamic spindle braking ------------------------
If GetOemDro(39) > 10 Then         'Get True spindle
  code"M4S1000"               'Start spindle CCW to brake
    While getOEMdro(39) > 100         'Check if spindle speed above 100rpm
    sleep 1
      If getOEMdro(39) > 100 Then
       activateSignal(OUTPUT6)         'Activate Spindle ENABLE
       sleep 50
       deactivateSignal(OUTPUT6)              'deActivate Spindle ENABLE
      End If
    Wend
   ActivateSignal(OUTPUT9)                 'Activate Locking Pin
   code"M4S10"
   While Not isactive(INDEX) And Not isactive(OEMTRIG1)
    sleep 10
   Wend
   code"M5"
End If

'---------------------- Double Check Spindle Index Alignment -----------------------
If Not isactive(INDEX) And Not isactive(OEMTRIG1) Then MsgBox("Tool Alignment Fail") 

End Sub
'----------------------------------------------------------------------------


'----------------------------------------------------------------------------
Sub MoveZ
code "G1 G53 Z130 F3000"      'Move Z-Axis to tool change position
While ismoving()
Wend
End Sub

6
VB and the development of wizards / Dynamic Braking Macro
« on: July 16, 2013, 04:10:03 AM »
I have written a macro to Dynamic Brake my Mill spindle to perform tool change.
The macro is working, but in my opinion it is not the most nice solution.
Spindle motor = 4kw DC motor with Lenze 480 controller.
Rotation Direction is performed by 2 relays.

Please check the macro, if there is a better approach please let me know.
You will wonder why I used the code instead of dospinCW(), this is because macro M3, M4 & M5 are also edited.

Sample M3 macro:
DoSpinCW()
ActivateSignal(OUTPUT6)      'Activate the motor controller.


-----------------------Dynamic Braking Macro---------------------------------------------
code "M5"                   'Stop spindle
sleep 100
code "M4S10"              'Turn spindle CCW
sleep 2000                  'Time to brake from 6000rpm
code "M3S10"          'Turn spindel CW to brake if the overshoot
sleep 100
code "M4S10"          'Turn spindel CCW to brake if the overshoot          
sleep 200

While Not isactive(INDEX)
sleep 1
ActivateSignal(OUTPUT9)      'Activate the locking pin
If isactive(INDEX) Then code"M5"
Wend

While GetOEMDro(39) >0      'Get actual spindle speed
sleep 1
Wend

While Not isactive(INDEX) And Not isactive(OEMTRIG1)   'To make sure spindle is aligned
sleep 10
Wend
'Continue Tool Change Macro

Thanks in advance.



7
VB and the development of wizards / Macro Syntax Error
« on: June 07, 2013, 11:45:38 AM »
I have add the following command to my macro, but then get a Syntax Error on the "Then"
For me everything looks normal, don't understand why.
Do someone have any idea.

While IsActive(OEMTRIG1) = False Then
   DoSpinStop()
Wend

Pages: 1