Hello Guest it is April 19, 2024, 01:37:43 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.


Topics - shoo777

Pages: 1
1
Hi there.

I am very new with VS scripting.
Now i am tryintg to do script with will pause G-code execution, turn off shpindle, raise Z coord for 5mm and lock X Y and Z manual jogging (moving).
Here it is -

Code: [Select]
DoButton (1)
Code "G4 P1" 
Code "M5"
Code "G91"
Code "G0 z5"                 
Code "G90"
DoOEMButton (250)
Sleep (1000)
DoOEMButton (251)
Sleep (1000)
DoOEMButton (251)
Sleep (1000)

It works BUT disables only X axis. And i cant activate movements when i try to go back to work (with other VS script button).

Code: [Select]
Code "M3"
Code "G4 P5"
Code "G91"   
Code "G0 z-5"
While (IsMoving())
sleep (100)         
Wend                     
Code "G90"
 DoButton (0) 

I try to use JogOff and JogOn but its dont work at all. I need your help to know HOW TO disable movemets with button1 and enable movements with button2. Thanks.


Pages: 1