This example shows how to create a widget for a group of motors.
$Spc::res_h{ blsc} = "sltd"; # # slits # $Spc::res_h{ sltd_title} = { text => "Sltd"}; $Spc::res_h{ sltd_m17} = { name => "Mot17", alias => "Left", unit => "mm"}; $Spc::res_h{ sltd_m18} = { name => "Mot18", alias => "Right", unit => "mm"}; $Spc::res_h{ sltd_m19} = { name => "Mot19", alias => "Top", unit => "mm"}; $Spc::res_h{ sltd_m20} = { name => "Mot20", alias => "Bottom", unit => "mm"}; $Spc::res_h{ sltd_single} = 1; # optional
If the 'single' flag is defined and if it is set to 1, only single motor movements are allowed.
$Spc::res_h{ sltd_mt17} = { name => "Mot17", alias => "Left", unit => "mm"};
Specifies a motor, the line consists of a name, an alias and the unit. Online creates an entry widget for the motors which allows the user to specify a movement. |