Hello Guest it is April 24, 2024, 10:15:26 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 - minas

Pages: 1
1
I'm writing a new plug in based on Custom_Plugin. Until now all are well.
I have to set the Dros X,Y,Z,A with new values and then I need to read the values from them.

With mach3, win7/64 VS2003

I click RESET with the mouse, Mach3 displays +0.000 at all Dros
 I set Dro X to 123mm with --> SetOemDro(800,123.00);
Ok much 3 deysplay 123.0000
Now I have to read the DRoX  --> ThevalueX=GetOemDro(800); -->ThevalueX got 0.00000

If I sent a new value to Drox ->SetOemDro(800,100.00);
Then the --> ThevalueX=Get(oemDro(800) gets the value of 123.00
This is the previous value I set.

What Is that I must do before read the Dro value to synchronize the displayed value with the ''soul'' of mach3?


2
All is about Registry entries. For some . . . reason instalation wizard dosn't setup Registry values


Check for those or insert them:

Code:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Mach4.Document]
@="Mach4.Document"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Mach4.Document\CLSID]
@="{CA7992B2-2653-4342-8061-D7D385C07809}"

it should work then.

3
With custom plug-in as a base and  VS2003  I begun to write my Jog_plugin

 I get this error
error C3861: 'SetLED': identifier not found
also,
1) can you give me instruction about how to declare GetParam and SetParam functions?
2) this piece of code

<code>
 case 56:{   // 8 Zinhibit
                  
               _itoa(scripter.GetParam("ZInhibitOn"),txt,strlen(txt));
                  DbgMsg((txt ));

                    if(scripter.GetParam("ZInhibitOn")==1){// is on
                        DoButton(Z_INHIBIT_OFF);
                     }else{
                        
                         DoButton(Z_INHIBIT_ON);
                     }
                     ftstatus=FTD2XX_H::FT_Purge(ftHandle,FT_PURGE_TX || FT_PURGE_RX);
                     break;
                   }
</code>
turns Z inhibit button On Yellow led blinks but it dosen't turn it off
at the debug window I get this
[9152] myUpdate Bytes received
[9152] myUpdate Bytes received
[9152] Warning: attempt to call Invoke with NULL m_lpDispatch!
[9152] 9h43ƒl
[9152] Zinhibit
[9152] Warning: attempt to call Invoke with NULL m_lpDispatch!

Please give me your advice either on c language syndax




Pages: 1