Hello Guest it is April 25, 2024, 04:03:05 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 - shoo777

Pages: 1
1
This is my working homing script for 5 axis table/table machine. It works at head/rotary 5axis too.
This homing Z then Y then X then C then B.
Then scritp return axis to Rotare Zero Position.
Then makes all coordinates = 0.
All u need - just change my numbers to yours.  8)



Code: [Select]
DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 26 )
DoButton( 27 )
While IsMoving ()
Wend
Code "x75.741 f1000"
While IsMoving ()
Wend
Code "y91.0765 f1000"
While IsMoving ()
Wend
Code "c60.05 f500"
While IsMoving ()
Wend
Code "c-89.490 f500"
While IsMoving ()
Wend
DoButton( 7 ) 

2
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