A PLC controller and its control system

By integrating the IEC60870-5-104 substation function module into the PLC controller, and communicating directly with the IEC60870-5-104 master station, the problems of high equipment cost and poor flexibility when the PLC controller interacts with the master station are solved, achieving lower cost and more efficient communication.

CN123113641APending Publication Date: 2026-11-17PIPECHINA SOUTH CHINA CO +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510618757.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-14
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

The existing PLC controller has high equipment costs and poor flexibility when interacting with the IEC60870-5-104 master station, requiring a dedicated Modbus to IEC60870-5-104 gateway device.

Method used

The IEC60870-5-104 substation function module is integrated into the PLC controller's runtime system, which directly establishes a communication connection with the IEC60870-5-104 master station, eliminating the need for a dedicated gateway device, simplifying the protocol conversion process, and improving the real-time performance of communication.

Benefits of technology

It reduces equipment costs, simplifies communication processes, improves system flexibility and scalability, and adapts to diverse data interaction needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123113641A_ABST
    Figure CN123113641A_ABST
Patent Text Reader

Abstract

This application discloses a PLC controller and its control system, relating to the field of industrial automation technology, and aims to solve the problem of high equipment costs when current PLC controllers interact with the IEC60870-5-104 master station. The PLC controller's runtime system integrates a distributed network protocol IEC60870-5-104 substation function module, which is used to establish a communication connection with the IEC60870-5-104 master station.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial automation technology, and in particular to a PLC controller and its control system. Background Technology

[0002] In the field of industrial automation control, programmable logic controllers (PLCs) are widely used as core control devices in various production processes and systems. They are responsible for collecting field data, executing control logic, and communicating with host computers or other devices. As a core control device, the communication capability of the PLC controller directly affects the system's integration efficiency and flexibility.

[0003] Current PLC controllers typically support common protocols such as Modbus. However, when needing to interact with the IEC60870-5-104 master station platform software, a dedicated Modbus-to-IEC60870-5-104 gateway device is required. The main function of this gateway device is to convert between the Modbus and IEC60870-5-104 protocols, enabling the Modbus format data sent by the PLC controller to be recognized by the IEC60870-5-104 master station, and simultaneously converting instructions issued by the IEC60870-5-104 master station into Modbus format for the PLC controller to execute. This method of communication using a gateway device results in high equipment costs and poor flexibility. Summary of the Invention

[0004] The purpose of this application is to provide a PLC controller and its control system, which aims to solve the problem of high equipment cost when the current PLC controller interacts with the IEC60870-5-104 master station.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] This application provides a PLC controller, in which a distributed network protocol IEC60870-5-104 substation function module is integrated in the running system of the PLC controller. The IEC60870-5-104 substation function module is used to establish a communication connection with the IEC60870-5-104 master station.

[0007] The PLC controller provided in this application integrates the IEC60870-5-104 substation function module in the running system, and can directly establish a communication connection with the IEC60870-5-104 master station without the need for additional dedicated gateway deployment, thus saving equipment costs. It also eliminates the need for frame encoding and decoding through dedicated gateway equipment, reducing the complexity of the communication process, and eliminating the processing delay in the protocol conversion stage, thereby improving the real-time performance of communication.

[0008] In some embodiments, the PLC controller further includes a configuration parameter parsing module for parsing configuration parameters from the engineering station, the configuration parameters being used to configure the IEC60870-5-104 substation function.

[0009] In this way, the PLC controller also supports remote distribution of configuration parameters such as network type and master / slave station address by the engineer station, and dynamically establishes the mapping relationship between the PLC variable data area and the IEC60870-5-104 protocol address, so that the same PLC controller can flexibly adapt to multi-master station scenarios and diverse data interaction needs, and improve system scalability and field adaptability.

[0010] In some embodiments, the configuration parameters include at least one of the following: network port number, whether to accept any IP address, master IP address 1 and master IP address 2, public address, maximum number of connections, telemetry and teleindication timed upload enable, and timed upload period.

[0011] In some embodiments, the PLC controller further includes a variable management module for managing IEC60870-5-104 slave variables in the PLC variable data area.

[0012] In some embodiments, the variable management module is also used to establish a mapping relationship between the PLC variable data area and the IEC60870-5-104 protocol address.

[0013] In some embodiments, the IEC60870-5-104 substation function module includes a data encoding unit for encoding the data in the PLC variable data area based on the IEC60870-5-104 protocol object type to obtain encoded data.

[0014] In some embodiments, the IEC60870-5-104 substation function module package instruction parsing unit is used to parse instructions issued by the IEC60870-5-104 master station.

[0015] In some embodiments, the instructions are used to instruct the PLC controller to modify the data in the PLC variable data area.

[0016] This application embodiment also provides a control system for a PLC controller, the control system including a PLC controller and an IEC60870-5-104 master station; wherein, the PLC controller's runtime system integrates a distributed network protocol IEC60870-5-104 substation function module, and the PLC controller and the IEC60870-5-104 master station establish a communication connection through the IEC60870-5-104 substation function module.

[0017] In some embodiments, the control system further includes an engineering station for acquiring configuration parameters of the IEC60870-5-104 substation function as indicated by the user, and uploading the configuration parameters to the PLC controller; the PLC controller is also used to configure the IEC60870-5-104 substation function module according to the configuration parameters. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A schematic diagram of a control system for a PLC controller provided in an embodiment of this application;

[0020] Figure 2 A schematic diagram of an engineer's workstation display interface provided in an embodiment of this application;

[0021] Figure 3 A schematic diagram of another engineer station display interface provided in an embodiment of this application;

[0022] Figure 4 A schematic diagram of yet another engineer workstation display interface provided in an embodiment of this application;

[0023] Figure 5 This is a functional diagram of an engineer's workstation and a PLC controller provided in an embodiment of this application. Detailed Implementation

[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0025] In the description of this application, it should be understood that the terms "upper," "lower," "left," "right," "front," "rear," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or relative positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and for simplification, and do not indicate or imply that the device or element referred to needs to have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. Unless otherwise specified, the above-mentioned orientational descriptions can be flexibly set in practical applications, provided that the relative positional relationship shown in the accompanying drawings is satisfied.

[0026] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0027] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," and "communication" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection. They can refer to a direct connection or an indirect connection through an intermediate medium, or a connection within two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0028] In embodiments of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, article, or apparatus that includes that element.

[0029] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0030] In the description of this specification, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.

[0031] A Programmable Logic Controller (PLC) is a digital control system designed specifically for industrial environments. It implements functions such as logic control, sequential control, timing and counting, data acquisition and processing through programming. Its core advantages lie in high reliability, strong anti-interference capabilities, modular design, and flexible programmability, making it widely used in automation fields such as manufacturing, power systems, and transportation infrastructure. A PLC can be understood as a digital electronic device with a microprocessor, a digital logic controller used for automation control, capable of loading control instructions into memory for storage and execution. A PLC can be composed of three main parts: input, central processing unit (CPU), and output. The programmable controller is modularly composed of an internal CPU, instruction and data memory, input / output units, power supply modules, and other units. A PLC can receive (input) and send (output) various types of electrical or electronic signals.

[0032] Telecontrol equipment and systems, Part 5-104: Transmission protocol – IEC 60870-5-101 network access using a subset of standard transmission protocols (IEC 60870-5-104), may also be referred to as IEC 104 protocol or 104 protocol, and in this application may also be referred to as IEC 104, IEC 104 protocol, etc.

[0033] Modbus and IEC 60870-5-104 are two common and important communication protocols in industrial automation. Modbus, with its simplicity, openness, and ease of implementation, is widely used in numerous industrial devices. Therefore, PLC controllers typically support the commonly used Modbus protocol to facilitate data exchange with many devices that support it, meeting basic industrial control needs. IEC 60870-5-104, as a standard protocol widely used in power system remote communication, has advantages such as openness, standardization, and interoperability. However, currently, PLC controllers do not integrate a dedicated IEC 60870-5-104 protocol branch, requiring a dedicated gateway device to communicate with the IEC 60870-5-104 master station software. This method of using a dedicated Modbus-to-IEC 60870-5-104 gateway device to achieve interaction between the PLC controller and the master station platform is costly and lacks flexibility.

[0034] In view of this, embodiments of this application provide a control system for a PLC controller, such as... Figure 1As shown, system 100 may include a PLC controller 10 and an IEC60870-5-104 master station 20. The PLC controller 10 includes an IEC60870-5-104 substation function module. The PLC controller 10 can establish a communication connection with the IEC60870-5-104 master station 20, for example, via Ethernet.

[0035] It should be noted that the PLC controller integrates the IEC60870-5-104 substation function module during system operation, which can directly establish a communication connection with the IEC60870-5-104 master station without the need for additional dedicated gateway deployment, saving equipment costs. It also eliminates the need for frame encoding and decoding through dedicated gateway equipment, reducing the complexity of the communication process and eliminating the processing delay in the protocol conversion stage, thus improving the real-time performance of communication.

[0036] It should be noted that the control system of the PLC controller provided in this application embodiment can be applied to oil and gas pipelines, real-time monitoring and scheduling of long-distance oil and gas pipelines, pipeline leak detection and emergency response, intelligent control of urban gas pipeline networks, etc. It can also be applied to power transmission and distribution monitoring, such as substation equipment status monitoring, and interface with the power dispatching master station through IEC60870-5-104. It can also be applied to railway signaling systems, etc., and will not be listed here. Among them, the control system of the PLC controller is only an exemplary name. The system can also be called a data acquisition system, a high-reliability IEC60870-5-104 data acquisition system for oil and gas pipelines, etc., and this application does not limit it in this way.

[0037] In some embodiments, such as Figure 1 As shown, system 100 may also include engineer station 30.

[0038] Among them, the engineer station 30 is used to obtain the configuration parameters of the IEC60870-5-104 substation function indicated by the user, and upload the configuration parameters to the PLC controller 10. The PLC controller 10 is also used to configure the IEC60870-5-104 substation function module according to the configuration parameters.

[0039] For example, the engineer station 30 and the PLC controller 10 can also communicate via Ethernet.

[0040] For example, the runtime system of a PLC controller integrates an IEC60870-5-104 substation function module. The runtime system is the core software architecture of the PLC controller responsible for real-time execution of control logic, management of data interaction, and coordination of hardware resources. It includes functions such as real-time task scheduling, memory management, protocol stack integration, and exception handling; it can also be referred to as runtime software.

[0041] The runtime system has an address mapping with the IEC60870-5-104 substation functional modules.

[0042] For example, the engineering station 30 can be an industrial control computer, an engineering laptop, a cloud engineering platform, a dedicated HMI / engineering terminal, or other possible devices that can meet industrial-grade reliability and protocol processing capabilities. This application does not specifically limit the actual implementation device.

[0043] Optionally, the engineer station 30 can also be used to edit, compile, download, and monitor PLC programs. To support the IEC60870-5-104 protocol substation function, the engineer station 30 can also perform IEC60870-5-104 variable selection and attribute setting functions, IEC60870-5-104 protocol station parameter configuration functions, and IEC60870-5-104 related data download functions.

[0044] Among these, editing refers to the programming environment provided by the engineer station 30, allowing engineers to write and modify the PLC's control logic program. Compilation refers to performing syntax checks and compiling the written PLC program to generate executable machine code for the PLC. Downloading refers to downloading the compiled program to the PLC controller, enabling the PLC to execute the new control logic. Variable monitoring refers to real-time monitoring of PLC variable values.

[0045] The IEC60870-5-104 variable selection function allows operators of the engineering station 30 to specify PLC variables as IEC60870-5-104 slave variables via the engineering station software. The engineering station 30 can display a PLC variable selection interface, allowing operators to select PLC variables based on the specified PLC variables.

[0046] like Figure 2 As shown, this interface displays the index, name, description, data type, address, and initial value of various PLC variables, in a P2P manner. Therefore, the operator of the engineering station 30 can select a specific PLC variable from the PLC variable list on this interface and designate it as an IEC60870-5-104 slave variable. For example... Figure 2As shown, the operator of the engineering station 30, by selecting the "IEC104 slave list" operation for the selected PLC variable, indicates that the selected PLC variable is an IEC60870-5-104 slave variable. For example, in this interface, the operator of the engineering station 30 can also select operations such as adding variables, inserting variables, deleting variables, exporting CSV, importing CSV, copying, cutting, pasting, restoring, undoing, adding to the OPC list (adding the variable to the OPC (OLE for Process Control) list for data exchange with the OPC server), adding to the power-loss retention list (adding the variable to the power-loss retention list to ensure that the variable's value is retained after a system power failure), adding to the Modbus slave list (adding the variable to the Modbus slave device list for Modbus communication), adding to the DNP3.0 (Distributed Network Protocol) slave list, and adding to the allowed forced list.

[0047] The variable attribute setting function allows operators on the engineering station 30 to configure the basic attributes of IEC60870-5-104 slave variables, including the IEC60870-5-104 protocol type and internal attributes, IEC60870-5-104 protocol address, etc. For example... Figure 3 As shown, the engineer station 30 can display the basic attribute configuration interface of the IEC60870-5-104 slave variable. This interface can include multiple IEC60870-5-104 slave variables, as well as the index, name, data type, description, IEC104 protocol attribute, IEC104 protocol type, IEC104 protocol address, etc. of each IEC60870-5-104 slave variable.

[0048] In some embodiments, the address range of the IEC 60870-5-104 protocol includes:

[0049] The IEC 60870-5-104 protocol stack is based on the standard IEC 60870-5-101 Network Access, which adopts the standard transmission protocol set (DLT 634.5104-2009 Telemetry Equipment and Systems - Part 5-104: Transmission Protocol). The address ranges for remote signaling, telemetry, remote control, remote adjustment, and remote pulse signals are set as follows:

[0050] 1) Remote signaling: 0001H-4000H supports a maximum of 16384 DI points.

[0051] 2) Telemetry: 4001H-5000H supports up to 4096 AI points.

[0052] 3) Remote control: 6001H-6100H supports a maximum of 256 DOs.

[0053] 4) Remote adjustment points: 6201H-6400H support a maximum of 512 AOs.

[0054] 5) Remote pulse point: 6401H-6600H supports a maximum of 512 four-byte data inputs.

[0055] In some embodiments, the engineer station 30 can also automatically check whether the IEC60870-5-104 slave variable meets the above standard requirements. If it is not within the range, the slave variable cannot be configured successfully.

[0056] The IEC60870-5-104 protocol station parameter configuration function allows operators to configure the basic parameters of the IEC60870-5-104 substation via an engineering workstation and then send these configuration parameters to the PLC controller. These configuration parameters may include at least one of the following: network port number, whether to accept any IP address, master station IP address 1 and master station IP address 2, public address, maximum number of connections, enabling telemetry and tele-signaling timed upload, and timed upload cycle.

[0057] For example, such as Figure 4 As shown, the engineer station 30 provides a configuration interface for all parameters to the user (operator). This interface provides a range of reference values, such as the name, data type, value (which can be understood as the current setting value), maximum (maximum settable value), and minimum (minimum settable value) of each IEC60870-5-104 parameter. For example, the IEC60870-5-104 parameters include port, Accept anyIP, master station address, master station address 2, public address, maximum number of master station connections, telemetry timed upload allowed, telemetry timed upload allowed, and timed upload period. Specifically, the port data type is UINT (unsigned integer), with a value of 2404, a maximum of 65535, and a minimum of 0. The Accept anyIP data type is BOOL (Boolean), with a value of Enable. The master station address data type is STRING (string), with a value of 0.0.0.0. The master station address 2 data type is STRING, with a value of 0.0.0.0. The data type for the public address is USINT (unsigned short integer), with a value of 1, a maximum of 127, and a minimum of 1. The data type for the maximum number of master station connections is USINT, with a value of 8, a maximum of 16, and a minimum of 1. The allowed data type for telemetry timed uploads is BOOL, with a value of Enable. The allowed data type for telemetry timed uploads is BOOL, with a value of Enable. The data type for the timed upload period is USINT, with a value of 10, a maximum of 60, and a minimum of 10.

[0058] If the user does not configure the parameters, the IEC60870-5-104 substation in the PLC controller will be initialized and run according to the default data.

[0059] The data downloaded from the engineer station 30 to the PLC controller needs to be encoded according to a specific format to become a communication protocol between the master and slave computers. The data type definitions of the PLC variables selected as slave variables according to IEC60870-5-104 are shown in Table 1 below:

[0060] Table 1

[0061]

[0062]

[0063] Add a new CPU parameter download file to the 12 download files. The file FileID is kCPUCommConfig(25). Also, add two new data segments to the download data area, namely kDNPSlaveParam=28 and kDNPSlavelndex=29.

[0064] In some embodiments, the configuration parameter data definition of DNPSlave can be as shown in Table 2:

[0065] Table 2

[0066]

[0067]

[0068] In some embodiments, the variable data definition in IEC 60870-5-104 can be as shown in Table 3:

[0069] Table 3

[0070]

[0071] In some embodiments, the PLC controller 10 can perform functions such as parsing configuration data of the IEC60870-5-104 protocol substation, IEC60870-5-104 protocol substation functions, running software PLC variable data area, and communication functions between the IEC60870-5-104 protocol substation and the IEC60870-5-104 master station software.

[0072] like Figure 5As shown, the engineer station 30 can provide IEC104 (IEC60870-5-104) parameter configuration data and IEC104 selected variable information to the PLC controller 10. The PLC controller 10 can then receive and parse the downloaded data to obtain the parameter configuration information and selected variable information. Based on the parameter configuration information, it can configure the IEC104 substation and reinitialize it. Furthermore, it can save the selected variable information to a designated buffer.

[0073] For example, taking the application of system 100 to oil and gas pipelines as an example, PLC controller 10 can also be a dedicated PLC controller for oil and gas pipelines.

[0074] In some embodiments, the PLC controller further includes a configuration parameter parsing module for parsing configuration parameters from the engineering station, the configuration parameters being used to configure the IEC60870-5-104 substation function.

[0075] For example, IEC60870-5-104 protocol substation configuration data parsing refers to the runtime software parsing the downloaded data segments according to the aforementioned upper and lower computer communication protocols and storing them in the corresponding buffers. The IEC60870-5-104 configuration parameters are shown in Table 4 below:

[0076] Table 4

[0077] Serial Number Parameter name Data types 1 network port UINT8 2 Accept any IP address as the host site UINT8 3 Lower limit of IEC104 master station IP address range UINT32 4 IEC104 Master Station IP Address Range Limit UINT32 5 IEC104 public address UINT8 6 IEC104 Maximum Number of Master Station Connections UINT8 7 IEC104 Telemetry Time Upload Enable UINT8 8 IEC104 Remote Signaling Timed Upload Enable UINT8 9 IEC104 timed upload cycle UINT8

[0078] In some embodiments, the PLC controller 10 further includes a variable management module for managing IEC60870-5-104 slave variables in the PLC variable data area.

[0079] For example, the variable management module is also used to establish a mapping relationship between the PLC variable data area and the IEC60870-5-104 protocol address.

[0080] For example, the runtime software PLC variable data area and the IEC60870-5-104 protocol address can be implemented in the following way:

[0081] When the IEC60870-5-104 protocol substation uploads data, it obtains the actual address, length, and data type of the PLC variable based on the information of the slave variable in the cache, and then uploads the data value to the main station platform.

[0082] After the IEC60870-5-104 protocol substation receives downlink data, it obtains the actual address, length, and data type of the PLC variable based on the slave variable information in the cache, and writes the downlink data into the runtime software data area.

[0083] In some embodiments, the IEC60870-5-104 substation function module includes a data encoding unit for encoding the data in the PLC variable data area based on the IEC60870-5-104 protocol object type to obtain encoded data.

[0084] In some embodiments, the IEC60870-5-104 substation function module package instruction parsing unit is used to parse instructions issued by the IEC60870-5-104 master station 20. These instructions are used to instruct the PLC controller to modify data in the PLC variable data area.

[0085] For example, the IEC60870-5-104 protocol substation function includes at least two parts: first, encoding the IEC60870-5-104 slave variables according to the protocol format and uploading them to the IEC60870-5-104 master station platform via Ethernet; second, receiving and parsing the specified IEC60870-5-104 slave variable data from the IEC60870-5-104 master station platform and mapping the data to the runtime data area.

[0086] In this application, the IEC60870-5-104 master station can also be referred to as the master station platform, the IEC60870-5-104 master station platform, the IEC60870-5-104 master station software, etc.

[0087] In some embodiments, the IEC60870-5-104 protocol substation completes initialization operations when the PLC controller starts, including creating an IEC104 slave service, initializing slave configuration parameters, initializing the slave service, obtaining and configuring application layer parameters, setting the slave's callback function, and finally starting the IEC104 slave service.

[0088] This enables a novel IEC60870-5-104 data acquisition mode. By integrating the IEC60870-5-104 protocol substation into the PLC controller's runtime software, the PLC controller can directly communicate and exchange data with the IEC60870-5-104 master station platform. When the IEC60870-5-104 master station platform communicates with the PLC controller, frame encoding and decoding are no longer required through a dedicated gateway device, simplifying equipment requirements for field deployment and reducing engineering costs. The engineering workstation can configure the IEC60870-5-104 substation, offering greater flexibility in usage.

[0089] In addition, this application embodiment also provides a PLC controller, the PLC controller's runtime system integrating a distributed network protocol IEC60870-5-104 substation function module, the IEC60870-5-104 substation function module being used to establish a communication connection with the IEC60870-5-104 master station.

[0090] In some embodiments, the PLC controller further includes a configuration parameter parsing module for parsing configuration parameters from the engineering station, the configuration parameters being used to configure the IEC60870-5-104 substation function.

[0091] In some embodiments, the configuration parameters include at least one of the following: network port number, whether to accept any IP address, master IP address 1 and master IP address 2, public address, maximum number of connections, telemetry and teleindication timed upload enable, and timed upload period.

[0092] In some embodiments, the PLC controller further includes a variable management module for managing IEC60870-5-104 slave variables in the PLC variable data area.

[0093] In some embodiments, the variable management module is also used to establish a mapping relationship between the PLC variable data area and the IEC60870-5-104 protocol address.

[0094] In some embodiments, the IEC60870-5-104 substation function module includes a data encoding unit for encoding the data in the PLC variable data area based on the IEC60870-5-104 protocol object type to obtain encoded data.

[0095] In some embodiments, the IEC60870-5-104 substation function module package instruction parsing unit is used to parse instructions issued by the IEC60870-5-104 master station.

[0096] In some embodiments, the instructions are used to instruct the PLC controller to modify the data in the PLC variable data area.

[0097] In addition, for further information about the PLC controller, please refer to the relevant description of the PLC controller 10 in the above system 100, which will not be repeated here.

[0098] Based on the above embodiments, by directly integrating the IEC60870-5-104 substation function module into the PLC controller's runtime system, end-to-end communication with the IEC60870-5-104 master station platform is realized. Compared with the Modbus-IEC60870-5-104 protocol conversion gateway, the equipment deployment cost and system complexity are significantly reduced, while eliminating the additional fault risks introduced by the gateway device.

[0099] Furthermore, it supports remote distribution of configuration parameters such as network type and master / slave station address by the engineer station, and dynamically establishes the mapping relationship between the PLC variable data area and the IEC60870-5-104 protocol address, enabling the same PLC controller to flexibly adapt to multi-master station scenarios and diverse data interaction needs, thereby improving system scalability and field adaptability.

[0100] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A PLC controller, characterized in that, The PLC controller's runtime system integrates an IEC60870-5-104 substation function module, which is used to establish a communication connection with the IEC60870-5-104 master station.

2. The PLC controller according to claim 1, characterized in that, The PLC controller also includes a configuration parameter parsing module, which is used to parse configuration parameters from the engineer station. These configuration parameters are used to configure the IEC60870-5-104 substation functions.

3. The PLC controller according to claim 2, characterized in that, The configuration parameters include at least one of the following: network port number, whether to accept any IP address, main station IP address 1 and main station IP address 2, public address, maximum number of connections, telemetry and tele-signaling timed upload enable, and timed upload period.

4. The PLC controller according to claim 1, characterized in that, The PLC controller also includes a variable management module for managing IEC60870-5-104 slave variables in the PLC variable data area.

5. The PLC controller according to claim 4, characterized in that, The variable management module is also used to establish the mapping relationship between the PLC variable data area and the IEC60870-5-104 protocol address.

6. The PLC controller according to claim 1, characterized in that, The IEC60870-5-104 substation functional module includes a data encoding unit, which is used to encode the data in the PLC variable data area based on the IEC60870-5-104 protocol object type to obtain the encoded data.

7. The PLC controller according to claim 1, characterized in that, The IEC60870-5-104 substation function module package instruction parsing unit is used to parse the instructions issued by the IEC60870-5-104 master station.

8. The PLC controller according to claim 7, characterized in that, The instruction is used to instruct the PLC controller to modify the data in the PLC variable data area.

9. A control system for a PLC controller, characterized in that, The control system includes a PLC controller and an IEC60870-5-104 master station; wherein, the PLC controller integrates a distributed network protocol IEC60870-5-104 substation function module in its runtime system, and the PLC controller and the IEC60870-5-104 master station establish a communication connection through the IEC60870-5-104 substation function module.

10. The control system according to claim 9, characterized in that, The control system also includes an engineer station, used to acquire configuration parameters of the IEC60870-5-104 substation function as instructed by the user, and upload the configuration parameters to the PLC controller; The PLC controller is also used to configure the IEC60870-5-104 substation function module according to the configuration parameters.