IO-Link master with EtherCAT interface DataLine 4 ports IP 65 / IP 66 / IP 67
128
Service: gettree
61193
Name:
gettree
Description:
The service reads the device description of the IO-Link master and outputs it as a JSON
object. The output can be limited to a subtree of the device description.
Request data ("data" field):
Data field
Mandatory
field
Data type
Description
adr
optional
STRING
Root element of the subtree
level
optional
STRING
max. level up to which the subtree is output
▪
no entry: all levels will be displayed
▪
0: do not display sub-elements ("subs")
▪
1: display sub-elements
▪
2: display sub-elements up to the 2nd level
▪
3: display sub-elements up to the 3rd level
...
▪
20: display sub-elements up to the 20th level
Return data ("data" field):
Data field
Mandatory
field
Data type
Description
identifier
mandatory
STRING
Identifier of the root element
type
mandatory
STRING
Type of the element
format
optional
JSON Object
Format of the data content
uid
optional
STRING
profiles
optional
JSON-Array
subs
mandatory
JSON-Array
Sub-elements
hash
optional
STRING
Examples:
•
output the complete device description
{
"code":"request",
"cid":4,
"adr":"/gettree"
}
•
output the subtree counter[2] of the device description up to the 2nd level
{
"code":"request",
"cid":4,
"adr":"/gettree"
"data":{
"adr":"counter[2]",
"level":2}
}