StateChanged

<< Click to Display Table of Contents >>

Manual > Reference > Events >

StateChanged


 

This event occurs when the unit's device down state changes.

 

 

 


syntax
Private Sub AxEng1_StateChanged(sender As Object,

                         e As AxFAENGINELib6._DFAEngineEvents_StateChangedEvent)

                         Handles AxEng1.StateChanged

 


Parameters

e.unitName

 

type:

string

 

Unit name. Example: U01

e.state

 

type:

bool

 

FALSE - Connection status is NG. TRUE - Connection status is OK.

 

 


Commentary

The first time an event occurs, the result of the first automatic update will be sent. After that, an event will be generated every time the device down status of the unit changes.

If the update fails from the beginning, an event will occur with False immediately after the first automatic update, and then when the device is officially deemed to be down, an event will occur with False again.

 

 

 

 

 


reference

 

GetUnitState