Hello Guest it is March 28, 2024, 11:43:12 AM

Author Topic: csmio  (Read 14934 times)

0 Members and 1 Guest are viewing this topic.

Offline jve

*
  •  128 128
    • View Profile
csmio
« on: June 21, 2013, 12:19:19 PM »
hi guys
i been using csmio ips for a few machines now but these machines i never needed the analog out put before and this time i am making a retrofit on a big lathe my problem is that i enabled the analog output from the plugin and i setup the spindle pulley there is no output voltage there even when i go to check on the plugin the bar for the analog output 0 it remains 0 so there is no output to the spindle drive
do i am missing something?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: csmio
« Reply #1 on: June 21, 2013, 01:36:56 PM »
There are a few things you need to set to get the analogue out working. If you attach your xml I will have a look through it to see if there is anything you have missed.
Hood

Offline jve

*
  •  128 128
    • View Profile
Re: csmio
« Reply #2 on: June 21, 2013, 01:50:26 PM »
as of now i am at home so i dont have the xml file but may i ask you what do i have to set to get the analog out put working
do you have a xml file with analog out put for a spindle ?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: csmio
« Reply #3 on: June 21, 2013, 02:02:17 PM »
Up until a few weeks ago I was using the analogue out from the IP-S to control the spindle on the small lathe, I have since changed it over to Step/Dir spindle. The only reason I changed was my servo drives need +/- 10v control so I had to make up a relay board to invert the signals for direction change, with Step/Dir I dont need that. The analogue signal however worked very well and was very accurate.

The CSMIO/IP-S manual details the steps you need to take to get the spindle working via the analogue outs, you may also have to choose the setting as shown in the pic below, I have circled in red.
Hood

Offline jve

*
  •  128 128
    • View Profile
Re: csmio
« Reply #4 on: June 21, 2013, 02:10:45 PM »
i will check that tomorrow but i have same drive with +/- 10v so i have to make a relay to invert the signal too
can i work with the step&dir intead of analog and keep same drive?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: csmio
« Reply #5 on: June 21, 2013, 02:13:49 PM »
If your servo drive accepts step/dir signals then yes you can use it and I would say it is a better option for you to do so.
If your drive only accepts analogue signals then you will have to use that.
Hood

Offline jve

*
  •  128 128
    • View Profile
Re: csmio
« Reply #6 on: June 21, 2013, 02:18:16 PM »
no it is not the case cause my drive do not accept step&dir as far as i know the drive is a BBC brown boveri
by the way thanks for your reply i will have an other go tomorrow

Offline jve

*
  •  128 128
    • View Profile
Re: csmio
« Reply #7 on: June 22, 2013, 02:26:06 PM »
dear hood
I manage to make the analog working as you said it was to enable the spindle motor control and pwm as shown in the pic but I still have a long way to go first I notice that the analog output on the csmio is not isolated so the drive is not working properly cause it is getting the reference from the common I don't know if there is any kind of board to isolate the analog from the csmio and send to drive
the drive works fine if I use a battery and it change the direction when I invert the +/-

I also have the turret issue which is a barufaldi 7 position and it works as follow
T1 INPUT 17
T2 INPUT     18
T3 INPUT 17 18
T4 INPUT          19
T5 INPUT 17     19
T6 INPUT      18 19
T7 INPUT 17 18 19
OUTPUT 7 to turn turret
OUTPUT 8 to lock turret
I will try to have a search maybe I find a macro ready

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: csmio
« Reply #8 on: June 22, 2013, 02:59:19 PM »
I think the issue is because the analogue out is meant for VFDs where you will have a Fwd and reverse signal as well.
I am trying to recall how I did it, I think I had a relay set to clamp the drives Fwd and Rev inputs when I wanted to turn the spindle on.
I will have a look tomorrow or Monday and see if I can remember.

Regarding your turret, are there more inputs such as lock/unlock, preselect? etc or is that all there is? Does the turret only rotate one way or is it bi-directional?
Hood

Offline jve

*
  •  128 128
    • View Profile
Re: csmio
« Reply #9 on: June 23, 2013, 12:15:12 PM »
i think i manage to make a macro for the turret it seems it is working at home i will try it on the machine tomorrow
now the big issue  is the spindle i have to find a way to make it working also i have the spindle with the encoder so i have to see how to connect that to the spindle csmio extention

Sub Main()

NewTool = GetSelectedTool()
OldTool = GetCurrentTool()
MaxToolNum = 7 'Max number of tools for the changer

While NewTool > MaxToolNum
NewTool = Question ("Enter New Tool Number up to " & MaxToolNum)
Wend

If NewTool = OldTool Or NewTool = 0 Then
Exit Sub
End If

If OldTool <> NewTool Then
While Slot <> NewTool
ActivateSignal(OUTPUT3) 'start rotating forward
If IsActive(INPUT3) And Not IsActive(INPUT2) And Not IsActive (INPUT1) Then
Slot = 1
End If
If Not IsActive(INPUT3) And IsActive(INPUT2) And Not IsActive (INPUT1) Then
Slot = 2
End If
If IsActive(INPUT3) And IsActive(INPUT2) And Not IsActive (INPUT1) Then
Slot = 3
End If
If Not IsActive(INPUT3) And Not IsActive(INPUT2) And IsActive(INPUT1) Then
Slot = 4
End If
If IsActive(INPUT3) And Not IsActive(INPUT2) And IsActive(INPUT1) Then
Slot = 5
End If
If Not IsActive(INPUT3) And IsActive(INPUT2) And IsActive(INPUT1) Then
Slot = 6
End If
If IsActive(INPUT3) And IsActive(INPUT2) And IsActive (INPUT1) Then
Slot = 7
End If
Wend
Sleep(100)
DeActivateSignal(OUTPUT3) 'stop rotating forward, rotate backward now
Sleep (100)
ActivateSignal(OUTPUT4)
Sleep (3000)
DeActivateSignal(OUTPUT4)
End If

SetOEMDRO(824,NewTool)
Code "G4 P2" 'A pause time of 2 seconds to give your reverse turret time to seat
While IsMoving
Wend

End Sub
Main