Access Senquip Application Notes — detailed documents explaining configuration, integration, and data setup for each supported system.
Bitwise Manipulation in a Script
APN0027 | Revision 1.1 | April 18, 2024
This technical note provides a deep dive into bit‑level operations using the Senquip scripting language. It explains logical operators (AND, OR, XOR, NOT) and bit‑shift functions with examples of setting, clearing, and toggling individual bits. The document demonstrates how to decode composite status registers from Modbus or CAN messages by applying bit masks and extracting Boolean flags. It also covers optimisation techniques for low‑overhead data parsing and discusses practical use cases such as alarm flag extraction and protocol decoding. Mastery of these methods enables efficient, compact scripts suited to high‑speed telemetry applications.
Access Application Note
Fill out the form below to access the full application note.
