The Xentara Siemens S7 Driver v1.1.2
User Manual
JSON Format for Data Blocks

A JSON object describing a data block has the following syntax:

{
"@Skill.S7.DataBlock": {
"name": "DB 1",
"UUID": "b8214ea4-0fa8-4fda-b793-e69936ede810",
"ACL": { ... },
"DB number": 1,
"children": [
...
]
}
}

Object Members
nameA string value containing the name of the data block. The name is used to construct the data block’s primary key.
UUIDA string value containing the unique UUID of the data block.
ACLAn optional JSON object containing the element ACL of the data block. The format of the object is described under JSON Format for ACLs in the Xentara user manual.
dbNumberThe data block number in the target S7 PLC.
children

A JSON array containing the data items and structs of the data block.

Note
All data items of a data block must have the “DB” memory area marker in their logical addresses. Also if the optional “DB number” is included in their logical addresses, it must be the same as the data block’s "dbNumber".

The individual child elements are each represented by a double nested JSON object, as described in Element Blocks under Structure of the Model File in the Xentara user manual. The outer object has a single member whose name is the type of element, and whose value is another JSON object that contains the actual properties of the element.