Didn't know about the .wld trick, just read up on it.
I am using the following procedure:
In the project directory find the subdir "ombstx\offline"
In this folder you will find one "numbered" subfolder for each S7program in your project. In these program subfolders you will find 2 databases:
Baustein.dbf
Subblk.dbf
Studied them with an appropriate viewer to get the grips on them. Interresting data is in memo fields in these databases. Some of these fields are in plain text and can be studied with viewers, others (that interrest us) contain binary data.
The memo field of a database are stored in seperate files (*.dbt). The field in the dbf file only contains an id to an entry in the .dbt table
http://www.clicketyclick.dk/databases/xbase/format/dbf.html can tell you a lot about getting access to these fields.
Each "Subblk" record entry contains memo fields "MC5CODE", "SSBPART", "ADDINFO". These contain the number of the associated memo block in the dbt file.
Blocks in your s7blocks container have associated records in the Subblk database. There are one or more records per block, they differ in "SUBBLKTYP". So far I am pretty shure of the following:
For FC x:
entry with SUBBLKTYPE == 12 and BLKNUMBER == x has the number of the memoblok containing <the binary code> in field "MC5CODE"
entry with SUBBLKTYPE == 5 and BLKNUMBER == x has the number of the memoblok containing <the interface description in plain text> in field "MC5CODE"
For OB x:
entry with SUBBLKTYPE == 8 and BLKNUMBER == x has the number of the memoblok containing <the binary code> in field "MC5CODE"
entry with SUBBLKTYPE == 6 and BLKNUMBER == x has the number of the memoblok containing <the interface description in plain text> in field "MC5CODE"
For FB x:
entry with SUBBLKTYPE == 14 and BLKNUMBER == x has the number of the memoblok containing <the binary code> in field "MC5CODE"
entry with SUBBLKTYPE == 4 and BLKNUMBER == x has the number of the memoblok containing <the interface description in plain text> in field "MC5CODE"
In other memoblocks you can find things as network titles, block title, comments, etc.