Repository navigation
v0.5.0
Derived data types and strings: enumerations, subranges, arrays, structures, strings and references, with PLCopen XML exchange and monitor support for composite variables. Contains breaking changes to accepted Structured Text; see Changed.
Added
-
Batch mixer reference project combines an enumerated CASE state machine, three
initialized recipe structures in an array, a latched recipe reference, TON step
timers and CONCAT status messages. Includes panel controls and lamps,
virtual-clock traces for every recipe and STOP/restart, and a browser test for
operation, monitor values and exact text preservation on save/reopen. -
References (
REF_TO,REF,^,NULL) to persistent variables, elements and
members, including reference parameters/results,MOVE/SEL/MUXselection,
dereferenced in-out arguments and recursive structures.
Reference targets match exactly; NULL dereferences fault with POU/instance
diagnostics. Monitoring displays target paths or NULL without write/force
controls, and PLCopen XML exchanges references as pointer types. -
Arrays and structures as copied input/output parameters, in-out aliases and whole
function results. OpenARRAY[*]in-outs accept caller arrays with different
bounds, with DINTLOWER_BOUND/UPPER_BOUNDqueries. Element/member aliases
preserve caller storage, string capacities and force behavior; PLCopen XML
round-trips aggregate interfaces and open dimensions. -
Diagnostics name the actual block type when a scalar instance is indexed, and
explain unsupported named/nested function block arrays once per declaration in
English and Japanese. -
Arrays of standard and user function block instances in PROGRAM and function
block VAR sections, with indexed calls and public port access, independent
persistent state, shared timer/counter variant selection and cold reset of
every instance tree. The monitor groups element paths and supports member
writes/forces; PLCopen XML preserves arrays with derived block base types. -
Structure declarations report unsupported function block member types on the
type name, with an explanation of the restriction in English and Japanese. -
Named structures with member defaults, nested array/member access, partial
initializers, and whole-structure assignment/MOVE/SEL/MUX. The monitor expands
structures and arrays of structures and supports scalar member writes and
forces. PLCopen XML preserves nested structure declarations and initial values. -
Array diagnostics distinguish non-array access, index counts, non-integer
indices and missing initializer lists, with the relevant types and counts. -
Arrays with constant DINT bounds, up to three dimensions and 10,000 scalar
leaves, nested arrays, repeated initializers, checked indexing, element bit
access and whole-array assignment/MOVE/SEL/MUX. Array elements support strings,
enumerations and subranges. The monitor expands arrays and writes/forces
individual elements; snapshots include watched or forced elements. Editor
hovers show array types, and PLCopen XML preserves array types and initial values. -
Standard STRING/WSTRING functions LEN, LEFT, RIGHT, MID, extensible CONCAT,
INSERT, DELETE, REPLACE and FIND, with checked positions, clamped lengths and
results up to 1,024 code units. CHAR/WCHAR inputs widen to their string types.
Elementary values convert to and from text using
the monitor format and literal syntax; character/code-unit conversions and
overloaded TO_ forms are supported. Invalid conversions fault without wrapping. -
STRING, STRING[n], WSTRING, WSTRING[n], CHAR and WCHAR variables, aliases,
constants and POU parameters/results, with quoted literals and dollar escapes.
Comparisons, selection and ordering functions support character data; dynamic
string stores truncate to capacity. The monitor displays quoted text and validates
quoted writes and forces, inline values preserve string types, the editor
highlights literals, and PLCopen XML preserves capacities and character types. -
Data types appear before POUs in the web editor, with templates, text-based
renaming, confirmed deletion and diagnostic navigation. Project-wide Run,
type highlighting and variable hovers include declared types; autosave keeps
unfinished type drafts and restores older POU autosaves. -
PLCopen XML saves and opens ordered data type sources, including enumerations,
named and inline integer subranges, elementary and derived aliases, and their
initial values. Source extensions preserve exact text; imports without them
rebuild equivalent TYPE declarations. The web app retains imported types for
compilation, monitoring, browser autosave and project save/open. -
Compiler data type sources with elementary aliases, enumerations and named or
inline integer subranges (ADR 0015). Enumerations support contextual literals,
CASE, selection functions and scalar POU parameters/results; subrange stores
fault outside their limits. Monitor helpers format enum names and validate
writes and forces. -
ADR 0015 documents the accepted design for data type declarations, enumerations,
subranges, arrays, structures, strings and references for Milestone 5.
Changed
- Breaking: CHAR, WCHAR, REF_TO, REF and NULL are now reserved keywords (ADR 0015).
The standard namespace also reserves LEN, LEFT, RIGHT, MID, CONCAT, INSERT,
DELETE, REPLACE, FIND, LOWER_BOUND, UPPER_BOUND, TO_STRING, TO_WSTRING, TO_CHAR, TO_WCHAR and the
ADR 0015 character/string conversion names, including<type>_TO_STRING,
<type>_TO_WSTRING,STRING_TO_<type>andWSTRING_TO_<type>. Existing identifiers
using these names must be renamed. STRING and WSTRING remain reserved; string
functions/conversions and references are available.
Fixed
- Compiler diagnostics name the actual standard or user function block type in
structure array members, identify containment and alias cycles without
cascading unknown-type errors, and explain the restriction on subrange FOR
control variables in English and Japanese.