Hello Guest it is April 25, 2024, 03:58:43 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 - mark4

Pages: « 1 2 3 4 »
21
Mach4 General Discussion / mach4 vfd control
« on: October 03, 2016, 06:26:28 PM »
hello all
i am upgrading a bridgeport mill with a ess board and a cnc4pc c23 dual port board with spindle control and a huanyang vfd 0-10v. now this board accepts a step pulse and converts to 0-10v this works mostly i can move the speed up and down but not properly. here is my setup range 0 min rpm 60 max rpm 500 delays set to 0 ratio i have changed it doesnt seem to affect anything. in mach 3 i could dial in the ratio until it achieved the speeds commanded. range 1 min rpm 501 max rpm 4200 delays 0 ratio unchanged this range needs the spindle reversed. here is the rub i change the spindle to reverse and exit to the main screen reset and try the spindle it rotates reversed just like it is supposed to then after a reset or reboot i am not sure it reverts to unchecked and runs forward. so i am looking for where the actual script for this is so i can lock it down so it wont change does anybody have any ideas thank you
mark

22
Mach4 General Discussion / rigid tap and ess
« on: September 23, 2016, 10:19:26 PM »
hello
i upgrade Bridgeport mills to mach4 with an Ethernet smooth stepper i am adding vfd to my setup and am thinking about rigid tapping. i am adding an encoder to my spindle. the questions i have are do you set the ramping or delay to 0 secs or what would be a good place to start. i know i can be done with a soft tapping setup. has anybody done this and do you have any pointers.
thank you
mark

23
Mach4 General Discussion / mach 4 crash
« on: July 20, 2016, 09:30:40 PM »
Hello
i am configuring for a lathe and waiting for an updated plug in from cs-labs. so i have a windows 10 updated lenovo computer i installed mach 4 build 4.2.0.3112 pre release i just used this on a mill works good. anyway i click on the lathe icon it loaded the first time ok now it loads screen elements then loading mach motion canned elements loads about 1/3 then crashes by crashes i mean windows 10 comes up and says mach 4 cnc gui has stopped working and you have to close you cant continue. i found a work around when mach 4 is booting click on one of the menu items multiple times got me in but this didnt work every time i made my own profile i havent tried this on a different computer. i will try this on a windows 7 computer and let you know. also this computer is not hooked up to a machine or controller yet. has anybody else had this problem thank you
mark

24
Mach4 General Discussion / MPG
« on: June 29, 2016, 12:13:25 PM »
hello
i need help with an mpg. i have an ethernet smooth stepper connected to a cnc4pc pendant board and mach 4. i have the signals coming to mach i can see port2 input 2 and 3 in ess diagnostics so i know i have a signal. there is also a mach setup tab for mpg. the problem is i cant get the machine to jog on mpg i have tried to set up many different ways and done multiple lua script changes. allot of what i have read seems contradictory but i will take what i can get to work. all i want is a simple jog on one axis i can program the rest. please help before i have to take a hammer to Mr microchips.
thank you
mark

25
Mach4 General Discussion / mpg
« on: June 22, 2016, 09:26:29 PM »
hi
i am writing an mpg in signal script under SigLib. it has rotary switches x y z a and 1 .1 .01 .001 four positions as this is a stepper machine and this is the resolution i can get the mpg to work in smooth stepper diagnostics screen but have yet to convince mach to see it may not be programmed properly yet. also i am programming rotary switches the question is which is proper or better this

[mc.ISIG_INPUT0] = function (state)
      if (state == 1) then
         have to figure out what to put here
      end
end,

or this

[mc.ISIG_INPUT0] = function (on_off)
      if (on_off == 1) then
         have to figure out what to put here
      end
end,

there is allot of information some conflicting some confusing. is signal script being used or is it mostly or all screen load script
thank you
mark

26
Mach4 General Discussion / script and mach 4
« on: June 07, 2016, 09:02:22 PM »
i am a machine up-grader and i have a lathe and mill i am making mach 4 the first post will be about the mill. i have an Ethernet smooth stepper i have been setting up limits and motors this has been going well except last night i did something and the ess stopped talking to mach 4 i still don't know what i did but it is working again. question is there a work around for user account control or do i just turn it off. 2 i am starting with two external buttons cycle start and feed hold. so far i go into edit screen then wxmach click on the lightning bolt the scripts come up i have looked them over and determined i haven't the foggiest idea where to start IE should the added button script be in plc script or signal script please point me in the right direction or to where i can find an example i know something about vb not much lua structure is going to be a learning experience thank you for your help
mark

27
VB and the development of wizards / atc for okuma and howa
« on: February 11, 2016, 01:20:38 PM »
this is a new post about the tool changer didnt want to get the two mixed up

i am setting up a tool changer for a turret lathe and i want to use the tool changer from cs-labs but am having problems figuring out the outputs i dont have it set up the way gthey do some of wich i could change some of wich not and my turret unlock sw is only closed or open not two switches if that isnt bad enough the tool changer is 12 position i will add what i have done so far and add notes and will add my inputs and outputs i am sure that sombody who has a better grasp on the inputs/outputs will have an easy time with this thank you for your help
mark cook
marks machine repair llc

'------------------------------------------------------------------------------
' CS-Lab s.c. - Auto toolchanger for lathe (rotary type of ATC)
' (C) 2011
' v1.2 - 2011-11-05
'------------------------------------------------------------------------------

'------------------------------------------------------------------------------
' CONFIG
'------------------------------------------------------------------------------
Const OpenSensDelay        = 800    ' Time Delay [ms] after ATC unlock
Const TimeLock            = 1000     ' ATC locking time delay
Const TOOLCOUNT            = 12     ' max Tool #

' Actual ATC position inputs (CSMIO-IP/A-IO-0 inputs)
Const InT1 = 2
Const InT2 = 3
Const InT3 = 4                                                                             these inputs were for the csmio/ip-a i need them to be for the csmio-io
Const InT4 = 5                                                                             100,2 ect i think i did it right see below
Const InT5 = 6
Const InT6 = 7
Const InT7 = 8
Const InT8 = 9
Const InT9 = 10
Const InT10 = 11
Const InT11 = 12
Const InT12 = 13

' ATC sensors inputs
rem Const InOpenSensor        = 0>0     ' ATC unlocked (rotating)          I dont know what to do with this my switch input is 100,1 modbus
rem Const InCloseSensor        = 0>1    ' ATC locked - safe                  this orriginally had two different outputs i only have one

' digital outputs for ATC control (CSMIO outputs)
rem Const OutRun            = 4        ' unlock and rotate                                               again dont know how to define this signal
rem Const OutLock            = 5        ' stop rotation and lock at current position            my outputs are index normal 90,13
                                                                                                                              index reverse 90,14 tool lift which is unlock 90,12
'------------------------------------------------------------------------------
' program variables - don't modify
'------------------------------------------------------------------------------
Dim ToolNew, ToolOld, ToolSlot As Integer
Dim ToolRdy As Boolean
Dim ATC_CloseRetry
Dim InToolSens(TOOLCOUNT)

'------------------------------------------------------------------------------
  ' MACRO START
'------------------------------------------------------------------------------
    If(GetOEMLed(800)) Then
        Message("The System Is In ESTOP - Toolchange Interrupted")
        Sleep(150)
        WaitForMove
        End
    End If

      SetUserLED(1001, 1) ' User LED - toolchange in progress
     
      InToolSens(0) = InT1
      InToolSens(1) = InT2
      InToolSens(2) = InT3
      InToolSens(3) = InT4
      InToolSens(4) = InT5
      InToolSens(5) = InT6
      InToolSens(6) = InT7
      InToolSens(7) = InT8
      InToolSens(8) = InT9                                    i changed this to 12 from 8
      InToolSens(9) = InT10
      InToolSens(10) = InT11
      InToolSens(11) = InT12
    ' Get actual tool # and new tool #
    ToolOld = GetCurrentTool()
    ToolNew = GetSelectedTool()

    ' little trick for double slots ATC
    If(ToolNew >= 12) Then
        ToolSlot = ToolNew - 12                             double slots i dont think i need and i dont understand at all
    Else
        ToolSlot = ToolNew
    End If
   
    If(ToolOld >= 12) Then
        ToolOld = ToolOld - 12
    End If
   
    ' The same position - no need to move
    If (ToolSlot = ToolOld) Then
        SetCurrentTool( ToolNew )
        Message("ATC is on position "& ToolSlot & " and new tool is " & ToolNew)
        WaitForMove
        SetUserLED(1001, 0)
        End
    End If
   
    If (ToolSlot > TOOLCOUNT) Then
        SetCurrentTool( ToolOld )
        SetUserLED(1001, 0)
        DoOEMButton(1003)
        DoOEMButton(1002)
        Sleep(150)
        Message("There is no tool T" & ToolNew & " in ATC")
        Sleep(150)
        End
    End If
   
   
    ' T0 is a fake tool, no need to change
    If (ToolSlot = 0) Then
        ToolNew = 0
        SetCurrentTool( ToolNew )
        Message("Load a Tool Number: " & ToolNew)
        WaitForMove
        SetUserLED(1001, 0)
        End
    End If
   

    ' unlock and rotate ATC
    RunATC
    Sleep( OpenSensDelay )
    ' check ATC open sensor set to 0
    If (Not GetCsmioIn(100,0)) Then
        LockATC
        SetCurrentTool( 0 )
        SetUserLED(1001, 0)
        DoOEMButton(1021)
        DoOEMButton(1002)
        Sleep(150)
        Message("ATC Locked - Toolchange Failed.")
        Sleep(150)
        End
    End If
   
    ' wait to ATC will be on the desired position
    ToolRdy = false
    While(Not ToolRdy)
        If(GetCsmioIn((InToolSens(ToolSlot - 1)))) Then
            ToolRdy = true
        End If
    Wend
   
   
    ' stop rotation and lock ATC
    LockATC
    ATC_CloseRetry = 0
    ' Check lock sensor, retry lock if needed
    While(Not GetCsmioIn(100,1) And ATC_CloseRetry < 4)
        LockATC
        ATC_CloseRetry = ATC_CloseRetry + 1
    Wend
   
    ' double check for succesful ATC lock
    If (Not GetCsmioIn(100,1)) Then                         changed this probably shouldnt have
        SetCurrentTool( 0 )
        SetUserLED(1001, 0)
        DoOEMButton(1021)
        DoOEMButton(1002)
        Sleep(150)
        Message("ATC Lock Alert. Check ATC.")
        Sleep(150)
        End
    End If
 
    SetCurrentTool( ToolNew )
    Message("Succesful Loaded Tool T" & ToolNew)
    Sleep(150)
    WaitForMove
    SetUserLED(1001, 0)
    End
' -----------------------------------------------------------------------------
Public Function GetCsmioIn (n As Integer) As Boolean
    Dim reg As Integer
   
    If(n < 15) Then
        reg = 100
    Else
        reg = 91
        n = n - 16
    End If
   
    If(GetInBit(reg, n)) Then
        GetCsmioIn = true
    Else
        GetCsmioIn = false
    End If
    Exit Function
End Function
' -----------------------------------------------------------------------------
Sub RunATC ()
    Call SetCsmioOut(OutLock, false)
    Sleep(150)
    Call SetCsmioOut(OutRun, true)
    Sleep(150)
End Sub
' -----------------------------------------------------------------------------
Sub LockATC ()
    Call SetCsmioOut(OutRun, false)
    Sleep(150)
    Call SetCsmioOut(OutLock, true)
    Sleep(TimeLock)
    Call SetCsmioOut(OutLock, false)
    Sleep(150)
End Sub
' -----------------------------------------------------------------------------
Public Sub SetCsmioOut (ByVal n As Integer, ByVal state As Boolean)
    If(state) Then
        SetOutBit(90, n)
    Else
        ResetOutBit(90, n)
    End If
End Sub
' -----------------------------------------------------------------------------
Sub WaitForMove ()
    While IsMoving()
        Sleep(15)
    Wend
End Sub

CSMIO/IP-A    12BR    SOL 8 TOOL LIFT    
   OUTPUT 12    TOOL LIFT PORT 10 PIN 12    90,12
CSMIO/IP-A    13BR    SOL 9 INDEX NORMAL    
   OUTPUT 13    INDEX NORMAL PORT 10 PIN 13    90,13
CSMIO/IP-A    14BR    SOL 10 INDEX REVERSE    
   OUTPUT 14    INDEX REVERSE PORT 10 PIN 14    90,14
USER LED    1010    TOOL POSITION 1    MOD100 D2    INPUT    LS11    MODBUS
USER LED    1011    TOOL POSITION 2    MOD100 D3    INPUT    LS12    MODBUS
USER LED    1012    TOOL POSITION 3    MOD100 D4    INPUT    LS13    MODBUS
USER LED    1013    TOOL POSITION 4    MOD100 D5    INPUT    LS14    MODBUS
USER LED    1014    TOOL POSITION 5    MOD100 D6    INPUT    LS15    MODBUS
USER LED    1015    TOOL POSITION 6    MOD100 D7    INPUT    LS16    MODBUS
USER LED    1016    TOOL POSITION 7    MOD100 D8    INPUT    LS17    MODBUS
USER LED    1017    TOOL POSITION 8    MOD100 D9    INPUT    LS18    MODBUS
USER LED    1018    TOOL POSITION 9    MOD100 D10    INPUT    LS19    MODBUS
USER LED    1019    TOOL POSITION 10    MOD100 D11    INPUT    LS20    MODBUS
USER LED    1020    TOOL POSITION 11    MOD100 D12    INPUT    LS21    MODBUS
USER LED    1021    TOOL POSITION 12    MOD100 D13    INPUT    LS22    MODBUS
USER LED    1022    TURRET INDEX    MOD100 D1    INPUT    LS9    MODBUS
USER LED    1023    TURRET UNLOCK    MOD100 D0    INPUT    LS10    MODBUS
USER LED    1024    TURRET LOCK    MOD100 D0    INPUT    LS10    MODBUS
   
thank you

28
VB and the development of wizards / M23 transmission speed change
« on: February 09, 2016, 03:14:07 PM »
hello i am retrofitting an okuma and howa act 5l there have been some real eye openers will post more as we go first i need to change from high gear to low gear with a m23 and a m25 macro i have writen the m23 but it doesnt work quite as expected can anybody help.

rem spindle low speed range (30-900)
DoSpinStop
If IsActive(OEMTRIG5) Then
Message "Head Already In Low Gear"
End If
If Not(GetOEMLED(164)) And Not(GetOEMLED(165)) And(GetOEMDRO(39)=0) Then
Do
setoutbit(90,8)
If IsActive(OEMTRIG5) Then Exit Do
Loop
End If
resetoutbit(90,8)
SetPulley(1)
SystemWaitFor(OEMTRIG5)

oem trigger 5 transmission low speed switch
i am using a csmio/ip-a controller
(90,8) is the selenoid
one question i have is the caps/lower case and spaces i never know which to do so can anybody tell me the proper coding to do and what will make no difference at all thank you
mark

29
CS-Lab / MPG module
« on: November 04, 2014, 09:21:06 PM »
hello
i am installing a csmio/ip-a with a mpg module i wired the module to a panel with rotary switches and a mpg the mpg worked on the module i could see the leds blink but could get nothing out of mach 3 as i couldn't figure where to look. then  i connected the estop wires and nothing. i was going crazy then i looked at the electrical prints again and noticed the common cathode jumper to ground you need to have the jumper or wires connected or nothing will work something not mentioned in the manual. now everything works so far i have yet to try the analog inputs. i am curious as to how i can use the extra input and output does anybody know there address or is it a modbus thing. all that being said i was jogging today and have found it to be the smoothest jogging i have ever set up. :)
mark

30
General Mach Discussion / Bridgeport Torq Cut
« on: October 12, 2014, 11:19:44 PM »
Hello
i am bidding on an upgrade for a bridgeport torq cut mill and am planning to use the csmio controller i have done several machines with this controller and have been very happy with it. now the base operation and wiring or rewiring i have a handle on and minor programing i do ok however i am worried about the tool changer. i have programmed a tool changer on a bostomatic successfully. the bostomatic tool changer i set up as an axis and wrote the code accordingly. my problem is the torq cut tool changer doesn't work as an axis it rotates by a cog and keeps track of where it is by a proximity sw  i don't know how to program this type of system to rotate and keep track of where it is. this counts like an encoder but i am not sure how to translate that. so i am of two minds on the issue one is to program until i figure it out or two hire a programmer to write the tool changer program for me and warranty there work. to sum up i am asking for advise toward either of these options
thank you mark cook

Pages: « 1 2 3 4 »