Supercharge Your Innovation With Domain-Expert AI Agents!

Time correction processing method and device and computer storage medium

A technology of timing and processing start, applied in the field of automation technology, can solve the problems that the accuracy of timing needs to be further improved, and cannot ensure that the central processing unit triggers the timing timer on time, so as to improve the operation quality and reduce the error of timing Effect

Active Publication Date: 2019-08-16
北京和利时系统集成有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

2. The master station takes the current time of the master station at a random number of milliseconds, rounds the number of milliseconds (five rounds means adding one to the number of seconds), and packs the time information including seconds and above according to the protocol format agreed by both parties The completion time message is sent to the slave device, and after the slave device obtains the time information provided by the master station, it corrects the local clock of the slave device; because the milliseconds at the moment when the time calibration process is initiated is random, but after simple rounding, the time calibration error is -500~499 milliseconds
3. The master station specially designs an accurate timing timer, which is expected to be triggered on time when the system time is 0 milliseconds, so as to complete a time calibration of the slave device; this method expects the timer to be triggered on time at 0 milliseconds, Not every operating system and every hardware platform can be implemented, and in a multi-threaded environment, it is impossible to ensure that the central processing unit (CPU) can trigger the timing timer on time at 0 milliseconds; in addition, even if it is triggered on time Timing timer, because Modbus is a response protocol, all requests from the master station to the slave devices must be queued in turn. At this time, if a question and answer from the master station is not completed, the timing operation must be queued.
[0006] In summary, the timing accuracy of existing timing methods in related technologies needs to be further improved

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Time correction processing method and device and computer storage medium
  • Time correction processing method and device and computer storage medium
  • Time correction processing method and device and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

[0062] The steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0063] figure 1 It is a flow chart of the method for timing correction in the embodiment of the present invention, as figure 1 shown, including:

[0064] Step 101, when the verification process starts, determine the duration from the current random numb...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a time correction processing method and device and a computer storage medium, and the method comprises the steps: determining the duration from the current random millisecond moment to the next whole second or the later second whole second as the interval duration when the verification processing is started; and controlling the master station to sleep at an interval beforethe master station sends the time correction message subjected to the time correction processing. According to the embodiment of the invention, the time correction error of time correction processingis reduced, and the operation quality of an automatic system is improved.

Description

technical field [0001] This article involves but is not limited to automation technology, especially a method, device and computer storage medium for time correction processing. Background technique [0002] The Modbus protocol is a balanced response communication protocol widely used in the field of industrial automation, and has become a general industrial standard. The Modbus protocol supports traditional serial (RS-232, RS-422, RS-485) and Ethernet devices. Modbus communication uses master (Master, also called master station)-slave (Slave, also called slave station) technology, that is, at the same time, only one master device can initiate the query (also called request, sequential query is called polling), slave The device responds accordingly according to the content of the message provided by the master device. The master device can communicate with the slave device alone, and can also communicate with all slave devices in broadcast mode; when communicating alone, t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F13/42
CPCG06F13/4291
Inventor 贺学文李元鹏黄亮李剑
Owner 北京和利时系统集成有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More