Herunterladen Inhalt Inhalt Diese Seite drucken

Requesting Port Information; Requesting An Io-Link Device Parameter (Applicationspedifictag); Setting An Io-Link Device Parameter (Applicationspecifictag); Setting A Master Parameter (Sysname) - Balluff BNI PNT-502-102-Z078 Konfigurationsanleitung

Netzwerkschnittstelle
Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

BNI PNT-508-105-Z067 / BNI PNT-508-105-Z077 / BNI PNT-502-102-Z078
Network interface
4
WebUI/web interface (continued)
4.8.3

Requesting port information

All relevant configuration and status data for all IO ports of
a module can be requested via:
http://[ip-address]/api/balluff/v1/ports/information
Fig. 4-41: Requesting the port identification
4.8.4
Requesting an IO-Link device parameter
(applicationSpedificTag)
Device-specific parameters can be requested via the
following addresses:
http://[ip-address]/api/balluff/v1/devices/identification
http://[ip-address]/iolink/v1/devices/[deviceAlias]/
identification
A request via the generic REST API is the bulk version of
the identical request via JSON for IO-Link.
In the case of a request via JSON for IO-Link, a deviceAlias
is also specified. This corresponds to the device
designation that must be configured previously. The
standard device designation is Port_Xyz, with yz
representing the port number (e.g. Port_X00).
In the case of successful execution, a JSON object with
parameters such as vendorID, productName and
applicatonSpecificTag is supplied as a response.
www.balluff.com
4.8.5
Setting an IO-Link device parameter
(applicationSpecificTag)
The use of a POST request requires login (see
chapter 4.8.1 on page 42).
Device-specific parameters for connected IO-Link devices
can be set via the following address:
http://[ip-address]/iolink/v1/devices/{deviceAlias}/
parameters/{index}/value
The deviceAlias corresponds to the device designation of
the IO-Link device (e.g. Port_X00). The Index reflects the
ISDU parameter variable to be set in the IO-Link device. In
the case of the applicationSpecificTag, this would be the
value 24.
To set values, a JSON object must also be specified, in
which corresponding parameters and values are specified
as in the following example:
{ "value": [
49,
50,
51,
52,
53,
54
]}
In the case above, parameter 24 (applicationSpecificTag)
was described with the ASCII string 123456.
Successful execution is not confirmed in the form of a
JSON object, but with a Code 204 (Successful operation).
4.8.6

Setting a master parameter (sysName)

The use of a POST request requires login (see
chapter 4.8.1 on page 42).
A master parameter, such as SysName, can be set via the
following address:
http://[ip-address]/api/balluff/v1/
A JSON object with the corresponding information must
also be specified:
{
"sysName": "[SysName]"
}
Successful execution is not confirmed in the form of a
JSON object, but with a Code 204 (Successful operation).
If you are unable to implement your application
case with the examples listed below and the
information from the specifications for the REST
APIs, please contact us with a description of your
application case.
You can find the corresponding contact details at
www.balluff.com.
english
43

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Bni pnt-508-105-z077Bni pnt-508-105-z067

Inhaltsverzeichnis