Hello Guest it is March 07, 2021, 04:27: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

561
General Mach Discussion / Re: Need a new screen for Mach3
« on: February 09, 2020, 01:26:21 PM »
if you use attached Settings, it does not look so bad here (1920x1000 21" wide Screen)

562
Mach3 under Vista / Re: Mach3 Jog buttons not working when ran as script
« on: February 09, 2020, 01:14:58 PM »
IMHO you will not be able to do a XY jog via a Screen button (i do not know a way, but maybe there is a way).
i have attached a smallĀ“brain for a XY plus jog via Trigger of input1.

-copy it to your C:\mach3\brain Folder
-use Operator -> Brain control and enable the brain
-goto Config -> ports&pins -> Input Signals -> enable Input1 ->enable emulated -> assign a hotkey

and you will see, you can jog X/Y via the assigned hotkey

563
Mach3 under Vista / Re: Mach3 Jog buttons not working when ran as script
« on: February 09, 2020, 07:47:57 AM »
normaly DoOEMButton(307) DoOEMButton(309) should be excecuted and start the axis to jog.
make sure JogMode is on.

the Problem will be that a DoOEMButton(307) will start JogX-movement and a DoOEMButton(334) has to stop JogX.

a normal Screen button will only run the when the button is pressed and you have no controll when the button is released.

you can test your macro code in Operator -> VB Script Editor window and use the >|| button to test code line by line.

564
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()


565
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.

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

567
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?

568
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?

569
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 


570
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.