Hello, I wonder if there is a quick way to map bool (bits) from a Byte variable to a 8 digital inputs?
I know in Beckhoff TwinCat, one can declare an array of bools and then just click and choose elements of the array during IO mapping.
I have tried similar in CODESYS, but no luck.
I have also found something similar, even though I'm not using structures, but couldn't figure it out.
I'd like to avoid declaring 8 bool variables and then mapping them to DI 8 channels. There must be a quicker way.
I have attached a screenshot to be more clear what I'm trying to do.
Thank you!
I know in Beckhoff TwinCat, one can declare an array of bools and then just click and choose elements of the array during IO mapping.
I have tried similar in CODESYS, but no luck.
I have also found something similar, even though I'm not using structures, but couldn't figure it out.
I'd like to avoid declaring 8 bool variables and then mapping them to DI 8 channels. There must be a quicker way.
I have attached a screenshot to be more clear what I'm trying to do.
Thank you!

