Time synchronization method and device of main transmission control system, electronic equipment and medium

By using a time synchronization method for the main drive control system, standard time is automatically acquired and processed, solving the problems of complexity and high cost caused by manual setting, and realizing the automation of time synchronization and improving system stability.

CN120915411APending Publication Date: 2025-11-07CHONGQING IRON & STEEL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511146012.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-15
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

The time synchronization of the existing main drive control system relies on manual setting, which is complicated and costly, resulting in low fault handling efficiency and poor system stability and reliability.

Method used

By acquiring the standard time, performing first-level and second-level byte processing, generating time synchronization information, and generating an enable signal to automatically synchronize time when the hour byte changes.

Benefits of technology

The automation of time synchronization has been achieved, which has improved fault handling efficiency, reduced maintenance costs, enhanced system stability and reliability, and ensured production continuity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120915411A_ABST
    Figure CN120915411A_ABST
Patent Text Reader

Abstract

The invention provides a time synchronization method and device for a main transmission control system, electronic equipment and a medium, and the method comprises the steps: obtaining standard time, carrying out the first-stage byte processing of the standard time, obtaining a date byte and a time byte, transmitting the date byte and the time byte to the main transmission control system, and carrying out the first-stage byte processing of the standard time; the main transmission control system carries out second-level byte processing on the date byte and the time byte to obtain time synchronization information; and when a hour word in the time synchronization information changes, generating a time synchronization enable signal, so as to perform time synchronization on the main transmission control system based on the time synchronization enable signal. According to the time synchronization method provided by the invention, after the obtained standard time is subjected to two-stage different byte processing, automatic time synchronization is realized according to the processed time information, so that the fault position is quickly positioned when the fault occurs, the fault processing efficiency is improved, the time does not need to be manually set, the stability and reliability of a main transmission control system are improved, and the working efficiency is improved. And fault diagnosis is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of system control, and particularly relates to a time synchronization method and device of a main drive control system, an electronic device and a medium. BACKGROUND

[0002] At present, when some specific control systems (for example, SIMADYND) and devices of a main drive system are used, there are many problems in time synchronization of the system. When alarm and fault information of the main drive system appears, if the displayed time is incorrect, it is difficult for maintenance personnel to determine the accurate time of the fault according to the incorrect time information, and the fault elimination lacks effective guidance, which greatly increases the difficulty of fault disposal and seriously affects the normal production.

[0003] In the prior art, the time of the main drive system mainly depends on manual setting, the manual time setting mode depends on a specific computer system and has a complex operation process, requires a high technical level of maintenance personnel, and is prone to human errors. When the main drive control system is powered off, the manually set time will be cleared and restored to the state before setting. Frequent manual time setting also increases the maintenance cost and workload, and reduces the reliability and stability of the system.

[0004] Therefore, how to provide a technical solution capable of automatically synchronizing the time of the main drive control system without affecting the system operation is a technical problem to be solved at present. SUMMARY

[0005] The present application provides a time synchronization method and device of a main drive control system, and an electronic device and a medium, to solve the problems of complex operation process, high maintenance cost and low fault processing efficiency in the process of setting the time of the main drive control system.

[0006] The present application provides a time synchronization method of a main drive control system, comprising:

[0007] obtaining a standard time;

[0008] performing first-level byte processing on the standard time to obtain date bytes and time bytes;

[0009] transmitting the date bytes and the time bytes to the main drive control system, and performing second-level byte processing on the date bytes and the time bytes by the main drive control system to obtain time synchronization information;

[0010] generating a time synchronization enabling signal when the hour word in the time synchronization information changes;

[0011] synchronizing the time of the main drive control system based on the time synchronization enabling signal.

[0012] In an embodiment of the present application, the standard time includes year information, month information, day information and time information, and the first-level byte processing is performed on the standard time to obtain a date byte and a time byte, including: performing century removal processing and byte splitting on the year information to obtain year split bytes; performing byte splitting on the month information, the day information and the time information respectively to obtain month split bytes, day split bytes and time split bytes; and performing byte recombination on the year split bytes, the month split bytes, the day split bytes and the time split bytes to obtain the date byte and the time byte.

[0013] In an embodiment of the present application, the byte recombination on the year split bytes, the month split bytes, the day split bytes and the time split bytes to obtain the date byte and the time byte includes: taking the low byte of the year split byte as the high byte of the date byte and taking the low byte of the month split byte as the low byte of the date byte to recombine the date byte; and taking the low byte of the day split byte as the high byte of the time byte and taking the low byte of the time split byte as the low byte of the time byte to recombine the time byte.

[0014] In an embodiment of the present application, before the date byte and the time byte are transmitted to the main drive control system, the encoding mode of the date byte and the time byte is converted to be consistent with the target encoding mode of the receiving end of the main drive control system.

[0015] In an embodiment of the present application, the main drive control system performs second-level byte processing on the date byte and the time byte to obtain time synchronization information, including: splitting the date byte and the time byte into four different single bytes by the main drive control system; and combining each single byte with a preset threshold high byte to obtain the time synchronization information.

[0016] In an embodiment of the present application, after the time synchronization information is obtained, the method further includes: calling a time configuration module in the main drive control system, inputting the time synchronization information into the corresponding pin of the time configuration module, and initializing the time configuration module.

[0017] The application further provides a time synchronization device of a main drive control system, the device comprising: an acquisition module configured to acquire standard time; a first byte processing module configured to perform first-level byte processing on the standard time to obtain date bytes and time bytes; a second byte processing module configured to transmit the date bytes and the time bytes to the main drive control system, and the main drive control system performs second-level byte processing on the date bytes and the time bytes to obtain time synchronization information; a signal generation module configured to generate a time synchronization enabling signal when the hour word of the time synchronization information changes; and a clock synchronization module configured to perform time synchronization on the main drive control system based on the time synchronization enabling signal.

[0018] The application further provides an electronic device comprising a processor, a memory and a communication bus, wherein the communication bus is configured to connect the processor and the memory, and the processor is configured to execute a computer program stored in the memory to implement the time synchronization method of the main drive control system according to any one of the above.

[0019] The application further provides a computer-readable storage medium having computer-readable instructions stored thereon, and the computer-readable instructions, when executed by a processor of a computer, cause the computer to perform the time synchronization method of the main drive control system as described above.

[0020] The application has the following beneficial effects: the time synchronization method, device, electronic device and medium of the main drive control system provided by the application comprise the following steps: acquiring standard time, performing first-level byte processing on the standard time to obtain date bytes and time bytes, transmitting the date bytes and the time bytes to the main drive control system, performing second-level byte processing on the date bytes and the time bytes by the main drive control system to obtain time synchronization information, and generating a time synchronization enabling signal when the hour word of the time synchronization information changes, and performing time synchronization on the main drive control system based on the time synchronization enabling signal. The time synchronization method provided by the application can transmit the standard time to the main drive control system after performing first-level byte processing on the standard time, perform second-level byte processing on the bytes by the main drive control system, and realize time synchronization according to the processed bytes, so that the time at which a fault occurs can be quickly located when the fault occurs, the fault processing efficiency is improved, manual time setting is not required, the requirements on maintenance personnel are reduced, the stability and reliability of the main drive control system are improved, the production efficiency and product quality are improved, and fault diagnosis is facilitated. BRIEF DESCRIPTION OF DRAWINGS

[0021] The accompanying drawings, which are incorporated herein and constitute part of this specification, illustrate embodiments consistent with the application and, together with the description, further serve to explain the principles of the application. It is apparent that the drawing in the following description is only some embodiments of the application, and other drawings can be obtained by those of ordinary skill in the art without creative labor on the basis of these drawings.

[0022] In the drawings:

[0023] Figure 1 The block diagram of the time synchronization method of the main drive control system provided in an embodiment of the application is shown in the figure.

[0024] Figure 2 The schematic diagram of byte splitting of the standard time provided in an embodiment of the application is shown in the figure.

[0025] Figure 3 The schematic diagram of combining the year splitting byte and the month splitting byte provided in an embodiment of the application is shown in the figure.

[0026] Figure 4 The schematic diagram of combining the day splitting byte and the time splitting byte provided in an embodiment of the application is shown in the figure.

[0027] Figure 5 The schematic diagram of the main drive control system receiving the date byte and the time byte provided in an embodiment of the application is shown in the figure.

[0028] Figure 6 The schematic diagram of the main drive control system performing the second level byte processing on the date byte and the time byte provided in an embodiment of the application is shown in the figure.

[0029] Figure 7 The schematic diagram of the time configuration module receiving the time synchronization information provided in an embodiment of the application is shown in the figure.

[0030] Figure 8 The schematic diagram of the connection between the time configuration module and the clock monitoring unit provided in an embodiment of the application is shown in the figure.

[0031] Figure 9 The schematic diagram of the control panel correctly displaying the fault time provided in an embodiment of the application is shown in the figure.

[0032] Figure 10 The block diagram of the time synchronization device of the main drive control system provided in an embodiment of the application is shown in the figure.

[0033] Figure 11 The structural schematic diagram of the electronic device suitable for realizing the application is shown in the figure. DETAILED DESCRIPTION

[0034] Following, the advantages and effects of the present application will be described in detail with specific embodiments. Other advantages and effects of the present application can be easily understood by those skilled in the art from the description. The present application can also be implemented or applied in other different embodiments, and the details in the description can be modified or changed based on different views and applications without departing from the spirit of the present application. The following embodiments and features in the embodiments can be combined with each other without conflict.

[0035] It should be noted that the diagrams provided in the following embodiments only schematically illustrate the basic concept of the present application, and the figures only show the components related to the present application, not the number, shape and size of the components when actually implemented. The shape, number and proportion of each component can be arbitrarily changed when actually implemented, and the layout pattern of the components can be more complex.

[0036] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details, and in other embodiments, the well-known structures and devices are shown in the form of block diagrams rather than in the form of details to avoid making the embodiments of the present application difficult to understand.

[0037] The main drive system of the SL150 generally refers to the core power transmission device of a certain equipment (such as a rolling mill, a shearing machine, etc.).

[0038] TDC (Teleperm D Digital Control) is a high-performance and high-reliability industrial automation controller launched by Siemens, mainly for complex process control and large industrial systems (such as power, metallurgy, chemical industry, papermaking, etc.).

[0039] AC-AC frequency conversion is a technology that directly converts fixed frequency and fixed voltage AC power into variable frequency and variable voltage AC power without passing through a DC intermediate link.

[0040] Unix system is a multi-user and multi-task operating system (OS), which is known for its stability, security, portability and modular design.

[0041] Currently, there are many problems in time synchronization in the equipment using a specific control system (for example: SIMADYND) and a SL150 main drive system. When the main drive system appears an alarm and a fault information, if the displayed time is error data, the maintenance personnel is difficult to determine the accurate time of the fault according to the error time information, and the fault elimination lacks effective guiding significance, so that the maintenance personnel cannot timely and accurately understand the time sequence and related conditions of the fault, resulting in low fault disposal efficiency, increasing the production interruption time and cost.

[0042] In the prior art, the time of the main drive system mainly depends on manual setting, but the manual setting mode needs to use a programmed computer, and the computer system is a unix system in the early 1970s, which increases the complexity of manual operation, and most of the maintenance personnel are not familiar with the start and shutdown steps of the unix system. In addition, the manual setting of the time also needs to modify the program, and the professional requirements of the maintenance personnel are higher. After each maintenance and restart of the system controller, the time needs to be manually set again, and the frequent manual setting of the time also increases the maintenance cost and workload, and reduces the reliability and stability of the system.

[0043] To solve the above problems, as shown in Figure 1 The application provides a time synchronization method of a main drive control system, which at least includes steps S110-S150:

[0044] S110: obtaining a standard time.

[0045] Specifically, the TDC controller in the SIMADYND system obtains the standard time sent by an external process control system, and the standard time is transmitted in a 6-word data format and contains time sequence information of year, month, day, hour, minute and second; the standard time can adopt a local time reference based on a geographical time zone, and the standard time includes but is not limited to Beijing time (UTC+8), Tokyo time (UTC+9) or Seoul time (UTC+9) and the like. The driving mode of the main drive control system includes but is not limited to AC-AC frequency conversion.

[0046] S120: performing first-level byte processing on the standard time to obtain date bytes and time bytes.

[0047] In detail, the standard time includes year information, month information, day information and time information, the first-level byte processing is performed on the standard time to obtain the date bytes and the time bytes, including: performing century removal processing and byte splitting on the year information to obtain year split bytes; respectively performing byte splitting on the month information, the day information and the time information to obtain month split bytes, day split bytes and time split bytes; performing byte reorganization on the year split bytes, the month split bytes, the day split bytes and the time split bytes to obtain the date bytes and the time bytes. Specifically, as shown in Figure 2As shown, the year information in the standard time is subtracted by the year at the beginning of this century to obtain the year number of this century, for example: the year information is 2024, the year information is subtracted by 2000 to obtain the year number of this century as 24, the year number of this century is split into high and low bytes by the splitting function (W_BY) of the first preset byte processing block to obtain the year split byte 0018. The month information 5, the day information 20 and the time information 15 are byte split into month split byte, day split byte and time split byte by the splitting function (W_BY) of the first preset byte processing block, the month split byte is 0005, the day split byte is 0014, and the time split byte is 000F. The year split byte, the month split byte, the day split byte and the time split byte are reorganized to obtain the date byte and the time byte; wherein the encoding mode of the year split byte, the month split byte, the day split byte and the time split byte is hexadecimal.

[0048] More specifically, the year split byte, the month split byte, the day split byte and the time split byte are byte reorganized to obtain the date byte and the time byte, including: the low byte of the year split byte is taken as the high byte of the date byte, the low byte of the month split byte is taken as the low byte of the date byte, and the date byte is reorganized; the low byte of the day split byte is taken as the high byte of the time byte, and the low byte of the time split byte is taken as the low byte of the time byte, and the time byte is reorganized. Specifically, as shown, Figure 3 The low byte 18 of the year split byte is taken as the high byte, the low byte 05 of the month split byte is taken as the low byte, and the low byte 18 of the year split byte and the low byte 05 of the month split byte are combined by the combination function (BY_W) of the first preset byte processing block to obtain the date byte 1805; as shown, Figure 4 The low byte 14 of the day split byte is taken as the high byte, the low byte 0F of the time split byte is taken as the low byte, and the low byte 14 of the day split byte and the low byte 0F of the time split byte are combined by the combination function (BY_W) of the first preset byte processing block to obtain the time byte 140F.

[0049] In detail, before the date byte and the time byte are transmitted to the main drive control system, including: converting the encoding mode of the date byte and the time byte, so that the converted date byte and the time byte are consistent with the target encoding mode of the receiving end of the main drive control system. Specifically, before the date byte and the time byte are transmitted to the main drive control system, the date byte 1805 is converted from the encoding mode of 16 to the encoding mode of 10 to obtain the date byte of 10 as 6149, and the time byte 140F is converted from the encoding mode of 16 to the encoding mode of 10 to obtain the time byte of 10 as 5136; so that the target encoding mode of the receiving end of the main drive control system is the same when the date byte of 10 6149 and the time byte of 10 5136 are sent.

[0050] S130: transmit the date byte and the time byte to the main drive control system, and the main drive control system performs second-level byte processing on the date byte and the time byte to obtain time synchronization information.

[0051] As shown in Figure 5 , the decimal date byte 6149 and the time byte 5136 are sent to the main drive control system whose target coding mode is decimal.

[0052] In detail, the main drive control system performs second-level byte processing on the date byte and the time byte to obtain time synchronization information, including: the main drive control system splits the date byte and the time byte into four different single bytes; each single byte is combined with a preset threshold high byte to obtain time synchronization information. Specifically, as shown in Figure 6 , when the main drive control system receives the date byte and the time byte, the date byte is split into two bytes by the splitting function (SWB) of the second preset byte processing block T10, and the time byte is split into two bytes by the splitting function (SWB) of the second preset byte processing block T20. The first single byte split from the date byte is combined with the preset threshold high byte 0H0 by the combining function (SBW) of the second preset byte processing block T12 to obtain the year word in the time synchronization information; the second single byte split from the date byte is combined with the preset threshold high byte 0H0 by the combining function (SBW) of the second preset byte processing block T14 to obtain the month word in the time synchronization information; the first single byte split from the time byte is combined with the preset threshold high byte 0H0 by the combining function (SBW) of the second preset byte processing block T22 to obtain the day word in the time synchronization information; and the second single byte split from the time byte is combined with the preset threshold high byte 0H0 by the combining function (SBW) of the second preset byte processing block T24 to obtain the hour word in the time synchronization information.

[0053] In detail, after obtaining the time synchronization information, it further includes: calling a time configuration module in the main drive control system, inputting the time synchronization information into the corresponding pin of the time configuration module, and initializing the time configuration module. Specifically, as shown in Figure 6 , after obtaining the four bytes of the time synchronization information, the time configuration module RTCM in the main drive control system is called, as shown in Figure 7As shown, the year character in the time synchronization information is transmitted to the year pin XYR of the time configuration module RTCM through the first transmission unit NSW (T32), the month character in the time synchronization information is transmitted to the month pin XMD of the time configuration module RTCM through the second transmission unit NSW (T34), the day character in the time synchronization information is transmitted to the day pin XDA of the time configuration module RTCM through the third transmission unit NSW (T36), the hour character in the time synchronization information is transmitted to the hour pin XHR of the time configuration module RTCM through the fourth transmission unit NSW (T38), and the minute pin XM1 in the time configuration module RTCM is set to zero.

[0054] S140: When the hour word in the time synchronization information changes, a time synchronization enable signal is generated.

[0055] Specifically, such as Figure 8 As shown, when the hour word in the time synchronization information is sent to the hour input pin XHR of the time configuration module RTCM via the fourth transmission unit NSW (T38), a clock monitoring unit ETW.C is also set between the fourth transmission unit NSW (T38) and the enable pin IS of the time configuration module RTCM. The data input pin of the clock monitoring unit ETW.C is connected to the output terminal of the fourth transmission unit NSW (T38), the function control pin of the clock monitoring unit ETW.C is OHFFFF, and the output terminal of the clock monitoring unit ETW.C is connected to the enable pin IS of the time configuration module RTCM. The clock monitoring unit ETW.C monitors the changes in the hour word in real time. When the hour word changes, for example, from 14 to 15, the clock monitoring unit ETW.C detects the change in the hour and outputs a pulse, which is the time synchronization enable signal.

[0056] S150: Time synchronization of the main drive control system based on the time synchronization enable signal.

[0057] Specifically, such as Figure 8 As shown, the output of the clock monitoring unit ETW.C sends the time synchronization enable signal to the enable terminal of the time configuration module RTCM. At this time, the clock configuration pin of the system time configuration block of the time configuration module RTCM is connected to the external clock configuration D01_P1 to perform time synchronization operation on the system time of the main drive control system, ensuring that the time of the main drive control system is consistent with the standard time.

[0058] It needs to be emphasized that after the time synchronization of the main drive control system is completed, the clock monitoring unit ETW.C will output a time synchronization enable signal once the hour word changes every hour, and the time configuration module RTCM is updated once for time synchronization, further ensuring the accuracy and timeliness of time synchronization, and avoiding the problem of time asynchronization caused by data transmission delay or interference.

[0059] In an embodiment of the present application, as shown in Figure 8 , the time configuration module RTCM synchronized time is format converted by the clock output unit RTC003(LTC2) and output to the control panel, as shown in Figure 9 , after the time synchronization of the main drive control system, the time displayed on the control panel is correct after the alarm occurs.

[0060] As shown in Figure 10 , the present application also provides a time synchronization device of a main drive control system, which comprises:

[0061] The acquisition module 1001 is configured to obtain a standard time.

[0062] The first byte processing module 1002 is configured to perform first-level byte processing on the standard time to obtain a date byte and a time byte.

[0063] The second byte processing module 1003 is configured to transmit the date byte and the time byte to the main drive control system, and the main drive control system performs second-level byte processing on the date byte and the time byte to obtain time synchronization information.

[0064] The signal generation module 1004 is configured to generate a time synchronization enable signal when the hour word of the time synchronization information changes.

[0065] The clock synchronization module 1005 is configured to synchronize the time of the main drive control system based on the time synchronization enable signal.

[0066] It needs to be emphasized that the time synchronization device of the main drive control system provided by the above embodiment and the time synchronization method of the main drive control system provided by the above embodiment belong to the same concept, wherein the specific manner in which each module performs operations has been described in detail in the method embodiment, which will not be repeated here.

[0067] The application provides a time synchronization method and device of a main drive control system, the method comprising: obtaining standard time, performing first-level byte processing on the standard time to obtain date bytes and time bytes, transmitting the date bytes and the time bytes to the main drive control system, performing second-level byte processing on the date bytes and the time bytes by the main drive control system to obtain time synchronization information, and generating a time synchronization enabling signal when the hour word in the time synchronization information changes, so as to synchronize the time of the main drive control system based on the time synchronization enabling signal. The time synchronization method provided by the application has the following advantages: 1. The time synchronization method can realize time synchronization, accurate time of alarm and fault information display, rapid positioning of a time point at which a fault occurs by a maintenance personnel, understanding of a sequence in which faults occur, accurate judgment of fault causes, significant improvement of fault disposal efficiency, reduction of production interruption time, and reduction of production cost; 2. The time synchronization method does not require manual time setting by a maintenance personnel, avoids tedious operation and technical problems caused by manual time setting, reduces professional requirements for the maintenance personnel, reduces the work burden of the maintenance personnel, and improves the maintainability of the system; and 3. The automatic time synchronization function reduces system operation abnormities caused by time setting errors or asynchronization, improves the stability and reliability of the main drive control system, guarantees the continuity and stability of production, helps to improve production efficiency and product quality, and facilitates fault diagnosis.

[0068] In some embodiments, an electronic device is also provided, which can be a server, and an internal structure diagram thereof is shown in Figure 11 The electronic device comprises a processor, a memory, a network interface and a database connected through a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device comprises a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The network interface of the electronic device is used to communicate with an external client through a network connection. The computer program is executed by the processor to implement the functions or steps of the server side of the above-mentioned method.

[0069] In some embodiments, the electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the following steps when executing the computer program: obtaining standard time; performing first-level byte processing on the standard time to obtain date bytes and time bytes; transmitting the date bytes and the time bytes to the main drive control system, and performing second-level byte processing on the date bytes and the time bytes by the main drive control system to obtain time synchronization information; generating a time synchronization enabling signal when the hour word in the time synchronization information changes; and synchronizing the time of the main drive control system based on the time synchronization enabling signal.

[0070] The embodiment of the present application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor of a computer to make the computer execute the time synchronization method of the main drive control system as described above. The computer readable storage medium can be included in the electronic device described in the above embodiment, or can exist separately and not be assembled into the electronic device.

[0071] It should be noted that the computer readable medium shown in the embodiment of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer readable signal medium can include a data signal propagating in a baseband or as a carrier wave in a propagated data signal, which carries the computer readable computer program. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium can also be any computer readable medium other than the computer readable storage medium, which can send, propagate or transmit the program for use by or in connection with an instruction execution system, device or component. The computer program contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination of the above.

[0072] It should be noted that the above functions or steps that the computer readable storage medium or the electronic device can achieve can be referred to the above method embodiment, the related description of the server side and the client side, and to avoid repetition, they will not be described one by one.

[0073] The above embodiments are only illustrative of the principles of the present application and its efficacy, and are not intended to limit the present application. Any modification or change made by any person skilled in the art without departing from the spirit and scope of the present application shall be covered by the claims of the present application.

Claims

1. A time synchronization method of a master drive control system, characterized by, The method comprises the following steps: acquiring a standard time; performing first-level byte processing on the standard time to obtain a date byte and a time byte; transmitting the date byte and the time byte to the main drive control system, and performing second-level byte processing on the date byte and the time byte by the main drive control system to obtain time synchronization information; generating a time synchronization enabling signal when a time word in the time synchronization information changes; synchronizing the main drive control system based on the time synchronization enabling signal.

2. The time synchronization method of a master drive control system according to claim 1, characterized by, The standard time comprises year information, month information, day information and time information, and the first-level byte processing on the standard time to obtain the date byte and the time byte comprises the following steps: performing century removal processing and byte splitting on the year information to obtain year split bytes; respectively performing byte splitting on the month information, the day information and the time information to obtain month split bytes, day split bytes and time split bytes; performing byte reorganization on the year split bytes, the month split bytes, the day split bytes and the time split bytes to obtain the date byte and the time byte.

3. The time synchronization method of a master drive control system according to claim 2, characterized by, The byte reorganization on the year split bytes, the month split bytes, the day split bytes and the time split bytes to obtain the date byte and the time byte comprises the following steps: reorganizing the year split bytes as the date byte by taking the low byte of the year split bytes as the high byte of the date byte and taking the low byte of the month split bytes as the low byte of the date byte; reorganizing the day split bytes and the time split bytes as the time byte by taking the low byte of the day split bytes as the high byte of the time byte and taking the low byte of the time split bytes as the low byte of the time byte.

4. The time synchronization method of a master drive control system according to claim 2, characterized by, Before transmitting the date byte and the time byte to the main drive control system, the method comprises the following step: converting the encoding mode of the date byte and the time byte so that the converted date byte and time byte are consistent with the target encoding mode of the receiving end of the main drive control system.

5. The time synchronization method of a master drive control system according to claim 3, wherein, The second-level byte processing on the date byte and the time byte by the main drive control system to obtain the time synchronization information comprises the following steps: splitting the date byte and the time byte into four different single bytes by the main drive control system; combining each single byte with a preset threshold high byte to obtain the time synchronization information.

6. The time synchronization method of a master drive control system according to claim 5, wherein After obtaining the time synchronization information, the method further comprises the following steps: calling a time configuration module in the main drive control system, inputting the time synchronization information into the corresponding pin of the time configuration module, and initializing the time configuration module.

7. A time synchronization apparatus for a master drive control system, characterized by comprising: The device comprises: a collection module configured to acquire a standard time; a first byte processing module configured to perform first-level byte processing on the standard time to obtain a date byte and a time byte; a second byte processing module configured to transmit the date byte and the time byte to the main drive control system, and perform second-level byte processing on the date byte and the time byte by the main drive control system to obtain time synchronization information; a signal generation module configured to generate a time synchronization enabling signal when a time word in the time synchronization information changes; and a synchronization module configured to synchronize the main drive control system based on the time synchronization enabling signal. A clock synchronization module is configured to synchronize the main drive control system in time based on the time synchronization enabling signal.

8. An electronic device, comprising: A main drive control system comprises a processor, a memory and a communication bus; the communication bus is configured to connect the processor and the memory; the processor is configured to execute a computer program stored in the memory to implement the time synchronization method of the main drive control system according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, A computer program is stored on a computer readable medium, and when the computer program is executed by a processor of a computer, the computer is caused to perform the time synchronization method of the main drive control system according to any one of claims 1 to 6.