K23-SSI/USB/25B-C | APPENDIX
47
5. Appendix
5.1 Reading Out Data via Serial Interface
The free operating software OS 6.0 is available at: Pepperl-Fuchs.com
The code positions (SERIAL VALUE) defined in the SERIAL MENU can be read
out serially at any time by a PC or a PLC. Communication with this device is
based on the Drivecom protocol according to ISO 1745 or the Modbus RTU
protocol. For details, refer to the chapter "Modbus RTU Interface" in this manual.
See Chapter 5.2.
The request string for reading out data is:
EOT = control characters (hex 04)
AD1 = device address, high byte
AD2 = device address, low byte
C1 = code position to be read out, high byte
C2 = code position to be read out, low byte
ENQ = control characters (hex 05)
If, for example, the current display value is to be read out from a device with
device address 11 (code = 1), the detailed request string will be as follows:
If the request is correct, the response from the device is:
STX = control characters (hex 02)
C1 = code position to be read out, high byte
C2 = code position to be read out, low byte
xxxxx = data to be read out
ETX = control characters (hex 03)
BCC = block check character