9/14/2014 11:18 AM | |
Posts: 12 Rating: (0) |
Dear Colleagues, As I write down on the topic I would like to read state from input (16 different input (Bool)) and copy to one word. I do not want to use standard function SFC20 but I would like to use own function. At enclosed I add my program at FB290, unfortunately I still go to stop on PLC when I use my function. Please dear colleagues help me solve this problem. Best wishes for everybody AttachmentCopyData_20140914.zip (252 Downloads) |
9/14/2014 8:51 PM | |
Joined: 1/28/2009 Last visit: 6/11/2024 Posts: 6841 Rating: (1359)
|
Result |
9/14/2014 11:15 PM | |
Joined: 1/3/2006 Last visit: 2/19/2024 Posts: 726 Rating: (71) |
Hi Thanks for letting know that file can be opened by deleting the language file ! Your concept how to do the things was correct but just few implementation problem. Your FB290 had one problem: You were trying to access the STAT area of the FB290 (#Help_Area.Coll_Signal) in NW2 before restoring AR2. This you can't do becaususe
Attached is the working program which contains FB290 of yours with minimal changes and with necessary comments added. Also I have attached FB291 which will give you idea how to use instance DB. You need not open Instance DB inside FB because its already opended by PLC by default. And to access various elements of the Instance DB you need something like this DIX and not DBX. Regards Manmeet AttachmentCopyData_20140914.zip (132 Downloads) |
This contribution was helpful to1 thankful Users |
9/15/2014 4:59 PM | |
Joined: 1/3/2006 Last visit: 2/19/2024 Posts: 726 Rating: (71) |
Hi hdhosseini For multi instnace why not something like this? L DIW[AR2,P#0.0] CAW T #O_Coll_Signal |
Follow us on