ADLINK PCI-8144 User Manual

Page 160

Advertising
background image

150

Function Library

F64 *StrVelP

: The information of calculated start velocity

(pulse/sec)

F64 *MaxVelP

: The information of maximum velocity (pulse/

sec)

F64 *TaccP

: The information of acceleration time (sec)

F64 *MagnP

: Set to 0

Return Values:

EERR_ParametersInvalid

WAR_AccDecTimeToSmall

WAR_AccDecTimeToLarge

ERR_NoError

Example:

I16 ret; //return code

I16 AxisNo = 0; //axis number

F64 StrVel = 100.0; //start velocity (pps)

F64 MaxVel = 50000.0; //maximum velocity (pps)

F64 Tacc = 0.5; // acceleration time (sec)

F64 *StrVelP, MaxVelP, TaccP; //The speed profile

informations

ret = _8144_get_sv_move_profile(AxisNo, StrVel,

MaxVel, Tacc, &StrVelP, &MaxVelP, &TaccP, 0

);

See also:

_8144_sv_move()

_8144_get_tv_move_profile()

Advertising