Hello Guest it is October 22, 2019, 05:35:01 AM

Author Topic: IsMoving equivalent in Plugin?  (Read 4485 times)

0 Members and 1 Guest are viewing this topic.

Offline Tomas

*
  •  15 15
    • View Profile
IsMoving equivalent in Plugin?
« on: January 28, 2015, 06:32:45 PM »
Hi,

  Can someone point me to which variable/s would be the equivalent of the vbscript function IsMoving?

Thanks,
Tomas
Re: IsMoving equivalent in Plugin?
« Reply #1 on: February 11, 2016, 12:18:00 PM »
Hi Tomas,

I have the same problem. Had you found a solution

BR

Gerhard

Offline dz32

*
  •  14 14
    • View Profile
Re: IsMoving equivalent in Plugin?
« Reply #2 on: February 11, 2016, 07:08:27 PM »
IMach4.GetScriptDispatch() returns an
IMyScriptObject interface which contains
Function IsMoving()  As Integer

Offline Tomas

*
  •  15 15
    • View Profile
Re: IsMoving equivalent in Plugin?
« Reply #3 on: February 11, 2016, 07:59:23 PM »
Hi,

  This is what I did.

Code: [Select]
int MachIdle (void)
{
    if ((Engine->TrajHead == Engine->TrajIndex) && MainPlanner->ExternalStill == TRUE)
    {
        Engine->Sync = true; // Update posistions with Mach3
        return 1;
    }

    return 0;
}

-Tomas
Re: IsMoving equivalent in Plugin?
« Reply #4 on: February 12, 2016, 03:46:40 AM »
Hi

and this Engine->sync handles the ismoving() on Mach3 side ?

Thanks

Gerhard