A-45
Appendices
NJ-series Instructions Reference Manual (W502)
A-3 Error Code Details
App
Name Local IP Address Not Set Error code 16#2004
Meaning The local IP address was not set when a socket service instruction was executed.
Effects User program Continues. Operation The relevant instruction will end according to specifica-
tions.
System-defined
variables
Variable Data type Name
None --- ---
Cause and
correction
Assumed cause Correction Prevention
There is a BOOTP server setting
error.
Correct any errors in the BOOTP
server settings.
Check that there are no mistakes in
the BOOTP server settings.
The BOOTP server does not exist. Make sure that the BOOTP server
has started normally and is normally
connected to the network.
Make sure that the BOOTP server
has started normally and is normally
connected to the network.
The local IP address is not set
because operation just started.
Wait until the local IP address is set
before executing socket service
instructions.
Wait until the local IP address is set
before executing socket service
instructions.
Precautions/
Remarks
None
Name Socket Timeout Error code 16#2006
Meaning A timeout occurred for a socket service instruction.
Effects User program Continues. Operation The relevant instruction will end according to specifica-
tions.
System-defined
variables
Variable Data type Name
None --- ---
Cause and
correction
Assumed cause Correction Prevention
SktTCPAccept instruction: There was
no request for a connection from the
remote node during the user-set time-
out time.
Correct the system and user program
so that there is a connection request
from the remote node within the time-
out time after the instruction is exe-
cuted. Or, increase the timeout time.
Set up the system and user program
so that there is a connection request
from the remote node within the time-
out time after the instruction is exe-
cuted.
SktTCPRcv or SktUDPRcv instruc-
tion: Data was not received from the
remote node during the user-set time-
out time.
Correct the system and user program
so that data is received from the
remote node within the timeout time
after the instruction is executed. Or,
increase the timeout time.
Set up the system and user program
so that data is received from the
remote node within the timeout time
after the instruction is executed.
Precautions/
Remarks
None
Name Socket Handle Out of Range Error code 16#2007
Meaning The handle that is specified for the socket service instruction is not correct.
Effects User program Continues. Operation The relevant instruction will end according to specifica-
tions.
System-defined
variables
Variable Data type Name
None --- ---
Cause and
correction
Assumed cause Correction Prevention
The handle that is specified for the
socket service instruction is not cor-
rect.
Correct the socket handle for the
instruction to the handle that was
obtained with one of the following
instructions.
• SktUDPCreate instruction
• SktTCPConnect instruction
• SktTCPAccept instruction
Specify handles that are obtained
with the following instructions.
• SktUDPCreate instruction
• SktTCPConnect instruction
• SktTCPAccept instruction
Precautions/
Remarks
None