Overview
The Copley Motion Library (CML) is a C/C++ library for driving Copley amplifiers from your own application. For robotics, it coordinates multiple axes deterministically through EtherCAT Cyclic Synchronous modes, and it hands you direct control of trajectory generation and the kinematics.
CML Architecture
CML wraps the drives in an object-oriented API, with classes for amplifiers, trajectories, I/O, and the network. It handles the low-level bus traffic so you can stay in application code:
- Amp class: Motor configuration, mode control, and status monitoring
- Trajectory classes: PVT, PT, and streaming position profiles
- LinkTrajectory: Coordinated multi-axis motion with blending
- Network class: EtherCAT and CANopen bus management
- Event system: Asynchronous status and fault notification
Real-Time Cyclic Synchronous Control
When a robot needs deterministic timing, CML supports EtherCAT Cyclic Synchronous Position (CSP) mode: your host code computes and sends a fresh position command every cycle, typically every 1-4 ms. That's where your own inverse kinematics, path planning, and force control run, on the PC.
EtherCAT CSP cycle: Read actual position → Calculate kinematics → Write target position → Repeat at 250 Hz to 1 kHz. Jitter < 50 µs with appropriate OS configuration.Multi-Axis Coordination
CML's LinkTrajectory class runs synchronized multi-axis moves and profiles the velocity across all of them for you. Every axis starts, moves, and stops together no matter how far each one travels, which is what a Cartesian robot, SCARA arm, or gantry needs.
Typical applications
- Custom robotic controllers
- Multi-axis gantry systems
- Pick-and-place machines
- Test and measurement automation
Related products
Accelnet Plus • Xenus Plus • M-Series. See them on the Copley Controls page or ask us for a quote.