12/11/2013 4:00 PM | |
Joined: 7/7/2010 Last visit: 1/21/2025 Posts: 15549 Rating:
|
hash function: http://en.wikipedia.org/wiki/Hash_function S7-1200 Peek/Poke look in instructions on how to access them for DBs to do indirect addressing. To set up an array of string, I would suggest using the max length your strings will use rather than the default 254. Will speed up searching and save storage. SCL can loop through an array very easily to capture the stored string. |
science guy |
|
12/12/2013 12:19 PM | |
Posts: 60 Rating:
|
Huggy_d1, thanks for the explanation I have tried to use Peek Function to read through the Datablock But, it can only display "BYTE" for the result. Based on the Offline Help of TIA Portal, the default data type is BYTE. It was needed to declare another DataType if we want to display the result beside BYTE. I Tried to do so, but cannot be compiled. I think because i didn't understand where or how to declare another DataType for the Peek Function. Please help Thanks, Layudhi |
12/12/2013 12:47 PM | |
Joined: 7/7/2010 Last visit: 1/21/2025 Posts: 15549 Rating:
|
The f1 help for me showed how Peek_int(...) Peek_char(..) And so on
|
science guy |
|
12/13/2013 6:42 AM | |
Posts: 60 Rating:
|
Thanks a lot, It works now |
This contribution was helpful to
3 thankful Users |
Follow us on