K-Patents PR-7112 User manual

Fieldbus converter PR-7112
Document/Revision No. IM-EN-FBC: Rev. 1.0
Eective: March 12, 2019
Instruction Manual

Table of contents
1 Introducon ......................................................... 1
1.1 Disposal ...................................................... 1
2 Connecons ......................................................... 2
3 Communicaonprotocols .............................................. 3
3.1 Modbus/TCP, Modbus RTU modes ................................. 3
3.2 Ethernet/IP mode .............................................. 5
4 Conguraonandtesng .............................................. 7
4.1 Conguring the eldbus converter ................................. 7
4.2 Accessing the refractometer web interface .......................... 8
4.3 Tesng Modbus RTU connecon with a PC .......................... 8
5 Specicaons ....................................................... 10
5.1 Converter environmental and electrical specs ....................... 10

1
1 Introducon
The K-Patents Fieldbus Converter is designed to make easier connecons of K-Patents instru-
mentaons to Fieldbus and Industrial Ethernet through a Fieldbus converter.
Note: The converter can only send data. E.g. it is not possible to change the parameters
through the converter.
1.1 Disposal
When wishing to dispose of the converter or any parts thereof, please observe
local and naonal regulaons and requirements for the disposal of electrical and
electronic equipment.

2
2 Connecons
The Refractometer Converter helps to insert K-PATENTS refractometers into Modbus/TCP, Mod-
bus RTU or Ethernet/IP networks. The soware runs on a MOXA UC-7112 LX Plus computer
PR-7112. The computer has two Ethernet connectors. The one marked as “LAN1” should be
connected to a Modbus/TCP or Ethernet/IP capable device (if used in one of these modes), the
other one (“LAN2”) to a K-PATENTS refractometer (or, in case of PR-23, the DTR transmier). If
used in Modbus RTU mode, serial port P1 should be connected to a Modbus RTU network.
The converter gets the data from the refractometer via UDP/IP communicaon and stores them
in its Modbus registers and Ethernet/IP objects. On the “LAN1” port the converter acts as a
Modbus/TCP server or Ethernet/IP adapter. On serial port P1 the converter acts as Modbus
RTU slave.

3
3 Communicaon protocols
3.1 Modbus/TCP, Modbus RTU modes
If used in Modbus mode, clients can connect and read the registers (use funcon code 3). The
following table shows the Modbus registers.
NAME ADDRESS TYPE FUNCTION
Sensor A LED 0 FLOAT Refractometer LED value
Sensor A CCD 2 FLOAT Image shadow edge posion
Sensor A nD 4 FLOAT Calculated refracve index value
Sensor A T 6 FLOAT Process temperature
Sensor A Tsens 8 FLOAT Refractometer internal temperature
Sensor A Traw 10 FLOAT Process temperature (without bias)
Sensor A RHsens 12 FLOAT Refractometer internal humidity
Sensor A CALC 14 FLOAT Calculated concentraon value
Sensor A CONC 16 FLOAT Final concentraon value
Sensor A PTraw 18 INT Raw PT1000 value
Sensor A QF 20 FLOAT Image quality factor
Sensor A mA 22 FLOAT mA output value
Sensor A BGLight 24 INT Background light level
Sensor A Seq 26 INT Sequence number of measurement
Sensor A Timestamp 28 INT Time since device start-up
Sensor A Status 30 INT Refractometer status message
Sensor B LED 32 FLOAT Refractometer LED value
Sensor B CCD 34 FLOAT Image shadow edge posion
Sensor B nD 36 FLOAT Calculated refracve index value
Sensor B T 38 FLOAT Process temperature
Sensor B Tsens 40 FLOAT Refractometer internal temperature
Sensor B Traw 42 FLOAT Process temperature (without bias)
Sensor B RHsens 44 FLOAT Refractometer internal humidity
Sensor B CALC 46 FLOAT Calculated concentraon value
Sensor B CONC 48 FLOAT Final concentraon value
Sensor B PTraw 50 INT Raw PT1000 value
Sensor B QF 52 FLOAT Image quality factor
Sensor B mA 54 FLOAT mA output value
Sensor B BGLight 56 INT Background light level
Sensor B Seq 58 INT Sequence number of measurement
Sensor B Timestamp 60 INT Time since device start-up
Sensor B Status 62 INT Refractometer status message
All stored values are 4 bytes in size (either FLOAT or SIGNED INT).
Table 3.1

4
Status values are transmied as integers. These are the status messages to each value:
STATUS CODE STATUS MESSAGE
-1 No status received
0NORMAL OPERATION
1EXTERNAL HOLD
2EXTERNAL WASH STOP
3HIGH SENSOR HUMIDITY
4HIGH SENSOR TEMP
5LOW IMAGE QUALITY
6LOW TEMP WASH STOP
7NO OPTICAL IMAGE
8NO SAMPLE
9NO SAMPLE/WASH STOP
10 NO SENSOR
11 NO SIGNAL
12 OUTSIDE LIGHT ERROR
13 OUTSIDE LIGHT TO PRISM
14 PRECONDITIONING
15 PRISM COATED
16 PRISM WASH
17 PRISM WASH FAILURE
18 RECOVERING
19 SHORT-CIRCUIT
20 STARTING UP
21 TEMP MEASUREMENT FAULT
Table 3.2
Note: The computer can’t handle very frequent Modbus requests. As the refractometer values
are updated once per second, it is recommended to request values once per second to avoid
overloading the converter.

5
3.2 Ethernet/IP mode
When used in Ethernet/IP mode, the converter acts as an adapter, and waits for Ethernet/IP
scanners to connect. Connecon can be set up easily with the provided le “Converter.eds”, or
manually with the following parameters:
• Port: 0xAF12 (44818)
• O->T:
– instance number: 102
– data size: 0
– real me format: modeless
– packet rate: 1000 ms
• T->O:
– instance number: 101
– data size: 128
– real me format: modeless
– packet rate: 1000 ms
– connecon type: point to point
Note: The converter.eds le is part of the converter congurator package (zip) that you can
download at https://www.kpatents.com/assets/files/downloads/manuals/software/28957
_RefConverterAssistant.zip.

6
The 128-byte data of the T->O instance contains the following values:
NAME BYTES TYPE FUNCTION
Sensor A LED 0-3 REAL Refractometer LED value
Sensor A CCD 4-7 REAL Image shadow edge posion
Sensor A nD 8-11 REAL Calculated refracve index value
Sensor A T 12-15 REAL Process temperature
Sensor A Tsens 16-19 REAL Refractometer internal temperature
Sensor A Traw 20-23 REAL Process temperature (without bias)
Sensor A RHsens 24-27 REAL Refractometer internal humidity
Sensor A CALC 28-31 REAL Calculated concentraon value
Sensor A CONC 32-35 REAL Final concentraon value
Sensor A PTraw 36-39 DINT Raw PT1000 value
Sensor A QF 40-43 REAL Image quality factor
Sensor A mA 44-47 REAL mA output value
Sensor A BGLight 48-51 DINT Background light level
Sensor A Seq 52-55 DINT Sequence number of measurement
Sensor A Timestamp 56-59 DINT Time since device start-up
Sensor A Status 60-63 DINT Refractometer status message
Sensor B LED 64-67 REAL Refractometer LED value
Sensor B CCD 68-71 REAL Image shadow edge posion
Sensor B nD 72-75 REAL Calculated refracve index value
Sensor B T 76-79 REAL Process temperature
Sensor B Tsens 80-83 REAL Refractometer internal temperature
Sensor B Traw 84-87 REAL Process temperature (without bias)
Sensor B RHsens 88-91 REAL Refractometer internal humidity
Sensor B CALC 92-95 REAL Calculated concentraon value
Sensor B CONC 96-99 REAL Final concentraon value
Sensor B PTraw 100-103 DINT Raw PT1000 value
Sensor B QF 104-107 REAL Image quality factor
Sensor B mA 108-111 REAL mA output value
Sensor B BGLight 112-115 DINT Background light level
Sensor B Seq 116-119 DINT Sequence number of measurement
Sensor B Timestamp 120-123 DINT Time since device start-up
Sensor B Status 124-127 DINT Refractometer status message
Table 3.3
Status values are transmied as integers. Please see Table 3.2 on page 4 for status codes.

7
4 Conguraon and tesng
Warning! Never press the reset buon on the converter. The reset buon on top of the
MOXA UC-7112 Plus computer (the converter) is not designed to hard reboot the computer.
The Fieldbus converter is implemented as a proprietary applicaon soware running on the
MOXA UC-7112 Plus computer. The applicaon soware will be permanently erased, if the
reset buon is pressed.
Figure 4.1 Reset buon locaon
4.1 Conguring the eldbus converter
To congure the eldbus converter, use soware tool "K-PATENTS Refractometer Converter
Assistant". You can download it at https://www.kpatents.com/support/document-downloads
/software-for-connectivity-and-communications.
Figure 4.2 Refractometer Converter Assistant

8
Connect the converter’s LAN1 port to a Windows PC. The default IP address of the converter is
192.168.3.127. Congure the PC’s Ethernet connecon to have an IP address in the same range
(192.168.3.x). Note: The connecon will not work if the computer and the refractometer have
exactly the same IP address.
At the top-le corner, enter the IP address of the converter, and press “Connect”. The para-
meters in the le frame should now get automacally lled with the current sengs of the
converter. Modify according to your needs, and press “SET THIS CONFIGURATION”. Now the
eldbus converter will adapt to the changes and restart automacally. This may take 30-60
seconds.
With this soware tool you can test the converter’s connecon to the refractometer in Mod-
bus/TCP mode. Press “Get Register Values” to get all values from the Modbus registers, or
“Trace Register Values” to get them constantly updang. When pressing “Get Register Values”
for a rst me, locaon of the provided le “modbus_daemon_sengs.json” will be asked for.
When the converter connects to a K-PATENTS refractometer or to a DTR transmier with a
direct cable connecon, use the netmask 255.255.255.0 for LAN2 as seen on the above image.
4.2 Accessing the refractometer web interface
Conguring a refractometer is not possible through the eldbus converter, because it pro-
vides only measurement and status data into Modbus/TCP, Modbus RTU or Ethernet/IP net-
works. The refractometer can be congured, veried and diagnosed by accessing its built-in
web server homepage. The homepage is accessed by connecng a computer to a refractome-
ter via a switch, a router or a direct cable connecon. A connecon between refractometer
and converter can be temporarily disconnected while changing refractometer parameters –
the connecon recovers automacally aer the connecon is restored. See the refractometer
manual for details of its network sengs.
4.3 Tesng Modbus RTU connecon with a PC
Modbus RTU connecvity can be tested with PC tools prior to installing the eldbus converter
to its nal locaon. A suitable tool for this is ModbusTool which can be downloaded from
hps://github.com/graham22/modbustool. This program features a Modbus master and a
client as well. As the converter works as a slave, we need to use the ModbusTool Master to
communicate with it. Please follow the below steps:
1. Connect the eldbus converter to the PC via serial cable. You can use a built-in serial port on
your PC, or a USB-serial converter (not provided by K-Patents). Please check the supported
serial communicaon type (RS422 / RS485 2-wire / RS485 4-wire). Both the USB-serial con-
verter and the cable must be chosen accordingly.
2. Set up the eldbus converter to operate in the Modbus RTU mode, and set baud rate, data
bits, ow control, parity, stop bits and interface.
3. Connect the eldbus converter to a refractometer.
4. In ModbusTool Modbus Master, select:
a. Communicaon Mode: RTU
b. Port name: the port where you connected the serial cable
c. Baud, parity, data bits and stop bits should be the same as on converter
d. Start address: 0
e. Size: 64 (press Apply aer these)
f. Press “Connect”

9
5. Press “Read holding register” to send a read request to the converter
6. At the boom of the screen you should see the sent (TX) and received (RX) bytes, and the
message “Read succeeded: Funcon code: 3.”.
Figure 4.3 ModbusTool Modbus Master

10
5 Specicaons
5.1 Converter environmental and electrical specs
Operang temperature -10 to 60°C (14 to 140°F)
Maximum altude 5000 meters
Input voltage 12 to 48 VDC
Input current 170 mA @ 24 VDC
340 mA @ 12 VDC
Power consumpon 4.5 W


K-Patents Oy
P.O. Box 77
FI-01511 Vantaa, Finland
tel. +358 207 291 570
fax +358 207 291 577
K-Patents, Inc.
1804 Centre Point Circle,
Suite 106
Naperville, IL 60653, USA
tel. (630) 955 1545
fax (630) 955 1585
K-Patents (Shanghai) Co., Ltd
Room 1509,
Tomson Commercial Building, No.710
Dongfang RD
Pudong District, Shanghai, China
tel. +86 21 5087 0597/0598
fax +86 21 5087 0598
www.kpatents.com
Table of contents
Popular Media Converter manuals by other brands

Dometic
Dometic Type I operating manual

Snell Advanced Media
Snell Advanced Media KudosPro LC2000 Operator's manual

Pioneer
Pioneer u-05-s operating instructions

TR-Electronic
TR-Electronic CEV-115 user manual

Aus Electronics Direct
Aus Electronics Direct AA6103 user manual

Wallenstein
Wallenstein WX350 Operator's manual

Morningstar
Morningstar EMC-1 Installation and operation manual

Avigilon
Avigilon ENC-4P-H264 installation guide

Karma
Karma CVS 908 instruction manual

IMC Networks
IMC Networks McBasic 10/100 Operation manual

TR-Electronic
TR-Electronic CEV65M-4096/4096 PB 50ZB6GL Assembly instructions

Cypress
Cypress CLUX-4 Operation manual