Memory addressing is measured in bytes, with BOOL occupying one byte. BIT is quite unique as it occupies one bit. So, try not to use BIT in the program.
You can use the Unpack function to solve your problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Any reason BIT and BOOL data types are not interchangeable?
Trying to make a function which takes a BOOL IN/OUT parameter (Not allowed to use BIT)
In the main logic if I make a DINT variable, and want to use each bit on different functions CODESYS will not allow it.
Memory addressing is measured in bytes, with BOOL occupying one byte. BIT is quite unique as it occupies one bit. So, try not to use BIT in the program.
You can use the Unpack function to solve your problem.