HW1483597-C 16 编程 16.6 编程时的注意事项 16.5.2 任务的优先级和能使用的 API 根据任务的优先级,对能使用的 API 有限制。以下表示优先级和能使用的 API。由于下述以外的 API的处理时间较长,请不要使用高优先级的任务。 优先级 能使用的 API I/O 控制周期通知 mpReadIO, mpWriteIO, mpGetUserVars, 任务用 mpPutUserVars, mpMsgQSend, mpErrMsgQSnd, mpSemGive, mpTaskDelay, 插补周期通知 mpGetRtc, mpClkAnnounce, 任务用 mpStopWatchCreate, mpStopWatchDelete, mpStopWatchStart, mpStopWatchStop, mpStopWatchLap, mpStopWatchReset,mpStopWatchGetTime, mpStopWatchGetLapNum, mpStopWatchGetLapTime, mpStopWatchGetAliveLapNo, mpUsrWdogStart, mpUsrWdogClear, mpSvsGetVelTrqFb, mpSvsSetTrqLimit, mpSvsSetTrqCtrl, mpCtrlGrpId2GrpNo 上述 API(I/O 控制周期通知任务能使用的 API) ,mpMeiGetJobExecTask, mpMeiGetInterpolation, mpMeiGetExecControlGroup, mpMeiPutCorrPath, mpMeiPutForcePathEnd, mpMeiPutSpdOverride, mpMeiIncrementMove, mpExRcsIncrementMove 高优先级 上述 API(插补周期通知任务能使用的 API), mpGetVarData, mpGetSVarData, mpGetPosVarData, mpPutVarData, mpPutSVarData, mpPutPosVarData, mpSocket, mpListen, mpAccept, mpBind, mpConnect, mpRecv, mpRecvfrom, mpSend, mpSendto, mpClose, mpHtonl, mpHtons, mpNtohl, mpNtohs, mpInetAddr, mpInetNtoa, mpInetNtoaB, mpGetsockname, mpGetpeername, mpSetsockopt, mpIoctl, mpSelect, mpRsOpen, mpRsClose, mpRsSend, mpRsRecv, mpConvAxesToCartPos, mpConvCartPosToAxes, mpConvPulseToAngle, mpConvAngleToPulse, mpConvFBPulseToPulse, mpMakeFrame, mpInvFrame, mpRotFrame, mpMulFrame, mpZYXeulerToFrame, mpFrameToZYXeuler, mpCrossProduct, mpInnerProduct 16.6 编程时的注意事项 C 语言编程可以使用存储有内存地址的指针变量。如果错误进 行此指针变量的操作,有可能改写系统内存区域。 如果改写系统内存区域,软件将意外停机(通过看门狗检查 功能检测出来,切断伺服,关闭系统。)、发生报警导致机器人 运行停止、示教器不能操作等严重问题的发生。 16-3 HW1483597-C