SHOT-702¤
SHOT702
(Serial)
¤
SHOT702(equipment: Equipment)
flowchart LR
msl.equipment_resources.optosigma.shot702.SHOT702[SHOT702]
msl.equipment.interfaces.serial.Serial[Serial]
msl.equipment.interfaces.message_based.MessageBased[MessageBased]
msl.equipment.schema.Interface[Interface]
msl.equipment.interfaces.serial.Serial --> msl.equipment_resources.optosigma.shot702.SHOT702
msl.equipment.interfaces.message_based.MessageBased --> msl.equipment.interfaces.serial.Serial
msl.equipment.schema.Interface --> msl.equipment.interfaces.message_based.MessageBased
click msl.equipment_resources.optosigma.shot702.SHOT702 href "" "msl.equipment_resources.optosigma.shot702.SHOT702"
click msl.equipment.interfaces.serial.Serial href "" "msl.equipment.interfaces.serial.Serial"
click msl.equipment.interfaces.message_based.MessageBased href "" "msl.equipment.interfaces.message_based.MessageBased"
click msl.equipment.schema.Interface href "" "msl.equipment.schema.Interface"
Two-axis stage controller (SHOT-702) from OptoSigma.
The default baud rate is set to 38400 and the read/write termination characters are \r\n.
Regular-expression patterns that are used to select this Resource when connect() is called.
manufacturer=r"Opto\s*Sigma|Sigma\s*Koki"
model=r"SHOT-702"
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
equipment
|
Equipment
|
An Equipment instance. |
required |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | |
get_input_status
¤
get_input_status() -> int
Get the I/O input connector status.
Returns:
| Type | Description |
|---|---|
int
|
Can either be 0 or 1 (see manual). |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
143 144 145 146 147 148 149 | |
get_speed
¤
Get the speed that each stage moves to a position.
Returns:
| Type | Description |
|---|---|
tuple[Speed, Speed]
|
The speed of each stage, |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |
get_speed_origin
¤
Get the speed that each stage moves to the origin.
Returns:
| Type | Description |
|---|---|
tuple[Speed, Speed]
|
The speed of each stage, |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
get_steps
¤
Get the number of steps for each stage.
Returns:
| Type | Description |
|---|---|
tuple[int, int]
|
The number of steps for |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
181 182 183 184 185 186 187 188 | |
get_travel_per_pulse
¤
Get the travel per pulse for each stage.
Returns:
| Type | Description |
|---|---|
tuple[float, float]
|
The travel per pulse for |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
190 191 192 193 194 195 196 197 | |
get_version
¤
get_version() -> str
Get the firmware version number.
Returns:
| Type | Description |
|---|---|
str
|
The version number. |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
199 200 201 202 203 204 205 | |
home
¤
home(stage: Literal[1, 2, 'W']) -> None
Move the stage(s) to the home position.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
Literal[1, 2, 'W']
|
The stage(s) to home.
|
required |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |
is_moving
¤
is_moving() -> bool
Check if a stage is busy moving.
Returns:
| Type | Description |
|---|---|
bool
|
Whether a stage is busy moving. |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
222 223 224 225 226 227 228 | |
move
¤
Start moving the stage(s), at the minimum speed, in the specified direction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
Literal[1, 2, 'W']
|
The stage(s) to move.
|
required |
direction
|
Literal['+', '-', '++', '+-', '-+', '--']
|
The direction that the stage(s) should move.
|
required |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | |
move_absolute
¤
Move the stage(s) to the specified position.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
Literal[1, 2, 'W']
|
The stage(s) to move.
|
required |
position
|
int
|
The position the stage(s) should move to. |
()
|
Example
move_absolute(1, 1000)— move stage 1 to position 1000 in the+directionmove_absolute(2, -5000)— move stage 2 to position 5000 in the-directionmove_absolute('W', 1000, -5000)— move stage 1 to position 1000 in the+direction, and move stage 2 to position 5000 in the-direction
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | |
move_relative
¤
Move the stage(s) by a relative amount.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
Literal[1, 2, 'W']
|
The stage(s) to move.
|
required |
num_pulses
|
int
|
The number of pulses the stage(s) should move. |
()
|
Example
move_relative(1, 1000)— move stage 1 by 1000 pulses in the+directionmove_relative(2, -5000)— move stage 2 by 5000 pulses in the-directionmove_relative('W', 1000, -5000)— move stage 1 by 1000 pulses in the+direction, and move stage 2 by 5000 pulses in the-direction
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 | |
set_mode
¤
Set whether the stage(s) can be moved by hand or by the motor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
Literal[1, 2, 'W']
|
The stage(s) to set the mode of.
|
required |
mode
|
Literal[0, 1] | Mode
|
Whether the stage(s) can be moved by hand (0) or by motor (1). |
required |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 | |
set_origin
¤
set_origin(stage: Literal[1, 2, 'W']) -> None
Set the origin of the stage(s) to its current position.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
Literal[1, 2, 'W']
|
The stage(s) to set the home of.
|
required |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
311 312 313 314 315 316 317 318 319 320 321 322 323 324 | |
set_output_status
¤
set_output_status(status: Literal[0, 1]) -> None
Set the I/O output status.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
status
|
Literal[0, 1]
|
Can either be 0 or 1 (see manual). |
required |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
326 327 328 329 330 331 332 333 334 335 | |
set_speed
¤
Set the speed when moving to a position.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
Literal[1, 2, 'W']
|
The stage(s) to set the speed settings for.
|
required |
speeds
|
Speed
|
The speed settings. |
()
|
Example
set_speed(1, Speed(100, 1000, 50))— stage 1 moves at a minimum speed of 100 PPS, maximum speed of 1000 PPS and a 50 ms acceleration/deceleration time.set_speed("W", Speed(100, 1000, 50), Speed(200, 2000, 100))— stage 1 moves at a minimum speed of 100 PPS, maximum speed of 1000 PPS and a 50 ms acceleration/deceleration time, and, stage 2 moves at a minimum speed of 200 PPS, maximum speed of 2000 PPS and a 100 ms acceleration/deceleration time.
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | |
set_speed_origin
¤
Set the speed when moving to the origin.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
Literal[1, 2, 'W']
|
The stage(s) to set the speed settings for.
|
required |
speeds
|
Speed
|
The speed settings. |
()
|
Example
set_speed_origin(2, Speed(100, 1000, 50))— stage 2 moves at a minimum speed of 100 PPS, maximum speed of 1000 PPS and a 50 ms acceleration/deceleration time.set_speed_origin("W", Speed(100, 1000, 50), Speed(200, 2000, 100))— stage 1 moves at a minimum speed of 100 PPS, maximum speed of 1000 PPS and a 50 ms acceleration/deceleration time, and, stage 2 moves at a minimum speed of 200 PPS, maximum speed of 2000 PPS and a 100 ms acceleration/deceleration time.
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 | |
set_steps
¤
Set the number of steps that the stage motor will use.
See the manual for more details (the S command).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
Literal[1, 2]
|
The stage to set the steps of. |
required |
steps
|
int
|
The number of steps that the motor should use (must be one of
|
required |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
383 384 385 386 387 388 389 390 391 392 393 394 395 396 | |
status
¤
status() -> Status
Get the current position and state of each stage.
Returns:
| Type | Description |
|---|---|
Status
|
The current position and state of each stage. |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 | |
stop
¤
stop() -> None
Immediately stop both stages from moving.
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
424 425 426 427 428 429 | |
stop_slowly
¤
stop_slowly(stage: Literal[1, 2, 'W']) -> None
Slowly bring the stage(s) to a stop.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stage
|
Literal[1, 2, 'W']
|
The stage(s) to slowly stop.
|
required |
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
431 432 433 434 435 436 437 438 439 440 441 442 443 444 | |
wait
¤
Wait for all stages to finish moving.
This is a blocking call because it uses sleep.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
callback
|
Callable[[Status], None] | None
|
A callable function. The function will receive 1 argument, the Status |
None
|
sleep
|
float
|
The number of seconds to wait between calls to the |
0.05
|
Source code in packages/resources/src/msl/equipment_resources/optosigma/shot702.py
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 | |