¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Simpl+ Analog_Input vs Long_Integer


 

If you need a value larger that 65535 in S+ you need to declare the variable as a Long_Integer.
What you are seeing is the lower 16 bits of the value as the analog is automatically truncated.
Be aware, of course, that you can only input and output 16 bit analog values between S+ and SIMPL.
Note also that in your makeString statement you a using %u, a reference to an unsigned 16 bit integer. If you want to reference a long integer the you need to use %lu.

Lindsay

Join [email protected] to automatically receive all group messages.