angi Member A Join Date Jan 2010 Location us Posts 361 Feb 11, 2010 #1 Hi all I got a problem for string creation: I need to convert floating data to string, how to creat the string for decimal point? Thanks
Hi all I got a problem for string creation: I need to convert floating data to string, how to creat the string for decimal point? Thanks
Manglemender Member M Join Date Jul 2007 Location Lancashire Posts 1,295 Feb 11, 2010 #2 Give us a clue, what environment do you need to create a string in? Allen Bradley? Siemens? PLC? SCADA? VB? C?
Give us a clue, what environment do you need to create a string in? Allen Bradley? Siemens? PLC? SCADA? VB? C?
angi Member OP A Join Date Jan 2010 Location us Posts 361 Feb 11, 2010 #3 string I need to creat it in Micrologix1100.
TheStarr Member Join Date Jan 2009 Location Florida Posts 383 Feb 12, 2010 #4 There is no direct command in Micrologix to do this. Integer to string, yes. Float to string, no. But it is possible. The "SEARCH" function is a good tool, you should try it. I found this post: http://www.plctalk.net/qanda/showthread.php?t=27395&highlight=micrologix+float+string Check out post #8, it has a PDF that shows how to convert a float to a string. Doesn't look simple, but follow the example and you should be fine.
There is no direct command in Micrologix to do this. Integer to string, yes. Float to string, no. But it is possible. The "SEARCH" function is a good tool, you should try it. I found this post: http://www.plctalk.net/qanda/showthread.php?t=27395&highlight=micrologix+float+string Check out post #8, it has a PDF that shows how to convert a float to a string. Doesn't look simple, but follow the example and you should be fine.
bernie_carlton Lifetime Supporting Member + Moderator Join Date Apr 2002 Location Yakima, Washington Posts 6,413 Feb 12, 2010 #5 This idea was continued in his second thread here.