Technical Information
RFH6xx PNDP
Function Block
Date: 12.06.2014
15
4.5.6 Free Command
With the help of a free command you have the possibility to communicate via a valid CoLa
command with the RFH. Hence it is necessary to store the command in the parameter
“arrCommand” of the structure “FreeCommand”. The character length of the transferring
command is written in the parameter
“iCommandLength”. The commands can be looked up
in the device description or SOPAS-ET.
Parameter
Declaration Data type
Description
FreeCommand.
iCommandLength
Input
INT
Character length of the transferring
CoLa command.
Valid value area
[1..100]
FreeCommand.
arrCommand
Input
ARRAY
[1..100]
OF CHAR
Free selectable CoLa command
(commands see device documenta-
tion).
FreeCommand.
iResultLength
Output
INT
Byte length of the receiving CoLa tel-
egram.
FreeCommand.
arrResult
Output
ARRAY
[1..100]
OF CHAR
Received answer of the sent CoLa
telegram.
Table 4: Free Command Parameter
4.5.7 Reading Result
In the a
rray “ReadingResult.arrResult” data is stored, which is sent via trigger order
(TRIG_ON, TRIG_OFF) or directly from the device (e.g. direct trigger via a light switch). The
output parameter RD_DONE signalizes whether data has been received.
Parameter
Declaration
Data type
Description
ReadingResult.
nCounter
Output
BYTE
The receipt counter is incremented by
one as soon as a new read result has
been received.
Value area:
[0x00..0xFF]
ReadingResult.
iLength
Output
INT
Byte length of the receiving read re-
sult.
ReadingResult.
arrResult
Output
ARRAY
[1..200]
of BYTE
Receiving answer of a trigger signal
(can be defined via the SOPAS output
format).
The maximal length of the receiving
data is 200 Bytes. Chapter 4.6 de-
scribes the procedure when receiving
longer data telegrams.
Table 5: Reading Result Parameter