-3

I need to read all parameters on a data block. I can read Family (like pool, math, control, ...) and mc7 size that show total size of block by moka7 (a java version of snap7), but now, I need to load all parameters inside a data block.

On attachment you can see all parameters of a MATH data block, show by DB param utility in SIMATIC MANAGER (STEP 7)

sample of data parameters

Alireza
  • 126
  • 1
  • 14
  • 1
    What have you tried to load the parameters inside the data block? What problems have you encountered? Can you also post your current code? – Roan Aug 15 '17 at 05:52
  • do you know snap7? moka is java version of snap7 and I use it to read plc data – Alireza Aug 15 '17 at 06:30
  • I have no any problem when read data from plc. I only need to can read data block structure – Alireza Aug 15 '17 at 06:32

1 Answers1

1

Ok!

After a week searching about this question, I open files in simatic project one by one, and find SUBBLK.DBF and DBT and BAUSTEIN.DBF and DBT inside ombstx folder. these are two dBase files.

with these 2 file you can know any information about all objects like FB, FC, DB and ..., with enough information about that.

After this exploration!, I found this links with continues search that can show better information about 2 above files. project bloc list in excel file and THIS

finally, you can use JavaDBF library to read data from your DBF and DBT files :) (block's structure stored in DBT files) .

Alireza
  • 126
  • 1
  • 14