Hello Guest it is July 12, 2024, 07:59:39 AM

Author Topic: Is this possible in Mach 3?  (Read 1992 times)

0 Members and 1 Guest are viewing this topic.

Is this possible in Mach 3?
« on: February 17, 2013, 07:54:51 AM »
Hi guys

New to Mach 3 and this forum . Project I'm starting is a 1994 vintage film scanner . Basically the electronics was incomplete when I purchased and the optics are very aged .

Plan is to replace existing electronics with a Mach 3 system , driving 3 vdc servos (two with encoders) and 3 valves (24vdc). Also replace the optics as well.

I also have managed to get updated software for a modern version of this scanner. Would like to use the the software and taking it apart it uses function calls (thru a .dll )  to control the hardware. An example of it is below . I would like to rewrite the dll to use these same function call names.

Is there a way with Mach 3 to send functions or control Mach 3 via command line or use vbscript as function ? I also see Mach 3 does plugins , is it possible to code this in a plugin ?

Hopefully this is clear

scScannerGoto(int pos);
scScannerGotoXY(int posx, int posY);
scScannerInit([MarshalAs(UnmanagedType.Struct)] ref ScannerInfoStruct ptrScannerInfo);
scScannerMove(int v);
scScannerReboot(int bWarm);
scScannerSetLensPos(int lenspos);
scScannerSetRegValueStr(int regIDnum, string regvalue);
scScannerWriteRead(string dataout, StringBuilder bufback, int nbuf, int bSetErrStr);
scScanOneImage(int i);
scScanStart(int iParm);