Description
301140 Pilz Memory (Unit)
The 301140 communication protocol is generally the same. The difference is only in the size of some of these registers. In this way, we consider that we can have this family of devices use the same driver. In order to improve the generality, at the same time, in general, the user does not need to use all the registers, so the channels of this device components are designed so that the user can define their own in the configuration. All channels and their corresponding parameters (i.e., register addresses) are defined by the user. The driver communicates according to the user-defined information.
Among the 301140 , there may be some parameters which are not commonly used by the user, and if they are composed of channels, it is inefficient to communicate with each acquisition cycle. Considering this situation, we provide some external interfaces for the monitoring system to call, in which commands can be sent to support all the register channels.
301140 analysis of PLC devices from different manufacturers, it can also be found that the communication process and protocol methods can be abstracted to extract their common points and variations, encapsulate and hide the details of the data exchange process to achieve the purpose of universal. By encapsulating the format, standardizing the code, and unifying the interface, the efficiency of driver development can be improved and the difficulty of driver development can be reduced. Improve the reusability of the code, enhance the stability of the driver, reduce the design of the error prone to occur. So that the developers put the main focus on the familiarity of the device and the analysis of the protocol, rather than too much entangled in the minutiae of the programming implementation.