Not able to open cyclic.fbd file

Hi team.

I am not able to open a cyclic.fbd file. When i try to open the file, the error - Load error. File is corrupted mesaage appears.

Whereas, i can open newly created cyclic.fbd files.

Need help in this situation.

Hi,

did you try to open it in a text editor and see if it shows any weird characters somewhere it’s not supposed to show them? Maybe it’s really corrupted, as the message indicates?

Hi Michael.

I have tried to check the text editor but i am not able to understand the text editor to find the abnormality in the file.

I needed help in order to understand that text file and what is causing that error.

Unfortunately as a new user in this community, it is not allowing me to upload the docx file for others to review it.

I work for ABB, so let me know if we can connect via teams

Hi there,

I don’t understand the structure of an FBD file either, I was just thinking there might be some invalid characters in there for example which you might be able to spot. Also you might be able to spot if that file is complete (goes from PROGRAM _CYCLIC until END_PROGRAM)
Since I can’t read it myself, sharing via Teams makes no sense. I have unlocked your ability to share files here, though, in case you can/want to do that for others to help. Please do not share any code you may not share publicly, though, of course :slight_smile:

Best regards

Hi Michael.

Thanks for granting the access,

I have uploaded the file in this message.

Any suggestions or help are most welcomed.

Cyclic_FBD.docx (120.3 KB).

Just for RCA, what are the causes that can corrupt a program file?

Just wondering, but why aren’t you just sharing either the .fbd file or rename it as .txt and upload that? Copy&pasting it into a word document is extra effort on both sides, yours to do it and everyone else’s to copy the code back to a proper file.

Corrupt files can happen via file system errors, errors while saving, esp. when a powerfail occurs, someone checking in a file after they changed something manually (and did so wrongly), … various possibility, list incomplete


Edit: In fact, I just found out that there are non-visible characters in a working FBD file and your docx file does not contain them. Copy&pasting the code from your docx to a fbd file makes AS crash since it’s more than corrupted.

Please upload the original file without any copy&pasting involved

Hi thanks for looking into this matter.

I have shared both .fbd and .txt as you suggested. These are unedited.

Code.zip (22.5 KB)

Also, i had uploaded the docx file because the automation studio itself gave an option to edit in word.

Hi @Mahesh_Konar, what is status of your topic, can you update us?

Hi There.

It seems there is some limitations for maximum Function blocks that can be inserted in single program. We split the application into multiple programs and resolved it.

That was only possible since we had latest backup. But i am afraid, incase of no backups available, it could be huge issue

Can you contact local B&R office support and provide them project? maybe the cause is different . it is up to you. Thanks for update anyway.