Hello Guest it is April 25, 2024, 07:22:32 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 - RedBlob

Pages: 1
1
VB and the development of wizards / SetParam() strange behaviour
« on: June 26, 2015, 04:32:05 AM »
Hello,

I want change the XRefPer parameter by VB script and I use SetParam("XRefPer",10).

When I execute the macro the value in the "Homing/Limits" table change to target value but the real axis speed don't change.

The speed change only if I load the "Homing/Limits" window, I press OK and from now the value is operative.

In other words the SetParam function change the value in the Homing table but the value became operative only if I call the windows and press OK button.

What can I do to have the speed changing operative directly from VB macro ?

Thanks for help.


2
General Mach Discussion / G28.1 with very long axis
« on: June 25, 2015, 12:13:05 PM »
Hello,

I have a very long axis and I need to use a G28.1 command to find the zero ( a precision mechanical switch ) .

If I use a low speed return to zero the cycle is very long but the precision is very goog.

If I use an high speed return to zero I have a very low precision in zero procedure.

I need to find the zero with an high speed in the first step of cycle and after to find the zero with a low speed procedure.

Have you an idea to switch the speed on the fly with a G28.1 command ?

Thank you for Help.




3
Hello,

I have tested some VB macro with VB Script Editor and is all OK.
I have saved the macro on my profile with extension m1s ( M901.m1s , M902.m1s ....... )
When I execute the macro from the VB Script Editor the macro is executed correctly.

When I call from Gcode with M901 command ( or M902 ) the macro don't work ...... and I need to press the RESET button to stop because the machine is like freezed.

What can be the problem ?

Thank you for help
RedBlob

4
General Mach Discussion / Path not correct
« on: June 11, 2008, 05:15:38 AM »
Dear Support,

I write this for the following problem on Mach 3 - Release 2.63 on Win XP.

We use our CNC for milling lots of equal pieces.
We fix the start panel on work table and go with the program on Mach 3 for the entire day ( we start the program every 30-32 minutes )
The software and the CNC work very well, with good precision and a good speed.

But after some pieces ( 1, 2, 3, 5, 10 .... ) the program has a strange behavior :
the path is wrong of a lot of millimeters ( sometimes 100, sometimes 30, sometimes 10 ) , the tool breakes and I must restart the machine.
But the path is not wrong when the program starts ... is wrong after 2000/3000 step of program !!!!

Some days, with the same program, the CNC work well for the entire day !!!!!!

I have checked the position of Mach 3 axes and it tell me that the position is OK but the axis is wrong of a lot of millimeters !!!

Is like sometimes Mach 3 think to have made 100 mm of travel but are made only 80 mm.
If I restart the program the machine work good.

How is possible ?

Bye
Maurizio










5
General Mach Discussion / Strange toolpath
« on: October 15, 2007, 07:40:51 AM »
Hi,

I have written the following code but I don't understand why the first subroutine work good and the second make a strange toolpath ( the tool goes on a wrong path ).

If I add the thirth subroutine the path is still wrong.

Can you help me ?

Where is my error ?

Thanks.
Maurizio




(#9001 = QUOTA OFFSET ASSE X )
(#9002 = QUOTA OFFSET ASSE Y )

(--------------------------------------------------------------------------)
(                 INIZIALIZZAZIONE MACCHINA                )
(--------------------------------------------------------------------------)

(- SELEZIONE PIANO XY INTERPOLAZIONE -)
G17

(- EXACT STOP MODE -)
G61

(- ABSOLUTE DISTANCE MODE -)
G90

(- NESSUNA CORREZIONE UTENSILE -)
G40

(- MANDRINO FERMO -)
M5

(- RESET OFFSET -)
G92.1


(--------------------------------------------------------------------------)
(                 POSIZIONAMENTO IN SICUREZZA          )
(--------------------------------------------------------------------------)

G01 Z200 F3000
G01 X0 Y0 F3000
 
M3
G04 P3


(--------------------------------------------------------------------------)
(         REALIZZAZIONE CONNETTORE DB9                )
(--------------------------------------------------------------------------)


(*** CONNETTORE DB9 IN ALTO SX *** )

G01 Z10 F3000

#9001=37.25
#9002=125.50

M98 P1001 L1


(*** CONNETTORE DB9 IN ALTO DX *** )

G01 Z10 F3000

#9001=100.75
#9002=125.50

M98 P1001 L1



(--------------------------------------------------------------------------)
(                 POSIZIONAMENTO IN SICUREZZA           )
(--------------------------------------------------------------------------)

G01 Z200 F3000
G01 X0 Y0 F3000


M5

M30




(**************************************************************************)
(**************************************************************************)
(                              SUBROUTINES                                 )
(**************************************************************************)
(**************************************************************************)



(**************************************************************************)
(* CONNETTORE DB9 SU PANNELLO 2 MM                                        *)
(**************************************************************************)

O1001

G01 Z10 F3000

G01 X[#9001] Y[#9002] F3000

G01 Z2 F3000

G01 Z-1 F120

G41
G01 X[#9001+0.00] Y[#9002+5.15] F120
G01 X[#9001-6.95] Y[#9002+5.15] F120
G03 X[#9001-9.45] Y[#9002+2.65] J-2.50 F120
G01 X[#9001-8.44] Y[#9002-2.65] F120              (QUOTA CORRETTA PER ESTETICA)
G03 X[#9001-5.98] Y[#9002-5.15] I2.5 F120
G01 X[#9001+5.98] Y[#9002-5.15] F120
G03 X[#9001+8.44] Y[#9002-3.08] J2.5 F120
G01 X[#9001+9.45] Y[#9002+2.65] F120
G03 X[#9001+6.95] Y[#9002+5.15] I-2.5 F120
G01 X[#9001+0.00] Y[#9002+5.15] F120
G01 X[#9001+0.00] Y[#9002+0.00] F120
G40

G01 Z2 F3000
G01 X[#9001-12.5] Y[#9002+0.00] F3000
G01 Z-1 F120

G41
G01 X[#9001-12.5] Y[#9002+1.6] F120
G03 X[#9001-12.5] Y[#9002-1.6] J-1.6 F120
G03 X[#9001-12.5] Y[#9002+1.6] J1.6 F120
G40

G01 Z2 F3000

G01 X[#9001+12.5] Y[#9002+0.00] F3000

G01 Z-1 F120

G41
G01 X[#9001+12.50] Y[#9002+1.6] F120
G03 X[#9001+12.50] Y[#9002-1.6] J-1.6 F120
G03 X[#9001+12.50] Y[#9002+1.6] J1.6 F120
G40

G01 Z10 F3000


M99

(**************************************************************************)



6
General Mach Discussion / Lost Step on complex program
« on: September 03, 2007, 09:36:01 AM »
Good afternoon,

I have a big problem on my CNC with Mach3.
My CNC is equipped with 3 precision screw ( zero backlash ) and 3 industrial servocontroller for stepper motor.
The power supply is controlled by a continuity group.
The PC is a P4, 2.6 GHz, Win XP Pro with all services shut down.
The PC is not connected to Internet ans is not connected on local Ethernet.
All functions on Windows are programmed to have the maximum performance of program ( no stand-by, no screeen-saver, minimum color on graphic controller, no other program installed ).
I have enabled the "enhanced pulsing" and the "sherline mode" on Mach3.
The motor has 800 step/rev , the screw is 5 mm , the maximum speed programmed is 1000 mm/m, the acceleration is 100.

There are not problem if I load a simple program : I can go to a whichever position and a whichever feed rate and the position is ok ( I have used a digital probe to test the position and the machine have no errors ).
I have also tried to make 100 cycle of go-return from 0 to 1000 mm and the final position is OK.

When I load a program with subroutine, circular interpolation, and number of lines higher than 200-300 I have a big problem:
After a complete cycle ( 40 minute of work) the position of 3 axis is not correct !!!!
Each axis have a error from 0.01 to 0.8 mm and depend on how many "step are lost".
I have noticed that every some minute a little "tic" there is on one axis ... the axis lost some steps and the correct position is lost.
I have tested the machine for 3 days and I have not found the cause.

I have also installed an other CNC software but the problem with the other software there isn't.

Another strange thing ......
If I make 3 times the same cycle the error is not the same .... sometimes is bigger, sometimes is lower.

I have tried to test the machine with driver test of Mach3 and is all OK.
The Kernel is set to 25000 Hz.
The Diagnostic window tell me that all is OK.


Have you some idea to solve the problem ?

Thanks
Maurizio


7
LazyCam (Beta) / Move more than one chain to other layer
« on: July 10, 2007, 07:47:48 AM »
Hi,

Someone know if is possible to move more than one chain ( 1200-1300 chain selected ) from a layer to another layer ?

I have LazyCam 2.080 and a project with 3750 hole on a layer.
Now I want to move some holes ( 1200-1300 holes) to the Layer 1 to Layer 2.
I have tried to select more than one chain but I'm not successful .
The only way I have find is to click with the right button and select "Move Chain to Layer ... ".
But this operation is impossible if there are 1200 chains to move !!!

Have you a solution ?

Thanks for your help

Maurizio



Pages: 1