DiagnoseGetSubdeviceState (FUN)¶

FUNCTION DiagnoseGetSubdeviceState : DINT

    • Get the state of a subdevice (corresponds to codesys’ device).

    • @param deviceId Id of the device.

    • @param subdeviceId Id of the device to get the state from.

    • @param[in] bufferSize Size of the supplied buffer.

    • @param[out] diagnoseBuffer Buffer where the state data is stored in.

    • @param[out] diagnoseState The state of the diagnose.

    • @return Returns 0 on success, -1 otherwise.

InOut:

Scope

Name

Type

Return

DiagnoseGetSubdeviceState

DINT

Input

deviceId

DINT

subdeviceId

DINT

bufferSize

UDINT

diagnoseBuffer

POINTER TO BYTE

diagnoseState

POINTER TO tDiagnoseState