Hi, can anyone show me any examples of data types e.g. DWORD, UINT, REAL. Used for real world applications e.g. a DWORD is 32 bit. But what can i assign to this? What can use with this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A totaliser is often a DWORD
this way you can add words together and make calcs with them.
REAL is very much used when having analog signals.
Example input is an analog signal (WORD) of 2345
i change it with WORD_TO_REAL to 2345.0
then divide it by 10 to get actual temp at input for a Pt100 thus 234.5 degrees celsius.
UINT is used when number is not negative.
A counter is never negative so you use a UINT to get the full range instead of half of it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, can anyone show me any examples of data types e.g. DWORD, UINT, REAL. Used for real world applications e.g. a DWORD is 32 bit. But what can i assign to this? What can use with this?
A totaliser is often a DWORD
this way you can add words together and make calcs with them.
REAL is very much used when having analog signals.
Example input is an analog signal (WORD) of 2345
i change it with WORD_TO_REAL to 2345.0
then divide it by 10 to get actual temp at input for a Pt100 thus 234.5 degrees celsius.
UINT is used when number is not negative.
A counter is never negative so you use a UINT to get the full range instead of half of it.