Invalid Device/Drive Number or System Resource Conflict
Mitsubishi Electric · MELSEC-Q/L Common Instruction
What does 4100 mean?
This fault indicates an invalid device, drive number, or I/O number range has been specified, or a conflict with system-reserved memory locations. Specifically, for SORT/DSORT instructions, it means the user program attempted to use device points (D2) and (D2)+1 which are reserved by the system. For file operations like PSWAPP, it signifies an invalid drive number in (S1). When reading module information, it indicates n1 or n2 parameters are out of range or their sum exceeds the maximum allowed, preventing the operation from executing correctly.
Common Causes
- During SORT or DSORT instruction execution, the user program attempts to access or modify device addresses (D2) and (D2)+1, which are explicitly reserved for system use.
- The drive number specified in instruction parameter (S1) (e.g., for PSWAPP instruction) is outside the valid range for the CPU model.
- For reading module information (like with the instruction on page 778), the head I/O number (n1) or the number of modules (n2) is invalid (e.g., for QCPU, n1 not 0-FFH, n2 not 0-256) or their combined total exceeds the maximum module capacity (e.g., n1+n2 >= 257 for QCPU).
- A specified I/O number parameter is outside the valid hexadecimal range for the particular CPU model (e.g., n1 for QCPU is not 0 to FFH).
Repair Steps & Checklist
Click steps to track your progress.
- 1
For SORT/DSORT instructions, review the program to ensure no other instructions write to or read from device addresses (D2) and (D2)+1 during their execution.
- 2
For file operations, verify the drive number specified in (S1) or (S2) is within the allowed range for the specific CPU model (e.g., 0-FFH for QCPU, 0-3FH for LCPU).
- 3
For module information reading, confirm n1 and n2 parameters are within the CPU-specific valid ranges (e.g., for QCPU: n1 0-FFH, n2 0-256; for LCPU: n1 0-3FH, n2 0-64; for Q00J: n1 0-FH, n2 0-16) and that their sum does not exceed the maximum allowable.
- 4
Modify the program to use valid device or drive numbers, adhering to system reserved memory restrictions and module addressing limits.