Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MOTION CONTROL SYSTEM USING ASYNCHRONOUS COMMUNICATION AND CONTROLLER AND METHOD THEREOF
Document Type and Number:
WIPO Patent Application WO/2014/086017
Kind Code:
A1
Abstract:
Present invention provides a motion control system using asynchronous communication, and the controller and methods thereof. The motion control system include: a first controller, being adapted for preparing a multiple of data sequentially at a series of first clocks and keeping transmitting the data at a series of second clocks until it receives a confirmation; a second controller, being adapted for receiving the data and acknowledging correct receipt of the data by returning the confirmation; wherein; an interval among the series of first clocks is longer than an interval among the series of the second clocks. By having the configuration as above, it can provide at least one of the technical effects as: 1. asynchronous communication between the first controller and the second controller; 2. the two controllers with different clock rates can communicate with each other; 3. avoidance of lost data by retransmitting the data at a frequency higher than the frequency at which the data are prepared or are to be consumed; 4. the reuse of the interval between the first clocks for transmission of the data at a series of the second clocks.

Inventors:
ZAHRAI SAID (CN)
ZHANG FEIHONG (CN)
ZHANG YICHENG (CN)
SU CHENGPING (CN)
MA BOJUN (CN)
YANG CHAO (CN)
ZHANG HUI (US)
Application Number:
PCT/CN2012/086027
Publication Date:
June 12, 2014
Filing Date:
December 06, 2012
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ABB TECHNOLOGY LTD (CH)
ZAHRAI SAID (CN)
ZHANG FEIHONG (CN)
ZHANG YICHENG (CN)
SU CHENGPING (CN)
MA BOJUN (CN)
YANG CHAO (CN)
ZHANG HUI (US)
International Classes:
H04L7/02
Domestic Patent References:
WO2005114890A12005-12-01
Foreign References:
CN101192912A2008-06-04
US6247082B12001-06-12
Other References:
See also references of EP 2929646A4
Attorney, Agent or Firm:
BOSS & YOUNG PATENT AND TRADEMARK LAW OFFICE (Tower A Bldg. No. 1, GT International Center,Jia 3 Yongandongli, Jianguomenwai Avenue, Chaoyang District, Beijing 2, CN)
Download PDF:
Claims:
CLAIMS

1. A motion control system using asynchronous communication, including:

a first controller, being adapted for preparing a multiple of data sequentially at a series of first clocks and keeping transmitting the data at a series of second clocks until it receives a confirmation;

a second controller, being adapted for receiving the data and acknowledging correct receipt of the data by returning the confirmation;

wherein;

an interval among the series of first clocks is longer than an interval among the series of the second clocks.

2. The motion control system according to claim 1 , wherein:

the first controller comprises a first application module and a first communication module;

the second controller comprises a second communication module;

wherein:

the first application module is adapted for the data preparation and sending the data to the first communication module in response to the data preparation;

the first communication module is adapted for receiving the data and the transmission of the data at the series of second clocks;

the second communication module is adapted for the receipt of the data and the acknowledgment of the correct receipt of the data.

3. The motion control system according to claim 2, wherein:

the second controller further comprises a second application module;

the second communication module is further adapted for storing the data in a queue of memory units;

the second application module is adapted for accessing the data stored in the queue of the memory units, consuming the data at an interval longer than or equal to that among the series of the first clocks; and

the data at least have the information about the task and its execution time.

4. The motion control system according to claim 1 , further including:

a fieldbus, being configured to link the first controller and the second controller;

wherein:

the first controller is a master/slave; and

the second controller is a slave/master.

5. The motion control system according to claim 1, wherein:

the first controller is further adapted for transmitting the next data in response to that it receives the second controller's confirmation for correct receipt of the current data.

6. The motion control system according to claim 3, wherein: the second application module is further adapted for consuming the data stored in the queue of the memory units in the same sequence as the data are stored.

7. The motion control system according to claim 1 , wherein:

the first controller is a main controller, being further adapted for preparing the data representing robot motion information and execution time; and

the second controller is an axis motion controller, being further adapted for providing control data to drive a mechanical device based on the robot motion information and the execution time extracted from the data received from the main controller.

8. The motion control system according to claim 1, wherein:

the first controller is a main controller, being further adapted for preparing the data representing high level control task and its execution time based on an interaction with users and other systems; and

the second controller is an axis motion controller, being further adapted for controlling electrical motors to achieve the requested motion at the execution time based on the high level control task and its execution time extracted from the d ta received.

9. The motion control system according to claim 3, wherein:

the transmission operation of the first application module and the consumption operation of the second application module are independent.

10. A first controller for asynchronous communication, including:

a first application module, being adapted for preparing a multiple of data sequentially at a series of first clocks and transmitting the data in response to the data preparation;

a first communication module, being adapted for receiving the data transmitted from the first application module, and keeping transmitting the data at a series of second clocks until it receives a confirmation;

wherein:

the interval among the series of first clocks is longer than the interval among the series of the second clocks.

11. The first controller according to claim 10, wherein:

the first communication module is further adapted for transmitting the next data in response to that it receives the confirmation.

12. The first controller according to claim 10, wherein:

the first application module further is adapted for preparing the data representing robot motion information and execution time.

13. The first controller according to claim 10, wherein:

the first controller is a main controller, being further adapted for high level control tasks and interaction with users and other systems.

14. A second controller for asynchronous communication, including:

a second communication module, being adapted for receiving data transmitted at a series of second clocks and acknowledging correct receipt of the data by returning confirmation, wherein the data are prepared sequentially at a series of first clocks;

wherein: an interval among the series of first clocks is longer than an interval among the series of the second clocks.

15. The second controller according to claim 14, wherein:

the second communication module is further adapted for storing the data in a queue of memory units; and

the data at least have the information about the task and its execution time;

it further comprises:

a second application module, being adapted for accessing the data stored in the queue of the memory units, consuming the data at interval longer than or equal to that among the series of a first clocks.

16. The second controller according to claim 15, wherein:

the second application module is further adapted for providing control data to drive a mechanical device based on robot motion information and execution time extracted from the data received.

17. The second controller according to claim 15, wherein:

the second application module is further adapted for receiving commands and controlling electrical motors to achieve the requested motion.

18. An asynchronous communication method for a robot, including the steps of:

(a) preparing a multiple of data sequentially at a series of first clocks and keeping transmitting the data at a series of second clocks until it receives a confirmation; and

(b) receiving the data and acknowledging correct receipt of the data by returning the confirmation;

wherein;

an interval among the series of first clocks is longer than an interval among the series of the second clocks.

19. The asynchronous communication method according to claim 20, wherein:

step (b) includes:

storing the correctly received data in a queue of memory units;

it further includes:

(c) accessing the data stored in the queue of the memory units, consuming the data at interval longer than or equal to that among the series of the first clock.

20. The asynchronous communication method according to claim 21, wherein:

the consumption of the data stored in the queue of the memory units is in the same sequence as the data are stored.

21. The asynchronous communication method according to claim 21 , wherein:

the data represent robot motion information and execution time;

it further includes step (d):

providing control data to drive a mechanical device based on the robot motion information and the execution time extracted from the data received.

22. The asynchronous communication method according to claim 21, wherein:

the data represent high level control task and its execution time based on an interaction with users and other systems;

it further includes step (d);

controlling electrical motors to achieve the requested motion at the execution time based on the high level control task and its execution time extracted from the data received.

23. The asynchronous communication method according to claim 21, wherein:

the transmission operation and the consumption operation are independent.

Description:
Motion Control System Using Asynchronous Communication

and Controller and Method thereof

Technical Field

The invention relates to the field of motion control system, and more particularly to the field of a motion control system using asynchronous communication and method thereof.

Background Art

In conventional motion control systems, the complete system is divided into subsystems that are in communication with each other and need to act and react to each other. For systems where there is a constraint on the temporal behaviour, the interaction must be done in a controlled manner within a given time interval. When the number of devices increases in the system, the problems become more complex; a practical solution is to have a minimum period of time for the fastest part of the system and the slower parts will have multiple of that as their own cycle time.

While the above strategy could work in general, it has at least the following disadvantages. If the number of the units with different period increases, it adds to the complexity of the system. In particular, adding new components to the system becomes more difficult as the history must be respected. As an example in an automated machine one might have a regulation period suitable for the process, but not a pure f action of second, like 85 micro seconds. The set values can be calculated less often with a period being a multiple of the regulation period, like 170, 340, 680 microseconds or larger. The communication to the drive system which delivers the position data should then follow these timing schedules. As long as the whole system is proprietary, this will not cause any problem, but once the system is expected to interact with other systems, it will become an issue.

An alternative solution methodology would be to have the system interrupt driven. This of course solves the issue, but adds other type of complexity to the system. Interrupt priorities must be chosen very carefully and computing power must be such so that the worst case of having all interrupts at the same time can be handled without any functional failures. This leads to needs for over-specification of the system and less control on temporal behaviour of the system.

Further, the system must be designed so that missing one train of data would not lead to complete system failure. This needs strategies like extrapolation of old data or re-use of the same data.

Brief Summary of the Invention

It is therefore an objective of the invention to provide a motion control system using asynchronous communication, and the controller and methods thereof.

The motion control system include: a first controller, being adapted for preparing a multiple of data sequentially at a series of first clocks and keeping transmitting the data at series of second clocks until it receives a confirmation; a second controller, being adapted for receiving the data and acknowledging correct receipt of the data by returning the confirmation; wherein; an interval among the series of first clocks is longer than an interval among the series of the second clocks.

The first controller for asynchronous communication includes: a first application module, being adapted for preparing a multiple of data sequentially at a series of first clocks and transmitting the data in response to the data preparation; a first communication module, being adapted for receiving the data transmitted from the first application module, and keeping transmitting the data at a series of second clocks until it receives a confirmation; wherein: the interval among the series of first clocks is longer than the mterval among the series of the second clocks.

The second controller for asynchronous communication includes: a second communication module, being adapted for receiving data transmitted at a series of second clocks and acknowledging correct receipt of the data by returning confirmation, wherein the data are prepared sequentially at a series of first clocks; wherein: an interval among the series of first clocks is longer than an interval among the series of the second clocks.

The asynchronous communication method for a robot includes the steps of:(a) preparing a multiple of data sequentially at a series of first clocks and keeping transmitting the data at a series of second clocks until it receives a confirmation; and (b) receiving the data and acknowledging correct receipt of the data by returning the confirmation; wherein an mterval among the series of first clocks is longer than an interval among the series of the second clocks.

By having the configuration as above, it can provide at least one of the technical effects as: 1. asynchronous communication between the first controller and the second controller; 2. the two controllers with different clock rates can communicate with each other; 3.

avoidance of lost data by retransmitting the data at a frequency higher than the frequency at which the data are prepared or are to be consumed; 4. the reuse of the interval between the first clocks for transmission of the data at a series of the second clocks.

Brief Description of the Drawings

The subject matter of the invention will be explained in more detail in the following text with reference to preferred exemplary embodiments which are illustrated in the drawings, in which:

Figure 1 illustrates a block diagram for a motion control system using asynchronous communication according to an embodiment of present invention;

Figure 2 illustrates a scheduling scheme for communication between the first controller and the second controller according to figure 1 ;

Figure 3 illustrates a block diagram in module level for the motion control system according to figure 1; and

Figure 4 depicts an exemplary scheduling scheme for the process according to an embodiment of present invention.

The reference symbols used in the drawings, and their meanings, are listed in summary form in the list of reference symbols. In principle, identical parts are provided with the same reference symbols in the figures. Preferred Embodiments of the Invention

Figure 1 illustrates a block diagram for a motion control system using asynchronous communication according to an embodiment of present invention. As shown in figure 1, the motion control system 1 includes a first controller 10 and a second controller 11. For example, the first controller 10 and the second controller 11 may be implemented by programmable chip such as field-programmable gate array (FPGA) or application-specific integrated circuit (ASIC) or a combination of such and a Central Processing Unit. Such hardware is an integrated circuit designed to be configured by a customer or a designer after manufacturing— hence "field-programmable", such that it is able to execute desired functionality, such as controlling, communication, sensing, data-processing and so on. The first controller 10 and the second controller 11 are linked via network 12, such as fieldbus. Fieldbus is a family of industrial communication network protocols used here for real-time distributed control.

Figure 2 illustrates a scheduling scheme for communication between the first controller and the second controller according to figure 1. As shown in figure 2, the first controller 10 is adapted for preparing a multiple of data sequentially at a series of first clocks CLKland keeping transmitting the data to the second controller 11 at a series of second clocks CLK2 until the first controller 10 receives a confirmation sent by the second controller 11; the second controller 11 is adapted for receiving the data transmitted by the first controller 10 and acknowledging correct receipt of the data by returning the confirmation to the first controller 10; an interval among the series of first clocks CLK 1 is longer than an interval among the series of the second clocks CLK 2 and shorter than or equal to the interval over which the data is consumed. The first controller 10 is further adapted for transmitting the next data in response to that the first controller 10 receives the second controller's confirmation for correct receipt of the current data. In an interval between the first clocks, the data are transmitted by the first controller 10 at a series of the second clocks until they are correctly received by the second controller 11. By having the configuration as above, it can provide at least one of the technical effects as: 1. asynchronous communication between the first controller and the second controller; 2. the two controllers with different clock rates can communicate with each other; 3. avoidance of lost data by retransmitting the data at a frequency higher than the frequency at which the data are prepared or are to be consumed; 4. the reuse of the interval between the first clocks for transmission of the data at a series of the second clocks.

Figure 3 illustrates a block diagram in module level for the motion control system according to figure 1. As shown by figure 3, the first controller 10 comprises a first application module 100 and a first communication module 101 ; the second controller 11 comprises a second communication module 110. The hardware of the first controller 10 and the second controller 11, such as field-programmable gate array (FPGA) or application-specific integrated circuit (ASIC) or a combination of such and a Central

Processing Unit, can be module programmed by separating the functionality of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality. The first controller 10 is module programed such that: the first application module 100 is adapted for the data preparation and sending the data to the first communication module 101 in response to the data preparation, and the first communication module 101 is adapted for receiving the data and the transmission of the data at the series of second clocks. The second controller 1 1 is module programed such that the second communication module 110 is adapted for the receipt of the data and the acknowledgment of the correct receipt of the data.

For example, the first application module may be adapted for preparing data Data(i) sequentially at CLKl(i) of a series of first clocks, wherein i is a natural number indicating the index ranging from 0 to N. The first application module 100 may be adapted for sending Data(i) to the first communication module 101 in response to the preparation of Data(i), for example when/after the corresponding data preparation is done. The first communication module may be adapted for transmitting Data(i) at the series of second clocks CLK2 to the second communication module 110. The second communication module 110 may be adapted for receiving the Data(i) and acknowledging the correct receipt of Data(i). In response to that the first communication module 101 receives the confirmation of correct receipt of Data(i) by the second communication module 110, the first communication module 101 is adapted for stopping sending Data(i) until it receives Data(i+1) sent by the first application module 100, and the same process is performed for Data(i+1). By having the controllers module programed, in particular separating the communication module from the application module, it is helpful for creation of efficient and time accurate communication and synchronization.

Further referring to figure 3, the second controller 11 further comprises a second application module 111 by modular programming. The second communication module 110 is further adapted for storing the data in a queue of memory units. Memory units may be used for the storage of data. The second application module 111 is adapted for accessing the data stored in the queue of the memory units, consuming the data at an interval longer than or equal to that among the series of the first clocks, and the transmission operation of the first application module 100 and the consumption operation of the second application module 111 are independent. For example, the second communication module 110 may be adapted for storing Data(i) in the memory M(i), alternatively it may be adapted for storing Data(i) in the memory in stack. The second application module 111 may be adapted for accessing Data(i) by referring to the index "i" and extracting the task information and its execution time from Data(i). By having such configuration, it can bring about at least one of the technical effects as: 1. the first controller and the second controller can be synchronized without having either the same clock rate or a multiple of clock rate of one to the other, 2. the second application module can get right data on-time.

Preferably, the second application module 111 is further adapted for consuming the data stored in the queue of the memory units in the same sequence as the data are stored, and releasing the memory unit when the data stored therein are consumed. In addition, the data at least have the information about the task and its execution time. By having such configuration and a distributed clock in the system, the second application module is able to give instruction for execution of the task at the execution time by extracting such information from the data it receives. Distributed clocks are services provided in some field buses and allow a distributed system running on several hardware share the same clock. The service usually automatically corrects the clocks and removes deviations due to inaccuracies of the hardware and oscillators that otherwise will accumulate.

In a common embodiment, according to the intended direction of the information flow, a master may switch between the roles between the first controller and the second controller and a slave may switch between the roles between the second controller and the first controller. By having this switching mechanism, the master and the slave may behave as a transmitter and a receiver or vice versa during the communication. The master can be a standard Programmable Logic Controller without hard requirements of the PLC scan time. The slave can for example be a multi axis drive unit connected in series with other standard drive systems. The proposed arrangement eliminated needs for specific adjustments.

In particular, for example, the first controller 10 is a main controller being further adapted for preparing the data representing robot motion information and execution time, and the second controller 11 is an axis motion controller being further adapted for providing control data to drive a mechanical device based on the robot motion information and the execution time extracted from the data received from the main controller. If the main controller needs feedback from the slave controller, then the main controller switches its role from the first controller to the second controller and correspondingly the axis motion controller switches its role from the second controller to the first controller.

As an alternative, the first controller 10 is a main controller being further adapted for preparing the data representing high level control task and its execution time based on an interaction with users and other systems; and the second controller 11 is an axis motion controller being further adapted for controlling electrical motors to achieve the requested motion at the execution time based on the high level control task and its execution time extracted from the data received. A high level task can be the program provided by the user, who requests well defined motion of the robot when certain conditions are fulfilled. Example of such can be that existence of work-piece is confirmed by a signal and the safety system allows starting motion of the robot. The main controller will check the conditions by reading inputs from sensors and in case of positive result will command the drive to start moving the robot. If the main controller needs feedback from the slave controller, then the main controller switches its role from the first controller to the second controller and correspondingly the axis motion controller switches its role from the second controller to the first controller.

Figure 4 depicts an exemplary scheduling scheme for the process according to an embodiment of present invention. As shown in figure 4, the first controller and the second controller can operate to preparing a multiple of data sequentially at a series of first clocks CLK1, keeping transmitting the data at a series of second clocks CLK2 until it receives a confirmation, receiving the data and acknowledging correct receipt of the data by returning the confirmation. The interval among the series of first clocks CL 1 is longer than the interval among the series of the second clocks CLK2. For example, such process includes the steps as below: preparing Data(i) at CLKl(i) of a series of first clocks, wherein i is a natural number indicating the index ranging from 0 to N; Sending Data(i) in response to the preparation of Data(i), for example when/after the corresponding data preparation is done, at the series of second clocks CLK2; receiving the Data(i) and acknowledging the correct receipt of Data(i); in response to the confirmation of correct receipt of Data(i), stopping sending Data(i) until it receives Data(i+1), and the same process is performed for Data(i+1), Data(i+2).... By having the controllers module programed, in particular separating the communication module from the application module, it is helpful for creation of efficient and time accurate communication and synchronization. This process can provide at least one of the technical effects as: 1. asynchronous communication between the first controller and the second controller; 2. the two controllers with different clock rates can communicate with each other; 3. avoidance of lost data by retransmitting the data at a frequency higher than the frequency at which the data are prepared; 4. the reuse of the interval between the first clocks for transmission of the data at a series of the second clocks.

Further referring to figure 4, the process further includes storing the correctly received data in a queue of memory units. In addition, such process further includes accessing the data stored in the queue of the memory units, consuming the data at interval longer than or equal to that among the series of the first clock. For example, the process further includes the steps as below: storing Data(i) in the memory M(i), alternatively it may be adapted for storing Data(i) in the memory in stack. The second application module 11 may be adapted for accessing Data(i) by referring to the index "i" and extracting the task information and its execution time from Data(i). This approach provides at least one of the technical effects as: 1. the first controller and the second controller can be synchronized without having either the same clock rate or a multiple of clock rate of one to the other, 2. the second controller can get right data on-time.

Preferably, the consumption of the data stored in the queue of the memory units is in the same sequence as the data are stored.

The process may further includes providing control data to drive a mechanical device based on the robot motion information and the execution time extracted from the data received, wherein: the data represent robot motion information and execution time.

The process may further includes controlling electrical motors to achieve the requested motion at the execution time based on the high level control task and its execution time extracted from the data received.

Further referring to figure 4, the first application module 100 and the first communication module 101 are implemented in the first controller 10. The second application module 111 and the second communication module 110 are implemented in a separate second controller 11. The two controllers have two different internal cycle times, denoted by T app}

Without specific synchronization, the data transmission delay is changing due to different start time of each component. As shown in Fig 1 , is time delay for data transmission from the first application module 100 to the first communication module 101, ώ 2 is time delay for data transmission from the first communication module 101 to the second communication module 110, and ^3 is time delay for data transmission from the second communication module 110 to the second application module 111. Starting from these, it is easily come to following formula:

Max ( Δ ΐ) = ^eesn l

Max (^2) = ^omrai

Max ( Λ 3) = Γ ορίϊ2

Max ( T Dslay) = ^a p- l + T C omm2+ ^ omml

To make sure the second application module 111 get right data on-time from the first application module 100 every clock, the synchronization mechanism is as following:

The first application module 100 prepare Data(N) for time 2* Max ( Detoj ) each clock. The

Data(N) is break into small pieces, time of each piece is apvZ , Let M be no of the pieces, then M = Ceil (2* Max / if i ast p i eC e is less than Tapp2 , ask the first

T

application module 100 for more data to make it equal to ap3j2 . Mark each piece with Unique Clock count(N, N+l, N+2, N+M) respectively to be Frame(N). The first communication module 101 send Frame(N) to the second communication module 110 each clock. The second communication module 110 put the Frame( ) in memory, mark as Buffer( +M), each item in the buffer is pieces of data. The second application module 111 consume one piece of data in Buffer(N+M), according unique clock count, which means it consume Piece( ) at clock N, Piece(n+1) at clock N+l. In this way, the Application 2 will always get right data on-time.

Though the present invention has been described on the basis of some preferred

embodiments, those skilled in the art should appreciate that those embodiments should by no way limit the scope of the present invention. Without departing from the spirit and concept of the present invention, any variations and modifications to the embodiments should be within the apprehension of those with ordinary knowledge and skills in the art, and therefore fall in the scope of the present invention which is defined by the

accompanied claims.