Hello,
I would like to convert a DINT format in Word but with a different way to TO_WORD.
For example, if I use TO_WORD with 70 000 ( 1 1170 hexa) I will have only a word with the value 1170 (hexa). I would like to convert the value 70 000 (decimal) with a LSB word and MSB word.
How can do that ?
Thanks for your help.
Pascal.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I would like to convert a DINT format in Word but with a different way to TO_WORD.
For example, if I use TO_WORD with 70 000 ( 1 1170 hexa) I will have only a word with the value 1170 (hexa). I would like to convert the value 70 000 (decimal) with a LSB word and MSB word.
How can do that ?
Thanks for your help.
Pascal.
more posts ...
Hello
With a UNION:
then create a variable of this type and the WORDs
Then you can access the WORDs...
Related
Talk.ru: 1
Hello ph0010421,
Many thanks for your answer, it's perfect :)