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;
Types ¶ tEventHandler (Alias)
tEventHandler (ALIAS) ¶ TYPE tEventHandler : udint typedef void ( tEventHandler)(tEventSource source, tEventId id, tEventArgs arg, void userData);