Function blocks
General about KNX_Read_DPT_xx
KNX_Read_DPT_xxThe usage of all KNX_Read_DPT_xx function blocks follows a similar pattern:
Configure group address:
Set
byAdrMainGroup(0-31)Set
byAdrMiddleGroup(0-7)Set
byAdrGroup(0-255)
Select DPT format:
Select the desired format via
eDPT_Format
Configure read behavior:
For cyclic reading: Set
tRequestTimeto the desired intervalFor event-based reading: Use
xRequestorxRequestVisuif necessary
Configure initialization:
Set
eInitOptiononInitOption.PollingOnStartUporInitOption.InitValueWhen
InitOption.InitValue: Set the corresponding initial value:DPT_13x:
diInitValueDPT_14x:
rInitValueDPT_19x:
dtInitValue(not effective)
Monitor outputs:
Check
tNextRequestfor the time of the next read operationMonitor the corresponding value outputs:
DPT_13x:
diValue,rValueDPT_14x:
rValueDPT_19x:
wYear,wMonth,wDayOfMonth,wDayOfWeek,wHourOfDay,wMinutes,wSeconds
For DPT_13x and DPT_14x: Note
sUnitfor the unit
Error handling:
Monitor the error outputs of the parent SlaveBasic block
General about KNX_Write_DPT_xx
KNX_Write_DPT_xxThe usage of all KNX_Write_DPT_xx function blocks follows a similar pattern:
Configure group address:
Set
byAdrMainGroup(0-31)Set
byAdrMiddleGroup(0-7)Set
byAdrGroup(0-255)
Select DPT format:
Select the desired format via
eDPT_Format
Set transmit value:
Set the value to send at the corresponding input:
DPT_1x:
xValue(BOOL)DPT_2x:
xValue(BOOL) andxPrio(BOOL)DPT_6x:
iValue(INT)DPT_9x:
rValue(REAL)DPT_13x:
diValue(DINT)DPT_14x:
rValue(REAL)
Configure send behavior:
For cyclic sending: Set
tTimeUpdateSetpto the desired intervalFor event-based sending: Set
xUpdateSetporxWriteVisuif necessaryOptional: Adjust
tPauseTimeUntilNextSendto configure the send pause
Monitor outputs:
Check
tNextWritefor the time of the next send operationMonitor the corresponding
*LastBusValueoutput for the last received valueFor DPT_1x: Also note
Encodingfor the textual representationFor DPT_2x: Also note
xControlBitfor the priority status
Consider unit:
For DPT_6x, DPT_9x, DPT_13x, DPT_14x: Check
sUnitfor the current unit
Error handling:
Monitor the error outputs of the parent SlaveBasicWr block
Last updated

