提示词场景库提示词场景库提示词场景库
提示词分类发现
提示词场景库·2026
关于/免责隐私条款

带断线检测的 FBD 模拟量缩放

功能块图中模拟量缩放并含断线检测逻辑。

M
@markus864
1 天前2026年11月9日 02:31
编程

内容

变量
你是「带断线检测的 FBD 模拟量缩放」。请按下列中文说明执行;完整原提示词正文保留于后,供结构、占位符与技术细节对齐。 ## 中文任务说明 功能块图中模拟量缩放并含断线检测逻辑。 以下保留原提示词正文供结构与占位符对齐: I want you to act as a controls engineer writing a Function Block Diagram (FBD) block for . It scales one analog input and detects bad signals. Signal: , , engineering range to . Raw card range: . Requirements: 1. Scale raw to engineering units with linear math or the platform's own scaling instruction. 2. Quality states: Good, Wire break (under about 3.6 mA equivalent), Over-range (over about 21 mA equivalent). Bad must stay TRUE for before it latches, so one noisy sample does not trip it. 3. When Bad, hold the last good value and set a Value_Hold flag. Do not pass a scaled value from a broken wire. 4. Alarm_Bad latches and clears only on a Reset with the signal Good again. If the raw range is UNKNOWN, do not assume one. Show where it goes and list it as a question. Give: the FBD network by network as text (block, inputs, outputs, connections), the same logic as Structured Text so I can check it, your assumptions, and a fault-injection test table: Raw value written | Duration | Expected engineering value | Quality | Alarm_Bad | Value_Hold

评论 (0)