I created a FB (FB15) to prepare some logics and loaded to plc...
But when i try to open it in online mode it says "The statements are not being processed"...
I checked internet and found that
Generally that message appears when the function is not being called from a higher block.
You could check through the cross-references (program calls) whether the block is being called from an active block.
But the fact is this is not a FB that i call from somewhere, i just do some calculations,call a couple of other FB's and some simple logic...
Can someone help me out for this... (This fb does not even have its own DB)
Is there a way for me to call this FB from other FB's (even if i don't and don't want to use it in it)
Thanks for your help =)
P.S. : i can look all other fb and db's online but due this block is not being processed somehow all data i write in it seems null (W#16#0 or 0 or 0.0) etc... and i know most of them are not!
P.P.S. : Can someone also tell me how to create an instance data block for my FB?
Then i can add it in OB1!
[?]: The statements are not being processed?!?!!...
-
- Posts: 60
- Joined: Mon Sep 24, 2007 1:03 pm
- Location: Somewhere in Europe
-
- Site Admin
- Posts: 1387
- Joined: Sat Aug 13, 2005 6:15 am
Re: The statements are not being processed?!?!!...
"The statements are not being processed"...
if your block not called or called in one-shot us you can`t see online status
"create an instance data block for my FB"
simple : call into your over block this fb with any not presented in your programm db
call fb1,db250
if your block not called or called in one-shot us you can`t see online status
"create an instance data block for my FB"
simple : call into your over block this fb with any not presented in your programm db
call fb1,db250
-
- Posts: 60
- Joined: Mon Sep 24, 2007 1:03 pm
- Location: Somewhere in Europe
Re: [?]: The statements are not being processed?!?!!...
thanks sania....
i just made an instance data block for my fb....
now i need to place it in my ob1 so i think it will be just fine.....
i just added an empty box in a new network in OB1,i named it as "fb15" so i think it will work...
do you think so?.....
For other followers of the topic i will write down the solution i created but not tested yet -due the cpu is online and working in a power plant- so not confirmed. If everything is ok i will write down here...
1) i created a DB and i chose "instance DB from opening table.. chose my FB",
2) it copied down all the info from my FB.
3) i opened my OB1 and at the end of diagram i placed a new network, there i inserted an empty box by right click.. i wrote down FBXX (in my example FB15),
4) it appeared but with a red "?" on it where i wrote the instance data block name DBXX (in my example DB15),
5) i saved OB1, checked the project for consistency and checked online for time stamp differences.
6) waiting for plant to stop so i can upload the files. (Although i can download the files without stopping CPU, i want to stay at safe side)
will let you know if it worked...
Kind Regards,
i just made an instance data block for my fb....
now i need to place it in my ob1 so i think it will be just fine.....
i just added an empty box in a new network in OB1,i named it as "fb15" so i think it will work...
do you think so?.....
For other followers of the topic i will write down the solution i created but not tested yet -due the cpu is online and working in a power plant- so not confirmed. If everything is ok i will write down here...
1) i created a DB and i chose "instance DB from opening table.. chose my FB",
2) it copied down all the info from my FB.
3) i opened my OB1 and at the end of diagram i placed a new network, there i inserted an empty box by right click.. i wrote down FBXX (in my example FB15),
4) it appeared but with a red "?" on it where i wrote the instance data block name DBXX (in my example DB15),
5) i saved OB1, checked the project for consistency and checked online for time stamp differences.
6) waiting for plant to stop so i can upload the files. (Although i can download the files without stopping CPU, i want to stay at safe side)
will let you know if it worked...
Kind Regards,
-
- Posts: 60
- Joined: Mon Sep 24, 2007 1:03 pm
- Location: Somewhere in Europe
Re: [?]: The statements are not being processed?!?!!...
yes... it seems to be working....
=)
kind regards....
=)
kind regards....