MotorStateMoverExpanded
Expanded motor state mover (variant 2).
A self-contained replacement for the Typhos expert screen (no Typhos dependency):
the plain MotorStateMover on top (with its own Expert Screen button
hidden – we are already in the expert screen), then a tab group with
Normal – always present: the raw device signals (busy, done, error, error_id, error_message, reset_cmd), matching the plain state-mover expert screen.
Configuration – shown only when there is a state count and a token list, from the caller or published by the IOC (the plain expert screen has no config tab; the configured one does). A read-only per-state config grid whose size is driven by two properties instead of a fixed .ui:
stateCount– number of states (grid rows).deviceTokens– comma-separated per-device tokens (grid columns). The tokens are device specific (e.g.D1M1,D3M1) and cannot be generated from a count, so they are listed explicitly.device_count== number of tokens.
Both are optional: the IOC (pytmc) publishes the layout as
{device}:STATE:MOTOR_TOKENS_RBV.VAL$,STATE_COUNT_RBVandSTATE_INDEX_DIGITS_RBV. When set, they are checked against it (unknown tokens dropped, an oversized count capped, each with a warning and a tooltip); without those PVs (older IOCs) they are used as given.maxVisibleStates/maxVisibleMotorsset how many rows / columns show before the grid scrolls, so the window size does not depend on the table.Diagnostics – shown when the device and tokens are available. Per-motor
MOVINGandSTATUS(relative to the goal state), a red status on an axis error, and a cog button opening the motor’s own expert screen (motorType).
Everything here is read-only display (plus the reset command). Colors and fonts
live in motor_state_mover_expanded.qss; the code only tags widgets for it.
Config cells
resolve to:
ca://{motor}:STATE:{token}:{NN}:{leaf}_RBV
with {NN} the zero-padded state index (2 digits, or the width the IOC
publishes) and {leaf} one of NAME, SETPOINT.
MotorStateMoverExpanded
MotorStateMoverExpandedPMPS
- class pcdswidgets.motion.common.motor_state_mover_expanded.MotorStateMoverExpandedPMPS(parent: QWidget | None = None)[source]
PMPS variant: the Configuration tab holds the PMPS controls (arb_enable, maint_mode) – each a value readback plus a setpoint selector, sharing the ${DEVICE} prefix – with the per-state motor grid shown below them (when state count / tokens are supplied).