Hello Guest it is April 24, 2024, 11:37:10 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.


Messages - TPS

1051
General Mach Discussion / Re: System wait macro function help
« on: January 31, 2020, 06:38:13 AM »
Code: [Select]

If GetInBit(90,16) Then                 'Bar end signal
Code "G0 G54 Z110"              'Clear to make space for Bar fedder to push remnant out
ResetOutBit(90,11)              'Collet close reset
SetOutBit(90,9)                 'Collet Open
        SetOutBit(90,6)                 'Collet Open
        SetUserLed(1001,1)              'Set Collet open LED ON
        If GetInBit(90,17) = False Then 'Wait for Start signal from Bar fedder                   
                Sleep(50)
        End If
        Code "G0 G54 Z-35"              'Position stopper at top cut position
                Sleep(1000)
        If GetInBit(90,17) = False Then 'Wait for Start signal from Bar fedder                   
                Sleep(50)
        End If
        ResetOutBit(90,9)               'Reset Collet Open
        ResetOutBit(90,6)               'Reset Collet Open
        SetOutBit(90,11)                'Collet Close
        Sleep(100)
        SetUserLed(1001,0)              'Set Collet open LED OFF
        Sleep(2000)
Else
ResetOutBit(90,11)              'Collet close reset
Sleep(100)
SetOutBit(90,9)                 'Collet Open
        SetOutBit(90,6)                 'Collet Open
        SetUserLed(1001,1)              'Set Collet open LED ON
        If GetInBit(90,17) = False Then 'Wait for Start signal from Bar fedder
                Sleep(50)
        End If       
        ResetOutBit(90,9)               'Reset Collet Open
        ResetOutBit(90,6)               'Reset Collet Open
        SetOutBit(90,11)                'Collet Close
        Sleep(100)
        SetUserLed(1001,0)              'Set Collet open LED OFF
        Sleep(2000)
End If 





1052
General Mach Discussion / Re: System wait macro function help
« on: January 31, 2020, 05:53:21 AM »
it will continue program if Input is true

Code: [Select]
If GetOemLED(821) Then
   Code "G0 G54 Z110"
   ResetOutBit(90,11)
   SetOutBit(90,9)
        SetOutBit(90,6)
        SetUserLed(1001,1

Else
   ResetOutBit(90,11)
   SetOutBit(90,9)
        SetOutBit(90,6)
        SetUserLed(1001,1)
        If GetInBit(adr, bit) = False Then
Sleep(50)
End If
        ResetOutBit(90,9)
        ResetOutBit(90,6)
        Sleep 100
        SetOutBit(90,11)
        SetUserLed(1001,0)
   


End If
you Need to replace "adr" and "bit" by your real values.

1053
General Mach Discussion / Re: System wait macro function help
« on: January 30, 2020, 11:02:11 AM »
Looks like you are using a CSMIO

you can use GetInBit

Code: [Select]


If GetInBit(adr, bit) = False Then
Sleep(50)
End If


1055
General Mach Discussion / Re: lost steps/ motor stall with tripple beast
« on: January 23, 2020, 02:30:33 AM »
maybe you can swap X and Y Motors?

1056
So I suppose I need to open the box and  check the power supply to the sensor?

i think so.

1058
if it is an optical sensor, i think there should be an external power supply (5V) somewhere.
is there no Manual of the Controller box?

1059
normaly first Thing is to figure out how they are wired to your Controller/ parallel port.
on the Picture you posted i can't se any wiring at all??!

and after the wiring is clear in Config -> Ports&Pins -> Inputs

1060
small question, witch light Change on diagnostic Screen?

you are using ZASto's Brains now, all Trigger' oemcodes set to -1 in Config System hotkeys?

all plugin's  related to any mpg deleted from plugin Folder?

pls post your Profile XML.