The main goal of this paper is an attempt to create a new approach to measuring equipment-PLC controller communication. Beside the individual communicational protocols supported and developed by PLC manufacturers, PLC controllers support also popular protocols like TCP or UDP. This allows an easy communication with computers and many devices supporting these protocols. This paper presents a control system, which allows the distance measurement where the data is sent to the PLC controller (SIEMENS S7-1200) using Ethernet bus. The data can be also accessed using Human Machine Interface on an operators screen. In the paper it is shown how to create such a communication system which can be implemented for measurement purposes and is ready for farther development in the future.