plcopen 0.22.0
载入中...
搜索中...
未找到
adapters 目录参考
adapters 的目录依赖关系图
core/adapters

文件

 
cia402.h
 
feedback_guard.h
 
feetech.h
 
ipc_transport.h
 
mode_manager.h
 
servo.h

详细描述

L7 adapters

core/adapters owns the ADR-0004 hardware boundary: the stable narrow Servo interface, the executor-side bridge helpers, the ServoSim reference drive, the CiA402 (DS402) power state machine, and the CSP/CSV/CST mode-manager skeleton。Feetech STS S2 协议层(KB-074)已交付: 协议 0 固定容量帧/流解析、FeetechBus、FeetechServo 与 FeetechSim, 不含串口 IO。官方动态单位与 Status 位仍由 4.8 真机关卡阻止 S5。

Composition rule (ADR-0004 + ADR-0007): the core L5 never holds a Servo pointer。宿主执行器按 ADR-0007 双线程形态 组合:规划域线程拥有 AxisGroup/AxisModel、产出承诺轨迹环;RT 线程消费 环、在周期边界调用 Servo 接口并把反馈桥接回既有 AxisModel 钩子。 Adapters are outer-ring composition; the core keeps value semantics, deterministic replay, and zero OS contact. The bridge is proven semantics-free by the twin equivalence test (command domain identical cycle by cycle). st 语言层(core/st)是与 adapters 平行的另一外圈消费面(只 消费 fb/basic.h 与 rt/error.h)。

X5 在该稳定 Servo 边界补齐 ADR-0006 的 IPC 软件形态: ipc_transport.h 定义带 magic/version/record-size 的固定宽度 setpoint/ feedback SPSC 与状态双缓冲,rt/ipc_channel.h 提供映射期 owner 不可转让、 同 token 不可重复 claim、bounded、无 OS 接触的原语。Windows/Linux 命名共享内存只存在于显式 integration harness;默认 CTest 不创建进程,且该 harness 不构成权限边界。

B5 scope (real-drive context, plcopen-fieldbus repository): object-dictionary mode handshakes, bus I/O, DC clock alignment. The interface itself stays allocation-free and exception-free; 线程与时钟归宿主执行器所有(ADR-0007), 内核不触 OS 与总线。

T28 反馈通道毒性防线(KB-105,servo.h + feedback_guard.h):bridge_feedback 对数值非有限反馈整帧原子拒绝(不部分覆写数字 IO 与 AxisInfoInputs); FeedbackGuard 为宿主执行器提供每轴零分配的有界状态机防护(首帧免跳变、单拍位置跳变 与速度/加速度/扭矩包络检查、可配连续容错次数 $K \in [1, 16]$、达限调用 set_power_feedback(false) 触发 ErrorStop 且锁存不自愈、reanchor() 支持合法 坐标重映射),规格见 doc/compliance/feedback-toxicity-semantics.md。