festo-edcon / Modbus Backend
The festo-edcon backend connects Python directly to each Festo drive using Modbus TCP.
Each logical axis is represented by an EdconAxis, and the gantry coordinates those axis objects through Gantry.
Architecture
Unlike FPosBAPI, there is no shared PLC socket. Each axis owns its own transport.
Axis Construction
You can construct axes directly:
Or, create through config:
Config Shape (Modbus)
Supported fields:
| Key | Required | Description |
|---|---|---|
backend |
No* | Defaults to "modbus" when omitted. |
axes |
Yes | Axis map with name + ip per axis. |
axis_order |
No | Execution/creation order (defaults to axes insertion order). |
concurrent_axes |
No | Optional subset of axis names that may be batched together. |
*Omitting backend still selects Modbus.
Motion Behavior
home()
For Modbus backend, Gantry.home() calls home() on each axis sequentially.
move_to(movements, timeout=None, concurrent=False)
concurrent=Truedispatches all valid moves in one parallel batch.concurrent=False(default) still usesconcurrent_axesgrouping when configured.
Each movement is a single-axis dict:
All user-facing position values are in mm.
Status and Diagnostics
Use get_status() for per-axis health plus summary booleans:
For Modbus backend, controller fields in status are None (no shared PLC controller API).
Error Handling
Axis-level move failures surface as MovementError from Gantry.move_to.
Malformed movement entries and unknown axis names are skipped and logged.