Return Values Of Functions - Mitsubishi Electric MELSEC-Q Series User Manual

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

6.4

Return Values of Functions

The following explains the return values of the communication library functions.
(1) A code for judging the execution result is added to the head of the return
value.
For normal completion, <!OK> is added.
For abnormal completion, <!NG> is added.
For ReqCmd, <!OK> is added in the case of an MC protocol error.
(2) A code for judging an error is added at abnormal completion.
• In the case of an HTTP error, <!NG><!HTTP error "HTTP error code"> is added.
• In the case of a WinSock error, <!NG><!WinSock error "WinSock error code"> is added.
• In the case of an MC protocol error, <!NG><!MCP error "error code (end code)"> is added.
*1
Refer to either of the following manuals according to the error code, verify the error content, and take an appropriate
action.
<Error codes>
4FFF
or lower: The user's manual of the CPU module used (Hardware Design, Maintenance and Inspection)
H
C000
and higher: The user's manual (Basic)
H
• In the case of a communication library error, an error message is displayed.
(3) If the HTTP port is used or a remote password has been set in the CPU module
of access destination, create a program for remote password input
processing, using the error code for the following return value as a condition.
(For an example of how to describe a program for remote password input
processing, refer to Page 40, Section 4.5.)
<!HTTP error 401>
56
*1
*1
*1

Advertisement

Table of Contents
loading

Table of Contents