5/26/2011 10:35 AM | |
Posts: 691 Rating:
|
Dear AmirAlwaled The solution of your problem is some what indirect. I can't find direct method of auto increementing in a string variable. What I suggest is that
|
This contribution was helpful to
2 thankful Users |
5/26/2011 6:03 PM | |
Posts: 148 Rating:
|
Thanks a lot Shar I understand the steps. I didn't know before about FC21 and it's my first time to know the string operation functions THANKS A LOT I still need to increment the string bytes |
Last edited by: AmirAlwaled at: 5/26/2011 6:06 PM |
|
5/26/2011 8:22 PM | |
Posts: 148 Rating:
|
It's a great solution I think we should add [code]StringLength := BYTE_TO_INT(CHAR_TO_BYTE(str[0])) // assuming str[0] is 2ed byte in string [/code] SCL is a great high level programming language. I should learn it soon, but now I don't have STEP 7 Professional so I don't have SCL in my PC now I have to solve it in STL or LAD or FBD only. I thinking in :
|
5/28/2011 8:27 AM | |
Posts: 148 Rating:
|
no it is necessary you could say it is manual convert from character byte to INT word BYTE_TO_INT(CHAR_TO_BYTE()) thanks a lot Aret I appreciate your responses |
Follow us on