Den 2023-10-11 kl. 11:54, skrev andy pugh:
On Wed, 11 Oct 2023 at 10:24, Rod Webster <r...@vehiclemods.net.au> wrote:
How would that work when you need to match a pin type with an external data
structure?
In most cases it will just work. Possibly with unused higher-order bits.

Unless anything is _relying_ on overflow, there shouldn't be any
difficult fixes.

Encoders are commonly used in Linuxcnc and do overflow. However not sure if this i a big problem since it fit inside a double.

Then there is for example a double output a unsigned or signed 16 bit input to a servo drive there is a problem that must be handled. Same apply for digital outputs. There will also be a need to map these into PDOs if using CANopen.

Programmed for many years and it is a lot harder to work with dynamic unknown data types. Numbers with unknown range is also a little bit harder to work with and in particular must be some method to handle the case then number is outside expected or valid range.


Nicklas Karlsson



_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to