Prompt
0 copies · 0 said it worked
Write an FBD block that scales a 4-20 mA analog input and flags wire breaks
Prompt for a controls engineer to get a Function Block Diagram that scales one analog input to engineering units, detects wire-break and over-range faults with debounce, holds the last good value, and latches an alarm until reset.
People use this for
- fbd 4-20 ma scaling block
- plc analog input wire break detection
- scale 4-20 ma level transmitter fbd
- detect wire break over-range analog input
- write plc block hold last good value fault
Imported on Nov 29, 2026 from FBD Analog Scaling With Wire-Break Detection . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Fill in the variables
Prompt
I want you to act as a controls engineer writing a Function Block Diagram (FBD) block for {{platform_and_version}}. It scales one analog input and detects bad signals. Signal: {{instrument}}, {{signal_type}}, engineering range {{low_range}} to {{high_range}} {{units}}. Raw card range: {{raw_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 {{debounce_time}} 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
No result recorded for this import yet. Tried it? File a report so the next person knows how it went.
I want you to act as a controls engineer writing a Function Block Diagram (FBD) block for${Platform and version{platform_and_version}}. It scales one analog input and detects bad signals. Signal:${Instrument:tank level transmitter{instrument}},${Signal type:4-20 mA{signal_type}}, engineering range${Low range:0{low_range}} to${High range:5000{high_range}$} {Units:mm{units}}. Raw card range:${Raw range: give the raw counts for 4 and 20 mA from your card manual, or write UNKNOWN{raw_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${Debounce time:500 ms{debounce_time}} 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
Tried it
Structured reports from people who ran this prompt. They roll up into the per-model badges above.
No one has filed a report yet. Try the prompt and be the first.
Related prompts
- Explain, test, and harden a Python regular expression
Explains a Python regex token by token, tests it against must-match and must-not-match samples, flags risky patterns like catastrophic backtracking, and returns a safer rewrite with a test table.
Coding · @f
- Build a Keep a Changelog release section from Conventional Commits
Turns a git log in Conventional Commits format into a grouped Keep a Changelog release section with breaking-change notes, flagged commits and a suggested SemVer version.
Coding · @f
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Forensic PHP codebase security, performance and quality audit
A long checklist-driven prompt that has the model act as a senior PHP reviewer and audit a codebase for type safety, security holes, database and performance issues, code quality, architecture, dependencies, and testing gaps, then report findings by severity with a final scored summary.
Coding · @ersinkoc
- Check utility meter readings and bills for overcharges and leaks
Agent skill that cleans electricity, gas and water meter readings, computes usage and cost per period, checks supplier bills against readings and tariffs, and flags estimates, rollovers and leaks.
Data & Finance · @f
License: CC0v2 · updated Nov 30, 2026 · first published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.