Size: 995
Comment:
|
Size: 1892
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
GASとIPをリモートで動かすためのシステム * ハードウェア構成は関口さんと同じで、操作マニュアルが用意されている() * USB接続でしか制御できなかったので、ネットワーク経由でリモートで動かせるようにした * medmで操作するためにEPICSチャンネルも用意した |
|
Line 5: | Line 10: |
Line 6: | Line 12: |
ステッピングモータは計算機ネットワーク上(10.68.150.**)にあるドライバ(TMCM6110)から制御され,ユーザはドライバにたいしてTelnetで制御コマンドを送信する形になっている。 もともとTMCM6110への制御コマンドはRS485でしか受け付けないので,NportのRS485-Ethernet変換器にある Reverse Telnet モードにすることで,TMCM6110をネットワーク上においている。 ネットワークにおいたことによってユーザの環境に依存せずにTelnetでコマンド送信ができ,計算機ネットワークにいればどこにいても操作ができるので便利である。 以前はRealCOMモードとよばれる,Ethernetケーブルをつかって仮想的なCOMポートをユーザのPCに開いて制御コマンドを送っていた。 セットアップのマニュアルは[]を参考。 |
[[attachment:configuration|{{attachment:スクリーンショット 2017-05-01 19.20.17.png|latest sensitivity curve|width="600"}}]] |
Line 17: | Line 15: |
ユーザがTelnetでコマンドを送信するには,(1)Nport5150のRS485-Ethernet変換の設定(2)TMCM6110の環境設定が必要である。 === Nport5150の設定 === [[attachment:configuration|{{attachment:SerialSetting.png|latest sensitivity curve|width="900"}}]] [[attachment:configuration|{{attachment:NportSetting.png|latest sensitivity curve|width="900"}}]] [[attachment:configuration|{{attachment:NetworkSetting.PNG|latest sensitivity curve|width="600"}}]] Please change the IP address according to where you want to use it. === TMCM6110の設定 === Do not use in ASCII mode. Use binary mode. === How to control the motors from python script === (On 17/10/5) * Go to the directory: /kagra/Dropbox/Subsystem/VIS/TypeBp/Script/steppingmotor/ * start ipython * in ipython, type the command as follows. {{{ from Trinamic_control6110 import * driver = Trinamic_control6110() driver.connectTCP('your ip address', 4001) driver.reconnect() }}} and if it says '...ok', the motors are replying. If error occurs, try to restart the motor drivers as well as Nport. Just turn off and on the power. * In order to move it, {{{ driver.setTargetPosition(step,motor_number) }}} Insert the relative step in to the 'step', and insert the motor number into 'motor_number.' |
Overview
GASとIPをリモートで動かすためのシステム
- ハードウェア構成は関口さんと同じで、操作マニュアルが用意されている()
- USB接続でしか制御できなかったので、ネットワーク経由でリモートで動かせるようにした
- medmで操作するためにEPICSチャンネルも用意した
DriverList
Configuration
Setup
ユーザがTelnetでコマンドを送信するには,(1)Nport5150のRS485-Ethernet変換の設定(2)TMCM6110の環境設定が必要である。
Nport5150の設定
Please change the IP address according to where you want to use it.
TMCM6110の設定
Do not use in ASCII mode. Use binary mode.
How to control the motors from python script
(On 17/10/5)
* Go to the directory: /kagra/Dropbox/Subsystem/VIS/TypeBp/Script/steppingmotor/
* start ipython
* in ipython, type the command as follows.
from Trinamic_control6110 import * driver = Trinamic_control6110() driver.connectTCP('your ip address', 4001) driver.reconnect()
and if it says '...ok', the motors are replying. If error occurs, try to restart the motor drivers as well as Nport. Just turn off and on the power.
* In order to move it,
driver.setTargetPosition(step,motor_number)
Insert the relative step in to the 'step', and insert the motor number into 'motor_number.'