beautypg.com

KEYENCE LJ-V7000 Series User Manual

Page 30

background image

30

LJ-V7000_COM_RM_E

Return to factory state

Get system error information

Clear system error

Format

LONG LJV7IF_RetrunToFactorySetting(LONG lDeviceId);

Parameters

lDeviceId(in)

Specifies the communication device to communicate with.

Return value

No individual return code

Explanation

This function returns all of the controller's settings to the factory state.
After processing returns from this interface, write processing is being performed
to the save area in the controller.
Before turning off the power, ensure that you check the access status to the save
area with the LJV7IF_CheckMemoryAccess function (see "9.1.5 Functions
related to modifying or reading settings")
.

Supported version

1.00

Format

LONG LJV7IF_GetError
(LONG lDeviceId, BYTE byRcvMax, BYTE* pbyErrCnt, WORD* pwErrCode);

Parameters

lDeviceId(in)

Specifies the communication device to communicate with.

byRcvMax(in)

Specifies the maximum amount of system error information to receive.
(Size of the buffer passed in pwErrCode)

pbyErrCnt(out)

The buffer to receive the amount of system error information.

pwErrCode(out)

The buffer to receive the system error information. In order from the newest
error, *pbyErrCnt items (byRcvMax items max) worth of system error
information is stored.

Return value

No individual return code

Explanation

This function gets the controller's system error information.
For the details of the meanings of the error codes that are returned, refer to the
"LJ-V7000 Series User's Manual".

Supported version

1.00

Format

LONG LJV7IF_ClearError(LONG lDeviceId, WORD wErrCode);

Parameters

lDeviceId(in)

Specifies the communication device to communicate with.

wErrCode(in)

The error code for the error you wish to clear.

Return value

No individual return code

Explanation

This function clears the system error occurring on the controller.
When all of the system errors that are occurring are successfully cleared, the
controller will start measurements.
Only the errors listed below can be cleared.
0x0084: Two heads were connected when previously started, but only one head
could be recognized
0x0085: The connected head type is different than when previously started

Supported version

1.00