Repository navigation
4.1.4
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 --forceno 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 fmtandcts 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
GETorSETadded 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 onlyGET(or onlySET) gets only that accessor. An accessor's empty declaration is written, so a new Get or Set without aVARblock no longer shows as changed (#76, #77). cts import --forcemakes 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 asGET/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 asOwner.Member.xml(#76). cts syncof 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, aGETbefore aSET; 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|propertyworks 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.Startreads a member ascts newnames it (FB_Pump.Speed.Getfor an accessor).cts new property I_X.Pwrites the property with an emptyGETandSET, as the export writes it.