DiagnoseGetDeviceState (FUN)¶
FUNCTION DiagnoseGetDeviceState : DINT
- Get the state of the device (corresponds to codesys’ bus). 
- @param[in] deviceId Id of the device. 
- @param[in] bufferSize Size of the supplied buffer. 
- @param[out] diagnoseBuffer Buffer where the state is stored in. 
- @param[out] busState The state of the bus. 
- @return Returns 0 on success, -1 otherwise. 
 
- InOut:
- Scope - Name - Type - Return - DiagnoseGetDeviceState- DINT- Input - deviceId- DINT- bufferSize- UDINT- diagnoseBuffer- POINTER TO BYTE - busState- POINTER TO tBusState 
