gantry_backend
gantry_backend
Backend abstractions for gantry-level behavior.
This module centralizes backend-specific operations that are not purely per-axis concerns (for example a single HOME command for all FPosB axes).
ControllerDiagnostics
Bases: TypedDict
Controller diagnostics payload returned by gantry backends.
GantryBackend
Bases: Protocol
Protocol for backend-specific gantry actions.
A backend may own shared resources (for example a TCP client) and can expose backend capabilities such as PLC teaching commands.
client
property
Return the shared FPosBAPI client if this backend uses one.
backend_identity
controller_diagnostics
home
close
supports_teach
teach_pos
teach_tray
ModbusGantryBackend
Gantry backend for direct Modbus axes.
This backend owns no shared resources and uses per-axis operations only.
backend_identity
controller_diagnostics
home
close
supports_teach
teach_pos
teach_tray
Raise for unsupported teaching operations.
FPosBAPIGantryBackend
Gantry backend for PLC-controlled FPosBAPI systems.
Store the shared client.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
FPosBAPIClient
|
Shared PLC TCP client. |
required |
owns_client
|
bool
|
When |
True
|
Source code in src/applied_motion/backends/gantry_backend.py
backend_identity
Return FPosBAPI backend identity including endpoint.
controller_diagnostics
Return controller diagnostics from shared client.