30
10.5.2.
Control functions
Softcontrol Data/F offers the possibility of a TCP / IP connection for communication with ex-
ternal control systems such as a PLC or similar. To control Softcontrol Data/F and to receive
measurement data, a defined data packet must be sent to the parameterized port (factory setting:
port = 2000). Softcontrol Data/F responds within the same TCP / IP transport channel.
Note:
The cycle time for sending data to Softcontrol Data/F must not be shorter than 1 second!
The data packet to be sent to Softcontrol Data/F must be structured according to the following
scheme:
Packet length - 8 bytes
Data package from external control to Softcontrol Data/F:
byte
description
content
0
0x75
Start identifier
1
0x30
Start identifier
2
COMMAND
Command code
3
PARAM1
Parameter according to command
4
PARAM2
Parameter according to command
5
PARAM3
Parameter according to command
6
PARAM4
Parameter according to command
7
Reserve
Currently not used
The following command codes are defined:
code
command
description
parameter
0
GET_DATA
Only request data package n/a
1
SET_RW
Set raw water hardness
Raw water hardness*100 (32
Bit)
2
SET_GW
Set soft water limit value
Rohwater hardness *100 (32
Bit)
3
SET_MASSEINHEIT
Set unit of measurement
0 = °dH, 1 = °f,
2 = mmol/l, 3 = ppm
4
SET_MESSPAUSE
Set interval
Measurement pause
in seconds (16 Bit)
5
SET_ALARM_DELAY Set alarm delay
Alarm delay
in seconds (16 Bit)
6
SET_SPRACHE
Set language
0 = German, 1 = English
7
SOFTWARE_RESET
Restart of software
n/a
8
OFFLINE
Switching on / off
offline mode
0 = Measuring operation,
1 = Offline
9
SENSORGUETE
Sensor quality check
n/a
Note:
After a "calibration" a sensor quality check has been triggered, it can take up to 15
minutes to complete a new sensor quality.
A data packet with all measured values and status information is sent back for every data packet
sent. This data package is structured as follows: