D
I have a series of bits that denote alarm states inside the PLC. The PLC uses the alarms states for its internal logic. I'd like to monitor these alarms in a SCADA system as an integer. I can unpack the integer and inspect each bit in the SCADA system. How can I pack the bits into the integer using Siemens PLC ladder or function block logic?