Hello Guest it is March 29, 2024, 07:39:40 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 - MojsterMiha

Pages: « 1 2 3 4 5 6 7
61
VB and the development of wizards / Re: Terminating Script
« on: January 16, 2008, 01:58:22 PM »
Still nothing!

Does this code works by you or by anybody else or only I have this problem ???

It is possible that there is some Bug in Mach3?


I´m desperate and without hope.




Regards!

62
VB and the development of wizards / Re: Terminating Script
« on: January 16, 2008, 10:38:07 AM »
Thanx,

But still  nothing.
When I running code from Mach3 calling it like M555 (From MDI line and from program)I get message "Terminating Script"

Z moves on position Z 201 and then ... "Terminating Script" (in case where switch is not triggered)
If Itrigger a switch I get "Terminating Script" also.
From VB Script editor works fine - without "Terminating Script"

Regards!

63
VB and the development of wizards / Re: Terminating Script
« on: January 16, 2008, 05:50:43 AM »
No, the switch isn´t the same like for Z homing.

I alredy using a touch probe and I can´t use G31.
(perhaps I didn´t understand this option correct - can you post some sample?)

I don´t understand why my and code from poppabear work from VB Script editor and don´t work from Mach3
Sometimes I also get ERROR message from Mach: "Art Code 9991"
I try  on three diffrent computer and the problem is the same.

My company bought three licenses for Mach 3 last year on my suggest and now I have problem to solve simple tool changer.

I´m in very inconvenient situation.

I would like to move Z axis in  position - on switch and give signal to PLC for starting procedure for
tool change (If switch is not triggered unthil moving, must be reported an ERROR)
After finishing of tool change procedure PLC give back a signal and tool change is finish - program move forward.




I will be very grateful for any suggestion.

Thanx!


64
VB and the development of wizards / Re: Terminating Script
« on: January 15, 2008, 02:34:59 PM »
Hi, again

I try this code running from VB script editor.

Sub Main()

ZPos = GetOEMDRO(802)


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

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

   
End Sub
Main

and problem was like I described in previous post.
Now I have try running code from Mach3 and I still get Message "Terminating Script" when switch is triggered.

Regards!

65
VB and the development of wizards / Re: Terminating Script
« on: January 15, 2008, 02:28:49 PM »
Thanx!

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
DoOEMButton(1003)
Message("Z in position for tool change")
       If ZPos>200 Then  'Gives movement past trigger point
       DoOEMButton(1003)
       Message("ERROR - Switch is not triggered")
       Exit Sub
       End If
End If

Wend
   
End Sub
Main


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!

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

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:

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

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

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?

Thanx!




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

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.

Regards!



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

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!

Regards!







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

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

Regards!

Andrej

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

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.

Thanks!

Andrej
 


Pages: « 1 2 3 4 5 6 7