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
GetDeviceFlags (FUN) ¶ FUNCTION GetDeviceFlags : DINT Returns the devices flags @param deviceId @param flags Pointer to the flags @return Returns 0 on success, -1 otherwise. InOut: Scope Name Type Return GetDeviceFlags DINT Input deviceId DINT flags POINTER TO UDINT
GetIoSizes (FUN) ¶ FUNCTION GetIoSizes : DINT Gets the sizes of the devices input and output. @param deviceId Id of the device. @param inputSize Pointer to where the size of the input will be stored. @param outputSize Pointer to where the size of the output will be stored. @return Returns 0 on success, -1 otherwise. InOut: Scope Name Type Return GetIoSizes DINT Input deviceId DINT inputSize POINTER TO UDINT outputSize POINTER TO UDINT
GetLastError (FUN) ¶ FUNCTION GetLastError : DINT The GetLastError method gets the last error set by the given device. @param deviceId The device to get the error from. @return Returns the error. InOut: Scope Name Type Return GetLastError DINT Input deviceId DINT error POINTER TO UDINT
OpenKbus (FUN) ¶ FUNCTION OpenKbus : DINT Opens the device. @RETURN deviceId Id OF the device., -1 on failure. InOut: Scope Name Type Return OpenKbus DINT
ReadBit (FUN) ¶ FUNCTION ReadBit : DINT The ReadBit method reads one bit from the given offset into data. @param deviceId The device to read the bit from. @param bitOffset The bit offset to read the bit at. @param data Pointer to where the bit will be read to. @return Returns 0 on success, -1 otherwise. InOut: Scope Name Type Return ReadBit DINT Input deviceId DINT taskId UDINT bitOffset UDINT data POINTER TO BYTE
Constants (GVL) ¶ {attribute ‘conditionalshow’ := ‘SomeText’} {attribute ‘conditionalshow’} {attribute ‘hide’} Attributes: qualified_only InOut: Scope Name Type Initial Constant LDKC_KBUS_TERMINAL_COUNT_MAX UINT 255
Structs ¶ ApplicationStateChangedEvent (Struct) tKbusInfo_Status (Struct) tKbusInfo_TerminalDiagnose (Struct) tKbusInfo_TerminalInfo (Struct)
ApplicationStateChangedEvent (STRUCT) ¶ TYPE ApplicationStateChangedEvent : STRUCT InOut: Name Type State tApplicationState
tKbusInfo_Status (STRUCT) ¶ TYPE tKbusInfo_Status : STRUCT InOut: Name Type KbusBitCount UINT TerminalCount UINT ErrorCode UINT ErrorArg UINT ErrorPos UINT BitCountAnalogInput UINT BitCountAnalogOutput UINT BitCountDigitalInput UINT BitCountDigitalOutput UINT