![Anybus CompactCom 40 EtherNet/IP Скачать руководство пользователя страница 53](http://html1.mh-extra.com/html/anybus/compactcom-40-ethernet-ip/compactcom-40-ethernet-ip_network-manual_2948758053.webp)
JSON
53
Doc.Id. HMSI-27-212
Anybus CompactCom 40 EtherNet/IP
Doc.Rev. 1.5
enum.json
GET adi/enum.json?inst=<instance>[&value=<element>][&callback=<function>].
This object call fetches enum strings for the instance <instance>. If an <element> is specified, only the
enum string for that value is returned. If no enum strings are available, an empty list is returned. Option-
ally, a callback may be passed to the GET-request for JSONP output.
JSON object layout:
[
{
"string": "String for value 1",
"value": 1
},
{
"string": "String for value 2",
"value": 2
},
...
]
update.json
POST adi/update.json - form data:
inst=<instance>&value=<data>[&elem=<element>][&callback=<function>].
Updates the value of an ADI for the specified ADI instance <instance>. The value, <data>, shall be
hex formatted (see “Hex Format Explained” on page 59 for more information). If <element> is spec-
ified, only the value of the specified element is updated. In this case, <data> shall only update that single
element value. When <element> is not specified, <data> shall represent the entire array value. Option-
ally, a callback may be passed to the request for JSONP output.
POST adi/update.json - form data: inst=15&value=FF01
{
"result" : 0
}
Name
Data Type
Note
string
String
-
value
Number
-
Name
Data Type
Note
result
Number
0 = success