Hello Guest it is October 01, 2020, 08:02:10 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 - kilooli

Pages: 1 2 3 »
1
Hello everybody,

i reply to myself as i found  the way to detect the existence of a movement  (it was obvious, after founding it) .

There's a LED called "System movement in effect or movement imminent LED", code  number 999
that provides the good information.

Bye

2
Hi again Poppabear.

The home LED solution was good .

I need another advice:
I do a Code(XYZ) instruction , mach3 moves to the specified coordinates.
After it finishes moving, i want to toggle in Work Coordinates and do a X and Y zeroing.

Below is  a part of my code, but i can't achieve to do the zeroing, as Mach3 doesn't seem to take it  into account
Maybe you have an idea ?

Code: [Select]



 coordonnees  = sprintf_s( GCode, 40,"F1000 G53 X%s Y%s",X,Y);
Code (GCode);
GCodeExecuted=true;  // variable to "memorize" that instruction Code has been executed

if (GCodeExecuted==true && Engine->StatLast[0]==0 && Engine->StatLast[1]==0) // to see if there's still any movements
      {
        DoButton(181);   //  WORK  coordinates
DoButton(1009);  // Zeroing  Y
DoButton(1008);  // Zeroing  Y

        GCodeExecuted=false;
       }





3
Hello,
thanks for having answered !
I'll give a try  at the Homed LED "method".
Thanks

4
Hello all !
I'm writing my  own Pluging with Visual C++ 2008 and the so convenient  'Wizard Plugin' by Edward D. Bryson.

It's a kind of very simple plugin:
A dialog box asks you to choose in a list Box the item  you want to CNC machine and then brings the spindle to
the 0 reference XY of that piece.

The help i need is the following:

When i'm homing the machine with  DoButton(1024);DoButton(1023);DoButton(1022);
i would like to know how to do for waiting the homing to be done (like a kind of  a While( IsMoving) statement, but in C++)
before executing a next instruction.

I've tried if(Engine->State== true) , if(Engine->Jogging== true)  , if(Engine->Homing== true) and some others
but each time mach3 does it's homing without taking care of of those conditions.

In the  same way ,when i'm executing a GCode( X..Y.. Z...) instruction, a SetDRO(800,0.0000) just after  isn't executed.

It's seems that Mach3 while moving the axis,continues the "reading"  of the code but doesn't execute it -like a jump- , and
THEN , when the move is finished, take again any new instruction into account.
So instructions are " lost "in between..

Is it possible to programmatically initiate a move, then wait till this movement is finished  (how????), and then execute other lines of codes ?

Thanks for helping

Cyril  :-X

5
General Mach Discussion / Re: Set a User LED to be On by default
« on: December 15, 2013, 11:09:29 AM »
Excuse me , i haven't looked at the documentation enough.
I thought the SetUserLED wasn't existing !!!!!
I'm an idiot !
Thanks Hood & ger 21

6
General Mach Discussion / Re: Set a User LED to be On by default
« on: December 15, 2013, 10:58:55 AM »
Hummmm.
How do i switch a LED ? (just the LED)
There's no kind of 'SetOEMLED' instruction.
I need to turn on an output to do this, but it uses a spare output...

7
General Mach Discussion / Re: Set a User LED to be On by default
« on: December 15, 2013, 10:39:38 AM »
OK thanks Hood !
I understand now.
I didn't know about that initialisation string...Now it's done .
Thanks again.

8
General Mach Discussion / Re: Set a User LED to be On by default
« on: December 15, 2013, 10:16:14 AM »
Thanks Hood.
Could you explain me more or give me an example please ?
You mean the LED would be turned on by the G-Code ?
But what if i don't load any G-Code ?
Thanks

9
General Mach Discussion / Set a User LED to be On by default
« on: December 15, 2013, 04:29:03 AM »
Hello,

I created a User led with a user button, and i'd like to have this LED to be lit (turned on) by default when i launch Mach3
, and then when i would  press my button it would  turn the LED off.

I would like to know if there's a way to do this as LED states don't appear to be editable.
Maybe i should try to edit (carefully) the XML to force mach3 to light my LED as it starts ?

Thanks

10
General Mach Discussion / Re: inhibit all axis
« on: November 29, 2013, 05:02:56 PM »
Hi Hood,

i'm gonna try anyway.
If it doesn't work i would have to buy a Windows laptop.

I did some tests and with a PC generated XML profile it clears my issue. I'll go on and see if many problems appear.
Thanks

Pages: 1 2 3 »