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 TOwas changed toREF_TOFUNCTIONBLOCKrenamed 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 CONSANTwas changed toVAR_INPUTOVERRIDEwas renamed to_OVERRIDEARRAY_MAX/MIN/SPR/SUMtype of size changed to ULINT- temporarily renamed
SETparameters toSET0to avoid conflicts with keywords