error messege with FB

islam nasser

Member
Join Date
Oct 2010
Location
mansoura
Posts
5
hi that i may first time to create fb in siemens S7 300 plc
i try to create a Fb(function block) to use in my programe
but while saving this messege apper
112010071149t054ru0.bmp


any one can help me?
 
you need to recreate your IDB.

Delete it, open block where FB is called and cut and re-paste the FB, DB call and it will recreate the IDB, then transfer it into the PLC.
 
you need to recreate your IDB.

Delete it, open block where FB is called and cut and re-paste the FB, DB call and it will recreate the IDB, then transfer it into the PLC.

this problem not happens when calling the Fb , it happens when i finished from writting the code of FB and try to save the FB code
 
When ever you change the interface in an FB, you will get this message. Creating the FB is also changing the interface as previously it did not exist.

An interface change refers to a change to IN, OUT, IN_OUT and STAT variables - adding or changing a data type. Changing the temp area is not classed as an interface change.
 
When ever you change the interface in an FB, you will get this message. Creating the FB is also changing the interface as previously it did not exist.

An interface change refers to a change to IN, OUT, IN_OUT and STAT variables - adding or changing a data type. Changing the temp area is not classed as an interface change.

thanks for your reply
but please tell me your explanation to that 'When this block is
loaded, the CPU goes into the STOP mode."
 
It means the PLC could stop, not will. It is possible if the DB is no longer valid (too short for example) then the PLC can go to stop mode if it tries to access data that does not exist in the DB in the PLC.

You need to do as I said above after saving the FB and download both blocks.

Either download when the system is stopped, therefore the PLC crashing is not a problem, or ensure OB121 is loaded into the PLC which will stop the PLC crashing on program fault.
 
It means the PLC could stop, not will. It is possible if the DB is no longer valid (too short for example) then the PLC can go to stop mode if it tries to access data that does not exist in the DB in the PLC.

You need to do as I said above after saving the FB and download both blocks.

Either download when the system is stopped, therefore the PLC crashing is not a problem, or ensure OB121 is loaded into the PLC which will stop the PLC crashing on program fault.

...after saving the FB and download both blocks and instance DB
 
Also you can
1 Save you FB
2 Open OB, FB or FC where calling you modified FB, press file / Check and update Accesses, save it
3 Select both blocks and instance DB and download it to PLC :)
All must work without ‘CPU goes into the STOP mode’
 
Also you can
1 Save you FB
2 Open OB, FB or FC where calling you modified FB, press file / Check and update Accesses, save it
3 Select both blocks and instance DB and download it to PLC :)
All must work without ‘CPU goes into the STOP mode’

thanks to all for your efforts
problem is solved

i think that "Select both blocks and instance DB and download it to PLC "
is the proper solution
 

Similar Topics

Hello Everyone, I have a issue with communication between two different PLCs. So here is the facts, The Master PLC is Guard Logix 5069 with IP...
Replies
2
Views
30
Hi Siemens guys! I am experiencing SF fault on our S7-300 (6ES7 315-2AH14-0AB0) CPU from time to time. I've checked the diagnostic buffer and...
Replies
13
Views
162
Hello..I am new to Plc.I have Mitsubishi Melsec Fx3Ga-40MR PLC controlling a machine for packing powder.Currently the Plc has issue which power...
Replies
3
Views
129
hello, I'm a student and for my final grade I have to repare a sepro robot. the only problem I have for now is that i have an error code 3...
Replies
0
Views
35
Dear All, i am trying to connect Danfoss inverter with s7 200 cpu 226.but microwin shows following error at DATA Ptr.i assigned different VB...
Replies
1
Views
45
Back
Top Bottom