Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ When HotLoop is on the network, the equipment is its to guard. Every equipment
write node (`modbus write`, `opcua write`, `s7 write` and `ethernetip write`)
has **Write through HotLoop**, empty by default, and **HotLoop tag**, the tag in
HotLoop this write is for, written `device/tag`. With a HotLoop picked, the
value goes to `POST /api/write` and not to the PLC. HotLoop's write gate decides,
value goes to `POST /api/write` and not to the PLC. HotLoop's Safe writes decide,
in its order: that writes are switched on, that the tag is armed, that the value
is in the tag's range. HotLoop's own address, data type and scale for that tag
apply, so the address and data type on the Flow node are not used. The node's
Expand Down Expand Up @@ -2768,7 +2768,7 @@ lineup.
Flow talks to them, and it will never be built into them. It runs next to them
and calls HotLoop's API from the outside: the HotLoop nodes read entity states
and changes, run scripts and apply recipes, and the equipment write nodes can
send their writes through HotLoop's write gate. All of that is under
send their writes through HotLoop's Safe writes. All of that is under
[The plant floor](#the-plant-floor). A Flow with no HotLoop picked shares nothing
with them but a broker, if you give them one.

Expand Down
2 changes: 1 addition & 1 deletion docs/MCP.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ without diagrams or instruments has neither the routes nor the tools. A control
how a person commands what a diagram drives, so setting one, running a diagram and
switching an instrument's writes are in the audit log under the caller's name as
they are for a person, and a diagram's write to equipment still goes through
HotLoop's write gate and an instrument's own switch.
HotLoop's Safe writes and an instrument's own switch.

| Tool | Route | Permission | Does |
|---|---|---|---|
Expand Down
4 changes: 2 additions & 2 deletions docs/diagrams.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,9 @@ The canvas zooms from 5 percent to 400 percent about the pointer, and reads its

Every FlowLab node type is drawn with a symbol of our own at the middle of its body (a plus for math, a sigma for statistics, a sine for a waveform, a plug for a serial port), beside its text label. They are plain strokes drawn in `web/src/lib/symbols.ts`, not an icon font or anyone's artwork, and a test fails when a diagram node type names an icon that is not drawn.

## Writing to equipment: the write gate
## Writing to equipment: Safe writes

A diagram commands equipment one way: `dia-hotloop-write`. It sends its value to a tag in HotLoop (`device/tag`, set on the node or wired in) through HotLoop's write gate, which decides in its own order that writes are switched on, that the tag is armed and that the value is in range. Flow never writes to a machine itself. HotLoop records every attempt, refused or not, with the reason `flow:<diagram>/<node id>`, so its audit trail names the diagram and the node. A refusal is an error on the node's error wire with the gate's own reason (code 5006), and so is a HotLoop that cannot be reached; in both cases the write does not happen, and the node refuses to deploy without a HotLoop selected. The raw serial and instrument nodes talk to bench instruments (meters, supplies, loads), which have no tag in HotLoop, so they have a switch of their own (below).
A diagram commands equipment one way: `dia-hotloop-write`. It sends its value to a tag in HotLoop (`device/tag`, set on the node or wired in) through HotLoop's Safe writes, which decides in its own order that writes are switched on, that the tag is armed and that the value is in range. Flow never writes to a machine itself. HotLoop records every attempt, refused or not, with the reason `flow:<diagram>/<node id>`, so its audit trail names the diagram and the node. A refusal is an error on the node's error wire with the gate's own reason (code 5006), and so is a HotLoop that cannot be reached; in both cases the write does not happen, and the node refuses to deploy without a HotLoop selected. The raw serial and instrument nodes talk to bench instruments (meters, supplies, loads), which have no tag in HotLoop, so they have a switch of their own (below).

## The instrument write switch

Expand Down
2 changes: 1 addition & 1 deletion docs/durable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ for. A message that crosses a durable wire is stamped `msg._queuedAt` with the
time it entered the wire, and `influxdb out` with no timestamp configured writes
the point at that time. A repeat is the same series at the same time, which
InfluxDB treats as an overwrite, so the row count doesn't move. It also fixes the
other thing that goes wrong with store-and-forward: without it, every reading
other thing that goes wrong with store and forward: without it, every reading
held through an outage is stamped when InfluxDB comes back, and an hour of
history lands in one minute. A sink that stamps on arrival, a `now()` in a
Postgres insert for one, would store a repeat twice, and it would put the
Expand Down
4 changes: 2 additions & 2 deletions docs/failover.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Failover: a warm standby with a lease
# Warm standby

Two installs of Flow can share the job of one. One of them is the writer: it is the only one that sends anything to equipment. The other is the standby: it runs the same flows, reads, subscribes and keeps its context warm, but holds every equipment write until it takes the writer's place. If the writer dies, hangs or loses its link, the standby takes over in about the length of a lease, and the one that was the writer cannot write again until it wins the lease back.

Expand All @@ -15,7 +15,7 @@ Every write to equipment asks the same question just before it sends: do I hold
- A holder that is frozen and thawed, or cut off and reconnected, finds its lease gone, refuses its writes, and asks for the lease like anyone else.
- The database's clock decides when the lease ends, so two boxes whose clocks disagree still agree on who holds it.

The writes that ask are the ones that can command equipment: `modbus write`, `s7 write`, `opcua write` and `ethernetip write`, whether direct or through HotLoop's write gate, the `hotloop script` and `hotloop recipe` nodes, and in a FlowLab diagram the serial write, an instrument command that writes (alongside that instrument's own write switch) and the HotLoop write. Sending a message to an MQTT broker, a database or a notification is not fenced: it is not a command to equipment, and a repeat of it is harmless where a repeated setpoint may not be. A flow test stands in for the outside world and is never held.
The writes that ask are the ones that can command equipment: `modbus write`, `s7 write`, `opcua write` and `ethernetip write`, whether direct or through HotLoop's Safe writes, the `hotloop script` and `hotloop recipe` nodes, and in a FlowLab diagram the serial write, an instrument command that writes (alongside that instrument's own write switch) and the HotLoop write. Sending a message to an MQTT broker, a database or a notification is not fenced: it is not a command to equipment, and a repeat of it is harmless where a repeated setpoint may not be. A flow test stands in for the outside world and is never held.

## What it costs and what it does not give you

Expand Down
2 changes: 1 addition & 1 deletion docs/stations.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Pushing a flow file to a tenant's stations
# Station push

A tenant in EmberNet can run several HotLoop Flow installs, one at each plant or line. We call each one a station. This page is about putting one flow file, and so one set of FlowLab diagrams, on all of them, checking each one, and putting a station back if it fails.

Expand Down
Loading