mbusRecordSlaveInfo (Functionblock) |
Top Previous Next |
This function block will provide information about a slave.
For M-Bus this information must be requested with mbusDataRequest.
For Wireless M-Bus, the data must have been received with mbusDataReceive.
Input: handle : SYSHANDLE A handle to the connection
Output: id : DINT The device id / serial number of the slave.
manufacturer : STRING The EN 61107 manufacturer ID as a string.
version : INT The version number of the slave.
medium : INT The medium of the received data.
pri_addr: INT The primary address of the slave. -1 for wireless M-Bus.
sec_addr: STRING The secondary address of the slave.
accessnumber : INT The access number of the package.
enc_state: USINT The encryption state of the package.
signal : SINT The signal strength of the package in dB. Only available for Wireless M-Bus. 0 if not available.
status: INT Status field from slave.
ready : BOOL TRUE if the information is available, FALSE if not.
Declaration: FUNCTION_BLOCK mbusRecordSlaveInfo;
Example: INCLUDE rtcu.inc
|