StartUpdate

<< Click to Display Table of Contents >>

Manual > Reference > Methods >

StartUpdate


 

Starts automatic cache updates.

 

 


syntax

bResult = AxEng1.StartUpdate(

                                 [UnitName]

                                 )


Parameters

UnitName

 

type:

string

 

Specify the unit name for which you want to start automatic updates. If not specified, all units will be started.

 

Return Value

bResult

 

type:

bool

 

FALSE - Failure. TRUE - Success.

 


Commentary

When the StartUpdate method is called, values are periodically obtained from the PLC and the cache is updated. Values in the cache can be quickly obtained using the GetVal method.

In addition, when values change due to automatic updates, events such as ValueChanged will occur. The update cycle is specified by folder. Also, automatic updates will only occur for folders that have the "Update values at the specified cycle" setting checked (automatic updates are performed in a separate task from VisualBasic, so they will not stop the operation of VisualBasic).

 

 

 

 


reference

 

StopUpdate

ReadVal

GetVal

ValueChanged