Activity for paulg

  • paulg paulg posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I'll be capturing a hex stream over serial into a RasPi and I'd like to convert a group of bytes into a float. I see this is available (https://content.helpme-codesys.com/en/CODESYS%20Development%20System/cdsoperatorrealto.html) but not its inverse (i.e. BYTE_TO_REAL). The packets will be 18 bytes but I'll be selecting 4 byte segments from the middle, swapping byte endianness (i.e. changing 0x51847641 to 0x41768451), and converting to float; I believe they adhere to IEEE 754. Is there a pre-built...

  • paulg paulg posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Is there somewhere in the Codesys help files that generally details what configuration options are available for this file, and what details it logs regarding the configuration file? Or is that going to differ by libraries being used? Thanks!

  • paulg paulg modified a comment on discussion Runtime πŸ‡¬πŸ‡§

    I've trimmed down the CAA Serial Codesys example to only listen on one port but, when stepping through the Case structure in debug mode, it jumps out of the structure during a specific point in every scan (I'll point it out below after describing the setup and listing the code). I'm using a Pi 4 Model B, and I have an Arduino Nano Every plugged in via USB which is streaming the following serial message at 1 Hz: Time since opening connection: 1 s Time since opening connection: 2 s ...and so on. The...

  • paulg paulg posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    I've trimmed down the CAA Serial Codesys example to only listen on one port but, when stepping through the Case structure in debug mode, it jumps out of the structure during a specific point in every scan (I'll point it out below after describing the setup and listing the code). I'm using a Pi 4 Model B, and I have an Arduino Nano Every plugged in via USB which is streaming the following serial message at 1 Hz: Time since opening connection: 1 s Time since opening connection: 2 s ...and so on. The...

1