Commands and functions
P.
231 of 349
Readrawknx
Definition
●
Function
readrawknx
(
control field
,
phyAddress, targetAddress, IsGroubAddress,
routingCounter, bitLength, userData
)
Arguments
●
control field
of data type u08
●
phyAddress
of data type u16 (he transmitter's address in the usual notation, e.g. 2.4.13)
●
targetAddress
of data type u16
●
IsGroubAddress
of data type b01
●
routingCounter
of data type u08
●
bitLength
of data type u08
●
userData
of data type c1400
Find further information about the telegram structure on p. 215
Effect
●
If a KNX telegram observed, every function
readrawknx
updates its arguments. The
arguments of the
readrawknx
function are filled with data up to the length of its arguments.
In any case, the variables
phyAddress
and
groubAddress
of the function
readrawknx
are
overwritten with the current data of the transmitter every time a KNX telegram is received.
●
The physically address (variable
phyAddress
) is defined in the usual notation ( e.g. 2.4.13)
●
The
IsGroubAddress
shows, wheather the telegram is addressed to a physical address or
a group adress.
●
To detect incoming telegrams, the function
event
can be applied to
readrawknx
. This will
become necessary ,if telegrams with identical content have to be evaluated.
Data type result (Return)
●
none
Example: Write data received from KNX telegrams to the KNX
TM
bus
Count telegrams who were send by physically address 1.3.14
Implementation in the user program:
Raw_Kontroll=0
Raw_Sender=10.2.1
Raw_GA=0u16
Raw_IsGa=OFF
Raw_RoutingCnt=0
Raw_Len=0
Raw_Data=$$
count=0u08
if event(readrawknx(Raw_Kontroll,Raw_Sender,Raw_GA,Raw_IsGa,Raw_RoutingCnt,
Raw_Len,Raw_Data)) and Raw_Sender==1.3.14 and Raw_GA==getaddress('2/4/44'b01) and
Raw_IsGa then {
count=count+1
} endif
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]