EasyManua.ls Logo

Anybus CompactCom 40 EtherNet/IP - Chapter 7 JSON; General Information; JSON Objects; Adi

Anybus CompactCom 40 EtherNet/IP
198 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Doc.Id. HMSI-27-212
Anybus CompactCom 40 EtherNet/IP
Doc.Rev. 1.5
Chapter 7
7. JSON
7.1 General Information
JSON is an acronym for JavaScript Object Notation and an open standard format for storing and ex-
changing data in an organized and intuitive way. It is used as an alternative to XML, to transmit data
objects consisting of attribute - value pairs between a server and a web application. JavaScripts are used
to create dynamic web pages to present the values.
JSON is more versatile than SSI in that you not only can change the values on a web page, but also the
size and the look of the web page dynamically. A simple example of how to create a web page is added
at the end of this chapter.
Access
The JSON resources should be password protected. Add password protection by adding a file called
web_accs.cfg in the root directory. See “Authorization” on page 30 for more information.
Error
If the module fails to parse or process a request the response will contain an error object with an Anybus
error code:
{
"error": 02
}
7.2 JSON Objects
7.2.1 ADI
info.json
GET adi/info.json[?callback=<function>].
This object holds data common to all ADIs that are static during runtime. Optionally, a callback may be
passed to the GET-request for JSONP output.
JSON object layout:
{
"dataformat": 0,
"numadis": 123,
"webversion": 1
}
Name Data Type Note
dataformat Number 0 = Little endian
1 = Big endian
(Affects value, min and max representations)
numadis Number Total number of ADIs
webversion Number Web/JSON API version

Table of Contents

Related product manuals