Download AIMAIM Remote
Send me an Instant Message
Download AOL Instant Messenger
 
A100SMC and A200SMC DLL File Exports

This table shows the functions that are exported from the DLL. Click on the name of the function to view its description further down on the page.

Some of the functions are included in the .dll to make it compatible with the older .dll. These older functions are shown in gray near the bottom of the table. It is recommended that for new software you avoid using these functions. Please see their descriptions for more detail.

C Notation
int set_controller1(int parallel_port)
int set_controller2(int parallel_port)
void set_motor1_direction(int motor1_dir)
void set_motor2_direction(int motor2_dir)
void set_motor3_direction(int motor3_dir)
void set_motor4_direction(int motor4_dir)
int get_motor1_direction()
int get_motor2_direction()
int get_motor3_direction()
int get_motor4_direction()
void set_motor1_delay(int motor1_delay_time)
void set_motor2_delay(int motor2_delay_time)
void set_motor3_delay(int motor3_delay_time)
void set_motor4_delay(int motor4_delay_time)
int get_motor1_delay()
int get_motor2_delay()
int get_motor3_delay()
int get_motor4_delay()
void fn_TurnCon1( long m1_StepsVal, long m2_StepsVal)
void fn_TurnCon2( long m3_StepsVal, long m4_StepsVal)
void StopRotation()
void StopRotationM1()
void StopRotationM2()
void StopRotationM3()
void StopRotationM4()
const double DLLVersion()
__int64 GetSystemCounter()
__int64 GetSystemFrequency()
__int64 SystemDelay()
void OutStepDLL( short PortAddress, short Data )
void InStepDLL( short PortAddress )
int get_delay_time()
void set_delay_time(int delay_time_value)
void fnTurn_motor1( long m1_Steps)
void fnTurn_motor2( long m2_Steps)
void fnTurn_motor3( long m3_Steps)
void fnTurn_motor4( long m4_Steps)
void fn_Turn( long m1_Steps, long m2_Steps)
void fn_Turn2( long m3_Steps, long m4_Steps)

Descriptions of the exported functions:


int set_controller1 (int parallel_port)

This function sets the address of the parallel port for controller 1. The accepted values for parallel_port are:

   1 -- sets port memory address to LPT1 = h378 = 888
   2 -- sets port memory address to LPT2 = h278 = 632
   3 -- sets port memory address to LPT3 = h3BC = 956


int set_controller2 (int parallel_port)

This function sets the address of the parallel port for controller 2. The accepted values for parallel_port are:

   1 -- sets port memory address to LPT1 = h378 = 888
   2 -- sets port memory address to LPT2 = h278 = 632
   3 -- sets port memory address to LPT3 = h3BC = 956


void set_motor1_direction(int motor1_dir)

Sets the direction for Motor 1. Accepted values for motor1_dir are:

   0 -- clockwise rotation*
   1 -- counterclockwise rotation*

*The actual direction of rotation will depend on how the motor is connected to the board.


void set_motor2_direction(int motor2_dir)

Sets the direction for Motor 2. Accepted values for motor2_dir are:

   0 -- clockwise rotation*
   1 -- counterclockwise rotation*

*The actual direction of rotation will depend on how the motor is connected to the board.


void set_motor3_direction(int motor3_dir)

Sets the direction for Motor 3. Accepted values for motor3_dir are:

   0 -- clockwise rotation*
   1 -- counterclockwise rotation*

*The actual direction of rotation will depend on how the motor is connected to the board.


void set_motor4_direction(int motor4_dir)

Sets the direction for Motor 4. Accepted values for motor4_dir are:

   0 -- clockwise rotation*
   1 -- counterclockwise rotation*

*The actual direction of rotation will depend on how the motor is connected to the board.


int get_motor1_direction()

Returns either 0 or 1, designating the direction of rotation of Motor 1 (see set_motor1_direction).


int get_motor2_direction()

Returns either 0 or 1, designating the direction of rotation of Motor 2 (see set_motor2_direction).


int get_motor3_direction()

Returns either 0 or 1, designating the direction of rotation of Motor 3 (see set_motor3_direction).


int get_motor4_direction()

Returns either 0 or 1, designating the direction of rotation of Motor 4 (see set_motor4_direction).


void set_motor1_delay(int motor1_delay_time)

Sets the delay between steps for Motor 1 in milliseconds. Acceptable values for motor1_delay_time are from 1 to 32767 (0.001 to 32.767 seconds between steps).


void set_motor2_delay(int motor2_delay_time)

Sets the delay between steps for Motor 2 in milliseconds. Acceptable values for motor2_delay_time are from 1 to 32767 (0.001 to 32.767 seconds between steps).


void set_motor3_delay(int motor3_delay_time)

Sets the delay between steps for Motor 3 in milliseconds. Acceptable values for motor3_delay_time are from 1 to 32767 (0.001 to 32.767 seconds between steps).


void set_motor4_delay(int motor4_delay_time)

Sets the delay between steps for Motor 4 in milliseconds. Acceptable values for motor4_delay_time are from 1 to 32767 (0.001 to 32.767 seconds between steps).


int get_motor1_delay()

Returns the delay between steps in milliseconds for Motor 1.


int get_motor2_delay()

Returns the delay between steps in milliseconds for Motor 2.


int get_motor3_delay()

Returns the delay between steps in milliseconds for Motor 3.


int get_motor4_delay()

Returns the delay between steps in milliseconds for Motor 4.


void fn_TurnCon1(long m1_StepsVal, long m2_StepsVal)

Rotates motors 1 and 2, the two motors connected to controller 1. Motor 1 will rotate [m1_StepsVal] steps, and Motor 2 will rotate [m2_StepsVal] steps. Accepted values for m1_StepsVal and m2_StepsVal are from 0 to 2147483647, inclusive.


void fn_TurnCon2(long m3_StepsVal, long m4_StepsVal)

Rotates motors 3 and 4, the two motors connected to controller 2. Motor 3 will rotate [m3_StepsVal] steps, and Motor 4 will rotate [m4_StepsVal] steps. Accepted values for m3_StepsVal and m4_StepsVal are from 0 to 2147483647, inclusive.


void StopRotation()

Sets the number of steps for all motors to 0, stopping the rotation of all motors.


void StopRotationM1()

Sets the number of steps for Motor 1 to 0, stopping the rotation of Motor 1.


void StopRotationM2()

Sets the number of steps for Motor 2 to 0, stopping the rotation of Motor 2.


void StopRotationM3()

Sets the number of steps for Motor 3 to 0, stopping the rotation of Motor 3.


void StopRotationM4()

Sets the number of steps for Motor 4 to 0, stopping the rotation of Motor 4.


DLLVersion()

Returns the version number of the StepperControl.dll file.


__int64 GetSystemCounter()

Returns the value of the PC's internal system clock. The units of this value are clock cycles since the last overflow. This value is used with the system clock frequency to time events with high resolution.


__int64 GetSystemFrequency()

Returns the value of the PC's internal system clock's frequency, in number of cycles per second. To get the time elapsed, divide the number of cycles by the frequency.


__int64 SystemDelay()

Calls the C function QueryPerformanceCounter twice and returns the difference between the first call and the second. This function then returns the number of system clock cycles that elapsed between the two calls.


void OutStepDLL( short PortAddress, short Data)

Writes the value of Data to the port at address PortAddress. See
set_controller1 for valid values for PortAddress.


void InStepDLL( short PortAddress)

Reads the value of the data in the port at address PortAddress. See
set_controller1 for valid values for PortAddress.




 
 
 
Home - Controllers - Motors - Software - Order - FAQs - Contact Us
Copyright © 2004, Mill-Shaf Technologies, Inc.
All Rights Reserved