A modified version of the Oscat Library that could be compiled using RuSTy.
In its current status, not every feature of the library compiles.
StandardFunctions are needed to compile Oscat.
To avoid compile errors, stubs.st
includes stubs for functions that are not part of StandardFunctions.
To build Oscat, plc.json
can be used as the build description.
NOTE: Paths need to be adjusted in
plc.json
for more info see RuSTy build with build configuration
To reduce warnings we made the following non breaking changes :
- String range changed from
()
to[]
POINTER TO
was changed toREF_TO
FUNCTIONBLOCK
renamed toFUNCTON_BLOCK
To avoid errors we made the following non breaking changes :
- Array initializers are surrounded by
[]
- (PLC-lang/rusty#352) fixed
- TOD literals are moved to 3 sections
- (PLC-lang/rusty#355) fixed
- ADR was replaced with REF
- (PLC-lang/rusty#469) fixed
- Functions parameters are changed to
()
instead of[]
To avoid errors, the following breaking changes were made :
VAR_INPUT CONSANT
was changed toVAR_INPUT
OVERRIDE
was renamed to_OVERRIDE
ARRAY_MAX/MIN/SPR/SUM
type of size changed to ULINT