12/5/2010 10:07 PM | |
Posts: 18 Rating:
|
Hi Any example and explain for data type string,How use in LAD programing? Thanks |
12/6/2010 1:02 AM | |
Joined: 10/7/2005 Last visit: 6/9/2023 Posts: 2969 Rating:
|
Hello hextalker To start witha String belongs to the group ofso called "complex" data types. This does however NOT mean that Strings are "complex" to use, but simply rather that their lenght exceeds that of a (max 4 Bytes long) "elementary" data type . If you want to keep it simple,youhandle a String as a whole and use the available IEC Functions, you can however alsomanipulateindividual Elements of the String if you choose to do so (see attached for its format). Anyway, below are a few hopefully useful FAQ's and bear in mind too theinbuilt S7 help whereyou'll findmore info concerning theString data types: Which functions and IEC standard functions exist in STEP 7 for converting and comparing string variables? How do you transfer string variables from a data block to a function blocks, for example? How can you copy STRING data types such as e.g. FB/FC parameters and DB variables? Last but not least, please note that excessive String manipulations in the PLC can be runtime ardeous. I hope this helps |
Cheers |
|
This contribution was helpful to
6 thankful Users |
Follow us on