Hello Guest it is August 03, 2020, 08:43:27 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.

Messages - MojsterMiha

Pages: « 1 2 3 4 5
VB and the development of wizards / Re: Terminating Script
« on: January 15, 2008, 02:28:49 PM »

I try this code but Z axis move to position Z 210 and nothing else.

I have add While Ismoving() and Wend

Sub Main()

ZPos = GetOEMDRO(802)

Code "G01 Z201 F1000"   'Gives movement past trigger point

While Ismoving()

If IsActive(INPUT2) Then
Message("Z in position for tool change")
       If ZPos>200 Then  'Gives movement past trigger point
       Message("ERROR - Switch is not triggered")
       Exit Sub
       End If
End If

End Sub

And then moving stops when switch is triggered (without "Terminating Scipt") but if switch isn´t triggered unthil
axis reach position Z=201 I don´t get Message "ERROR - Switch is not triggered"

What I can do?

Thank you!

VB and the development of wizards / Terminating Script
« on: January 14, 2008, 03:33:39 PM »

I want to write simple macro for moving Z axis in position for tool change - moving Z+ until switch is triggered.
If switch is not triggered in 200 mm then moving must stop and report an ERROR.


Code "G01 Z200  F1000"
Message "Moving on switch for tool change position "

While IsMoving()
If  IsActive(Input2)Then
Message "Z in position for tool change"
End If

If Not IsActive(Input2)Then
Message "ERROR - Switch is not triggered"
'Exit Sub
End If

When I run this code from VB Script Editor works fine but when I call it from Mach3 then after switch is triggered
I get message "Terminating Script"
I have tray diffrent things (also reinstaling Mach3) and itś always the same.

Any suggestion ????

Is this  recommended way to stop axis when switch is triggered?


General Mach Discussion / Re: Feed rate override - external controll
« on: October 17, 2007, 01:55:34 PM »

How much will cost this modbus?
And how much will cost a complete modbus system?
I´m interested in for a complete modbus system but I don`t know where in
Europa I can get one of them which will work with Mach3.

I want to build four axes CNC mill with servos with Pixie100, ATC, and other addition but for
that I need more I/O and also analog input.
Now I planing to solve this with two LPT ports but modbus is surely better solution.


General Mach Discussion / Re: Feed rate override - external controll
« on: October 14, 2007, 02:32:44 PM »

I set two inputs to activate Triggers OEM code 108 and 109 and that works but ther is a problem because I can set FRO from 1 - 10
in division 1 and from 10 to 250 in division 10. I would like division 1 from 1 to 250, even better from 0 to 250 so I can stop moving.

Second problem is that by restart MACH3 set FRO on 100% even if  I left external button on diffrent value - position by shut down.

I still prefer analog variant where I can set FRO on each value between 0 and 250.

Is there any possibility to control FRO with PWM input or pulses with changeable frequency?

Sorry for my very bad English!


General Mach Discussion / Feed rate override - external controll
« on: October 13, 2007, 02:59:07 PM »

Is there any solution to controll feed rate through parellel port?



Mach Screens / Button comand
« on: October 05, 2007, 05:22:58 PM »

I want to make numerical key board for my touch screen.

I want that when I touch some button belonging
 numerical value (0, 1, 2 ,3, ...9) will be put in DRO
which I will mark before.
I also need ENTER key which will confirm entered value.

If someone can help me I will be very grateful.



Pages: « 1 2 3 4 5