Industry Online Support
Technical Forum
11/16/2006 4:37 PM | |
Joined: 9/23/2005 Last visit: 11/12/2024 Posts: 4352 Rating: (1452) |
Deer all i have cpu 300 and i creat array a[1..17] and thes array receving defrent reading. Q1. how can i make auto sortting for my array? Q2. is thear any way to use variabeladdresing for approtching the value in the array like a[md1..md17]?? Q3. how can i compear two array like a[1..17] and b[1..17]??? Best Regardes Essam Banat Hi, 1 - To do a sorting of a array, you need a user software. The FAQ http://support.automation.siemens.com/WW/view/en/865058has a example about. 2 - The size of the array is offline fixed [x..y]. It is not possible to define it online. You can acess the variables simbolic, but with fix adress (for example, banane[1]) or absolut with fix or variable adress (for example, dw10 or dw(md20)). 3 - You will need to make a user program to do it. Maybe you can adapt the FC 86 of the standard library / TI-S7 Converting Blocks to do it. |
Denilson Pegaia |
|
Follow us on