10/4/2013 9:39 AM | |
Joined: 10/10/2005 Last visit: 4/18/2024 Posts: 1917 Rating: (132) |
Hello, there are some FAQs in the internet and perhaps it could be meanful for you: http://support.automation.siemens.com/WW/view/de/29419661 http://support.automation.siemens.com/WW/view/de/11841504 With best regards |
10/4/2013 11:29 AM | |
Joined: 1/28/2009 Last visit: 5/2/2024 Posts: 6838 Rating: (1359)
|
Hello, I suugest Bit-wise process of elementary data types as a sample is available here: loop is not working[code]FUNCTION FC1 : VOID// Block Parameters VAR_INPUT // Input Parameters ein:WORD; END_VAR VAR_OUTPUT AUS:ARRAY[0..15] OF BOOL; END_VAR VAR_TEMP // Temporary Variables test:WORD; hd AT test: ARRAY[0..15] OF BOOL; I:INT; END_VAR // Statement Section test:=ein; FOR I := 0 TO 15 BY 1 DO // Statement Section aus[I]:=hd[I]; ; END_FOR; ; END_FUNCTION[/code] Best regards, Hamid Hosseini |
Follow us on