I have a device that sends status updates on a Modbus network. I have successfully connected to it and can access the registers. However, there is a status register that stores the system status as an integer that I need to decode into a binary word. I then need to be able to access each bit of the word to determine the system status. How can I accomplish this? I'm new to working with SCADA and this is my personal system for learning.