Skip to main content
Submitted by a7777777113 on Thu, 08/24/2017 - 02:45

Hello Guys!

We now have three motion controllers

DMC type as follows:

1.DMC-42x0
2.DMC-21x2
3.DMC-21x2

There three motion controllers all into the computer.

How to do control three motion controllers for VB.net

I refer to the documentation VB.net&API and DMC 21x2&42x0

Now I have a problem,i using this command

Public dmc As New Galil.DMCAPI
dmc.apiOpen(1, System.IntPtr.Zero)

Which motion controller starts? 1.or 2. or 3.?

And which motion controller move ,when i input command

dmc.sCommand("JG 50000")
dmc.sCommand("BGX")

I think there should be other ways.
How should i edit code?
I hope you help me ,THANKS!!

Comments 2

andriys on 08/24/2017 - 11:17

a7777777113 ,
This forum section is for DMC programming questions, your question is on API which should be addressed in the Host Programming section of the forum. If you have any API programming questions, please ask them in the Host Programming sections.

It seems to me that you are trying to use legacy API that is no longer supported.

I would strongly suggest using our latest API - gclib.
In gclib you would create a pointer for each controller, and use GCommand to pass specific commands to specific controllers that you are connected to.

Please refer to gclib documentation and examples for additional information:

Gclib documentation
http://www.galil.com/sw/pub/all/doc/gclib/html/

VB.Net example
http://galil.com/sw/pub/all/doc/gclib/html/vb.html

If you have further specific questions feel free to email support@galil.com. In the beginning of the email please ask to forward the email to Andriy so I can answer your question directly.

-Andriy

a7777777113 on 08/24/2017 - 18:23

ok, i know ,Thanks for your!