Monday, August 20, 2012

First program to control a motor using Galil DMC-4133

In a previous blog, I discussed connecting to the Galil DMC-4133 using Gilal Tools. This blog now discusses a very simple set of commands to get the motor moving. I will list each command and discuss them as I type them.

:MT 2 'The MT is required for setting up communication with a stepper motor. The variable can be 2, -2, 2.5, or -2.5 depending on active low step or active high step and whether it is reverse direction.
:SH 'Turns motor on
:PRA = 13000
:BGA
:MO A  'Turns motor A off

No comments:

Post a Comment

VBA Excel to Double Click change to checkmark or x

 Note that to do this, you need to set the font of the affected cells to Winding 2 first: 1 2 3 4 5 6 7 8 9 10 11 12 Private Sub Worksheet...