Reading machine data is low risk. Writing is something else: a PLC controls a physical process. A wrong value can make an oven too hot or run a press incorrectly. Still, sometimes you do want to write, for example a setpoint per product or a lot number to a coding printer. These five rules make the difference.
1. Read-only by default
A connection to a machine should not write anything by default. Every command is enabled separately and deliberately.
2. A name instead of an address
An application doesn’t ask “write 75 to DB100.DBD8”, but “set Oven temperature setpoint to 75”. The real address stays in the connection to the machine and never travels over the network to other applications.
3. Limits in the connection, not in the caller
Minimum, maximum and allowed values are enforced by the connection itself. A workflow or an operator therefore cannot bypass them, not even by accident.
4. Try first without writing
A test mode checks everything, such as the command, the limits, the permissions and the connection, but writes nothing. Also deliberately try a value outside the limit: it must be rejected.
5. Every attempt in an audit log
Who asked for it, what, where to, what was the old value, what the new one, and what was the result? Rejected attempts belong in it too. That way you can always reconstruct afterwards what happened.
And: agree first
Writing to a machine intervenes in a physical process. Agree with the person responsible for the machine which values, which limits and who is allowed to, before anything is enabled.
That is how writing works in FactoryNebula too. Read more on Security and NIS2.



