16 - 71
16.4 Error Code List
16.4.1 Error codes and actions (for errors occurred in function execution)
16
TROUBLESHOOTING
(3) Error codes returned by MELSEC data link functions
The following provides the error descriptions and corrective actions corresponding to
individual error code returned in execution of MELSEC data link functions.
For the common error codes returned by bus interface functions and MELSEC data
link functions, refer to the following.
(1) in this section
(To the next page)
Table 16.10 Error codes returned by MELSEC data link functions
Return value
(HEX)
Error description Corrective action
0 Completed normally
-1
(0xFFFF)
Path error
The specified path is invalid.
User a path pointer returned by the mdOpen
function.
-2
(0xFFFE)
Device No. error
The specified device No. is out of range.
Device No. in the bit device settings is not a multiple of 8.
Device No. plus the number of points specified in mdRandR/
mdRandREx/mdRandW/mdRandWEx function exceeds the range for
the same block.
Check the start device No. of the specified
device.
Check the device No. plus the number of points
of the same block.
When specifying device No.32768(8000
H) or
higher, use an extended function.
-3
(0xFFFD)
Device type error
The specified device type is invalid.
Check if the specified device type is in the
device list.
-5
(0xFFFB)
Size error
The device No. plus size exceeds the device range.
Access was attempted in odd byte(s).
The device No. plus size exceeds the range for the same block.
The total of the specified point of each block No. of mdRandR,
mdRandREx, mdRandW, mdRandWEx exceeds 10240 points.
Check the device size.
Check the device No. plus size.
Use the extended function since 32768(8000
H)
the specified device No.
Use the extended function if the specified size
is 32768(8000
H) or more.
The total of the specified point of each block
No. of mdRandR, mdRandREx, mdRandW,
mdRandWEx is adjusted to 10240 points or
less.
-6
(0xFFFA)
No. of blocks error
The number of blocks specified in dev[0] for mdRandR/mdRandREx/
mdRandW/mdRandWEx is out of range.
Check the number of blocks specified in dev[0].
-8
(0xFFF8)
Channel No. error
The channel No. specified in the mdOpen function is invalid.
Check the channel No.
-11
(0xFFF5)
Insufficient buffer area
Read data storage size is smaller than the read data size.
Check the read data size and the read data
storage size.
-12
(0xFFF4)
Block No. error
The specified block No. is invalid.
Check the block No. (device type).
Check if the specified device and block No. are
valid in the target.
-13
(0xFFF3)
Write protect error
The specified block No. of the extension file register is overlapping
with the write protect area of the memory cassette.
Check the block No. (device type) of the
extension file register.
Check the write protect DIP switch of the
accessed memory cassette.
-16
(0xFFF0)
Station No. error, Network No. error
The specified station No. or network No. is out of range.
Check the station No. and network No.
-17
(0xFFEF)
All stations/group No. specification error
All stations/group No. specification is not supported by the specified
function.
Check if the function allows for specifying all
stations/group No.
Specify the device type as "no arrival
confirmation", when specified station No. is "All
stations" or "Group No.".
-18
(0xFFEE)
Remote operation error
An inappropriate was specified.
Check the code.