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

A JSON object describing a PLC has the following syntax:

{
"@Skill.S7.PLC": {
"name": "PLC 1",
"UUID": "f344490b-0884-42b2-95e2-d9bcd4d4f5f8",
"ACL": { ... },
"hostName": "plc-1.mycompany.com",
"rack": 0,
"slot": 1,
"children": [
...
]
}
}

Object Members
nameA string value containing the name of the PLC. The name is used to construct the PLC’s primary key.
UUIDA string value containing the unique UUID of the PLC.
ACLAn optional JSON object containing the element ACL of the PLC. The format of the object is described under JSON Format for ACLs in the Xentara user manual.
hostNameThe target S7 PLC host name or IP address.
rackThe target S7 PLC rack number.
slotThe target S7 PLC slot number.
children

A JSON array containing the data items, data blocks, structs and commands of the PLC.

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.