4/18/2011 7:46 AM | |
Posts: 241 Rating:
|
Dear Darius, Thanks for initiative. I have attached my test program here. I have very strange problem in OB1, you can see my description. Latching does work with Local variable when I dont call FB71in OB1 even when I call FB70, which also calling the FB71.Is not it strange. FB70 used START variable, FB71 uses Local variable, all FC using Local variable. I am not sure what is the exact secrete about S7 Local Variable in Fb and FC? AttachmentLocalvariable.zip (294 Downloads) |
Last edited by: PowerTags at: 4/18/2011 7:47 AMattachement. |
|
4/18/2011 9:43 AM | |
Posts: 241 Rating:
|
Dear Darius, I know that much what you are saying.I understand what is STAT and Local memory in the FB or FC. But I have confusion over Local variable used to latch a coil. This Standard Block used in many Project previously as claimed by my friend. I only involved myself with this when see my friend is stugling over this FC/FB, when one FB [FB71 here] is bypassed logic is working when it is not bypassed it is not working. So what is that causes the problem? Please see the attachement in previous reply. [ the Program is to simulate the problem and concept] And for info. I also recomending my friend not to use Local Variable for Latching purpose and local variables are not useful once the block is executed and exited from the Block. |
Follow us on