A PR-43 or PR-33 refractometer or a PR-23 system can be connected over direct UDP to a Siemens S7 or Allen-Bradley PLC. K-Patents provides the software components that enable di- rect UDP communication between refractometer and PLC. For the connection, customers only need to insert the ready-made software components into their PLC program.
2 Direct UDP/IP connection between SIEMENS S7 PLC and K-Patents refractometer All measurement and diagnostic data can be received from a K-PATENTS refractometer via UDP/IP communication. This follows a simple protocol: a device sends a request to the re- fractometer and it sends the data in return. This document and the attached files present an implementation of this communication on a SIEMENS S7 PLC.
The KP_REFRACTOMETER Add-On Instruction enables Rockwell users to easily extend their PLC The KP_REFRACTOMETER Add-On Instruction, downloadable at www.kpatents.com, enables software with K-Patents refractometer connection. Rockwell users to easily extend their PLC software with K-Patents refractometer connection. Instructions 3.1 Instructions 1.
Page 7
READ MESSAGE see below this table SOCKET REQUEST_PARAMETERS Type: 2 Family: 2 Port: any unused, available port READ MESSAGE see below this table Read_Data_Req READ_DATA_REQ Timeout: 1000 SOCKET REQUEST_PARAMETERS Type: 2 BufLen: 300 Family: 2 Write_Data_Out WRT_DATA Timeout: 3000 Port: any unused available port ToAddr.Family: 2 Read_Data_Req READ_DATA_REQ...
Page 8
a. For CREATE: i. Service Type: Socket Create ii. Source Element: Socket iii. Destination Element: kp_1.SockNum iv. On the communication page, Path: 1,0 b. For DELETE: i. Service Type: DeleteSocket ii. Instance: 0 iii. On the Communication page, Path: 1,0 c.
4 Accessing the refractometer web interface Configuring a refractometer is not possible through direct UDP/IP connection with PLC, be- cause direct UDP/IP connection provides only measurement and status data. The refractometer can be configured, verified and diagnosed by accessing its built-in web server homepage. The homepage is accessed by connecting a computer to a refractometer via a switch, a router or a direct cable connection.
Page 10
K-Patents Oy K-Patents, Inc. K-Patents (Shanghai) Co., Ltd P.O. Box 77 1804 Centre Point Circle, Room 1509, FI-01511 Vantaa, Finland Suite 106 Tomson Commercial Building, No.710 tel. +358 207 291 570 Naperville, IL 60653, USA Dongfang RD fax +358 207 291 577 tel.