Response Specifications - Mitsubishi Electric MELSEC iQ-RJ71EN71 User Manual

Ethernet
Hide thumbs Also See for MELSEC iQ-RJ71EN71:
Table of Contents

Advertisement

■Response specifications

The following table lists the parameters used for the response.
Parameter
Data type
name
RET
string
DATA
string
The format of the response data is JSON.
Ex.
Response data of the device read CGI
{
"RET" : "0",
"DATA" : [
"100",
"FABC"
]
}
The above response is transferred in the following format on a message.
{"RET":"0","DATA":["100",  ,"FABC"]}
When the execution result is abnormal, only RET is transferred.
{"RET":"4031"}
To display the device value in the real number format on the Web page, specify D: Double word for the device
size and execute a request (1). Convert the read data to the real number format by using JavaScript (2).
Web page
Description
Execution result (hexadecimal string)
0000: Normal
0001: Not logged on
0005: Incorrect request source (Referer)
4005: Number of points over
4030: Incorrect device type
4031: Out of device range
4041: Error due to the specified buffer memory number + specified number of transfer points out of buffer memory range
4043: Error of when the specified module does not exist
4080: CGI parameter error
Reading value (array)
Hexadecimal string
D0
B36FH
D1
DATA[0]
"35a5b36f"
Single-precision
D0
real number
35A5H
(1)
(2)
1.234568E-06
1 FUNCTIONS
161
1.12 Web Server Function
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents