IO-Link master with EtherCAT interface DataLine 4 ports IP 65 / IP 66 / IP 67
40
>
Example: Reading properties of an element
59782
Task
: Determine the data type and value range of the accessrights parameter.
Solution:
Read the properties of the element
iotsetup/accessrights
of the getelementinfo service.
The fields type (data type) and valuation (range of values) contain the required information.
•
Request:
{
"code":"request",
"cid":4711,
"adr":"getelementinfo",
"data":{"adr":"iotsetup/accessrights"}
}
•
Response:
{
"cid":4711,
"data":{
"identifier":"accessrights",
"type":"data",
"uid":null,
"profiles":["parameter"],
"format":{
"type":"enum",
"namespace":"json",
"encoding":"integer",
"valuation":{
"valuelist":{
"0":"Fi IoT",
"1":"Fi IoT (read-only)",
"3":"IoT only"}}}},
"code":200
}
The accessrights parameter has the data type ENUM with the valid values "Fi IoT", "Fieldbus
+ IoT (read only)" and "IoT only".