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)
DPT16_KNX_to_IEC (FUN) ¶ FUNCTION DPT16_KNX_to_IEC : STRING(14) Convert the DPT16 value to IEC STRING(14) Example Following example code converts from KNX DPT16 to IEC PROGRAM PLC_PRG VAR stTest : string ( 14 ); END_VAR stTest := IoDrvKnxlibrary.DPT16_KNX_to_IEC ( InputDPT_16.DataValue ); InOut: Scope Name Type Return DPT16_KNX_to_IEC STRING(14) Input abyData ARRAY [0..13] OF BYTE
DPT19_IEC_to_KNX (FUN) ¶ FUNCTION DPT19_IEC_to_KNX : ARRAY [0..7] OF BYTE Convert the IEC DATE_AND_TIME value to KNX DPT19 Example Following example code converts from IEC to KNX DPT19 PROGRAM PLC_PRG VAR data : DPT19 ; END_VAR data.lDateAndTime := DATE_AND_TIME#1996-05-06-15:36:30 ; data.usiDayOfWeek := 3 ; OutputDPT_19.DataValue := IoDrvKnxlibrary.DPT19_IEC_to_KNX ( data ); Note The day of week and the other elements are converted from the corresponding elements in the structure DPT19 InOut: Scope Name Type Return DPT19_IEC_to_KNX ARRAY [0..7] OF BYTE Input data DPT19
DPT19_KNX_to_IEC (FUN) ¶ FUNCTION DPT19_KNX_to_IEC : DPT19 Convert the DPT19 value to IEC DATE_AND_TIME Example Following example code converts from KNX DPT19 to IEC PROGRAM PLC_PRG VAR data : IoDrvKnxlibrary.DPT19 ; dateAndTime : DATE_AND_TIME ; END_VAR data := IoDrvKnxlibrary.DPT19_KNX_to_IEC ( InputDPT_19.DataValue ); dateAndTime := data.lDateAndTime ; Note The day of week and the other elements are converted in the corresponding elements in the structure DPT19 InOut: Scope Name Type Return DPT19_KNX_to_IEC DPT19 Input abyData ARRAY [0..7] OF BYTE
Structs ¶ DPT10 (Struct) DPT19 (Struct)
DPT10 (STRUCT) ¶ TYPE DPT10 : STRUCT InOut: Name Type Comment lTimeOfDay TOD time as in IEC usiDay USINT 1 = Monday… 7 = Sunday, 0 = no day
DPT19 (STRUCT) ¶ TYPE DPT19 : STRUCT InOut: Name Type Comment lDateAndTime DT Time and date is an IEC usiDayOfWeek USINT 0 = any day, 1 = Monday, … 7 = Sunday xFault BIT false = normal (no fault), true = fault xWorkingDay BIT false = bank day (no working day), true = working day xNoWorkingDay BIT false = WorkingDay bit valid, true = WorkingDay bit not valid xNoYear BIT false = year field valid, true = year field not valid xNoDate BIT false = month and day of month fields valid, true = month and day of month not valid xNoDayOfWeek BIT false = day of week field valid, true = day of week field not valid xNoTime BIT false = hour of day, minutes and seconds field valid, true = hour of day, minutes and seconds field not valid xStandardSummerTime BIT false = Time = UT + X, true = Time = UT+X+1 xQualityOfClock BIT false = clock without ext. sync signal, true = clock with ext. sync signal
Library Information ¶ GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function)
GetLibVersion (FUN) ¶ FUNCTION GetLibVersion : VERSION This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersion VERSION