here's a little Boot Camp lesson in memory usage ...
start up a brand new "junk" program ... go to the Controller Properties feature – to the Memory tab ... (different software versions might have this in different locations – you might have to hunt around) ...
write down the value of Max Used (31,880 bytes in the example shown below) ....
now go and set up just one BOOL tag named X ... note that's just ONE character for the name ...
now go back to the Memory tab – press the Estimate button to update the values ... now write down the current Max Used ... (31,960 in my experiment) ....
do the math ...
so in my example, we used up 80 bytes (that's 640 bits) of our processor's memory just so that we will be able to store a single bit value of ONE or ZERO ...
now go back and delete that BOOL tag – then recheck the memory used ... you should be back to 31,880 again ...
next go and set up just one DINT tag named X ... note that's just ONE character for the name ...
now go back to the Memory tab – press the Estimate button to update the values ... now write down the current Max Used ... (another 31,960 in my experiment) ....
again - do the math ...
so in my example, we used up 80 bytes of our processor's memory so that we will be able to store 32 bit values – a double integer ... (personally, I find this kind of weird) ...
and so on – and so on ...
play around with longer tagnames ... try creating Arrays of BOOLS and DINTS ...
have fun ... stay safe – stay well ...
.