Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
elerac authored Jan 8, 2020
1 parent 9955bbd commit 596d202
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,24 @@ spd_max = 5000 #最大速度[PPS]
acceleration_time = 200 #加減速時間[mS]
polarizer.set_speed(spd_min, spd_max, acceleration_time)
```

### ジョグ運転
ステージを連続で回転させることができます.
```python
polarizer.jog() #+方向に回転
time.sleep(1) #1秒待つ
polarizer.stop() #ステージ停止

polarizer.jog(reverse=True) #-方向に回転
time.sleep(1) #1秒待つ
polarizer.stop() #ステージ停止
```

### 移動中に別の動作を行う
`reset``degree`でのステージの移動において,デフォルトでは移動が完了するまで待つ処理を行っています.移動中にも別の処理を行いたい場合は,メンバ変数`is_sleep_until_stop``False`に設定してください.
```python
polarizer.is_sleep_until_stop = False #移動完了を待つフラグをFalseにする
polarizer.degree = 180 #移動開始(移動完了を待たずに次の処理に行く)
"""ここに移動中に行う処理を書く"""
polarizer.sleep_until_stop() #明示的に移動完了を待つ
```

0 comments on commit 596d202

Please sign in to comment.