Industry Online Support
Technical Forum
11/8/2011 4:46 PM | |
Joined: 6/5/2009 Last visit: 6/8/2023 Posts: 149 Rating:
|
Dear Experts, I have a problem. I have developed a block that helps me split the time from SFC 1 into year, month, day, hour, min, second, ms and the day of the week. But the issue now is that I need to get the day in the text format like 'Sunday', 'Monday' etc. I have checked the data format for the complex data type "String". It is clear that a string occupies n + 2 bytes of data (1 & 2 for specifing the size and the length). So how am I supposed to get the stuff moving? I am short of ideas. I tried moving charecter by charecter to the offset of the string address, but it does'nt work. Please let me know what to do. The program is attached here. regards, Grim reaper
AttachmentTime_300_.zip (27 Downloads) |
11/30/2011 11:09 AM | |
Joined: 10/10/2005 Last visit: 3/16/2023 Posts: 1909 Rating:
|
Hello, there is an example program in the internet which could be mainful for you. This program is with indirect addressing (ANY-Pointer). http://support.automation.siemens.com/WW/view/de/22819915 With best regards |
Follow us on