PLC-lang / StandardFunctions

Standard functions for PLC as described by IEC61131
GNU Lesser General Public License v2.1
10 stars 2 forks source link

13 endianess functions iec61131 table 37 #49

Closed mhasel closed 2 years ago

mhasel commented 2 years ago

Endianness functions and tests implemented. Tests for long date-time types are implemented for both millis and nanos due to unit-mismatch. Redundant tests can be removed after LDT, LTOD and LDATE are changed to nanoseconds. Use of paste crate for function-generation via macro pending approval.

ghaith commented 2 years ago

For style check, run cargo fmt (will change your code) and cargo clippy locally