IoDrvKNXDiag (FB) ¶ FUNCTION_BLOCK IoDrvKNXDiag EXTENDS IoDrvKNX IMPLEMENTS DED.IStack, DED.IReconfigureProvider This function block implements the diagnosis code for CAA Device Diagnosis. Properties: ChildNodeCount Connector Enable FirstChildNode Index IsRootNode NextSiblingNode ParentNode SiblingNodeCount Methods: GetBusScanAsync GetDeviceDiagnosisInfo GetDeviceErrorAsync GetDeviceInfo GetDeviceState GetLogger GetSpecificDeviceErrorAsync GetSpecificDeviceState ResetStatusFlags , inherited from IoDrvKNX SetCommunicationState TriggerRead , inherited from IoDrvKNX Structure: INode ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property) IStack GetBusScanAsync (Method) GetDeviceDiagnosisInfo (Method) GetDeviceErrorAsync (Method) GetDeviceInfo (Method) GetDeviceState (Method) GetLogger (Method) GetSpecificDeviceErrorAsync (Method) GetSpecificDeviceState (Method) SetCommunicationState (Method)
INode ¶ ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)
IStack ¶ GetBusScanAsync (Method) GetDeviceDiagnosisInfo (Method) GetDeviceErrorAsync (Method) GetDeviceInfo (Method) GetDeviceState (Method) GetLogger (Method) GetSpecificDeviceErrorAsync (Method) GetSpecificDeviceState (Method) SetCommunicationState (Method)
KNXConvertFunctions ¶ DPT10_IEC_to_KNX (Function) DPT10_KNX_to_IEC (Function) DPT16_IEC_to_KNX (Function) DPT16_KNX_to_IEC (Function) DPT19_IEC_to_KNX (Function) DPT19_KNX_to_IEC (Function)
DPT10_IEC_to_KNX (FUN) ¶ FUNCTION DPT10_IEC_to_KNX : ARRAY [0..2] OF BYTE Convert the IEC TIME_OF_DAY value to KNX DPT10 Example Following example code converts from IEC to KNX DPT10 PROGRAM PLC_PRG VAR data : IoDrvKnxlibrary.DPT10 ; END_VAR data.lTimeOfDay := TIME_OF_DAY#15:36:30 ; data.uisDay := 2 ; OutputDPT_10.DataValue := IoDrvKnxlibrary.DPT10_IEC_to_KNX ( data ); Note The Day (Monday … Sunday) is converted from the usiDay element of the structure DPT10 InOut: Scope Name Type Return DPT10_IEC_to_KNX ARRAY [0..2] OF BYTE Input data DPT10
DPT10_KNX_to_IEC (FUN) ¶ FUNCTION DPT10_KNX_to_IEC : DPT10 Convert the DPT10 value to IEC TIME_OF_DAY Example Following example code converts from KNX DPT10 to IEC PROGRAM PLC_PRG VAR data : IoDrvKnxlibrary.DPT10 ; timeofday : TIME_OF_DAY ; END_VAR data := IoDrvKnxlibrary.DPT10_KNX_to_IEC ( InputDPT_10.DataValue ); timeofday := data.lTimeOfDay ; Note The Day (Monday … Sunday) is stored in the usiDay element of the structure DPT10 InOut: Scope Name Type Comment Return DPT10_KNX_to_IEC DPT10 Input abyData ARRAY [0..2] OF BYTE The byte array as in the io-mapping
DPT16_IEC_to_KNX (FUN) ¶ FUNCTION DPT16_IEC_to_KNX : ARRAY [0..13] OF BYTE Convert the IEC STRING(14) value to KNX DPT16 Example Following example code converts from IEC to KNX DPT16 PROGRAM PLC_PRG VAR stTest : string ( 14 ); END_VAR OutputDPT_16.DataValue := IoDrvKnxlibrary.DPT16_IEC_to_KNX ( stTest ); InOut: Scope Name Type Return DPT16_IEC_to_KNX ARRAY [0..13] OF BYTE Input stString STRING(14)
DM2_Write (FB) ¶ FUNCTION_BLOCK DM2_Write EXTENDS DM1_Write This function block sends a DM1 messages from a given local ECU ( itfSourceECU ). A DM2 message contains lamp information and previously active diagnostic trouble codes ( DTC ). Following information is sent by this function block: Lamp information for following lamps: Malfunction Indicator Lamp(MIL) Red Stop Lamp (RSL) Amber Warning Lamp (AWL) Protect Lamp All enabled diagnostic trouble codes connected to output itfDTCProviderList (see DTCProvider function block). InOut: Scope Name Type Initial Comment Inherited from Input xExecute BOOL Rising edge: Action starts Falling edge: Resets outputs If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values ( xDone , xError ) are present at the outputs for exactly one cycle. ETrig Output xDone BOOL TRUE : Action successfully completed ETrig xBusy BOOL TRUE : Function block active ETrig xError BOOL TRUE : Error occurred, function block aborts action FALSE : No error ETrig Input itfSourceECU IJ1939LocalECU Local ECU which should be the sender of the diagnostic message. DM1_Write MalfunctionIndicatorLamp LAMP_INFO Malfunction Indicator Lamp: Lamp to indicate when there is an emission related trouble code active. DM1_Write RedStopLamp LAMP_INFO Red Stop Lamp: Lamp to indicate a problem that is severe enough to warrant stopping the vehicle. DM1_Write AmberWarningLamp LAMP_INFO Amber Warning Lamp: Lamp to indicate a problem with the vehicle system but the vehicle does not need to be stopped immediately. DM1_Write ProtectLamp LAMP_INFO Protect Lamp: Lamp to indicate a problem with a vehicle system that is most likely not electronic subsystem related (e.g. Coolant Temperature has exceeded its defined range.) DM1_Write Output itfDTCProviderList IDTCProviderList THIS^ mainly for graphical programming: output for connection to DTC provider function blocks DM1_Write eError ERROR detailed error information if xError is TRUE. DM1_Write
DTCProvider (FB) ¶ FUNCTION_BLOCK DTCProvider EXTENDS CBM.LTrig IMPLEMENTS IDTCProvider This function block is used in conjunction with DM1_Write or DM2_Write function blocks. It serves as data provider for diagnostic trouble codes. One or more DTCProvider can be connected to one DMx_Write function block. A DTC will be activated by setting xEnable to TRUE . InOut: Scope Name Type Comment Inherited from Input xEnable BOOL TRUE : Action starts FALSE : Action stops, outputs xDone , xBusy , xError are resetted LTrig Output xDone BOOL TRUE : Action successfully completed LTrig xBusy BOOL TRUE : Function block active LTrig xError BOOL TRUE : Error occurred, function block aborts action FALSE : No error LTrig Input itfDTCProviderList IDTCProviderList DMx_Write instance Data DTC DTC data Output eError ERROR detailed error information if xError is true.
IoDrvKNX Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title IoDrvKNX Version 4.0.2.0 Categories Intern|IoDrivers Namespace IoDrvKNXLibrary Author 3S - Smart Software Solutions GmbH Placeholder IoDrvKnx Description 1 ¶ Io driver for KNX stack Contents: ¶ IoDrvKNX Function Blocks KNXConvertFunctions Structs Library Information GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function) Indices and tables ¶ 1 Based on IoDrvKNX.library, last modified 08.06.2021, 15:26:27. LibDoc 4.4.0.0-b.27 The content file IoDrvKNX.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 08.06.2021, 15:26:27.