The following are defined in the mks3.h header: MKS3ConstsIndexAngleSet(id, wIndex) _MKS3DoSetVal16(id, CMD_VAL16_INDEX_ANGLE, wIndex) MKS3ConstsIndexAngleGet(id, pIndex) _MKS3DoGetVal16(id, CMD_VAL16_INDEX_ANGLE, pIndex) MKS3ConstsPECRatioGet(id, pwRatio) _MKS3DoGetVal16(id, CMD_VAL16_PEC_RATIO, pwRatio) MKS3PosTargetGet(id, pPos) _MKS3DoGetVal32(id, CMD_VAL32_TARGPOS, pPos) MKS3Init(port) commInit(port) MKS3DataIndexSet(id, index) _MKS3DoSetVal16(id, CMD_VAL16_LOGGING_INDEX, index) MKS3RateSlewSet(id, dwRate) _MKS3DoSetVal32(id, CMD_VAL32_SLEW_VEL, dwRate) MKS3RateSlewGet(id, pRate) _MKS3DoGetVal32(id, CMD_VAL32_SLEW_VEL, pRate) MKS3RateCreepSet(id, dwRate) _MKS3DoSetVal32(id, CMD_VAL32_CREEP_VEL, dwRate) MKS3RateCreepGet(id, pRate) _MKS3DoGetVal32(id, CMD_VAL32_CREEP_VEL, pRate) MKS3PosCurGet(id, pPos) _MKS3DoGetVal32(id, CMD_VAL32_CURPOS, pPos) MKS3PosTargetSet(id, dwPos) _MKS3DoSetVal32(id, CMD_VAL32_TARGPOS, dwPos) MKS3PosRelativeSet(id, dwPos) _MKS3DoSetVal32(id, CMD_VAL32_RELPOS, dwPos) MKS3PosEncoderGet(id, pPos) _MKS3DoGetVal32(id, CMD_VAL32_ENCODER_POS, pPos) MKS3StateControlGet(id, pState) _MKS3DoGetVal16(id, CMD_VAL16_COMMAND_STATE, pState) MKS3StateServoGet(id, pState) _MKS3DoGetVal16(id, CMD_VAL16_SERVO_STATE, pState) MKS3MotorStatusGet(id, pState) _MKS3DoGetVal16(id, CMD_VAL16_MOTORSTAT, pState) MKS3FocusPulseSet(id, pulseLen) _MKS3DoSetVal16(id, CMD_VAL16_FOCUS_PULSE, pulseLen) MKS3FocusPulseGet(id, pPulseLen) _MKS3DoGetVal16(id, CMD_VAL16_FOCUS_PULSE, (CWORD16 *)(pPulseLen)) MKS3ButtonClickCountGet(id, pCount) _MKS3DoGetVal16(id, CMD_VAL16_BUTTON_CLICK, pCount) MKS3ButtonDblClickCountGet(id, pCount) _MKS3DoGetVal16(id, CMD_VAL16_BUTTON_DBL_CLICK, pCount) MKS3ConstsAccelSet(id, dwCoef) _MKS3DoSetVal32(id, CMD_VAL32_SQRT_ACCEL, dwCoef) MKS3ConstsAccelGet(id, pdwCoef) _MKS3DoGetVal32(id, CMD_VAL32_SQRT_ACCEL, pdwCoef) MKS3ConstsMaxPosErrorSet(id, wCoef) _MKS3DoSetVal16(id, CMD_VAL16_ERROR_LIMIT, wCoef) MKS3ConstsMaxPosErrorGet(id, pWCoef) _MKS3DoGetVal16(id, CMD_VAL16_ERROR_LIMIT, pWCoef) MKS3ConstsEmfSet(id, wCoef) _MKS3DoSetVal16(id, CMD_VAL16_EMF_FACTOR, wCoef) MKS3ConstsEmfGet(id, pWCoef) _MKS3DoGetVal16(id, CMD_VAL16_EMF_FACTOR, pWCoef) MKS3ConstsRateBaseSet(id, dwRate) _MKS3DoSetVal32(id, CMD_VAL32_BASERATE, dwRate) MKS3ConstsRateBaseGet(id, pRate) _MKS3DoGetVal32(id, CMD_VAL32_BASERATE, pRate) MKS3ConstsPECRatioSet(id, wRatio) _MKS3DoSetVal16(id, CMD_VAL16_PEC_RATIO, wRatio) MKS3ConstsLimMinGet(id, pPos) _MKS3DoGetVal32(id, CMD_VAL32_MIN_POS_LIM, pPos) MKS3ConstsLimMinSet(id, dwPos) _MKS3DoSetVal32(id, CMD_VAL32_MIN_POS_LIM, dwPos) MKS3ConstsLimMaxGet(id, pPos) _MKS3DoGetVal32(id, CMD_VAL32_MAX_POS_LIM, pPos) MKS3ConstsLimMaxSet(id, dwPos) _MKS3DoSetVal32(id, CMD_VAL32_MAX_POS_LIM, dwPos) MKS3ConstsVelSlewGet(id, pPos) _MKS3DoGetVal32(id, CMD_VAL32_CONSTS_VEL_SLEW, pPos) MKS3ConstsVelSlewSet(id, dwPos) _MKS3DoSetVal32(id, CMD_VAL32_CONSTS_VEL_SLEW, dwPos) MKS3ConstsVelCreepGet(id, pPos) _MKS3DoGetVal32(id, CMD_VAL32_CONSTS_VEL_CREEP, pPos) MKS3ConstsVelCreepSet(id, dwPos) _MKS3DoSetVal32(id, CMD_VAL32_CONSTS_VEL_CREEP, dwPos) MKS3ConstsVelGuideGet(id, pPos) _MKS3DoGetVal32(id, CMD_VAL32_CONSTS_VEL_GUIDE, pPos) MKS3ConstsVelGuideSet(id, dwPos) _MKS3DoSetVal32(id, CMD_VAL32_CONSTS_VEL_GUIDE, dwPos) MKS3ConstsMotorVoltMaxSet(id, wRatio) _MKS3DoSetVal16(id, CMD_VAL16_MOTOR_VOLT_MAX, wRatio) MKS3ConstsMotorVoltMaxGet(id, pwRatio) _MKS3DoGetVal16(id, CMD_VAL16_MOTOR_VOLT_MAX, pwRatio) MKS3ConstsMotorProportMaxSet(id, wRatio) _MKS3DoSetVal16(id, CMD_VAL16_MOTOR_PROPORT_MAX, wRatio) MKS3ConstsMotorProportMaxGet(id, pwRatio) _MKS3DoGetVal16(id, CMD_VAL16_MOTOR_PROPORT_MAX, pwRatio) MKS3ConstsHomeDirSet(id, wDir) _MKS3DoSetVal16(id, CMD_VAL16_HOMEDIR, wDir) MKS3ConstsHomeDirGet(id, pwDir) _MKS3DoGetVal16(id, CMD_VAL16_HOMEDIR, pwDir) MKS3ConstsHomeSense1Set(id, wSense) _MKS3DoSetVal16(id, CMD_VAL16_HOMESENSE1, wSense) MKS3ConstsHomeSense1Get(id, pwSense) _MKS3DoGetVal16(id, CMD_VAL16_HOMESENSE1, pwSense) MKS3ConstsHomeSense2Set(id, wSense) _MKS3DoSetVal16(id, CMD_VAL16_HOMESENSE2, wSense) MKS3ConstsHomeSense2Get(id, pwSense) _MKS3DoGetVal16(id, CMD_VAL16_HOMESENSE2, pwSense) MKS3ConstsHomeVelLoSet(id, dwVel) _MKS3DoSetVal32(id, CMD_VAL32_HOMEVEL_LO, dwVel) MKS3ConstsHomeVelLoGet(id, pdwVel) _MKS3DoGetVal32(id, CMD_VAL32_HOMEVEL_LO, pdwVel) MKS3ConstsHomeVelMedSet(id, dwVel) _MKS3DoSetVal32(id, CMD_VAL32_HOMEVEL_MED, dwVel) MKS3ConstsHomeVelMedGet(id, pdwVel) _MKS3DoGetVal32(id, CMD_VAL32_HOMEVEL_MED, pdwVel) MKS3ConstsHomeVelHiSet(id, dwVel) _MKS3DoSetVal32(id, CMD_VAL32_HOMEVEL_HI, dwVel) MKS3ConstsHomeVelHiGet(id, pdwVel) _MKS3DoGetVal32(id, CMD_VAL32_HOMEVEL_HI, pdwVel) MKS3ConstsHome2IndexSet(id, dwVel) _MKS3DoSetVal16(id, CMD_VAL16_HOME2INDEX, dwVel) MKS3ConstsHome2IndexGet(id, pdwVel) _MKS3DoGetVal16(id, CMD_VAL16_HOME2INDEX, pdwVel) MKS3ConstsHomeModeSet(id, dwVel) _MKS3DoSetVal16(id, CMD_VAL16_HOME_MODE, dwVel) MKS3ConstsHomeModeGet(id, pdwVel) _MKS3DoGetVal16(id, CMD_VAL16_HOME_MODE, pdwVel) MKS3ConstsPECCutSpeedSet(id, vel) _MKS3DoSetVal32(id, CMD_VAL32_PEC_CUT_SPEED, vel) MKS3ConstsPECCutSpeedGet(id, pVel) _MKS3DoGetVal32(id, CMD_VAL32_PEC_CUT_SPEED, pVel) MKS3UserSpaceErase(id) MKS3FlashErase(id, USER_FLASH_SECTOR) MKS3JoyVelIndexGet(id, pIndex) _MKS3DoGetVal16(id, CMD_VAL16_JOY_INDEX, pIndex) MKS3HomeSensorsGet(id, pSensors) _MKS3DoGetVal16(id, CMD_VAL16_HOME_SENSORS, pSensors) MKS3PECIndexGet(id, pIndex) _MKS3DoGetVal16(id, CMD_VAL16_PEC_INDEX, pIndex) MKS3PECDatumGet(id, index, pDatum) MKS3FlashRead(id, PEC_STORAGE_ADDR + (index), PEC_STORAGE_ADDR + (index), pDatum) MKS3PECDatumSet(id, index, Datum) MKS3FlashProgram(id, PEC_STORAGE_ADDR + (index), PEC_STORAGE_ADDR + (index), &(Datum)) MKS3PECTableErase(id) MKS3FlashErase(id, PEC_STORAGE_ADDR) CWORD16 _MKS3DoGetVal16 (const MKS3Id id, CWORD16 valId, CWORD16 * val16); CWORD16 _MKS3DoSetVal16 (const MKS3Id id, CWORD16 valId, CWORD16 val16); CWORD16 _MKS3DoGetVal32 (const MKS3Id id, CWORD16 valId, CWORD32 *val32); CWORD16 _MKS3DoSetVal32 (const MKS3Id id, CWORD16 valId, CWORD32 val32); CWORD16 MKS3StatusGet (const MKS3Id id, CWORD16 * pStat); CWORD16 MKS3VersionGet (const MKS3Id id, CWORD16 * pMajor, CWORD16 * pMinor, CWORD16 * pBuild); CWORD16 MKS3FlashErase (const MKS3Id id, CWORD16 address); CWORD16 MKS3FlashProgram (const MKS3Id id, CWORD16 startAdr, CWORD16 endAdr, CWORD16 * data); CWORD16 MKS3FlashRead (const MKS3Id id, CWORD16 startAdr, CWORD16 endAdr, CWORD16 * data); CWORD16 MKS3coff16download (const MKS3Id id, const char *coffName); CWORD16 MKS3RamRead (const MKS3Id id, CWORD16 startAdr, CWORD16 endAdr, CWORD16 * data); CWORD16 MKS3RamWrite (const MKS3Id id, CWORD16 startAdr, CWORD16 endAdr, CWORD16 * data); CWORD16 MKS3PosAbort (const MKS3Id id); CWORD16 MKS3MotorOn (const MKS3Id id); CWORD16 MKS3MotorOff (const MKS3Id id); CWORD16 MKS3MotorVoltageGet (const MKS3Id id, long *pSumVoltage, long *pCount); CWORD16 MKS3PECTableSet (const MKS3Id id, CWORD16 * data); CWORD16 MKS3PECTableGet (const MKS3Id id, CWORD16 * data); CWORD16 MKS3UserSpaceWrite (const MKS3Id id, CWORD16 startAdr, CWORD16 endAdr, CWORD16 * pData); CWORD16 MKS3UserSpaceRead (const MKS3Id id, CWORD16 startAdr, CWORD16 endAdr, CWORD16 * pData); CWORD16 MKS3ConstsUnitIdGet (const MKS3Id id, CWORD16 * pwId); CWORD16 MKS3ConstsUnitIdSet (const MKS3Id id, CWORD16 wId); CWORD16 MKS3ConstsStore (const MKS3Id id); CWORD16 MKS3ConstsReload (const MKS3Id id); CWORD16 MKS3MotorIndexFind (const MKS3Id id); CWORD16 MKS3MotorIndexMeasure (const MKS3Id id, CWORD16 * pIndex); CWORD16 MKS3Home (const MKS3Id id, long offset); CWORD16 MKS3HomePhaseGet (const MKS3Id id, CWORD16 * pPhase); CWORD16 MKS3DiagModeEnter (const MKS3Id id); CWORD16 MKS3DiagCurrentSet (const MKS3Id id, CWORD16 current); CWORD16 MKS3DiagAngleSet (const MKS3Id id, CWORD16 angle); CWORD16 MKS3DiagModeLeave (const MKS3Id id); CWORD16 MKS3ObjTrackInit (const MKS3Id id, MKS3ObjTrackInfo * pTrackInfo); CWORD16 MKS3ObjTrackPointAdd (const MKS3Id id, MKS3ObjTrackInfo * pTrackInfo, double timeSec, CWORD32 position, MKS3ObjTrackStat * pAddStat); CWORD16 MKS3ObjTrackEnd (const MKS3Id id); CWORD16 MKS3PosVelTimeGet (const MKS3Id id, long *pPos, long *pVel, long *pTime, long *pIndex); These are defined in the object module: MKS3StatusGet MKS3VersionGet MKS3MotorOff MKS3MotorOn MKS3FlashErase MKS3FlashProgram MKS3FlashRead MKS3RamWrite MKS3RamRead MKS3PosAbort MKS3ConstsUnitIdGet MKS3ConstsUnitIdSet MKS3ConstsStore MKS3ConstsReload MKS3MotorIndexFind MKS3MotorIndexMeasure MKS3MotorVoltageGet MKS3HomeStart MKS3HomePhaseGet MKS3Home MKS3PECTableSet MKS3PECTableGet MKS3UserSpaceWrite MKS3UserSpaceRead MKS3ObjTrackInit MKS3ObjTrackPointAdd MKS3ObjTrackEnd MKS3PosVelTimeGet MKS3DiagModeEnter MKS3DiagCurrentSet MKS3DiagAngleSet MKS3DiagModeLeave MKS3StatusGet MKS3FlashProgram MKS3FlashRead MKS3FlashProgram MKS3FlashRead