long RobCheckErrorExist ( int idx );
指定のロボットでロボットエラーが発生していない場合は0を返却します。ロボットエラーが発生している場合は0以外を返却します。
idx:ロボットを指定するインデックス。
指定ロボットのロボットエラーの有無を調べます。
発生中のロボットエラーの詳細はRobGetErrorStatus関数で取得することができます。
〇PCベースコントローラ
〇InterMotion
int CheckRobotError() {
int rc;
if((RobCheckErrorExist(1) == 0) && (RobCheckErrorExist(2) == 0)) {
rc = 0; // 正常
}
else {
rc = 1; // ロボットエラーあり
}
return(rc);
}