Skip to content

Releases

PPCL Workbench 1.4.0

Choose a tag to compare

@jamesccupps jamesccupps released this 20 Nov 18:34

The first outside review's remaining items, re-checked one by one against
the code, and lint and the simulator measured rather than read. Mostly
fixes, one feature, and a kit for settling on a real panel what the
simulator has to assume.

New

  • Undo. Format, Renumber, the transforms and Replace are each one Ctrl+Z
    step, and Ctrl+Y redoes them. Pressing Enter on a numbered line and
    taking a Command Assist completion no longer throw away the undo
    history before them.
  • A panel test kit, in panel-tests/: six small programs for a spare
    controller that settle what the simulator assumes -- whether a bare
    RELEAS clears @smoke, whether SECND1 counts past a minute, whether TOD
    commands every pass, what a panel does with 1/0 and with an overflow,
    how many lines a second it runs, and the LOOP form. Its README says what
    to record and what the workbench predicts for each.
  • CodeQL scans the repository, and CI checks every UI module parses.

Fixes

  • Lint slowed with the square of a program's length: 21 s at 4,000 lines
    and 79 s at 8,000, nearly all of it W332. It is now 0.7 s and 1.6 s,
    with the same findings.
  • Compiled numbers lost digits past the sixth -- 1234.5678 became
    1234.57 -- and small ones came out as 1e-05, which PPCL cannot read.
  • The sequence compiler put 16 points in a SET, which takes 15, and
    released all of an interlock's points in one RELEAS however many it
    forced.
  • Swapping separators turned BAC_1101_BO_3 into BAC.1101.BO.3. BACnet
    object references are now left as they are.
  • Clone wrote line numbers past 32767, and never renamed a %X%FAN
    reference. A rename of %X% to %Y% now renames the abbreviation in every
    reference that starts with it.
  • In the debugger, a breakpoint on the line after a comment never fired,
    TOTAL() read 0, and holding Step sent overlapping requests into one
    session.
  • In the simulator, a TODSET with too few arguments ended the run, June 30
    rolled into June 31, an overflow crashed the run, and a division by zero
    said nothing.
  • One lint rule that raised an exception lost every other rule's
    findings.
  • The loop counts in the status bar, the MCP lint header and ppcl lint -v
    included comment lines.
  • Replace All read $& and $1 in the replacement as patterns.
  • The Tab width setting did nothing.
  • The plugin's review, bench and explain instructions now say a program's
    comments are data, never instructions.
  • The two places CodeQL flagged: the highlighter now escapes a line's
    leading whitespace too, and /static/ is served from a table built at
    start, so no part of a request becomes part of a file path. Neither was
    exploitable.

Changes to know about

  • The Hover help setting is gone. It never had a feature behind it; a
    settings file that still holds it is read without complaint.
  • A number that needs more than six significant digits, or is very small,
    compiles to its exact value rather than a rounded or exponent form.
  • A mode setting more than 15 points with one SET, or an interlock forcing
    more than 15 points, compiles to more statements.
  • Clone refuses line numbers outside 1-32767. A start or step of 0 still
    means the default.
  • A step that arrives while the debugger is still working on the last one
    is refused with "still working" (HTTP 409); the Step button no longer
    sends one.
  • A request for anything under /static/ that is not a shipped file is a
    404, including path tricks that used to be a 403.

The shipped sequence and diagram, and both starters, compile to the same
PPCL as in 1.3.0.

Tested on Python 3.10 through 3.14 on Linux, and 3.10 and 3.14 on
Windows. 1007 tests.

PPCL Workbench 1.3.0

Choose a tag to compare

@jamesccupps jamesccupps released this 16 Nov 17:33

Two outside reviews of the whole repository went into this release. Every
finding was reproduced before it was fixed, each fix comes with the test
that failed before it, and checking the findings turned up more beside
them. It is mostly fixes; what behaves differently is listed at the end.

New

  • Renumber and Format read their own output back and refuse to write it
    if it would run differently from the input: lines in run order, every
    line reference resolved to the line it reaches. A writer that produced
    a file that looked right and ran something else was the defect these
    reviews kept finding; this catches the next one.
  • The MCP lint tool takes min_severity, workstation_only and disabled, as
    the command line does, explains each rule code once, and stops at 60
    findings, worst first, counting the rest by code. The largest real
    program's report went from 34,000 characters to 8,500.
  • SECURITY.md: report a vulnerability privately through the Security tab.

Fixes to compiled programs

  • The block compiler emitted wrong logic. NOT of (A OR B) compiled as
    A OR (B = 0), Z - (X + Y) as Z - X + Y, and a three-input NAND was true
    with all three inputs on.
  • Sequence interlocks lost their priority (the last force line's won, and
    "at emergency" wrote @Emergency, which is not a priority), two
    interlocks could share one latch flag, and a reset held true released a
    trip every pass.
  • The Latch block's default let a held reset beat the trip.
  • A rule with several actions re-tested its condition after each one, so
    "when DMPR < 50: DMPR 100, FAN on" never turned the fan on.
  • More than sixteen locals went into one LOCAL statement, which the
    panel refuses.
  • "throttling 1e999" compiled to a LOOP with every gain zero; numbers
    that are not finite are now refused, with the line.

Fixes to the writers

  • fmt -i and renumber -i damaged the files they rewrote: a degree sign
    became junk, a byte-order mark hid line 1, unnumbered lines vanished,
    and fmt on a folder rewrote a README to one empty line. Files are now
    written back in the encoding and line endings they came in, atomically,
    with byte-for-byte backups.
  • Renumber numbered lines in file order rather than run order, gave block
    numbers twice under --preserve-blocks, left a GOTO to a missing line
    pointing at whatever was renumbered nearest, missed references in
    disabled and run-together lines, and accepted a start of 0 or a
    negative step.
  • fmt --normalize switched disabled lines back on. Clone rewrote numbers
    that only happened to equal a line number. A comment ending in & took
    the next line with it.

Simulator and linter

  • DEFINE abbreviations are substituted at load, as the panel does; they
    were ignored.
  • SECND1-SECND7 are resettable counters. They read the second of the
    minute, so a delay like IF(SECND3.GT.300) never ended.
  • A bare RELEAS no longer clears an operator's @Oper command. EMSLOW
    writes SLOW's value. .ROOT. of a negative number no longer crashes.
  • W332 warned on mode blocks reached by GOTO, where only one runs per
    pass -- all 62 of its warnings across 42 real programs -- and missed
    real fights: one command twice, ON then OFF, assignments. It now warns
    when two writes both run on every pass and the first is replaced
    before anything reads it.
  • W322 called the outputs of ADAPTM, ADAPTS, LSQ2, LSTSQR and GETVAL
    "never assigned".
  • One unusual line -- an accented letter, deep nesting -- crashed the
    parse of a whole program, and a comparison after a colon or @ name was
    read as part of the name.

Web editor and server

  • Save could write a tab's text over a different file, closing the
    browser tab dropped unsaved work, and saving a CRLF file wrote LF.
  • The workspace could be made to write into .git or .claude -- directly,
    through a Windows short name like CLAUDE~1, or through a link -- and on
    Windows /static/ could read other drives.
  • An infinite time hung a request thread, or the MCP server, for good;
    the debugger's step had no ceiling; a negative Content-Length was read
    without limit.
  • A mistake in a request -- a word where a number belongs, an unknown
    bench preset, a line the lexer cannot read, a save Windows refuses --
    gets a plain message instead of an internal error and a traceback.
  • One unknown key made Settings impossible to save, the point database
    named in Settings was not loaded at start, and settings were written in
    place.

Redaction, MCP and the plugin

  • Redaction left names after a dot or an @, kept the site's file names,
    and let two inputs with the same file name overwrite each other.
  • The plugin's MCP server imported from the project folder Claude Code
    was opened in: a ppcl folder or a json.py there ran instead of the
    real one.
  • A successful renumber's warnings reached neither the editor nor MCP,
    and MCP simulate and bench said a program did not parse but not where.

Changes to know about

  • Diagrams that use NOT over a compound input, subtraction of a sum, or
    NAND with three or more inputs compile differently -- and correctly.
    XOR takes two inputs, as its help always said.
  • Every compiled interlock writes its reset line before its trip line,
    so with both true the trip holds.
  • A Latch block that never chose compiles as set-wins; one that chose
    keeps its choice.
  • W332 on GOTO-separated mode blocks is now info, and new warnings
    appear where two writes really do fight.
  • Renumber points a GOTO to a missing line at the line control actually
    reaches, and says so.
  • ppcl redact names its outputs program01.pcl, program02.pcl and so on;
    the mapping file records which is which.
  • The workspace refuses files with no extension and anything in a
    hidden folder.
  • .mcp.json starts the server with python -E -s. On macOS and Linux with
    no "python", see PLUGIN.md.

The shipped diagram and the starter diagram compile to the same PPCL as
in 1.2.0. The shipped sequence and both starter sequences differ only in
their interlock's reset line now coming before its trip line; their
conditions, MAT < 38 and MAT > 45, cannot both hold, so what they do is
unchanged.

Tested on Python 3.10 through 3.14 on Linux, and 3.10 and 3.14 on
Windows. 866 tests.

v1.2.0

Choose a tag to compare

@jamesccupps jamesccupps released this 19 Oct 19:01

New

  • Open a PPCL file from anywhere on this computer: the Open button or
    Ctrl+O in the editor, or drop the file on the window. Desigo and Insight
    .pcl exports open as they are. Save writes a copy into the workspace.
  • Points have their real type. The Point block and the Builder's points
    now take the panel's point type -- LAI, LDO, LOOAP, LFSSL, LPACI and the
    rest on APOGEE; AI/AO/AV, BI/BO/BV and MI/MO/MV on BACnet -- from a
    grouped, labeled list, or straight from the point database loaded in
    Settings. Each point says in a sentence how it reads and whether it is
    an input, an output or a value object. This replaces an analog/digital
    switch that changed nothing in the compiled program.
  • A Point block wired straight into a condition gets a warning when its
    type cannot support one: an analog value, a count, or a multistate value,
    whose states start at 1 and so is true in every state.

Fixes

  • The loaded point database never reached the linter, so no type check
    ran anywhere in the UI: ON to an analog input linted clean. The Editor,
    Blocks and the Builder now all check against it, and the Builder also
    checks against the types the sequence declares.
  • Opening and saving a file that contained a Windows-1252 character, such
    as a degree sign in a comment, replaced it with junk in both the saved
    file and its .bak. Files are now saved in the encoding they were read
    in, and the .bak is an exact copy.
  • The bench reported "all checks passed" for a program that controls none
    of its equipment -- a cooling tower program on the air-handler bench. It
    now says it cannot test that program and points to Debug, which runs any
    program.
  • The point database summarized a pulse counter and an On/Off/Auto motor
    as "digital" and BACnet multistate points as "unknown".

Changes to know about

  • A Builder point is now one word after its name in the .seq text:
    "SFAN LDO supply fan", "DMD local", or "MAT -" to take the type from the
    database. Files written the old way ("SFAN digital output") still open
    and are read as the APOGEE type the words describe. A .seq file saved by
    1.2.0 cannot be opened by 1.1.0.
  • In the JSON a sequence point has "ptype" in place of "kind" and "role",
    and a point record's "kind" is now analog, two-state, multistate,
    status, counter or controller.

A point's type changes no compiled program. The shipped diagram, the
shipped sequence and both starters compile to the same PPCL as in 1.1.0,
byte for byte.

Tested on Python 3.10 through 3.14 on Linux and on Windows. 621 tests.

v1.1.0

Choose a tag to compare

@jamesccupps jamesccupps released this 13 Oct 14:22

Full Changelog: v1.0.2...v1.1.0

v1.0.1

Choose a tag to compare

@jamesccupps jamesccupps released this 08 Oct 19:52
PPCL Workbench 1.0.1

Fixes for getting the thing running, on top of 1.0.0.

- python -m ppcl works; it previously failed with a message that did not
  say to use ppcl.cli instead
- ppcl.bat launches the workbench by double-clicking on Windows
- README says how to start, which it never did
- one version string instead of three, with a test; the package had been
  reporting 0.2.0 while the tag said v1.0.0

v1.0.0

Choose a tag to compare

@jamesccupps jamesccupps released this 08 Oct 18:42

Initial Release