Skip to content

Make online edits

eaxPLCHow-to guideFreeProView as Markdown

Migrated page, not yet verified against the current code. Treat values, paths and examples as indicative until this notice is removed.

You change the logic of a PLC that is running, run the change for real (“test”), and keep the previous program resident so one click puts it back without a compile (“untest”). When the change is right you make it permanent (“accept”); otherwise you drop it (“cancel”). Timers, counters and every variable both versions share carry on across each switch.

State machineAn online edit: testing, untested, accepted or cancelled
An online edit: testing, untested, accepted or cancelledTest edits opens the session and runs the test program, with the accepted program kept resident. Untest puts the accepted program back and keeps the edit; Test edits runs it again. Accept, only while the test runs, makes the tested program the deployed one and closes the session; Cancel edits closes it and restores the deployed texts. A refused action leaves the session and the running program as they were, and while the session is open every deploy, rollback, task, CPU or local safety-list change is refused.No online editthe accepted programrunsTESTINGthe test program runsAcceptedthe tested program isthe deployed oneRefusednothing changesUNTESTEDthe accepted programruns, the edit is keptCancelledthe deployed textsare restoredAny other changedeploy, rollback, tasks,CPU, safety listTest editsUntest,or a restartTest editsAcceptCancel edits:untest firstCancelTake over: a new ownertest refusedrefusedrefusedonline_edit_active
Only the owner tests again, accepts or cancels; any engineer untests. The PLC never untests on its own.
  • External system
  • Refusal
Read as text

Test edits opens the session and runs the test program, with the accepted program kept resident. Untest puts the accepted program back and keeps the edit; Test edits runs it again. Accept, only while the test runs, makes the tested program the deployed one and closes the session; Cancel edits closes it and restores the deployed texts. A refused action leaves the session and the running program as they were, and while the session is open every deploy, rollback, task, CPU or local safety-list change is refused.

States

  • No online edit (state): the accepted program runs
  • TESTING (state): the test program runs
  • Accepted (outcome): the tested program is the deployed one
  • Refused (outcome): nothing changes
  • UNTESTED (state): the accepted program runs, the edit is kept
  • Cancelled (outcome): the deployed texts are restored
  • Any other change (external system): deploy, rollback, tasks, CPU, safety list

Transitions

  • Start → No online edit (transition)
  • No online edit → TESTING (transition): Test edits. Signed, with a reason, after the impact report. The engineer who tests first owns the session.
  • TESTING → UNTESTED (transition): Untest, or a restart. Any engineer untests, with a reason; no compile. A restart of the PLC always comes back on the accepted program (ONLINE_EDIT_RESTART_UNTESTED).
  • UNTESTED → TESTING (transition): Test edits. Only the owner, signed again, with the impact report of the edit as it is now.
  • TESTING → Accepted (transition): Accept. Only the owner, signed, only while the test runs: no compile and no switch. A restart in the middle of an accept, after the tested program was written, finishes the accept at start (ONLINE_EDIT_ACCEPT_RECOVERED).
  • TESTING → Cancelled (transition): Cancel edits: untest first. Only the owner, with a reason. The accepted program is put back before the session closes.
  • UNTESTED → Cancelled (transition): Cancel. Cancel edits: only the owner, with a reason.
  • UNTESTED → UNTESTED (transition): Take over: a new owner. In TESTING and in UNTESTED: another engineer takes the session over, always signed, with a reason. The state does not change.
  • No online edit → Refused (refusal): test refused. No e-signature (signature_required) or no reason (reason_required); the impact changed since it was reviewed (impact_changed); a blocking item of the impact report: locks_required, no_accepted_program, project_detached, no_changes, link_error, migration_too_large, forced_symbol_changes, overlaps_resident_storage, or an AI-made text that widens the access of a safety target or re-points its alias.
  • TESTING → Refused (refusal): refused. Accept: signature_required, session_changed, not_session_owner, test_hash_changed, safety_targets_changed, ai_marked_after_test. Cancel edits by someone who is not the owner: not_session_owner. Take over: signature_required, owner_changed. Untest without the e-signature when the deploy settings ask for one.
  • UNTESTED → Refused (refusal): refused. Accept or Untest while no test runs (online_edit_not_testing); Test edits by an engineer who is not the owner (online_edit_active), with a changed impact or a blocking item, as for the first test; Cancel edits by someone who is not the owner (not_session_owner).
  • Any other change → Refused (refusal): online_edit_active. While the session is open, in TESTING and in UNTESTED: accept or cancel the online edit first.

If you never use Test edits, nothing changes for you: Build & Deploy works as before.

  • The project is deployed (Build & Deploy): a test keeps that deployed program, the accepted program, resident. A PLC whose running program is not the project’s deployed revision (a legacy deploy or a rollback ran another text) refuses a test: deploy the project, or import the running program, first.
  • A program written before projects (a program.st with several PROGRAMs and FUNCTION_BLOCKs) becomes a project at the first start without a redeploy: each PROGRAM is its own PRG POU, each FUNCTION_BLOCK its own FB POU, and the main is the program the PLC scan runs (the last PROGRAM of the text). Comments before a unit stay with it. Import running program splits a running text the same way: units the project lacks are created and checked out to you; changed POUs need your check-out; the running main must be the project’s main.
  • You have checked out every POU you changed. The edit is saved (a revision of the project): a test runs what is saved, not what is open in the editor.
  • One online edit per PLC. While one is open, nobody can deploy, roll back, change the tasks, the CPU configuration or the local safety-target list (online_edit_active, naming the owner).

Who may do what

Action Who E-signature
Test edits an engineer (Lead_Engineer, Administrator); the first test makes you the session’s owner, later tests only by the owner yes, unless the deploy settings waive the deploy e-signature
Untest any engineer, not only the owner (the escape hatch); a reason is required no by default; yes when Require e-signature to untest an online edit is on (File → Project Settings, setting require_esign_untest)
Accept the owner, while the test runs yes, unless the deploy settings waive the deploy e-signature
Cancel edits the owner; a reason is required no
Take over any other engineer; a reason is required always
Read the session, the markers, the impact report any signed-in user (operators and auditors see the status chip only) no

The AI co-pilot may read the session but can never test, untest, accept, cancel or take over.

  1. Click Test edits (next to Build & Deploy). If the open POU has unsaved changes, the Studio offers to save them first.
  2. The impact dialog shows what the test does before you sign. Read its tabs:
    • Summary: the project revision, the program’s sha256, the program it replaces (kept resident), the POUs changed, AI-made or not, the review state, the tasks affected, the version.
    • Storage: variables that are added, moved, reinitialised, migrated, re-pointed or removed, with why (for example FB type VALVE gained member TDELAY) and what an untest gives back. For a migrated variable, a sub-grid lists each member as copied, initialised or dropped (Online changes to data structures).
    • Access: variables whose external access widens or narrows (Set external access and write limits).
    • Writers: outputs (%Q) and published variables whose writers change, as POU:line with the line you see in that POU, and the tasks that write them before and after.
    • Checks: new and removed cross-reference findings (eaxPLC Standard and Performance; Free says they are not available), forces, and anything that blocks.
    • Tasks: the tasks that run a changed program, and programs no task calls.
  3. Rows that block the test carry a warning marker; click it for the explanation and the fix. Test stays disabled while anything blocks.
  4. Give a reason (recorded) and your password (the signer is you, read-only; nothing is pre-filled). Click Sign and test.

The test program runs from the next scan; every scan runs exactly one consistent version of all programs. The toolbar now shows Untest (amber, always visible, also at narrow widths) and Accept; the status bar says Testing edits on … by … since …. Other users see the owner’s avatar ringed, a T badge on the session’s POUs, and those POUs read-only.

If the project or the running program changed while the dialog was open, the PLC answers impact_changed and the dialog shows the new report: The project or the running program changed: review the impact again. Nothing ran.

From the first test until accept or cancel, every user sees the same marks, computed by the PLC:

  • Structured Text: a gutter letter per line, + added, ~ changed, − lines deleted after this line. Solid while testing, hollow once untested, dashed for a preview of your own edits before the first test. Colour is never the only cue.
  • Ladder: the rung’s left rail shows i (inserted), r (replaced) or d (deleted). A deleted rung is drawn as a read-only, struck-through ghost where it was.
  • Saved after the test: lines you changed after the test are marked * and rungs p (pending: not in the running test). A rung you deleted after the test is a ghost with a dotted d: it still runs in the test. Test again to run them. Every browser marks them against the tested text the PLC keeps, not only the one you tested from.

Click Untest, give a reason and click Untest (with the e-signature setting on, Sign and untest). Enter does not send it: a deliberate click.

The accepted program runs again at once, with no compile; it is the same program that ran before the test. Untest is never refused for gate reasons. What comes back:

  • variables both versions share keep their latest values (timers and counters run on);
  • a variable the test moved or reinitialised comes back with the value it had when the test started;
  • forces on variables only the test had are released and listed (audited FORCE_RELEASED, cause untest); every other force stays;
  • a write made under the test and not yet applied when the accepted program comes back is dropped, never applied (audited WRITE_DENIED, WRITE_STALE_PROGRAM).

The edits stay in the session (state untested): test them again, or cancel them.

Accept (owner, while testing): give a reason and your password, click Sign and accept. What runs becomes the accepted program: it is written as the program the PLC starts with, committed to the PLC’s version history with the session, the signers and the review, and becomes the rollback base. The markers are cleared and the session’s check-outs are released. Accept accepts what runs (the tested revision), not a later save.

Cancel edits (owner): give a reason and click Cancel edits. From testing, the accepted program comes back first (an untest). The session’s POUs return to their accepted text as a new project revision; the edited texts are archived on the PLC. You keep the check-outs.

If the owner is away, another engineer can take the session: More (⋯) → Take over, a reason and the password (always signed). The session and its POUs’ check-outs pass to you. The request names the current owner, so it is refused (owner_changed) if someone else took it over in between. Session POUs cannot be released or broken any other way while the session is open (session_lock); their check-outs never expire.

A test whose owner has been offline for 30 minutes is flagged as abandoned. The PLC never untests on its own.

The PLC always comes back on the accepted program, never on the test: after a power cycle nobody may be watching, and a test that crashed the runtime is the last thing to restart into.

  • A session that was testing becomes untested (status bar: Restart put the accepted program back: edits untested; audit ONLINE_EDIT_RESTART_UNTESTED). The session and its check-outs stay: test again or cancel.
  • If the PLC stopped in the middle of an accept, after it had written the tested program, the accept is finished at start (ONLINE_EDIT_ACCEPT_RECOVERED).
  • Forces are released at a restart, as always.

Every step is in the PLC’s audit trail (ONLINE_EDIT_TEST, ONLINE_EDIT_UNTEST, ONLINE_EDIT_ACCEPT, ONLINE_EDIT_CANCEL, ONLINE_EDIT_TAKEOVER, and the refused variants), each with the session, the revision, the program hash, the cycle and the reason. Only an accept counts as a deploy (DEPLOYED_PROGRAM); a test is recorded as TESTED_PROGRAM. The newest 50 closed sessions are kept on the PLC.

Message or code Cause and fix
online_edit_active An online edit is open (the answer names the owner). Accept or cancel it, or take it over, before deploying, rolling back or changing tasks.
locks_required A POU the test changes is not checked out by you. Check it out (or ask its holder), then test.
impact_changed The project or the running program changed since you opened the report. Review the new report and sign again.
forced_symbol_changes The test moves or removes a forced variable, or makes a forced location a VAR CONSTANT (a PROGRAM’s constant, located or not, or a FUNCTION_BLOCK member: %MW40 (W constant)). Unforce it first (needs the force right), then test. See Constants, outside writes and forces.
WRITE_STALE_PROGRAM (on a write) A write was checked against the program that ran before a deploy, a test or an untest switched it (an accept switches nothing). It was not applied (audited WRITE_DENIED). Write again.
migration_too_large The test changes a structure or block type whose instances would copy more than the project’s migration cap (1 MB by default) in one cycle. Split the change, deploy with the PLC paused, or raise the cap. See Online changes to data structures.
overlaps_resident_storage A direct address or located variable of the test covers storage of the accepted program’s variables: an untest would find it overwritten. Use other addresses.
project_detached The PLC runs another text than the project’s deployed revision. Deploy the project, or import the running program.
no_changes The saved project is the program that runs: nothing to test.
no_accepted_program Nothing is deployed yet: deploy the project first.
safety_targets_changed The test is AI-made and the safety-target list changed since the test. Test again: the current list applies.
E-signature refused under the password Wrong password (or too many attempts: the fifth locks the account at eaxScada for 15 minutes): the password field is emptied and focused, your reason is kept, and you stay signed in. Enter it again.
The Studio asks you to sign in again eaxScada no longer has your session, so it could not check the signature. Sign in; the Studio sends the request once more.
not_session_owner Only the owner may accept or cancel. Take the session over first.