4/4/2012 6:57 PM | |
Joined: 7/7/2010 Last visit: 10/15/2024 Posts: 15316 Rating: (2430) |
Does this document help? http://support.automation.siemens.com/WW/view/en/1137188 Search for array and you will see several 2 dimenional array examples. Maybe something in there will answer your question(s), though to be honest, I do not know what your question really is. |
Last edited by: O_Moderator at: 4/5/2012 8:38 AMlink edited science guy |
|
This contribution was helpful to1 thankful Users |
4/19/2012 6:09 AM | |
Joined: 1/28/2009 Last visit: 10/11/2024 Posts: 6852 Rating: (1365)
|
Hello CarlesG, One possible presentation and initialization,See the attachment.Please,note the symbols assignment utilized. [code] ORGANIZATION_BLOCK OB1 VAR_TEMP // Reserved info : ARRAY[0..19] OF BYTE; // Temporary Variables END_VAR // Statement FOR hd1:= 0 TO 10 BY 1 DO // Statement Section FOR hd2:= 0 TO 20 BY 1 DO // Statement Section ardb.ar[hd1,hd2]:=2; ; END_FOR; ; END_FOR; ; END_ORGANIZATION_BLOCK[/code] Best regards, Hamid Hosseini AttachmentQtest.zip (397 Downloads) |
Last edited by: hdhosseini at: 4/19/2012 6:13 AM |
|
This contribution was helpful to1 thankful Users |
Follow us on