beautypg.com

10 common return codes, 2 return codes returned from the controller – KEYENCE LJ-V7000 Series User Manual

Page 60

background image

60

LJ-V7000_COM_RM_E

10 Common Return Codes

10.1 Return codes returned by the communication library

The return codes shown below are judged in the communication library and returned to the application.
Specifically, these codes are returned when the library fails to communicate with the controller or when
processing could not be completed due to a state dependency in the communication library.

10.2 Return codes returned from the controller

The return codes shown below are returned when communication with the controller was successful but the
controller could not process the command.

Definition name

Data

(Lower 2 bytes)

Cause

LJV7IF_RC_OK

0x0000

Normal termination

LJV7IF_RC_ERR_OPEN

0x1000

Failed to open the communication path.

LJV7IF_RC_ERR_NOT_OPEN

0x1001

The communication path was not
established.

LJV7IF_RC_ERR_SEND

0x1002

Failed to send the command.

LJV7IF_RC_ERR_RECEIVE

0x1003

Failed to receive a response.

LJV7IF_RC_ERR_TIMEOUT

0x1004

A timeout occurred while waiting for the
response.

LJV7IF_RC_ERR_NOMEMORY

0x1005

Failed to allocate memory.

LJV7IF_RC_ERR_PARAMETER

0x1006

An invalid parameter was passed.

LJV7IF_RC_ERR_RECV_FMT

0x1007

The received response data was invalid.

LJV7IF_RC_ERR_HISPEED_NO_DEVICE

0x1009

High-speed communication initialization
could not be performed.

LJV7IF_RC_ERR_HISPEED_OPEN_YET

0x100A

High-speed communication was
initialized.

LJV7IF_RC_ERR_HISPEED_RECV_YET

0x100B

Error already occurred during high-
speed communication (for high-speed
communication)

LJV7IF_RC_ERR_BUFFER_SHORT

0x100C

The buffer size passed as an argument
is insufficient.

Data

(Lower 2 bytes)

Cause

0x8041

Status error (when a system error has occurred, etc.)

0x8042

Parameter error (when an invalid parameter was set, etc.)