9. Program
●
Error codes [Output_SktCmdsErrorID], [Output_SkTcloseErrorID]
If an error occurs in the connect processing, send processing or receive processing, the
error code is stored in the
Output_SktCmdsErrorID
variable and then the close processing
is performed.
If an error occurs in the close processing, the error code is stored in the
Output_SkTcloseErrorID
variable and the processing ends. The main error codes are
shown below.
Error code
Description
16#0000 Normal
end
16#0400
An input parameter for an instruction exceeded the valid range for an input variable.
16#0407
The results of instruction processing exceeded the data area range of the output parameter.
16#2000
An instruction was executed when there was a setting error in the local IP address.
16#2002
Address resolution failed for a destination node with the domain name that was specified in
the instruction.
16#2003
The status was not suitable for execution of the instruction.
•SktTCPConnect Instruction
The TCP port that is specified with the
SrcTcpPort
input variable is already connected.
The destination node that is specified with
DstAdr
input variable does not exist.
The destination node that is specified with
DstAdr
and
DstTcpPort
input variables are not
waiting for a connection.
•SktTCPRcv Instruction
The specified socket is receiving data.
The specified socket is not connected.
•SktTCPSend Instruction
The specified socket is sending data.
The specified socket is not connected.
16#2006
A timeout occurred for a socket service instruction.
16#2007
The handle that is specified for the socket service instruction is not correct.
16#2008
The maximum resources that you can use for socket service instructions at the same time
was exceeded.
16#FFFF
Processing ends without completing the executing of an instruction.
Additional Information
For details, refer to
A-1 Error Code Details and A-2 Error Code Descriptions
under
Appendices
in the
NJ-series Instructions Reference Manual
(Cat. No. W502).
Additional Information
For details on socket service errors and troubleshooting, refer to
9-7 Precautions in Using
Socket Services
of
Chapter 9 Socket Service
in the
NJ-series CPU Unit Built-in EtherNet/IP
Port User's Manual
(Cat. No. W506).
69
Summary of Contents for V750 series
Page 51: ...9 Program 2 Initialization processing 48...
Page 52: ...9 Program 49...
Page 53: ...9 Program 3 Connect processing 50...
Page 54: ...9 Program 4 Send processing 51...
Page 55: ...9 Program 5 Receive processing 52...
Page 56: ...9 Program 53...
Page 57: ...9 Program 6 Close processing 54...
Page 58: ...9 Program 7 Processing number error process 55...
Page 60: ...9 Program Program 57...
Page 62: ...9 Program Program 59...
Page 64: ...9 Program Program 61...
Page 78: ...2013 0911 P543 E1 01...