2-Axis Ratio Motion - ICP DAS USA I-8092F User Manual

2-axis motion control module
Hide thumbs Also See for I-8092F:
Table of Contents

Advertisement

YES
NO
Example:
BYTE cardNo=1;
int
sv=100;
int
v=3000;
int
a=2000;
int d=2000;
i8092MF_SET_MAX_V(cardNo, AXIS_XY, 20000);
//set the maximum speed to 20K PPS.
BYTE nType[10]= {
long
cp1[10]=
long
cp2[10]=
long
fp1[10]=
long
fp2[10]=
//put data of the required segments in arrays.
i8092MF_CONTIUNE_INTP(
cardNo, AXIS_X, AXIS_Y, 0, 1, sv, v, a, d, nType, cp1, cp2, fp1, fp2);
//execute the 2-axis continuous interpolation.
//The deceleration point will be calculated automatically.
//For this example, the final position of this motion will return to the starting
point.

6.3.4 2-Axis Ratio Motion

BYTE i8092MF_RATIO_INITIAL(BYTE
Description:
This function sets the Initial values for ratio motion (motion in ratio) using a
symmetric T-curve speed profile. However, it is a software macro-function;
therefore, it requires CPU resource to run this function.
Parameters:
cardNo:
SV:
V:
A:
ratio:
ICPDAS
An error has occurred. Use the
i8092MF_GET_ERROR_CODE () function to identify the error.
No errors.
//select module 1.
//set the starting speed to 100 PPS.
//set the speed to 3000 PPS.
//set the acceleration to 2000 PPS/Sec.
//set the deceleration to 2000 PPS/Sec.
1,
2,
{
0, 10000,
{
0,
0,
{ 10000, 10000, 1000, 10000,-31000,0,0,0,0,0};
{ 10000, 10000,
DWORD
Module number
Set the value for the starting speed ( in PPS).
Set the value for the vector speed (in PPS).
Set the acceleration value (in PPS/Sec).
Set the ratio value between the two assigned axes.
1,
2,
1,7,0,0,0,0};
0,
0,
0,0,0,0,0,0};
0,-10000,
0,0,0,0,0,0};
0,-10000,-10000,0,0,0,0,0};
DWORD
cardNo,
float
A,
ratio)
69
I-8092F Software User Manual
SV ,
DWORD
V ,

Advertisement

Table of Contents
loading

Table of Contents