JSON 69 (258)
metadata2.json
GET adi/metadata2.json?offset=<offset>&count=<count>[&callback=<function>]
GET adi/metadata2.json?inst=<instance>&count=<count>[&callback=<function>]
This is an extended version of the metadata function that provides complete information about
the ADIs. This extended version is needed to describe more complex data types such as
Structures.
The information provided is a transparent representation of the attributes available in the host
Application Data object (FEh). See the Anybus CompactCom 40 Software Design Guide for
more information about the content of each attribute.
The ADI metadata is static during runtime.
Request data:
Name Data Type Description
offset Number Offset is the “order number” of the first requested ADI.
The first implemented ADI will always get order number 0. Meta-
data objects for <count> number of existing ADI will be returned. I.
e. non-existing ADIs are skipped.
inst Number Instance number of first requested ADI.
Metadata objects for <count> number of ADI values are returned.
A null object will be returned for non-existing ADIs
count
String Number of requested ADI values
callback Number Optional.
A callback function for JSONP output.
Response data:
Name Data Type Description
instance Number
-
numelements Array of umbers
-
datatype Array of
Numbers
Array of datatypes.
For Structures and Variables, each array element defines the data
type of the corresponding element of the instance value. For Ar-
rays, one array element defines the data type for all elements of
the instance value.
descriptor Array of descriptors.
For Structures and Variables, each array element defines the de-
scriptor of the corresponding element of the instance value. For
Arrays, one array element defines the descriptor for all elements
of the instance value.
name
May be NULL if no name is present.
min String Hex formatted string, see Hex Format Explained, p. 83 for more
information.
May be NULL if no minimum value is present.
max
String Hex formatted string, see Hex Format Explained, p. 83 for more
information.
May be NULL of no maximum value is present.
default String Hex formatted string, see Hex Format Explained, p. 83 for more
information.
May be NULL of no default value is present.
numsubelements Array of
Numbers
For Structures and Variables each array element defines the num-
ber of subelements of the corresponding element of the instance
value.
May be NULL if not present.
elementname Array of Strings Array of names, one for each instance value element.
May be NULL if not present.
Anybus
®
CompactCom
™
40 PROFINET IRT Network Guide SCM-1202-023 EN 1.8