2/14/2018 1:02 AM | |
Joined: 2/18/2015 Last visit: 1/16/2024 Posts: 66 Rating:
|
Hello Dears: I want to set all the elements of a array of strings [1..30] to the value ''. That is to say, I need to delete all the string elements of an array [1..30]. I working with TIA PORTAL V15 and a PLC S7-1500. Moreover, I am programming in LADDER language. My question is if there is a block function to do this. If not, what would be the best way to solve this problem. Thanks in advanced ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 2/14/2018 11:06:51 AMNew subject after splitting |
|
2/14/2018 5:29 PM | |
Joined: 7/7/2010 Last visit: 8/16/2024 Posts: 15092 Rating:
|
I am not sure what you want to do. Do you want to set all 30 strings in the array to '' meaning the null string with length of 0, or, do you mean, every single "character" in your array of 30 strings (of unknown length) to the null string ('') even though the strings can be set to null? Or, do you mean you have a string of length 30, with 30 "characters" in an array starting at 2 bytes past the start of the string in your DB, setting the characters within a single string to the null character ('')? The topic's title was created by a moderator when they split off. Feel free to edit the topic title to reflect what it is you want. If you cannot edit the title, ask a moderator to do it for you. Maybe someone already answered your question with the ladder loop below. Or maybe a simple block move with a non-optimized DB with your string(s) can do the trick with a simple FB call. Many ways to solve each of the problems. But knowing which one you are trying to solve would help. Maybe a picture of your DB containing the thing(s) you want to assign null '' to??
|
science guy |
|
Follow us on