- HMI Model: cMT3102x
- EasyBuilder Pro Version: 6.09.02.435
- I have a UINT that holds 16 bits that I am using in Codesys as alarm bits. Each bit indicates a different alarm. (This way alarms can be nicely condensed in logic) I imported these tags to EBPro with the intention of using each bit in the UINT to trigger an event. However, when reading a tag I have to choose between using a “Bit” or a “Word.” If I choose “Word” the UINT that contains the alarms shows up, but it’s looking at the whole of the word. If I choose “Bit” the UINT doesn’t show up as it is looking for only boolean tags. Can I somehow access the bits inside of this alarm word tag?
Use an individual bit of a UINT in HMI
none
0.0
0
Due to the framework of the Codesys communication protocol, an HMI cannot access individual bit of a DINT, INT,etc… directly.
On your PLC side, you will need to create a STRUCT and UNION like this format. This way the HMI will use the multiple BIT’s within the STRUCT to perform binary access.