SICS-587 (in progress) Put IP and PORT configurations in a single file.

TODO environment
This commit is contained in:
Ferdi Franceschini
2013-05-06 20:41:37 +10:00
parent 3e33a7b8b2
commit 5c76f7a243
5 changed files with 56 additions and 24 deletions

View File

@@ -10,31 +10,15 @@ set use_tiltstage 0
set animal taipan
set sim_mode [SplitReply [motor_simulation]]
# Setup addresses of Galil DMC2280 controllers.
set dmc2280_controller1(host) [hostnam mc1-$animal]
set dmc2280_controller1(port) [portnum pmc1-$animal]
set dmc2280_controller2(host) [hostnam mc2-$animal]
set dmc2280_controller2(port) [portnum pmc2-$animal]
set dmc2280_controller3(host) [hostnam mc3-$animal]
set dmc2280_controller3(port) [portnum pmc3-$animal]
set dmc2280_controller4(host) [hostnam mc4-$animal]
set dmc2280_controller4(port) [portnum pmc4-$animal]
set dmc2280_controller6(host) [hostnam mc6-$animal]
set dmc2280_controller6(port) [portnum pmc6-$animal]
if {$sim_mode == "true"} {
set motor_driver_type asim
} else {
set motor_driver_type DMC2280
MakeAsyncQueue mc1 DMC2280 $dmc2280_controller1(host) $dmc2280_controller1(port)
MakeAsyncQueue mc2 DMC2280 $dmc2280_controller2(host) $dmc2280_controller2(port)
MakeAsyncQueue mc3 DMC2280 $dmc2280_controller3(host) $dmc2280_controller3(port)
MakeAsyncQueue mc4 DMC2280 $dmc2280_controller4(host) $dmc2280_controller4(port)
MakeAsyncQueue mc6 DMC2280 $dmc2280_controller6(host) $dmc2280_controller6(port)
MakeAsyncQueue mc1 DMC2280 [dict get $::MOTOR_HOSTPORT MC1 HOST] [dict get $::MOTOR_HOSTPORT MC1 PORT]
MakeAsyncQueue mc2 DMC2280 [dict get $::MOTOR_HOSTPORT MC2 HOST] [dict get $::MOTOR_HOSTPORT MC2 PORT]
MakeAsyncQueue mc3 DMC2280 [dict get $::MOTOR_HOSTPORT MC3 HOST] [dict get $::MOTOR_HOSTPORT MC3 PORT]
MakeAsyncQueue mc4 DMC2280 [dict get $::MOTOR_HOSTPORT MC4 HOST] [dict get $::MOTOR_HOSTPORT MC4 PORT]
MakeAsyncQueue mc6 DMC2280 [dict get $::MOTOR_HOSTPORT MC6 HOST] [dict get $::MOTOR_HOSTPORT MC6 PORT]
}
#Measured absolute encoder reading at home position