KEYENCE LJ-V7000 Series User Manual

Page 50

Advertising
background image

50

LJ-V7000_COM_RM_E

9.2.9.3 Write processing for settings

The 4 functions listed below are used when performing write processing for settings.
• LJV7IF_SetSetting (Send setting)
• LJV7IF_ReflectSetting (Request to reflect settings in the write settings area)
• LJV7IF_RewriteTemporarySetting (Update write settings area)
• LJV7IF_CheckMemoryAccess (Check the status of saving to the save area)

Depth must be specified using LJV7IF_SetSetting to send settings. The Depth options and their
respective uses are as below.

<Usage example 1> Changing multiple settings at the same time

The consistency of the settings is checked when writing to RUNNING or SAVE. If they are
inconsistent, an error occurs. (Refer to "9.2.9.4 Detailed setting errors" for information about errors)
Therefore, when multiple settings are changed and each setting is written individually to RUNNING
(SAVE), there will be inconsistencies depending on the setting item, and the settings will not be
applied to the controller. Write multiple settings to WRITE to create consistent settings before
applying them to the controller
Use LJV7IF_RewriteTemporarySetting to rewrite inconsistent WRITE settings with the settings in the
controller.

• Measuring is stopped when writing settings to RUNNING (SAVE).
• Do not turn the controller off when writing settings to SAVE. Use LJV7IF_CheckMemoryAccess

to check if settings are written to this area.

• The same results are achieved if the last LJV7IF_SetSetting (WRITE) is replaced with

LJV7IF_SetSetting (RUNNING). (Update write settings area is not required.)

Depth

Use

LJV7IF_SETTING_DEPTH_WRITE
(Write settings area)

Settings written to this area are not applied to the
controller. Settings written to this area are applied to
RUNNING or SAVE by LJV7IF_ReflectSetting.

LJV7IF_SETTING_DEPTH_RUNNING
(Running settings area)

Settings written to this area are applied to the
controller, but are not saved if the power is turned off.
(When rebooted, the SAVE settings are applied)

LJV7IF_SETTING_DEPTH_SAVE
(Save area)

Settings written to this area are applied to the
controller. The settings are saved on the controller
even if the power is turned off. Writing to this area
takes time. (Use LJV7IF_CheckMemoryAccess to
check if settings are currently being written to this
area. Make sure that writing using this function is
complete before turning off the power.)

1:

Modify settings LJV7IF_SetSetting (WRITE)

2:

Modify settings LJV7IF_SetSetting (WRITE)

Last: Modify settings LJV7IF_SetSetting (WRITE)

Update write settings area LJV7IF_ReflectSetting (RUNNING)

NOTICE

Advertising