Skip to content

4.1.4

Choose a tag to compare

@ArthurkaX ArthurkaX released this 29 Nov 16:54
· 45 commits to main since this release

What changes against 4.1.3. Run the installer line again. A repo with interface properties then shows them once as changed in the IDE, because the export now writes their GET and SET: run cts sync once to write them into the files.

Import

  • cts import --force no longer deletes the device above a device the IDE deleted. It made the deleted device again and then deleted the device above it, Plc Logic and applications included (#74).
  • Block comments nest as CODESYS reads them: (* a (* b *) c *) is one comment for import, compare, cts fmt and cts analyze. A method with a nested comment above its header was not importable ("expected a member header"). A comment nothing closes names its line (#75).
  • A GET or SET added in the file to a property the IDE has is created; before, compare listed it as added and the import left it out without a word. A property created from a file that lists only GET (or only SET) gets only that accessor. An accessor's empty declaration is written, so a new Get or Set without a VAR block no longer shows as changed (#76, #77).
  • cts import --force makes a property the IDE deleted again with the accessors its file lists, and an accessor the IDE deleted alone; before it refused with "cannot recreate object kind GET" (#77).

Export and sync

  • An abstract method is exported into its POU's file as METHOD ABSTRACT Name ... END_METHOD, and the Get and Set of an abstract or an interface property as GET / END_GET. Before, they were dropped from the export without a word. A member of a type cts does not know is kept beside its POU as Owner.Member.xml (#76).
  • cts sync of a member the IDE added with a modifier in its header (METHOD PRIVATE Run, PROPERTY PUBLIC P) no longer stops with "cannot find exported METHOD block". A Get or Set the IDE added goes into its property, a GET before a SET; before it was written after the file's last block, where no import could read it (#76).
  • Writing a body into a member that has none (an abstract method, an accessor of an abstract or interface property) names the object and says why.

Commands

  • cts new method|action|property works in a project whose application folder has another name. A member needs no --parent, which now only picks among several <POU>.st.
  • cts read-object FB_Pump.Start reads a member as cts new names it (FB_Pump.Speed.Get for an accessor).
  • cts new property I_X.P writes the property with an empty GET and SET, as the export writes it.