EasyManua.ls Logo

Fastech Ezi-Step Plus-R

Fastech Ezi-Step Plus-R
114 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
- 74 -
74
Library for PC Program
FAS_GetMotionStatus
To read the motion status of current motor at one time
Syntax
int FAS_GetMotionStatus(
BYTE nPortNo,
BYTE iSlaveNo,
long* lCmdPos,
long* lActPos,
long* lPosErr,
long* lActVel,
WORD* wPosItemNo
);
Parameters
nPortNo
Port number of relevant drive.
iSlaveNo
Slave number of relevant drive.
lCmdPos
Parameter pointer where the command position value will be saved
lActPos
Parameter pointer where the actual position value will be saved .
lPosErr
Parameter pointer where the position error value will be saved
lActVel
Parameter pointer where the actual velocity value will be saved
wPosItemNo
Parameter pointer where current running item number in the Position Table will be
saved
Return Value
FMM_OK : Command has been successfully performed.
FMM_NOT_OPEN : The drive has not been connected yet .
FMM_INVALID_PORT_NUM : There is no nPort in the connected ports .
FMM_INVALID_SLAVE_NUM : There is no drive of iSlaveNo in the relevant port .
Remarks
Example
Refer to ā€˜FAS_MoveSingleAxisAbsPos’ library.
See Also

Table of Contents

Related product manuals