Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you query for motion drive type?

I have a flexible test system that can drive either a stepper motor (through a MID-7602 stepper drive) or a servo motor (through a MID-7652 servo drive). Is there a way to tell through software (Visual basic 6.0) which drive is connected to the motion controller (PCI-7342)? I couldn't find any commands that seemed to query for DRIVE type (yes, there are queries for the CONTROLLER type). Is there some command that is safe to send to the system that if the drive is one type would cause a predictable fail code as a way to tell?

Thanks for your help!
0 Kudos
Message 1 of 2
(2,883 Views)
There is no communication between the controller and the drive. The only information that is being sent to the drive is a digital pulse (in the case of stepper motor) or an analog voltage (in the case of a servo). There is no communication back except for encoder pulses and digital line states.

That said, I can imagine a scheme where you created your own communication. You could use the digital (trigger) lines to specify the type of drive. You could always set bit '0' high when using a stepper, and always set bit '1' high when using a servo. Then in software you could read the two bits to determine what - if anything was connected. You would get the following:

Read bits Meaning
00 Nothing connected
01 Stepper connected
10
Servo connected
11 ERROR (both connected??)

I haven't worked out all the details, but you probably get the idea. The only problem with this scheme is that you have to configure the drives yourself (tieing the appropriate lines to high), and that may not be an option for you.

Hope this helps-

Dustin W.
0 Kudos
Message 2 of 2
(2,883 Views)