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
tKbusInfo_TerminalDiagnose (STRUCT) ¶ TYPE tKbusInfo_TerminalDiagnose : STRUCT InOut: Name Type Diagnose POINTER TO BYTE TerminalNo POINTER TO BYTE Channel POINTER TO BYTE Count UDINT
tKbusInfo_TerminalInfo (STRUCT) ¶ TYPE tKbusInfo_TerminalInfo : STRUCT InOut: Name Type Comment OffsetInput_bits UINT OffsetOutput_bits UINT SizeInput_bits UINT SizeOutput_bits UINT AdditionalInfo UINT struct { u16 :8; u16 ChannelCount:5; u16 PiFormat:1; u16 :2; }AdditionalInfo;