Thanks a lot, i have a question, I am given a word (example: hello) like Word, how do I convert it to a String? Because if I insert in the converter only one letter at a time in ASCII it converts it, otherwise not
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
i'm a bit newby, how can i convert a word to an ASCII?
1) Install Library UTIL
2) Use Function(Word_As_String)
iWord : WORD;
oString : STRING;
oString := WORD_AS_STRING(iWord,FALSE);
See attachment for additional information.
Hope this is helpful.
-krstech
1) Install Library UTIL
2) Use Function(Word_As_String)
iWord : WORD;
oString : STRING;
oString := WORD_AS_STRING(iWord,FALSE);
See attachment for additional information.
Hope this is helpful.
-krstech
Thanks a lot, i have a question, I am given a word (example: hello) like Word, how do I convert it to a String? Because if I insert in the converter only one letter at a time in ASCII it converts it, otherwise not
Here's a snippet i've used for RS232 ASCII comm on one of my application.
I'm hoping you can extract something useful from it for your requirements.
It converts the input string "hello" to integer. Play around with it.
I hope i understand your question.
Also look into:
WORD_TO_STRING();
TO_STRING();
-krstech.i
Last edit: krstech 2022-03-09