Hello Guest it is April 24, 2024, 11:02:39 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

1041
General Mach Discussion / Re: Feed rate accelerating/decelerating question.
« on: February 09, 2020, 05:58:18 AM »
maybe a simple macro can create the GCode. dont know how "perfect" the liearity has to be

Code: [Select]
'set the varaibles
StartX = 100.0
EndX = 10.0
StartSpeed = 5
EndSpeed = 10
StepOver = 0.1

'do some calc's

Steps =  ABS(Startx-EndX)/StepOver
StepPer = (EndX-StartX)/Steps
SpeedChangePer = (EndSpeed - StartSpeed) /Steps


DoOEMButton (169)                    'close all open files
OpenTeachFile "Test.tap"

Code "G64" 'use CV mode
Code "G0 X"&StartX

AktX = StartX
AktF = StartSpeed

For i = 1 to Steps
AktX = AktX + StepPer
Code "G1 X" &AktX &" F" &AktF
AktF = AktF + SpeedChangePer
next i

Code "M30"

CloseTeachFile
Call LoadTeachFile()


1042
CS-Lab / Re: CSLab CSMIO input problem
« on: February 05, 2020, 02:11:49 AM »
try to run 062 for example from here:

https://warp9td.com/files/Software/Mach3/Mach3Version3.043_2018.exe

i run 043.022 because it was recomended by CSLAB.

1043
CS-Lab / Re: CSLab CSMIO input problem
« on: February 05, 2020, 01:49:42 AM »
BTW. witch Version of Mach3 are you running?

1044
General Mach Discussion / Re: System wait macro function help
« on: February 04, 2020, 01:34:51 AM »
do you mean macro will not wait until Input is on, or does the macro not goin Forward after Input is on?

1045
General Mach Discussion / Re: REFF ALL HOME script
« on: February 04, 2020, 01:30:10 AM »
can you see the Mxhome LED's Show up on diagnostic page?

1046
General Mach Discussion / Re: System wait macro function help
« on: February 03, 2020, 06:05:13 AM »
Sorry my fault.

code corrected:
Code: [Select]
If GetOemLED(821) Then      'Bar end signal
Code "G0 G54 Z110"
ResetOutBit(90,11)  'Collet close reset
SetOutBit(90,9)     'Collet Open
        SetOutBit(90,6)     'Collet Open
        SetUserLed(1001,1)  'Set Collet open LED ON
        While Not(GetInBit(91,1))    'Wait for Start signal from Bar fedder
                Sleep(100)
        Wend       

                Code "G0 G54 Z-35"
                Sleep 1000
                If GetInBit(91,1) = 0 Then     'Wait for Start signal from Bar fedder
                Sleep(100)
                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
        While Not(GetInBit(91,1)) 'Wait for Start signal from Bar fedder
                Sleep(100)
        Wend       
        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 


1047
General Mach Discussion / Re: System wait macro function help
« on: February 01, 2020, 02:46:41 AM »
can you please post the actual macro you are testing with?
and witch Input led is coming on at the Controller?
if you look on CSMIO webside for macro examples they are using also the GetInBit like me on all my three machines.
so the Problem must be somewhere else.

BTW, if you copy and paste your code into Operator -> VB Script Editor Window and use the >|| button you can step through your
code and see where it goes.

1048
General Mach Discussion / Re: System wait macro function help
« on: January 31, 2020, 01:45:59 PM »
... But the problem is that, when it comes to If GetInBit(90,17) = False Then,   it does not wait here ...         

that is the Problem i tryed to explain ....GetInBit(90,17) will not work it has to be GetInBit(91,1)

1049
General Mach Discussion / Re: System wait macro function help
« on: January 31, 2020, 08:17:10 AM »
btw i see you are using a csmio/a

there is no Input 90,16 if you are using Input16 it will be 91,0

1050
General Mach Discussion / Re: System wait macro function help
« on: January 31, 2020, 08:05:36 AM »
it is GetInBit(x,y) for sure, i have used this in my own macros.

can you see the Input Led on the fron of the Controller comming on?