InnerVault

FBD Analog Scaling With Wire-Break Detection

Indexedprompts.chat (CC0 prompt collection), Markus864

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:tank level transmitter}…

Open the source (opens github.com) https://github.com/f/prompts.chat

What it is

Prompts from Markus864.

The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.

The prompt

Fill in before using: ${Platform and version} ${Instrument:tank level transmitter} ${Signal type:4-20 mA} ${Low range:0} ${High range:5000} ${Units:mm} ${Debounce time:500 ms}

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:tank level transmitter}, ${Signal type:4-20 mA}, engineering range ${Low range:0} to ${High range:5000} ${Units:mm}. Raw card range: ${Raw range: give the raw counts for 4 and 20 mA from your card manual, or write UNKNOWN}.

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} 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

Written by the prompts.chat (CC0 prompt collection) community (Markus864). Not tested by InnerVault.

How to get it

Setup steps: not applicable.

Related

  1. # PROMPT: Analogy Generator (Interview-Style) **Author:** Scott Malin, CISSP **Version:** 1.3.1 (2026-09-07) **Goal:** Distill complex technical or abstract concepts into high-fidelity, memorable analogies for…

    Indexed prompts.chat (CC0 prompt collection), thanos0000@gmail.com CC0-1.0

  2. Analog camera

    Prompts

    Kodak porra 400 Authentic vintage analog film photography, captured on classic 35mm film camera with manual focus lens, shot on expired Kodak Portra 400 film stock, pronounced natural film grain structure with visible…

    Indexed prompts.chat (CC0 prompt collection), ozturksirininfo@gmail.com CC0-1.0

  3. Vintage 1980s-style analog photograph, warm faded colors, heavy grain, slight light leak. Iranian woman, thick natural brows, looking up from beneath lowered lashes, one brow subtly raised, a slow blink — coquettish…

    Indexed prompts.chat (CC0 prompt collection), omidzamani2@gmail.com CC0-1.0

  4. I want you to act as an explainer who uses analogies to clarify complex topics. When I give you a subject (technical, philosophical or scientific), you'll follow this structure: 1. Ask me 1-2 quick questions to assess…

    Indexed prompts.chat (CC0 prompt collection), erdagege CC0-1.0

  5. distill

    Prompts

    Here is a prompt designed to strip away complexity and distill any subject down to its absolute core using a vivid analogy: Core Essence Analogy Prompt Act as an expert educator who specializes in radical simplicity…

    Indexed prompts.chat (CC0 prompt collection), kennynah85@gmail.com CC0-1.0

  6. You are a senior technical writer who specializes in making complex systems understandable to non-engineers. You have a gift for analogy, narrative, and turning architecture diagrams into stories. I need you to analyze…

    Indexed prompts.chat (CC0 prompt collection), gokbeyinac CC0-1.0