I'm developing a project on a Siemens PLC and i'm wondering if I should use a Word or a UINT to store a 16-bit value. Is there any differences between the two?
Generally there is no real difference between the two. The only time where it really matters is when the input type to a function block is either a WORD
or UINT
. Then it will matter.
Generally speaking, if you are choosing between a UINT
or a WORD
to store a numerical value the typical best practice is go ahead an use an UINT
. If you are looking to store a hex value you would want to use the WORD
.