KEYENCE LJ-V7000 Series User Manual

Page 36

Advertising
background image

36

LJ-V7000_COM_RM_E

Set date/time

Get date/time

Change program

Get the active program number

Format

LONG LJV7IF_SetTime(LONG lDeviceId, LJV7IF_TIME* pTime);

Parameters

lDeviceId(in)

Specifies the communication device to communicate with.

pTime(in)

The date/time to set.
For each member, see "8 Constant, Structure Definitions".

Return value

No individual return code

Explanation

This function sets the date/time for the controller.

Supported version

1.00

Format

LONG LJV7IF_GetTime(LONG lDeviceId, LJV7IF_TIME* pTime);

Parameters

lDeviceId(in)

Specifies the communication device to communicate with.

pTime(out)

The buffer to store the acquired date/time.
For each member, see "8 Constant, Structure Definitions".

Return value

No individual return code

Explanation

This function gets the date/time from the controller.

Supported version

1.00

Format

LONG LJV7IF_ChangeActiveProgram(LONG lDeviceId, BYTE byProgNo);

Parameters

lDeviceId(in)

Specifies the communication device to communicate with.

byProgNo(in)

Program number after the change.
Specify as 0 to 15 (0: Program 0, 1: Program 1, and so on).

Return value

0x8080: The change program setting is "terminal"

Explanation

This function changes the active program number.
When specifying the same number as the active program number in byProgNo,
or when an invalid program number is specified, the operation to change the
program is performed (internal memory is cleared, etc.), but the active program
number is not changed.

Supported version

1.00

Format

LONG LJV7IF_GetActiveProgram(LONG lDeviceId, BYTE* pbyProgNo);

Parameters

lDeviceId(in)

Specifies the communication device to communicate with.

pbyProgNo(out)

The buffer to receive the active program number.
It is stored as 0 to 15 (0: Program 0, 1: Program 1, and so on).

Return value

No individual return code

Explanation

This function gets the active program number.

Supported version

1.00

Advertising