KNX_Write_DPT_2x
KNX_Write_DPT_2x (FB)
FUNCTION_BLOCK KNX_Write_DPT_2x EXTENDS SlaveBasicWr
Overview
Sending function for DPT 2.x (2-bit value).
Inputs
xUpdateSetp
FALSE
Trigger for setpoint update
xValue
-
Main value to be sent (BOOL)
xPrio
-
Priority value to be sent (BOOL)
xWriteVisu
-
Trigger for one-time sending
eDPT_Format
-
DPT 2.x format selection
byAdrGroup
0
Group address (0-255)
byAdrMiddleGroup
0
Middle group address (0-7)
byAdrMainGroup
0
Main group address (0-31)
tTimeUpdateSetp
T#0S
Cyclical update interval
tPauseTimeUntilNextSend
T#3S
Sending pause
Outputs
tNextWrite(TIME): time until the next write operationxLastBusValue(BOOL): Last received main valuexControlBit(BOOL): Last received control bit (priority)
Usage
Select the DPT 2.x format with
eDPT_Format.Set the main value to be sent in
xValueand the priority value inxPrio.Configure the sending options:
For cyclical sending:
tTimeUpdateSetp> T#0SFor event-based sending: use
xUpdateSetporxWriteVisu
Monitor
xLastBusValuefor the last received main value.Note
xControlBitfor the last received priority value.
InOut:
Input
itfKnxConnector
IKnxConnector
IMasterConnector interface input to register/unregister the FB to the List on the Master
SlaveBasicWr
Input
xEnable
BOOL
TRUE
SlaveBasicWr
Output
sPhysicallAddressDevice
STRING(15)
SlaveBasicWr
Output
sGroupAddress
STRING(15)
SlaveBasicWr
Input
xUpdateSetp
BOOL
FALSE
Setpoint update (on every rising edge )
Input
xValue
BOOL
Input
xPrio
BOOL
Input Const
xWriteVisu
BOOL
Read once
Input Const
eDPT_Format
DPT_2x
Enum DPT_2x
Input Const
byAdrGroup
BYTE
0
Group address
Input Const
byAdrMiddleGroup
BYTE
0
Middle group address
Input Const
byAdrMainGroup
BYTE
0
Main group address
Input Const
tTimeUpdateSetp
TIME
TIME#0ms
Update interval for the operations influenced by the input ‘xUpdateSetp’ 0 = no automatic update, > 0 cyclical update
Input Const
tPauseTimeUntilNextSend
TIME
TIME#3s0ms
Pause after sending 0 = no pause
Output
tNextWrite
TIME
Output
xLastBusValue
BOOL
Output
xControlBit
BOOL
Last updated

