Javier G.M. - 2014-11-28

Hi all,
I'm doing an app based on Siemens PLC. I have two units, an S7400 and a S7300. I have to record several system states so I'm using the win32 app's "testISO_TCP.exe" and "testISO_TCPLoad.exe" in order to upload and download all data blocks from both PLCs.
The first time I'm uploading the DataBlocks, everything is correct, but after I download the DataBlocks into the PLC, I'm not able to read DataBlocks anymore.

The PLC has 599 DataBlocks, first time I'm reading, everything is correct, the debug says this:
599 blocks of type DB
daveBlockName(bn:65)
DB1 18 5
****initUpload
PDU header:
0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x00,

After downloading, TestISO_TCP debug says that
daveBlockName(bn:65)
61186 blocks of type DB
daveBlockName(bn:65)
DB256 18 5
****initUpload
PDU header:
0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x00,

This is the problem, after download the DataBlocks, stored in DBx.mc7 format, the PLC responds to TestISO_TCP that it has 61186 datablocks, but going online with S7Manager and the datablocks are the same. I'm not sure about from which app is this coming. I don't know if the problem is coming from the upload or from the upload app.

Can help me anyone?, please.

If this is not working, I'm thinking in read and store the values from all DataBlocks and then write in to the PLC's.

Thank you all.