(0)| 6/14/2012 10:49 PM | |
|
Joined: 1/28/2009 Last visit: 12/24/2025 Posts: 6885 Rating:
|
Hello OUFAN75, I support indirect addressing!See the attachment [code] L P##STAT1 LAR1 L 16 hd: T #loop1 SET = [AR1,P#0.0] L P#0.1 +AR1 L #loop1 LOOP hd[/code] and here more information on indirect addressing: STEP 7 -- Creating S7 programs -- Indirect Addressing Hope this helps Best regards, Hamid Hosseini |
Last edited by: hdhosseini at: 6/14/2012 10:56 PM// new link added |
|
| 6/14/2012 11:05 PM | |
|
Posts: 21 Rating:
|
Thanks for the response, but I guess I should have specified I am programming in LAD language. Having a bit trouble following the STL example you provided. |
| 6/14/2012 11:16 PM | |
|
Posts: 21 Rating:
|
The MOVE statement does not accept BOOL ARRAYS as a valid data type. How do I clear or move a zero into 16 BOOLS with one statement? |
| 6/14/2012 11:21 PM | |
|
Joined: 1/28/2009 Last visit: 12/24/2025 Posts: 6885 Rating:
|
Try this please,See the attachment!I did clear all coils cell by cell with an always false bit. Best regards, Hamid Hosseini Attachmentarray.zip (263 Downloads) |
Follow us on