0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

日記;回すだけII ③GUIツールTMCM-CANopen Profile positionと Profile Velocity Mode

Last updated at Posted at 2021-10-01

Profile position mode

 このProfile position modeは、速度(Profile Velocity)と加速度(Profile acceleration)、減速度(Profile deceleration)と目標位置(Target position)を決めたら、そこまで勝手に加速、減速して止まるという動作をします。
 TMCM-CANopen Revision V1.5.0.0の最初の画面です。
t101.png
 Connectをクリックすると、左のエリアにメニューが並びます。xxxx.xxxxは読み出した型番です。本来ならPD42-1270と書かれているはずなのですが。

t102.png

 NMT(Network management)のタブをクリックし、Syncにチェックを入れ、Startを押し、Pre-Opを押します。これで、CANopenが動き始めました。
 Object Browser、CiA-402 State Machine、CiA-402 Profile Position Modeの三つを立ち上げて右側のエリアに並べます。
 IXXAT connectionの画面で、Reset Applをクリックします。
 Object Browserの画面でIndex 2005を選択し、Writeのボタンの左に3を入れ、Writeボタンをクリックします。これは、リミット・スイッチを無効にする設定です。今回はリミット・スイッチを用意しているのですが、この設定をしないとうまく動きませんでした。
 Object Browserの画面でIndex 6060を選択し、Writeのボタンの左に1を入れ、Writeボタンをクリックします。これは、Profile position modeの選択です。

t102a.png

 CiA-402 State Machineの画面で、Switch on disable、Ready to switch on、Switched on、Operation enabledを次々と押していきます。Switch on disableがグレイでReady to switch onが生きている場合は、Ready to switch onから順に押していきます。
 最終的な状態Current Stateを、Operation enabledに移行します。
t104.png
 
 CiA-402 Profile Position Modeの画面で、Cyclic Pollingをチェックすると、表示が常に更新されます。
 607A Target positionに100000とか適当な数値を入れ、リターンを押します。最後に Move absoluteボタンを押すと、6064 Actual Positionを更新しながら回転します。
 最後は、607A Target positionに入れた数値まで回転して止まります。
t105.png

 Move relativeボタンを押すと、ここでは6064 Actual Positionが20000まで回転します。

Profile Velocity Mode

 左のエリアにあるCiA-402 Profile Velocity Modeをクリックします。Profile Velocity Modeは、加減速を自分で設定できるモードです。Target velocityに設定する数値が大きいほど、高速に回転します。
t300.png
 前記のProfile position modeと手順は同じです。

① IXXAT connection画面のNMTタブで、Syncにチェックを入れ、Startをクリック、Pre-Opをクリック、Reset Applをクリック
② Object Browser画面でIndex 2005を選択し、Writeのボタンの左に3を入れ、Writeボタンをクリック
③ Object Browser画面でIndex 6060を選択し、Writeのボタンの左に1を入れ、Writeボタンをクリック
④ CiA-402 State Machineの画面で、Switch on disable、Ready to switch on、Switched on、Operation enabledを次々とクリックしていく。Switch on disableがグレイでReady to switch onが生きている場合は、Ready to switch onから順にクリック
⑤ CiA-402 Profile Velocity Modeの画面で、Cyclic Pollingをチェック
⑥ CiA-402 Profile Velocity Modeの画面で、60FF Target velocityの欄に60000リターン
⑦ 矢印などのボタンを押すと、606C Actual verocityの値がTarget velocityの設定値まで加速し、その後定速で回転する。絶対位置はCiA-402 Profile Position Modeの画面に表示されている

 CiA-402 Profile Position ModeとこのCiA-402 Profile Velocity Modeは、この設定で、どちらも同時に利用できます。
 

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?