(0)| 7/24/2009 2:37 PM | |
|
Joined: 10/7/2005 Last visit: 1/15/2026 Posts: 3054 Rating:
|
Hello DeatHWilL assuming you gave DB1 the symbolic name of "DB1", then passing "DB1".Data on to your FC should work (using P#db1.dbx0.0 byte 7 will NOT work, you must do it symbolically). If it doesn't, please try the follwoing: Save DB1 and close it and then open the Block from where you want to call FC1 and try again (S7 doesn't "like it" when you edit a DB and then use its data in a Block that was already open while you edited the DB). Also, note that your array has 7 characters (i.e. 7 Bytes "odd lenght") but that it will occupy 8 bytes in the DB (S7 "likes" even lenghts and createsWORD boundaries). You may as well make it an ARRAY [0..7] of CHAR (this is however just for cosmetic purposes). I hope this helps |
|
Cheers |
|
| 7/27/2009 3:41 AM | |
|
Posts: 31 Rating:
|
Thank you fritz, It works like a charm. |
This contribution was helpful to
|
|
Follow us on