To read the actual position value of the m otor
int FAS_GetActualPos(
BYTE nPortNo,
BYTE iSlaveNo,
long* lActPos
);
nPortNo
Port number of relevant drive.
iSlaveNo
Slave number of relevant drive.
lActPos
Parameter pointer where the actual position value will be saved .
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 .
Can be used when external encoder is connected.
When the user decides the motor position and checks its actual pos ition, this function
is generally used.
Refer to ‘FAS_GetCOmmandPosition’ library.