File, Recipe, and TCP/IP Function Block ErrorIDs

This is the list of possible errors that could be returned at the ErrorID output of the File Function Blocks, Recipe Function Blocks, and TCP/IP Function Blocks.

File ErrorIDs

Error Code

ErrorID

Description

PLC_FILE_ERROR_OPEN

16000

Error opening file.

PLC_FILE_ERROR_HANDLES_EXHAUSTED

16001

All PLC file handles used.

PLC_FILE_ERROR_INVALID_ID

16002

File ID is invalid.

PLC_FILE_ERROR_ID_CLOSED

16003

File ID has been closed.

PLC_FILE_ERROR_STREAM

16004

Error in file stream.

PLC_FILE_ERROR_REACHED_EOF

16005

End of file encountered.

PLC_FILE_ERROR_INTERNAL

16006

Internal file FB error.

PLC_FILE_ERROR_UNKNOWN

16007

Unknown file error.

PLC_FILE_ERROR_NO_FILE_OR_DIR

16008

No such file or directory.

PLC_FILE_ERROR_BAD_DESCRIPTOR

16009

Bad file descriptor.

PLC_FILE_ERROR_ALREADY_EXISTS

16010

File already exists.

PLC_FILE_ERROR_TOO_MANY_FILES_OPEN

16011

Too many open files in the system.

PLC_FILE_ERROR_TEXT_FILE_BUSY

16012

Text file is busy.

PLC_FILE_ERROR_TOO_LARGE

16013

File is too large.

PLC_FILE_ERROR_READ_ONLY_FS

16014

File system is read only.

PLC_FILE_ERROR_DEADLOCK

16015

File locking deadlock.

PLC_FILE_ERROR_NAME_TOO_LONG

16016

File name is too long.

PLC_FILE_ERROR_POSITIONING

16017

File positioning error.

PLC_FILE_ERROR_BAD_FS

16018

Bad or corrupted file system detected .

PLC_FILE_ERROR_INACCESSIBLE

16019

File inaccessible. (e.g., permission, locks)

PLC_FILE_ERROR_OPEN_FOR_WRITE

16020

Error opening the file for writing.

PLC_DIR_ERROR_INVALID_OPTIONS

16050

Invalid directory listing options.

PLC_DIR_ERROR_INVALID_FILTER

16051

Invalid directory filter expression.

PLC_DIR_ERROR_NOT_A_DIRECTORY

16052

Path is not a directory.

Recipe ErrorIDs

ErrorID

Description

16008

No such file or directory.

16019

File inaccessible. (e.g., permission, locks)

16020

Error opening the file for writing.

16200

Error parsing recipe file.

16201

Invalid recipe file format.

16202

Recipe variable not found.

16203

Recipe variable type mismatch.

16204

Recipe variable value out of range.

16205

Invalid recipe file format.

16206

Recipe variable not found.

16207

Duplicate recipe instance name.

16208

Invalid recipe variable definition.

16219

Internal recipe FB error.

TCP/IP ErrorIDs

ErrorID

Description

16100

Connection error.

16101

TCP ID has been closed.

16102

All PLC TCP handles used.

16103

TCP ID is invalid.

16104

Failed to allocate TCP/IP socket.

16105

TCP operation internal error.