PNSlaveDiag.GetDeviceState (METH)ΒΆ
METHOD GetDeviceState : DED.DEVICE_STATE
Returns the state OF the device; IF device state is ERROR further information can be read BY GetDeviceError.
- DEVICE_STATE.UNKNOWN: During identify and configuration of the slave (xBusy = TRUE) 
- DEVICE_STATE.STOPPED: This is the initial state. After Abort the slave moves to STOPPED, too. (NOT xBusy AND NOT xRunning) 
- DEVICE_STATE.RUNNING: Device state running (xRunning = TRUE) 
- DEVICE_STATE.ERROR: Error occurred. (xError = TRUE) 
- DEVICE_STATE.DISABLED: Device is disabled. 
- DEVICE_STATE.NOT_CONFIGURED: Device has not yet been initialized. 
- DEVICE_STATE.CONFIGURED: - 
- DEVICE_STATE.NOT_FOUND: xError = TRUE AND PNIOStatus = 16#81813F02 (CTLDNA identify failed) 
- InOut:
- Scope - Name - Type - Comment - Return - GetDeviceState- DED.DEVICE_STATE- Output - xDiagnosisInfoAvailable- BOOL- TRUE: Diagnosis info can be read by calling GetDeviceDiagnosisInfo - eError- DED.ERROR