Xylem Expert 7060_7070_Modbus User Manual
Page 29

Communication protocol Serie30
Page 35/37
6.5.2.1 Port functions
The devices are connected to the PC via a serial interface. The port functions serve to open and close this interface. Ports 1 to 9
(COM1..COM9) are valid. The standard setting should be used for the timeout time (Timeout = 0). When the desired port has
been successfully opened, the OpenComPort function returns the value RS_OK, otherwise RS_ERROR.
An open port is closed automatically on ending the programme.
It is additionally possible to set the baud rate and the data format via the OpenComExt function. KELLER devices only support
9600 baud. Exception: Transmitters with firmware 5.20 can also be operated at 115’200 baud. Use the READ30 software from
KELLER to change the transmitter’s baud rate.
As a standard setting, no parity is used (none). This results in a data format of 10 bits per byte. If parity is active, the data format
is 11 bits per byte.
function OpenComPort( intPort, intTimeout: Smallint ): Smallint; stdcall; export;
function OpenComExt( intPort, intTimeout: Smallint; longBaud: Longint; intParity:Smallint
): Smallint; stdcall; export;
intParity: 0: no parity bit (sStandard), 1: odd parity bit, 2: even parity bit
longBaud:
9600 for 9600 baud, 115'200 for 115’200 baud (devices with firmware 5.20)
function CloseComPort : Smallint; stdcall; export;
6.5.2.2 Echo function
Interface converters from KELLER Druckmesstechnik always supply an echo of the message transmitted by the PC.
This function has the standard value 1 (Echo On), to enable operation with the converters supplied by KELLER. If other
converters are used which do not supply a hardware echo, the function must be set to 0 = Echo Off .
function EchoOn( bteEcho: Byte ): Smallint; stdcall; export;
The MJK
MJK
-
MJK Automation A/S will
MJK A/S