Download AIMAIM Remote
Send me an Instant Message
Download AOL Instant Messenger
 

Note--this page is for our older Windows 95, 98, NT only DLL. For the new DLL click here.


A100SMC and A200SMC DLL File Exports

The following functions are exported from the DLL:

C Notation
void fnTurn_motor1(int m1_steps)
void fnTurn_motor2(int m2_steps)
void fnTurn_motor3(int m3_steps)
void fnTurn_motor4(int m4_steps)
float DLLVersion();
int set_controller1(int parallel_port);
int set_controller2(int parallel_port);
int get_motor1_direction();
int get_motor2_direction();
int get_motor3_direction();
int get_motor4_direction();
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_delay_time();
void set_delay_time(int delay_time_value);
void fn_Turn(int m1_steps, int m2_steps);
void fn_Turn2(int m3_steps, int m4_steps);
int get_input_S3();
int get_input_S5();

Descriptions of the exported functions:

fnTurn_motor1:

Description:
This function performs all of the motor rotation on motor1. It accepts one integer parameter.  The parameter  specifies the number of steps motor1 is to turn.  The speed, direction, parallel port address, and other variables are set by other functions.
[Top]

 

fnTurn_motor2:

Description:
This function performs all of the motor rotation on motor2. It accepts one integer parameter.  The parameter  specifies the number of steps motor2 is to turn.  The speed, direction, parallel port address, and other variables are set by other functions.

fnTurn_motor3:

Description:
This function performs all of the motor rotation on motor3. It accepts one integer parameter.  The parameter  specifies the number of steps motor3 is to turn.  The speed, direction, parallel port address, and other variables are set by other functions.
[Top]

 

fnTurn_motor4:

Description:
This function performs all of the motor rotation on motor4. It accepts one integer parameter.  The parameter  specifies the number of steps motor4 is to turn.  The speed, direction, parallel port address, and other variables are set by other functions.
[Top]

DLLVersion:

Description:
            This function returns the version of the StepperMotor DLL as a float value.
[Top]

set_controller1:

Description:
            This function set the parallel port used for controller 1. The values are:
1 - 0x378
2 - 0x278
3 - 0x3BC
[Top]

set_controller2:

Description:
            This function set the parallel port used for controller 2. The values are:
1 - 0x378
2 - 0x278
3 - 0x3BC
[Top]

get_motor1_direction:

Description:
This function returns the value for the motor1 rotation direction variable.  Each motor has two rotation directions.  The default value for the motor is 0.  A value of 1 causes the motor to rotate in the opposite direction. 
[Top]

get_motor2_direction:

Description:
This function returns the value for the motor2 rotation direction variable.  Each motor has two rotation directions.  The default value for the motor is 0.  A value of 1 causes the motor to rotate in the opposite direction. 
[Top]

get_motor3_direction:

Description:
This function returns the value for the motor3 rotation direction variable.  Each motor has two rotation directions.  The default value for the motor is 0.  A value of 1 causes the motor to rotate in the opposite direction. 
[Top]

get_motor4_direction:

Description:
This function returns the value for the motor4 rotation direction variable.  Each motor has two rotation directions.  The default value for the motor is 0.  A value of 1 causes the motor to rotate in the opposite direction. 
[Top]

set_motor1_direction:

Description:
This function accepts an integer parameter to set the value for the motor1 rotation direction variable.  Each motor has two rotation directions.  The default value for the motor is 0.  A value of 1 -- or any other integer than 0 -- causes the motor to rotate in the opposite direction.  
[Top]

set_motor2_direction:

Description:
This function accepts an integer parameter to set the value for the motor2 rotation direction variable.  Each motor has two rotation directions.  The default value for the motor is 0.  A value of 1 -- or any other integer than 0 -- causes the motor to rotate in the opposite direction.  . 
[Top]

set_motor3_direction:

Description:
This function accepts an integer parameter to set the value for the motor3 rotation direction variable.  Each motor has two rotation directions.  The default value for the motor is 0.  A value of 1 -- or any other integer than 0 -- causes the motor to rotate in the opposite direction.  . 
[Top]

set_motor4_direction:

Description:
This function accepts an integer parameter to set the value for the motor4 rotation direction variable.  Each motor has two rotation directions.  The default value for the motor is 0.  A value of 1 -- or any other integer than 0 -- causes the motor to rotate in the opposite direction.  . 
[Top]

get_delay_time:

Description:
This function returns the value of the current delay_time as evoked by the C Sleep() function call after each step is executed in the fnTurn function. The defualt value is set to 50.  
[Top]

set_delay_time:

Description:
This function accepts an integer parameter to set the value for the delay_time variable.  The delay_time variable is evoked by the C Sleep() function call after each step is executed in the  fnTurn function.  The default value is set to 50.  Values can typically range from 3 to the maximum integer size.  
[Top]

fn_Turn:

Description:
From oringial dll -- this function performs motor rotation. It accepts two integer parameters.  The first one specifies the number of steps motor1 is to turn and the second one specifies the number of steps motor2 is to turn.  The speed, direction, parallel port address, and other variables are set by other functions.  fn_Turn_motor1, fn_Turn_motor2 can be used in place of this function.
[Top]

fn_Turn2:

Description:
From oringial dll -- this function performs motor rotation. It accepts two integer parameters.  The first one specifies the number of steps motor3 is to turn and the second one specifies the number of steps motor4 is to turn.  The speed, direction, parallel port address, and other variables are set by other functions.  fn_Turn_motor3, fn_Turn_motor4 can be used in place of this function.
[Top]

get_input_S3:

Description: (Not yet available)
This function returns the value of the current S3 input.  Either 1 or 0 is returned.
[Top]

get_input_S5:

Description:(Not yet available)
This function returns the value of the current S5 input.  Either 1 or 0 is returned.
[Top]



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