1681
Show"N"Tell ( Your Machines) / Re: Ecoca PC1840 Lathe: New and first Mach project
« on: May 18, 2015, 05:57:24 AM »Would Mach 4 be better than Mach 3?
imho not for the moment.
Thomas
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.
Would Mach 4 be better than Mach 3?
Regarding the ModBus set -up I try it , but it seems don't work....or I do somethingh wrong?
'Function to read a Section/entry of a INI file
Function ReadIni( ByVal file As String, ByVal section As String, ByVal item As String ) As String
ReadIni = " "
Set FileSysObj = CreateObject("Scripting.FileSystemObject")
If FileSysObj.FileExists( file ) Then
Set ini = FileSysObj.OpenTextFile( file, 1, False)
Do While ini.AtEndOfStream = False
TextLine = ini.ReadLine
If TextLine = "[" & section & "]" Then
TextLine = ini.ReadLine
Do While Left( TextLine, 1) <> "["
If InStr( TextLine, item & "=" ) = 1 Then
ReadIni = Mid( TextLine, Len( item ) + 2 )
Exit Do
End If
If ini.AtEndOfStream Then Exit Do
TextLine = ini.ReadLine
Loop
Exit Do
End If
Loop
ini.Close
End If
End Function
hate the bloody things, usualy have mine on silent
Hi Thomas
Pff 25 years , that mean you are Daddy's on CNC,
have you some on You Tube or links on your retrofitings ?
Glad to see Thomas in on this, he is much better at VB than I will ever be
@Thomas
It seems that your TO DO plan is well organized....if I think from start on all ; then will do a really mess on my mind !
Based on my OLD inputs:
-home axis x
-home axis y
-home axis z
-vacuum table 1 (pressure gauge 1)
-vacuum table 2 (pressure gauge 2)
-vacuum pump acces
-acces mill 1 (assume is the main spindle)
-acces mill 2 (assume is the drill spindle)
-cone-holder OPEN
-cone holder CLOSE
-thermic inverter
-drill group DOWN
-drill group UP
-dust colector UP
-Inverter OK
-frequency reached
-drive axis C (ATM axis) OK
-pressure reached on the main spindle
-OK Z
-axis overreached (axis limits switches)
-emergency on main panel (emergency switch on the panel)
-machine emergency (chain with pushButtonsMushroom 3, line pressure,lock of main door)
-vacuum termic breaker
-drill unit thermic breaker
-motor stop
-external start
-external stop
-vacuum switch 1
-vacuum switch 2
-inverter frequency level
Outputs :
- 9 outputs for drill heads 1,2,3-----9 (activation of the drill heads I assume they need M codes and VB Macro)
-ascension of 4 guides (0-ing hardware fixtures on each corner of table) depending on each side of table you work - need M codes
-axis C (ATM) enable
-up down dust cover
-drill head UP
-drill head DOWN
-OPEN/CLOSE Tool holder clamp
-vacuum side 1 of table
-vacuum side 2 of the table
-enbla axis X,Y,Z
-enable inverter