LANGUAGE
日本語 English

関数名

RobStopMove

定 義

short RobStopMove ( short idx );

戻り値

0が返却されます。

引 数

idx:ロボットを指定するインデックス。

概 要

指定ロボットについて、実行中の移動動作を中止し、減速停止します。

詳 細

減速時間は、RobSetPtpStopDeceleration(PTP動作の場合)またはRobSetCpStopDeceleration(補間動作の場合)での指定に従います。詳細については、RobSetPtpStopDeceleration関数またはRobSetCpStopDeceleration関数の解説を参照してください。

備考

前処理の候補

後処理の候補

他処理の候補

対応HW

〇PCベースコントローラ
〇InterMotion

使用例


void main() {
	double rate[MaxRobAxes];
	short rob;
	rob = 1;
	・・・・
	//エラーリセット
	MwResetSystemError();
	RobResetError(rob);
	//サーボオンと原点復帰
	RobSetManipServoPower(rob, 1);
	Sleep(500);
	RobReturnHome(rob);
	//連続移動(非同期命令)
	RobSetPtpSpeed(rob, 20);
	RobSetPtpAccelerations(rob, 0.5, 0.5, 100, 100);
	rate[0] = 1.0;
	RobConstVelMove(rob, rate, 3);
	//入力ポートを監視してONになったら移動を減速停止する
	while(1) {
		if(ReadPort(2049) == 1) {
			RobStopMove(rob);
			break;
		}
	}
	RobSetManipServoPower(rob, 0);
	・・・・
}