beautypg.com

Xylem Expert 7060_7070_Modbus User Manual

Page 30

background image

Communication protocol Serie30

Page 36/37

6.5.2.3 Protocol functions
The following functions encapsulate the above-described bus functions. The parameter sequences are identical. The CRC16

checksum is not included here, as it is calculated and checked in the DLL. Some parameters consist of several bytes. These are

grouped together for the sake of clarity. The different requests a and b pertaining to function 95 are split into two functions: F95

and F95val.

Functions F34, F35, F64, F65 and F101 are only listed here for the sake of completeness, and are of no relevance in these

devices. Function F32 and F33 are new functions which are aviable in the s30c.dll from the 12.9.2005 and later.

function F30( bteDeviceAddr, bteCoeffNo: Byte; var sinCoeff: Single

): Smallint; stdcall; export;

function F31( bteDeviceAddr, bteCoeffNo: Byte; sinCoeff: Single

): Smallint; stdcall; export;

function F32( bteDeviceAddr, bteCoeffNo: Byte; var sinCoeff: Byte

): Smallint; stdcall; export;

function F33( bteDeviceAddr, bteCoeffNo: Byte; sinCoeff: Byte

): Smallint; stdcall; export;

function F34( bteDeviceAddr: Byte; wrdAddr: Word; bteAmount: Byte; pbteData: PByte

): Smallint; stdcall; export;

function F35( bteDeviceAddr: Byte; wrdAddr: Word; bteAmount: Byte; pbteData: PByte

): Smallint; stdcall; export;

function F48(

bteDeviceAddr: Byte; var bteClass, bteGroup, bteYear, bteWeek, bteBuffer, bteState: Byte

): Smallint; stdcall; export;

function F64( bteDeviceAddr: Byte; wrdAddr: Word; bteAmount: Byte; pbteData: PByte

): Smallint; stdcall; export;

function F65( bteDeviceAddr: Byte; wrdAddr: Word; bteAmount: Byte; pbteData: PByte

): Smallint; stdcall; export;

function F66( bteDeviceAddr, bteNewAddr: Byte; var bteActualAddr: Byte

): Smallint; stdcall; export;

function F69( bteDeviceAddr: Byte; var linSN: Longint

): Smallint; stdcall; export;

function F73( bteDeviceAddr, bteChannel: Byte; var sinValue: Single; var bteStat: Byte

): Smallint; stdcall; export;

function F95( bteDeviceAddr, bteCmd: Byte

): Smallint; stdcall; export;

function F95val( bteDeviceAddr, bteCmd: Byte; sinVal: Single

): Smallint; stdcall stdcall; export;

function F100(

bteDeviceAddr, bteIndex: Byte; var btePara0, btePara1, btePara2, btePara3, btePara4: Byte

): Smallint; stdcall stdcall; export;

function F101(

bteDeviceAddr, bteIndex: Byte; btePara0, btePara1, btePara2, btePara3, btePara4: Byte

): Smallint; stdcall stdcall; export;