|
YARP CiA-402 EtherCAT Device 0.6.0
YARP device plugin for EtherCAT CiA-402 drives
|
How YARP control modes map to CiA‑402 operation modes and which targets are used, with brief notes on conversions.
| YARP mode | CiA‑402 op (6060) | Target written | Feedback read | Notes |
|---|---|---|---|---|
| POSITION | 1 (PP) | Target position | Position actual | Uses 0x6081/0x6083 (profile params) |
| POSITION_DIRECT | 8 (CSP) | Target position (cyc) | Position actual | Not Implemented |
| VELOCITY | 9 (CSV) | Target velocity | Velocity actual | Units converted to rpm on loop shaft |
| TORQUE | 10 (CST) | Target torque | (optional) torque actual | Joint Nm → motor Nm → per‑thousand |
| CURRENT | 10 (CST) | Target torque | (optional) torque actual | A → motor Nm via torque const → per‑thousand |
| IDLE / FORCE_IDLE | 0 | — | Statusword | Power stage disabled / reset |
See protocol_map.md for exact object indices and data types.
use_simple_pid_mode: when true the driver configures 0x2002:00 = 1 (Simple PID); when false it configures 0x2002:00 = 2 (Cascaded PID).simple_pid_kp_nm_per_deg: joint-side proportional gain list (Nm/deg). Converted to the drive’s simple PID units [mNm/inc] using the configured encoder source and gear ratio.simple_pid_kd_nm_s_per_deg: joint-side derivative gain list (Nm*s/deg). Converted to [mNm*s/inc] with the same transforms.use_simple_pid_mode=true, the driver programs 0x2012:01/03 with the converted gains, and zeroes 0x2012:02 (Ki).use_simple_pid_mode=false, any simple_pid_* keys are ignored to avoid applying the simple-PID conversion rules while in cascaded PID structure.