Remote I/O module 16 DI
AL4102
33
{
"cid":4711,
"data":{
"processdatamaster/temperature":{"code":200,"data":44},
"deviceinfo/serialnumber":{"code":200,"data":"000174210147"}},
"adr":/getdatamulti",
"code":200
}
9.2.3.3 Example: Changing a parameter value
Task:
The Application Tag parameter of the device is to be written with the value “Do not use”. The
new value is only supposed to be valid until the next reboot of the device.
Solution:
Write the new value of the
/devicetage/applicationtag
element with the
setdata
service. To keep the new value only until the next restart of the device, pass on the
duration
option
with the
uptime
value.
•
Request:
{
"code":"request",
"cid":4711,
"adr":"/devicetag/applicationtag/setdata",
"data":{"duration":"uptime","newvalue":"Do not use"}
}
•
Response:
{
"cid":4711,
"adr":"/devicetag/applicationtag/setdata",
"code":200,
}
9.2.4 Fieldbus: Read the interface configuration
Substructure:
fieldbussetup
Available data points:
Name
Description
Values
Access
../network/ipaddress
IP address of the Ethernet interface:
e.g. 192.200.0.100
• 0.0.0.0 (default)
ro
1
../network/subnetmask
Subnet mask of the network segment
e.g. 255.255.192.0
• 0.0.0.0 (default)
ro
1
../network/ipdefaultgateway
IP address of the network gateway
e.g. 192.200.63.1
• 0.0.0.0 (default)
ro
1
../network/hostname
Name of device in PROFINET project
e.g. al4x0x
ro
1
../network/macaddress
MAC address of the Ethernet interface
e.g. 00:02:01:0E:10:7C
ro
1
../fieldbusfirmware
Version of the PROFINET firmware of the de-
vice
e.g. 5.4.0.3 (PROFINET IO De-
vice)
ro
1
../connectionstatus
Status of the connection to the PROFINET
network
• 0: not connected
• 1: connected
ro
1
1
read only