A-35
Appendices
NJ-series Instructions Reference Manual (W502)
A-3 Error Code Details
App
Name File Already in Use Error code 16#1405
Meaning A file specified for an instruction cannot be accessed because it is already being used.
Effects User program Continues. Operation The relevant instruction will end according to specifica-
tions. The operation of the Unit is not affected.
System-defined
variables
Variable Data type Name
None --- ---
Cause and
correction
Assumed cause Correction Prevention
An instruction attempted to read or
write a file already being accessed by
another instruction.
Correct the program so that the rele-
vant instruction is only executed when
the Busy output variable for all other
instructions for the same file are
FALSE.
When you execute multiple instruc-
tions that access the same file, write
the program so that the instructions
are not executed simultaneously.
Make sure that the Busy output vari-
able for all other instructions for the
same file is FALSE.
Precautions/
Remarks
None
Name Open Mode Mismatch Error code 16#1406
Meaning A file operation for an instruction was inconsistent with the open mode of the file.
Effects User program Continues. Operation The relevant instruction will end according to specifica-
tions. The operation of the Unit is not affected.
System-defined
variables
Variable Data type Name
None --- ---
Cause and
correction
Assumed cause Correction Prevention
The file open mode specified by the
Open File instruction does not match
the file operation attempted by a sub-
sequent SD Memory Card instruction.
Correct the Open File instruction to
open the file in an open mode that is
suitable for the file operation.
Change the Open File instruction to
open the file in an open mode that is
suitable for the file operation.
Precautions/
Remarks
None
Name Offset Out of Range Error code 16#1407
Meaning Access to the address is not possible for the offset specified for an instruction.
Effects User program Continues. Operation The relevant instruction will end according to specifica-
tions. The operation of the Unit is not affected.
System-defined
variables
Variable Data type Name
None --- ---
Cause and
correction
Assumed cause Correction Prevention
An attempt was made to access
beyond the size of the file.
Decrease the offset specified for the
instruction.
Include information in the file so that
the file format can be identified, and
modify the program to check that
information in order to perform appro-
priate file seeking.
Precautions/
Remarks
None