This part is for members
Membership opens soon. Leave your email and we'll tell you the day it does. Founding members get the launch price.
Keep watching the free partsPP mode: when a target counts
24a and 24b followed the planner; this one is the PP mode around it. Running example: a CANopen master sends 24a's move (0x607A = 262,144, controlword 0x0F → 0x1F); the pp25 bench runs the bus build (the real CiA402 code) and records, tick by tick, the master's writes, what PpModeRun hands the planner and the target-reached bit. Seven stops: writing 0x607A only sets Target_position (after a software-limit check, by default the whole 64-bit range), and without an edge the motor never moves; the bit-4 rising edge is seen inside the write by ControlwordBit4UpedgeCheck, which raises the new-set-point flag (if bit 4 rose before the target write, it latched the old target); the next tick PpModeRun latches Target_position into position_target_last, once (under host control it latches every tick, which is why 24b's targets counted at once); plus home_offset (0, → 25c) it goes to 24a's planner; target reached ignores the planner and needs |Target_position − motor| ≤ 100 for 20 ms: the motor enters the window at tick 2961, reached is reported at tick 3162, 27 counts short, statusword 0x1237 → 0x1637; writing only 0x607A = 140,000 mid-move, with no edge, leaves the old move running and reached is never reported, while a new edge brings 24b's overshoot and return, reached at tick 4000; quick stop 0x1B: the default deceleration is 0xFFFFFFFF counts/s² (1,966,080 rpm/s), the command stops in 3 ticks, the motor runs 1,125 counts on at the 6.5 A limit and is pulled back, and after 20 ms under 10 rpm the drive is disabled at tick 1910. Aside: a target beyond the software limit is refused yet answered as success and reported as reached, a real bug; the patched copy from fix/target-position-limit-abort answers 0x06090031. Your turn: quick-stop deceleration 6000 rpm/s stops at 196,475 (24b's halt point).