WO2021117149A1 - デジタル通信システムの設計装置、およびその設計方法 - Google Patents

デジタル通信システムの設計装置、およびその設計方法 Download PDF

Info

Publication number
WO2021117149A1
WO2021117149A1 PCT/JP2019/048375 JP2019048375W WO2021117149A1 WO 2021117149 A1 WO2021117149 A1 WO 2021117149A1 JP 2019048375 W JP2019048375 W JP 2019048375W WO 2021117149 A1 WO2021117149 A1 WO 2021117149A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
unit
master
communication system
frame
Prior art date
Application number
PCT/JP2019/048375
Other languages
English (en)
French (fr)
Inventor
清水 正晴
Original Assignee
学校法人 千葉工業大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 学校法人 千葉工業大学 filed Critical 学校法人 千葉工業大学
Priority to JP2020520666A priority Critical patent/JP6716822B1/ja
Priority to PCT/JP2019/048375 priority patent/WO2021117149A1/ja
Publication of WO2021117149A1 publication Critical patent/WO2021117149A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks

Definitions

  • the present invention relates to a design device for a digital communication system and a design method thereof.
  • a master having a transmitting unit and a receiving unit and a plurality of slaves having a transmitting unit and a receiving unit are provided, and frame-based data transmitted from the transmitting unit of the master is transmitted to the receiving unit of the master via all the slaves.
  • a master-slave type digital communication system connected so as to receive data a digital communication system to which EtherCAT (Ether for Control Automation Technology) (registered trademark) based on Ethernet (registered trademark) is applied is known. (See, for example, Patent Document 1).
  • frame-by-frame data (hereinafter referred to as a frame) transmitted from the master transmitter is received by the first slave receiver.
  • the slave that receives the frame transmitted from the transmission unit of the master processes the frame data by the on-the-fly method, and transmits the frame from the transmission unit of this slave to the next slave. After that, this frame will be received again at the receiver of the master via all the slaves.
  • This digital communication system executes a series of cycle communications in which the time from the transmission of a frame from the transmission unit of the master to the transmission of the next frame is the cycle time.
  • this digital communication system has a function called DC synchronization (Distribution Clock Synchronization) for synchronizing between slaves.
  • DC synchronization Distribution Clock Synchronization
  • each slave starts when a frame is transmitted from the transmission unit of the master, and generates a DC synchronization signal after a certain period of time (global shift time) has elapsed. Then, each slave starts the operation inside the slave in synchronization with the DC synchronization signal. This global shift time must be set to generate the DC sync signal after the slave, which has the latest timing to receive the frame, is ready to operate.
  • An object of the present invention is to provide a design device for a digital communication system capable of appropriately setting a cycle time, and a design method thereof.
  • the design device of the digital communication system of the present invention includes a master having a transmitting unit and a receiving unit, and a plurality of slaves having a transmitting unit and a receiving unit, and collects all frame-based data transmitted from the transmitting unit of the master.
  • a design device for a digital communication system connected so as to be received by a receiving unit of the master via the slave, an operation input means for receiving an operation input of a user, and a design result of the digital communication system.
  • the control means is provided with a result output means for outputting the data, a control means for controlling the operation input means and the result output means, and a control means for executing the design of the digital communication system, and the control means is used via the operation input means.
  • the network communication time obtained by dividing the number of frame data to be transmitted from the transmission unit of the master by the communication speed of the communication system, and the frame is transmitted from the transmission unit of the master.
  • the maximum network communication jitter time which is the maximum value of the variation time
  • the all-road network delay time which is the delay time until the frame transmitted from the transmission unit of the master reaches the reception unit of the master, and the slave.
  • the cycle time calculation unit calculates the set cycle time until the data is set based on the network communication time received by the input reception unit, the maximum network communication jitter time, the all-road network delay time, and the slave internal processing time. It is characterized by including a design result output unit for outputting the set cycle time calculated by the cycle time calculation unit to the result output means.
  • the design device of the digital communication system sets the set cycle time from the transmission of the frame from the transmission unit of the master to the transmission of the next frame as the network communication time received by the input reception unit.
  • the control means receives the operation input of the user via the operation input means, and the event from the event generated when the slave completes the reception of the frame to the synchronization signal of the plurality of slaves.
  • the input receiving unit that further accepts the input of various parameters of the synchronization time and the next frame arrival time from the synchronization signals of the plurality of slaves to the arrival of the next frame at the slave, and the synchronization signals of the plurality of slaves are generated.
  • Global shift time calculation that calculates the global shift time, which is the shift time for setting the time to be set, based on the set cycle time, the event synchronization time, and the next frame arrival time calculated by the cycle time calculation unit. It is preferable to include the unit and the design result output unit that further outputs the global shift time calculated by the global shift time calculation unit to the result output means.
  • the design device of the digital communication system sets the global shift time, which is the shift time for setting the time for generating the synchronization signals of a plurality of slaves, by the cycle time calculation unit.
  • a global shift time calculation unit that calculates based on the time, event synchronization time, and next frame arrival time, and a design result output unit that further outputs the global shift time calculated by the global shift time calculation unit to the result output means. Therefore, the designer of the digital communication system can appropriately set the global shift time by setting the global shift time output to the result output means in the digital communication system.
  • the design method of the digital communication system of the present invention includes a master having a transmitting unit and a receiving unit, and a plurality of slaves having a transmitting unit and a receiving unit, and collects all the data in frame units transmitted from the transmitting unit of the master. It is a design method of a digital communication system connected so as to be received by the receiving unit of the master via the slave of the above, and after transmitting a frame from the transmitting unit of the master, until the next frame is transmitted.
  • the network communication time obtained by dividing the set cycle time of the above by the number of frames of data transmitted from the transmission unit of the master by the communication speed of the communication system, and the variation time when transmitting frames from the transmission unit of the master.
  • the maximum network communication jitter time which is the maximum value of, the all-road network delay time, which is the delay time until the frame transmitted from the transmission unit of the master reaches the reception unit of the master, and the reception unit of the slave. It is characterized by including a cycle time calculation step for calculating based on various parameters of the slave internal processing time, which is the time for processing the received frame by the slave.
  • the design method of the digital communication system sets the set cycle time from the transmission of a frame from the transmission unit of the master to the transmission of the next frame as the network communication time, the maximum network communication jitter time, and the total. Since the cycle time calculation step for calculating based on the road network delay time and the slave internal processing time is provided, the set cycle time can be calculated based on the slave processing content. Therefore, the designer of the digital communication system can appropriately set the cycle time by setting the set cycle time calculated in the cycle time calculation step in the digital communication system.
  • the global shift time which is the shift time for setting the time for generating the synchronization signals of the plurality of slaves, is set from the event generated when the slave completes the reception of the frame to the synchronization signals of the plurality of slaves.
  • Event synchronization time various parameters of the next frame arrival time from the synchronization signals of the plurality of slaves to the arrival of the next frame at the slave, and the set cycle time calculated in the cycle time calculation step. It is preferable to include a global shift time calculation step that is calculated based on the above.
  • the global shift time which is the shift time for setting the time for generating the synchronization signals of a plurality of slaves, is set by the cycle time calculation step. Since it has a global shift time calculation step that is calculated based on the time, the event synchronization time, and the arrival time of the next frame, the designer of the digital communication system can digitally convert the global shift time calculated in the global shift time calculation step.
  • the global shift time can be set appropriately by setting it in the communication system.
  • FIG. 1 shows the outline of the digital communication system which is the design object of the design apparatus of the digital communication system which concerns on one Embodiment of this invention.
  • Block diagram showing the function of the design device of the digital communication system A timing chart showing the processing content of the slave in the digital communication system and the time required for this processing content.
  • FIG. 1 is a diagram showing an outline of a digital communication system for which a design device for a digital communication system according to an embodiment of the present invention is designed.
  • the digital communication system 100 includes a master 110 having a transmitting unit TX and a receiving unit RX, and a plurality of slaves 120 (1) to 120 (n) having a transmitting unit TX and a receiving unit RX. ing.
  • the digital communication system 100 receives the frame-by-frame data transmitted from the transmission unit TX of the master 110 to the reception unit RX of the master 110 via all the slaves 120 (1) to 120 (n). It is connected.
  • the digital communication system 100 is a digital communication system to which EtherCAT (registered trademark) is applied.
  • FIG. 2 is a block diagram showing the functions of the design device of the digital communication system.
  • the design device 1 of the digital communication system outputs results such as a keyboard for receiving operation input of the user, an operation input means 2 such as a mouse, and a monitor for outputting the design result of the digital communication system 100.
  • a means 3 and a control means 4 for controlling the operation input means 2 and the result output means 3 and executing the design of the digital communication system 100 are provided.
  • the control means 4 is composed of a CPU (Central Processing Unit), a memory, and the like, and executes information processing according to a predetermined program stored in the memory.
  • the control means 4 includes an input reception unit 41, a cycle time calculation unit 42, a global shift time calculation unit 43, and a design result output unit 44.
  • the input receiving unit 41 receives the operation input of the user via the operation input means 2, and obtains the number of frames of data transmitted from the transmitting unit TX of the master 110 divided by the communication speed of the digital communication system 100.
  • the network communication time t net , the maximum network communication jitter time t jitter_max , which is the maximum value of the variation time when transmitting a frame from the transmission unit TX of the master 110, and the frame transmitted from the transmission unit TX of the master 110 are the master 110.
  • the all-road network delay time thhw which is the delay time until reaching the receiving unit RX of the slave 120 (1) to 120 (n), and the frames received by the receiving unit RX of the slaves 120 (1) to 120 (n). It accepts the input of various parameters of the slave internal processing time t s , which is the processing time in n). The contents of various parameters will be described in detail later.
  • the input receiving unit 41 receives an operation input of the user via the operation input means 2, and causes an event (SM (SM)) that occurs when the slaves 120 (1) to 120 (n) complete the reception of the frame.
  • Event synchronization time from Sync Manager) event to the synchronization signal (DC synchronization signal) of the plurality of slaves 120 (1) to 120 (n) t SM2DC (i), and the plurality of slaves 120 (1) to 120 (n).
  • the input of various parameters of the next frame arrival time t DC2NF (i) from the synchronization signal of the above to the arrival of the next frame at the slave is further accepted. The contents of various parameters will be described in detail later.
  • the cycle time calculation unit 42 inputs the set cycle time t cycle from the transmission of the frame from the transmission unit TX of the master 110 to the transmission of the next frame .
  • the network communication time t net received by the input reception unit 41 is the maximum. It is calculated based on the network communication jitter time t jitter_max , the all-road network delay time t hw , and the slave internal processing time t s. The method of calculating the set cycle time t cycle will be described in detail later.
  • the global shift time calculation unit 43 calculates the global shift time t gshift , which is the shift time for setting the time for generating the synchronization signals of the plurality of slaves 120 (1) to 120 (n), by the cycle time calculation unit 42. It is calculated based on the set cycle time t cycle , the event synchronization time t SM2DC (i), and the next frame arrival time t DC2NF (i). The method of calculating the global shift time t gshift will be described in detail later.
  • the design result output unit 44 causes the result output means 3 to output the set cycle time t cycle calculated by the cycle time calculation unit 42 and the global shift time t gshift calculated by the global shift time calculation unit 43.
  • FIG. 3 is a timing chart showing the processing contents of the slave in the digital communication system and the time required for the processing contents.
  • the contents of various parameters used in the design device 1 of the digital communication system, the method of calculating the set cycle time t cycle , and the method of calculating the global shift time t gshift will be described with reference to FIG.
  • the network communication time t net is the time required to transmit a frame of EtherCAT (registered trademark). As shown in the equation (1), the network communication time t net can be obtained by dividing the number of frames of data transmitted from the transmission unit TX of the master 110 by the communication speed C of the digital communication system 100.
  • f p Payload frame size of each slave
  • n Number of slaves
  • f hds Header and frame size automatically added.
  • (B) Maximum network communication jitter time t jitter_max The maximum network communication jitter time t jitter_max is the maximum variation time when a frame is transmitted from the transmission unit TX of the master 110.
  • the all-road network delay time thw is the delay time until the frame transmitted from the transmission unit TX of the master 110 reaches the reception unit RX of the master 110 via the slaves 120 (1) to 120 (n). To do.
  • each of the slaves 120 (1) to 120 (n) causes a delay when the frame passes.
  • each of the slaves 120 (1) to 120 (n) executes the same process, and the amount of communication processed is also the same. Therefore, the all-road network delay time thhw can be expressed by a linear linear equation with the number of slaves n as a variable, as shown in the equation (2).
  • the coefficients k hw and l hw of this linear linear equation can be obtained by experiments or the like. The method of obtaining each coefficient k hw and l hw will be described in detail later.
  • Slave internal processing time t s is the slave 120 (i) the time required for internal processing.
  • the slave internal processing time t s can be obtained by adding the PDI interrupt processing time (t PDI ) and the SYNC0 interrupt processing time (t SYNC0 ).
  • PDI interrupt processing time t PDI can be represented by a linear primary equation and the payload frame size f p as a variable.
  • the coefficients k PDI and l PDI of this linear linear equation can be obtained by experiments or the like. The method of obtaining each coefficient k PDI and l PDI will be described in detail later.
  • SYNC0 interrupt processing time t SYNC0 can be represented by a linear primary equation and the payload frame size f p as a variable.
  • the coefficients k SYNC0 and l SYNC0 of this linear linear equation can be obtained by experiments or the like. The method of obtaining the respective coefficients k SYNC0 and l SYNC0 will be described in detail later.
  • (E) Set cycle time t cycle is a cycle time from the transmission of a frame from the transmission unit TX of the master 110 to the transmission of the next frame.
  • Master internal processing time t m is the time required for the master 110 internal processing.
  • the network communication jitter is a part of the communication process of the master 110.
  • the jitter of network communication also affects the communication model of slave 120 (i), it is set as an independent term. Since the purpose of this embodiment is to derive the cycle time based on the processing content of the slave 120 (i), the processing other than the communication inside the master 110 can be ignored as shown in the equation (7).
  • the global shift time t gshift is a shift time for setting a time for generating a DC synchronization signal from the start time of the cycle time of the master 110, and can be expressed by the equation (8).
  • Event synchronization time from SM event to DC synchronization signal t SM2DC (i)
  • the SM event occurs when each slave 120 (i) completes the reception of the frame. Therefore, the event synchronization time t SM2DC (i) from the SM event to the DC synchronization signal can be expressed by the equation (9).
  • equation (10) can be obtained by substituting the equation (3) into the equation (9).
  • equation (12) can be obtained by substituting the equation (3) into the equation (11).
  • a model formula (hereinafter referred to as a CS derivation model formula) for deriving the set cycle time t cycle and the global shift time t gshift will be described based on the contents of the various parameters described above.
  • the slave internal processing time t s must be within the set cycle time t cycle. It should be noted that the actual cycle time changes by the maximum network communication jitter time t jitter_max, and therefore needs to be taken into consideration. Therefore, the boundary condition of the set cycle time t cycle is given by the equation (13).
  • equation (14) can be obtained by substituting the equations (4) to (6) into the equation (13).
  • the boundary condition of the set cycle time t cycle is expressed by the following equation (15).
  • equation (16) can be obtained by substituting the equations (1), (2), and (7) into the equation (15).
  • the PDI interrupt processing time t PDI must be smaller than the event synchronization time t SM2DC (i) from the SM event to the DC synchronization signal, as shown in the equation (17).
  • the event synchronization time t SM2DC (i) from the SM event to the DC synchronization signal is the shortest at the nth (final end) slave.
  • equation (18) can be obtained by substituting the equations (5), (8), and (10) into the equation (17).
  • the SYNC0 interrupt processing time t SYNC0 needs to be smaller than the next frame arrival time t DC2NF (i) from the DC synchronization signal to the arrival of the next frame, as shown in the equation (19).
  • the time until the arrival of the next frame changes by the maximum network communication jitter time t jitter_max, and therefore needs to be taken into consideration.
  • the next frame arrival time t DC2NF (i) from the DC synchronization signal to the arrival of the next frame is the shortest in the first slave.
  • equation (20) can be obtained by substituting the equations (6) and (12) into the equation (19).
  • the total frame size shall not exceed 1514 bytes (12112 bits), which is the maximum value f max of one frame size of Ethernet (registered trademark).
  • the cycle time calculation unit 42 is based on the network communication time t net received by the input reception unit 41, the maximum network communication jitter time t jitter_max , the all-road network delay time t hw , and the slave internal processing time t s.
  • the set cycle time t cycle is calculated by finding the solution satisfying the simultaneous inequality of the equations (16) and (21) (cycle time calculation step).
  • the global shift time t gshift is obtained by substituting the setting cycle time t cycle of the range derived in the equation (20) and satisfying the simultaneous inequalities of the equations (18), (20), and (22). .. Therefore, the global shift time calculation unit 43 uses the formula based on the set cycle time t cycle , the event synchronization time t SM2DC (i), and the next frame arrival time t DC2NF (i) calculated by the cycle time calculation unit 42. The global shift time t gshift is calculated by finding a solution that satisfies the simultaneous inequality of (18), (20), and (22) (global shift time calculation step).
  • each coefficient k PDI, l PDI in (6), each processing time is measured by changing the payload frame size f p, it is estimated to seek an approximate expression.
  • each coefficient k PDI , l PDI implements a function of controlling the digital output indicating the start and end of the communication process on each slave 120 (i), and outputs the digital output from each slave 120 (i).
  • the slave internal processing time t s is measured and estimated.
  • the set cycle time t cycle was set to 1000 ⁇ s.
  • FIG. 4 is a graph showing the results of measuring the PDI interrupt processing time by changing the payload frame size.
  • the payload frame size f p and the horizontal axis, and the vertical axis the PDI interrupt processing time t PDI. Relationship of the payload frame size f p and PDI interrupt processing time t PDI, as shown in FIG. 4, is well fit to a linear approximation.
  • FIG. 5 is a graph showing the results of measuring the SYNC0 interrupt processing time by changing the payload frame size.
  • the payload frame size f p and the horizontal axis, and the vertical axis SYNC0 interrupt processing time t SYNC0 Relationship of the payload frame size f p and SYNC0 interrupt processing time t SYNC0, as shown in FIG. 5, are well fit to a linear approximation.
  • the coefficients k hw and l hw in the above-mentioned equations (2) and (3) are estimated by mainly changing the number of slaves n to measure the all-road network delay time t hw and obtaining an approximate equation. .. Specifically, for each of the coefficients k hw and l hw , a probe is inserted between the master 110 and the first slave 120 (1), and the frame transmitted from the transmission unit TX of the master 110 by this probe. Is estimated by measuring the time when the probe completes the reception and the time when the frame is received again by the probe via each slave 120 (i). The number of slaves n is changed to 1, 2, 3, and 5.
  • the payload frame size f p was all set to 224 bits. Then, only when the five slave number n, in order to measure the effects of changes in the payload frame size f p, the payload frame size f p measures set to 1008 bits. Further, in order to measure the effect of setting the cycle time t cycle, set cycle time t cycle is, for 224 bits of the payload frame size f p, measured by setting the 1000,200,100Myuesu, 1008 bits for the payload frame size f p, it is measured and set in the setting cycle time t cycle of 300 ⁇ s. Each measurement time was set to 10 s.
  • the standard deviation of the delay time under each condition was 0.02 to 0.04 ⁇ s, which was a sufficiently small value.
  • the total road network delay time t hw showed a similar trend regardless change of the setting cycle time t cycle and payload frame size f p. Therefore, in the following, the payload frame size f p and 224 bits, will be described the measurement results of the average delay of all road network delay time t hw in the case of a 200 ⁇ s set cycle time t cycle.
  • FIG. 6 is a graph showing the results of measuring the average delay time of the all-road network delay time by changing the number of slaves.
  • the number of slaves n is on the horizontal axis
  • the average delay time of the all-road network delay time thw is on the vertical axis.
  • the maximum network communication jitter time t jitter_max is obtained by measuring the transmission time of the frame transmitted from the transmission unit TX of the master 110 with a probe.
  • the maximum network communication jitter time t Jitter_max measures in similar environment and conditions and environment of measuring the total road network delay time t hw. In the present embodiment, the maximum variation time measured under each condition was 13.9 ⁇ s to 20.2 ⁇ s. Therefore, the maximum network communication jitter time t jitter_max was set to 20.2 ⁇ s.
  • the communication speed C of the digital communication system is 100 bits / ⁇ s (100 Mbps) based on the standard of 100 Base-T.
  • the header and the automatically added frame size f hds are 760 bits based on the standards of Ethernet (registered trademark) and EtherCAT (registered trademark).
  • the verification of the CS derivation model formula was carried out in the same environment as the environment in which the all-road network delay time thw was measured.
  • the processing content of the slave 120 (i) is to receive a specific value of the frame transmitted from the transmission unit TX of the master 110 and return a frame carrying the same value.
  • the master 110 receives a specific value from the slave 120 (1) in the second cycle communication. For example, if the global shift time t gshift cannot be set appropriately, the processing inside the slaves 120 (1) to 120 (n) cannot be completed in time, and the master 110 sets a specific value in the third and subsequent cycle communications. Is expected to be received from the slave 120 (1).
  • the set cycle time t cycle becomes the equation (24) by applying the equations (16) and (21) and various coefficients estimated based on the above-mentioned measurement.
  • this set cycle time t cycle is calculated by applying various coefficients estimated based on the above-mentioned measurement, it includes a measurement error and an error due to approximation. Therefore, the set cycle time tcycle_set applied to the actual digital communication system 100 is set by adding a margin as shown in the equation (25).
  • the global shift time t gshift becomes the equation (26) by applying the equations (18), (20), (25) and various coefficients estimated based on the above-mentioned measurement.
  • this global shift time t gshift includes an error as in the set cycle time t cycle. Therefore, the global shift time t gshift applied to the actual digital communication system 100 is set to three values of 79.5 ⁇ s, 86.5 ⁇ s, and 113.5 ⁇ s, and is a value of 150 ⁇ s as a value outside the range of the equation (26). It was set.
  • the set cycle time t cycle becomes the equation (27) by applying the equations (16) and (21) and various coefficients estimated based on the above-mentioned measurement.
  • this set cycle time t cycle is calculated by applying various coefficients estimated based on the above-mentioned measurement, it includes a measurement error and an error due to approximation. Therefore, the set cycle time tcycle_set applied to the actual digital communication system 100 is set by adding a margin as shown in the equation (28).
  • the global shift time t gshift becomes the equation (29) by applying the equations (18), (20), (25) and various coefficients estimated based on the above-mentioned measurement.
  • this global shift time t gshift includes an error as in the set cycle time t cycle. Therefore, the global shift time t gshift applied to the actual digital communication system 100 is set to a value of 161.5 ⁇ s, and a value of 205.5 ⁇ s is set as a value outside the range of the equation (29).
  • the design device 1 of the digital communication system receives the network communication in which the input reception unit 41 receives the set cycle time t cycle from the transmission of the frame from the transmission unit TX of the master 110 to the transmission of the next frame.
  • the cycle time calculation unit 42 calculated based on the time t net , the maximum network communication jitter time t jitter_max , the all-road network delay time t hw , and the slave internal processing time t s , and the settings calculated by the cycle time calculation unit 42.
  • the set cycle time t cycle can be calculated based on the processing contents of the slaves 120 (1) to 120 (n). .. Therefore, the designer of the digital communication system 100 can appropriately set the cycle time by setting the set cycle time tcycle output to the result output means 3 in the digital communication system 100.
  • the design device 1 of the digital communication system calculates the cycle time of the global shift time t gshift , which is the shift time for setting the time for generating the DC synchronization signals of the plurality of slaves 120 (1) to 120 (n).
  • the global shift time calculation unit 43 and the global shift time calculation unit calculated based on the set cycle time t cycle , the event synchronization time t SM2DC (i), and the next frame arrival time t DC2NF (i) calculated in the unit 42. Since the design result output unit 44 for further outputting the global shift time t gshift calculated in 43 to the result output means 3, the designer of the digital communication system 100 can output the global to the result output means 3.
  • the global shift time t gshift can be set appropriately.
  • the present invention is not limited to the above-described embodiment, and modifications, improvements, and the like within the range in which the object of the present invention can be achieved are included in the present invention.
  • the digital communication system 100 to which EtherCAT (registered trademark) is applied is adopted as the design target of the design device 1 of the digital communication system.
  • the digital communication system to be designed by the design device 1 of the digital communication system includes a master having a transmitting unit and a receiving unit, and a plurality of slaves having a transmitting unit and a receiving unit, and the transmitting unit of the master. Any other digital communication system may be adopted as long as it is a digital communication system connected so as to receive the frame-by-frame data transmitted from the above in the receiving unit of the master via all the slaves.
  • the design device 1 of the digital communication system includes the control means 4, and the control means 4 includes the global shift time calculation unit 43, but does not include the global shift time calculation unit 43. May be good.
  • the input receiving unit 41 does not have to accept the input of various parameters of the event synchronization time t SM2DC (i) and the next frame arrival time t DC2NF (i), and the design result output unit 44 is global. It is not necessary to output the shift time t gshift to the result output means 3.
  • the cycle time calculation unit 42 executes the cycle time calculation step
  • the global shift time calculation unit 43 executes the global shift time calculation step.
  • the designer may execute the cycle time calculation step and the global shift time calculation step by himself / herself.
  • the slaves 120 (1) to 120 (n) are assumed to execute the same processing, and the amount of communication to be processed is also the same, so that the all-road network delay time thw can be set. It was expressed by a linear linear equation.
  • the all-road network delay time thhw may be obtained by individually obtaining the delay times of the slaves 120 (1) to 120 (n) and summing these delay times.
  • the all-road network delay time thhw is a delay until the frame transmitted from the transmission unit TX of the master 110 reaches the reception unit RX of the master 110 via the slaves 120 (1) to 120 (n). It should be time.
  • the slaves 120 (1) to 120 (n) are assumed to execute the same processing, and the slave internal processing time t s (PDI interrupt processing time t PDI and SYNC0 interrupt processing time t SYNC0 ).
  • the slave internal processing time t s the internal processing time may the be calculated individually for each slave 120 (1) ⁇ 120 (n ).
  • the slave internal processing time t s may be any slave 120 (i) the time required for internal processing.
  • the present invention can be suitably used for a design device for a digital communication system and a design method thereof.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

【課題】サイクルタイムを適切に設定することができるデジタル通信システムの設計装置の提供。 【解決手段】デジタル通信システムの設計装置1は、操作入力手段2と、結果出力手段3と、デジタル通信システムの設計を実行する制御手段4とを備える。制御手段4は、入力受付部41と、サイクルタイム算出部42と、設計結果出力部44とを備える。サイクルタイム算出部42は、マスタの送信部からフレームを送信した後、次のフレームを送信するまでの設定サイクルタイムを入力受付部41にて受け付けられたネットワーク通信時間、最大ネットワーク通信ジッタ時間、全路ネットワーク遅延時間、およびスレーブ内部処理時間に基づいて算出する。設計結果出力部44は、サイクルタイム算出部42にて算出された設定サイクルタイムを結果出力手段3に出力させる。

Description

デジタル通信システムの設計装置、およびその設計方法
 本発明は、デジタル通信システムの設計装置、およびその設計方法に関する。
 従来、送信部および受信部を有するマスタと、送信部および受信部を有する複数のスレーブとを備え、マスタの送信部から送信されたフレーム単位のデータを全てのスレーブを経由してマスタの受信部にて受信するように接続されたマスタスレーブ方式のデジタル通信システムとして、イーサネット(登録商標)をベースとしたイーサキャット(EtherCAT:Ether for Control Automation Technology)(登録商標)を適用したデジタル通信システムが知られている(例えば、特許文献1参照)。
 このデジタル通信システムでは、マスタの送信部から送信されたフレーム単位のデータ(以下、フレームとする)は、最初のスレーブの受信部にて受信される。マスタの送信部から送信されたフレームを受信したスレーブは、オンザフライ方式にてフレームのデータを処理し、このスレーブの送信部から次のスレーブにフレームを送信する。その後、このフレームは、全てのスレーブを経由して再びマスタの受信部にて受信されることになる。このデジタル通信システムは、マスタの送信部からフレームを送信した後、次のフレームを送信するまでの時間をサイクルタイムとする1連のサイクル通信を実行している。
 また、このデジタル通信システムでは、各スレーブにてフレームを受信するタイミングは異なっているので、各スレーブは、フレームを受信したタイミングを起点としてスレーブ内部の動作を開始してしまうと、各スレーブ間の同期を取ることができなくなる。
 そこで、このデジタル通信システムは、DC同期(Distribution Clock Synchronization)という各スレーブ間の同期を取るための機能を有している。このDC同期では、各スレーブは、マスタの送信部からフレームを送信した時点を開始時点とし、ある一定の時間(グローバルシフトタイム)の経過後にDC同期信号を発生させる。そして、各スレーブは、このDC同期信号に同期してスレーブ内部の動作を開始する。このグローバルシフトタイムは、フレームを受信するタイミングの最も遅いスレーブの動作準備を終えた時点よりも後にDC同期信号を発生させるように設定しなければならない。
特開2015-128265号公報
 しかしながら、各スレーブ間の同期を取るための機能を実現するために重要になるサイクルタイムを、どのように決定すればよいかについては明確に規定されておらず、適切に設定することができないという問題がある。
 本発明の目的は、サイクルタイムを適切に設定することができるデジタル通信システムの設計装置、およびその設計方法を提供することである。
 本発明のデジタル通信システムの設計装置は、送信部および受信部を有するマスタと、送信部および受信部を有する複数のスレーブとを備え、前記マスタの送信部から送信されたフレーム単位のデータを全ての前記スレーブを経由して前記マスタの受信部にて受信するように接続されたデジタル通信システムの設計装置であって、使用者の操作入力を受け付ける操作入力手段と、前記デジタル通信システムの設計結果を出力する結果出力手段と、前記操作入力手段および前記結果出力手段を制御するとともに、前記デジタル通信システムの設計を実行する制御手段とを備え、前記制御手段は、前記操作入力手段を介して使用者の操作入力を受け付けることによって、前記マスタの送信部から送信するフレームのデータ数を前記通信システムの通信速度にて除算して得られたネットワーク通信時間、前記マスタの送信部からフレームを送信する際のバラつき時間の最大値である最大ネットワーク通信ジッタ時間、前記マスタの送信部から送信されたフレームが前記マスタの受信部に到達するまでの遅延時間である全路ネットワーク遅延時間、および前記スレーブの受信部にて受信したフレームを前記スレーブにて処理する時間であるスレーブ内部処理時間の各種パラメータの入力を受け付ける入力受付部と、前記マスタの送信部からフレームを送信した後、次のフレームを送信するまでの設定サイクルタイムを前記入力受付部にて受け付けられた前記ネットワーク通信時間、前記最大ネットワーク通信ジッタ時間、前記全路ネットワーク遅延時間、および前記スレーブ内部処理時間に基づいて算出するサイクルタイム算出部と、前記サイクルタイム算出部にて算出された前記設定サイクルタイムを前記結果出力手段に出力させる設計結果出力部とを備えることを特徴とする。
 このような構成によれば、デジタル通信システムの設計装置は、マスタの送信部からフレームを送信した後、次のフレームを送信するまでの設定サイクルタイムを入力受付部にて受け付けられたネットワーク通信時間、最大ネットワーク通信ジッタ時間、全路ネットワーク遅延時間、およびスレーブ内部処理時間に基づいて算出するサイクルタイム算出部と、サイクルタイム算出部にて算出された設定サイクルタイムを結果出力手段に出力させる設計結果出力部とを備えているので、スレーブの処理内容に基づく設定サイクルタイムを算出することができる。したがって、デジタル通信システムの設計者は、結果出力手段に出力された設定サイクルタイムをデジタル通信システムに設定することによって、サイクルタイムを適切に設定することができる。
 本発明では、前記制御手段は、前記操作入力手段を介して使用者の操作入力を受け付けることによって、前記スレーブにてフレームの受信を完了すると発生するイベントから前記複数のスレーブの同期信号までのイベント同期時間、および前記複数のスレーブの同期信号から当該スレーブに次のフレームが到着するまでの次フレーム到着時間の各種パラメータの入力を更に受け付ける前記入力受付部と、前記複数のスレーブの同期信号を発生させる時間を設定するためのシフト時間であるグローバルシフトタイムを前記サイクルタイム算出部にて算出された前記設定サイクルタイム、前記イベント同期時間、および前記次フレーム到着時間に基づいて算出するグローバルシフトタイム算出部と、前記グローバルシフトタイム算出部にて算出された前記グローバルシフトタイムを前記結果出力手段に更に出力させる前記設計結果出力部とを備えることが好ましい。
 このような構成によれば、デジタル通信システムの設計装置は、複数のスレーブの同期信号を発生させる時間を設定するためのシフト時間であるグローバルシフトタイムをサイクルタイム算出部にて算出された設定サイクルタイム、イベント同期時間、および次フレーム到着時間に基づいて算出するグローバルシフトタイム算出部と、グローバルシフトタイム算出部にて算出されたグローバルシフトタイムを結果出力手段に更に出力させる設計結果出力部とを備えているので、デジタル通信システムの設計者は、結果出力手段に出力されたグローバルシフトタイムをデジタル通信システムに設定することによって、グローバルシフトタイムを適切に設定することができる。
 本発明のデジタル通信システムの設計方法は、送信部および受信部を有するマスタと、送信部および受信部を有する複数のスレーブとを備え、前記マスタの送信部から送信されたフレーム単位のデータを全ての前記スレーブを経由して前記マスタの受信部にて受信するように接続されたデジタル通信システムの設計方法であって、前記マスタの送信部からフレームを送信した後、次のフレームを送信するまでの設定サイクルタイムを前記マスタの送信部から送信するフレームのデータ数を前記通信システムの通信速度にて除算して得られたネットワーク通信時間、前記マスタの送信部からフレームを送信する際のバラつき時間の最大値である最大ネットワーク通信ジッタ時間、前記マスタの送信部から送信されたフレームが前記マスタの受信部に到達するまでの遅延時間である全路ネットワーク遅延時間、および前記スレーブの受信部にて受信したフレームを前記スレーブにて処理する時間であるスレーブ内部処理時間の各種パラメータに基づいて算出するサイクルタイム算出ステップを備えることを特徴とする。
 このような構成によれば、デジタル通信システムの設計方法は、マスタの送信部からフレームを送信した後、次のフレームを送信するまでの設定サイクルタイムをネットワーク通信時間、最大ネットワーク通信ジッタ時間、全路ネットワーク遅延時間、およびスレーブ内部処理時間に基づいて算出するサイクルタイム算出ステップを備えているので、スレーブの処理内容に基づく設定サイクルタイムを算出することができる。したがって、デジタル通信システムの設計者は、サイクルタイム算出ステップにて算出された設定サイクルタイムをデジタル通信システムに設定することによって、サイクルタイムを適切に設定することができる。
 本発明では、前記複数のスレーブの同期信号を発生させる時間を設定するためのシフト時間であるグローバルシフトタイムを前記スレーブにてフレームの受信を完了すると発生するイベントから前記複数のスレーブの同期信号までのイベント同期時間、および前記複数のスレーブの同期信号から当該スレーブに次のフレームが到着するまでの次フレーム到着時間の各種パラメータと、前記サイクルタイム算出ステップにて算出された前記設定サイクルタイムとに基づいて算出するグローバルシフトタイム算出ステップを備えることが好ましい。
 このような構成によれば、デジタル通信システムの設計方法は、複数のスレーブの同期信号を発生させる時間を設定するためのシフト時間であるグローバルシフトタイムをサイクルタイム算出ステップにて算出された設定サイクルタイム、イベント同期時間、および次フレーム到着時間に基づいて算出するグローバルシフトタイム算出ステップを備えているので、デジタル通信システムの設計者は、グローバルシフトタイム算出ステップにて算出されたグローバルシフトタイムをデジタル通信システムに設定することによって、グローバルシフトタイムを適切に設定することができる。
本発明の一実施形態に係るデジタル通信システムの設計装置の設計対象となるデジタル通信システムの概要を示す図 デジタル通信システムの設計装置の機能を示すブロック図 デジタル通信システムにおけるスレーブの処理内容と、この処理内容にかかる時間とを示すタイミングチャート ペイロードフレームサイズを変化させてPDI割り込み処理時間を計測した結果を示すグラフ ペイロードフレームサイズを変化させてSYNC0割り込み処理時間を計測した結果を示すグラフ スレーブ数を変化させて全路ネットワーク遅延時間の平均遅延時間を計測した結果を示すグラフ
 以下、本発明の一実施形態を図面に基づいて説明する。
 図1は、本発明の一実施形態に係るデジタル通信システムの設計装置の設計対象となるデジタル通信システムの概要を示す図である。
 デジタル通信システム100は、図1に示すように、送信部TXおよび受信部RXを有するマスタ110と、送信部TXおよび受信部RXを有する複数のスレーブ120(1)~120(n)とを備えている。このデジタル通信システム100は、マスタ110の送信部TXから送信されたフレーム単位のデータを全てのスレーブ120(1)~120(n)を経由してマスタ110の受信部RXにて受信するように接続されている。このデジタル通信システム100は、EtherCAT(登録商標)を適用したデジタル通信システムである。
 図2は、デジタル通信システムの設計装置の機能を示すブロック図である。
 デジタル通信システムの設計装置1は、図2に示すように、使用者の操作入力を受け付けるキーボードや、マウス等の操作入力手段2と、デジタル通信システム100の設計結果を出力するモニタ等の結果出力手段3と、操作入力手段2および結果出力手段3を制御するとともに、デジタル通信システム100の設計を実行する制御手段4とを備えている。
 制御手段4は、CPU(Central Processing Unit)や、メモリなどによって構成され、このメモリに記憶された所定のプログラムに従って情報処理を実行する。この制御手段4は、入力受付部41と、サイクルタイム算出部42と、グローバルシフトタイム算出部43と、設計結果出力部44とを備えている。
 入力受付部41は、操作入力手段2を介して使用者の操作入力を受け付けることによって、マスタ110の送信部TXから送信するフレームのデータ数をデジタル通信システム100の通信速度にて除算して得られたネットワーク通信時間tnet、マスタ110の送信部TXからフレームを送信する際のバラつき時間の最大値である最大ネットワーク通信ジッタ時間tjitter_max、マスタ110の送信部TXから送信されたフレームがマスタ110の受信部RXに到達するまでの遅延時間である全路ネットワーク遅延時間thw、およびスレーブ120(1)~120(n)の受信部RXにて受信したフレームをスレーブ120(1)~120(n)にて処理する時間であるスレーブ内部処理時間tの各種パラメータの入力を受け付ける。なお、各種パラメータの内容については後に詳細に説明する。
 また、この入力受付部41は、操作入力手段2を介して使用者の操作入力を受け付けることによって、スレーブ120(1)~120(n)にてフレームの受信を完了すると発生するイベント(SM(Sync Manager)イベント)から複数のスレーブ120(1)~120(n)の同期信号(DC同期信号)までのイベント同期時間tSM2DC(i)、および複数のスレーブ120(1)~120(n)の同期信号から当該スレーブに次のフレームが到着するまでの次フレーム到着時間tDC2NF(i)の各種パラメータの入力を更に受け付ける。なお、各種パラメータの内容については後に詳細に説明する。
 サイクルタイム算出部42は、マスタ110の送信部TXからフレームを送信した後、次のフレームを送信するまでの設定サイクルタイムtcycleを入力受付部41にて受け付けられたネットワーク通信時間tnet、最大ネットワーク通信ジッタ時間tjitter_max、全路ネットワーク遅延時間thw、およびスレーブ内部処理時間tに基づいて算出する。なお、設定サイクルタイムtcycleを算出する方法については後に詳細に説明する。
 グローバルシフトタイム算出部43は、複数のスレーブ120(1)~120(n)の同期信号を発生させる時間を設定するためのシフト時間であるグローバルシフトタイムtgshiftをサイクルタイム算出部42にて算出された設定サイクルタイムtcycle、イベント同期時間tSM2DC(i)、および次フレーム到着時間tDC2NF(i)に基づいて算出する。なお、グローバルシフトタイムtgshiftを算出する方法については後に詳細に説明する。
 設計結果出力部44は、サイクルタイム算出部42にて算出された設定サイクルタイムtcycleと、グローバルシフトタイム算出部43にて算出されたグローバルシフトタイムtgshiftを結果出力手段3に出力させる。
 図3は、デジタル通信システムにおけるスレーブの処理内容と、この処理内容にかかる時間とを示すタイミングチャートである。
 以下、デジタル通信システムの設計装置1にて使用する各種パラメータの内容や、設定サイクルタイムtcycleを算出する方法、およびグローバルシフトタイムtgshiftを算出する方法について、図3を参照して説明する。
(A)ネットワーク通信時間tnet
 ネットワーク通信時間tnetは、EtherCAT(登録商標)のフレームを送信するのに要する時間とする。このネットワーク通信時間tnetは、式(1)に示すように、マスタ110の送信部TXから送信するフレームのデータ数をデジタル通信システム100の通信速度Cにて除算して得ることができる。
Figure JPOXMLDOC01-appb-M000001
   …式(1)
 ここで、
:各スレーブのペイロードフレームサイズ
n:スレーブ数
hds:ヘッダーおよび自動的に付加されるフレームサイズ
とする。
(B)最大ネットワーク通信ジッタ時間tjitter_max
 最大ネットワーク通信ジッタ時間tjitter_maxは、マスタ110の送信部TXからフレームを送信する際の最大ばらつき時間とする。
(C)全路ネットワーク遅延時間thw、および往路ネットワーク遅延時間thwh(i)
 全路ネットワーク遅延時間thwは、マスタ110の送信部TXから送信されたフレームが各スレーブ120(1)~120(n)を経由してマスタ110の受信部RXに到達するまでの遅延時間とする。ここで、各スレーブ120(1)~120(n)は、フレームが通過する際に遅延を発生させている。本実施形態では、各スレーブ120(1)~120(n)は、同一の処理を実行するものとし、この処理される通信量も同一とする。したがって、全路ネットワーク遅延時間thwは、式(2)に示すように、スレーブ数nを変数とした線形一次方程式にて表現できる。この線形一次方程式の各係数khw,lhwは、実験等によって求めることができる。各係数khw,lhwを求める方法については、後に詳細に説明する。
Figure JPOXMLDOC01-appb-M000002
   …式(2)
 そして、マスタ110の送信部TXから送信されたフレームが各スレーブ120(i)に到達するまでの遅延時間を往路ネットワーク遅延時間thwh(i)とすると、この往路ネットワーク遅延時間thwh(i)は、式(3)にて表現できる。
Figure JPOXMLDOC01-appb-M000003
   …式(3)
(D)スレーブ内部処理時間t
 スレーブ内部処理時間tは、スレーブ120(i)内部の処理に要する時間である。このスレーブ内部処理時間tは、式(4)に示すように、PDI割り込み処理時間(tPDI)とSYNC0割り込み処理時間(tSYNC0)の和算で求めることができる。
Figure JPOXMLDOC01-appb-M000004
   …式(4)
 PDI割り込み処理時間tPDIは、式(5)に示すように、ペイロードフレームサイズfを変数とした線形一次方程式にて表現できる。この線形一次方程式の各係数kPDI,lPDIは、実験等によって求めることができる。各係数kPDI,lPDIを求める方法については、後に詳細に説明する。
Figure JPOXMLDOC01-appb-M000005
   …式(5)
 SYNC0割り込み処理時間tSYNC0は、式(6)に示すように、ペイロードフレームサイズfを変数とした線形一次方程式にて表現できる。この線形一次方程式の各係数kSYNC0,lSYNC0は、実験等によって求めることができる。各係数kSYNC0,lSYNC0を求める方法については、後に詳細に説明する。
Figure JPOXMLDOC01-appb-M000006
   …式(6)
(E)設定サイクルタイムtcycle
 設定サイクルタイムtcycleは、マスタ110の送信部TXからフレームを送信した後、次のフレームを送信するまでのサイクルタイムとする。
(F)マスタ内部処理時間t
 マスタ内部処理時間tは、マスタ110内部の処理に要する時間である。ここで、ネットワーク通信のジッタは、マスタ110の通信処理の一部である。しかしながら、ネットワーク通信のジッタは、スレーブ120(i)の通信モデルにも影響するため独立項とした。本実施形態では、スレーブ120(i)の処理内容に基づくサイクルタイムの導出を目的としているので、マスタ110内部の通信以外の処理は、式(7)に示すように、無視できるものとする。
Figure JPOXMLDOC01-appb-M000007
   …式(7)
(G)ユーザーシフトタイムtushift
 ユーザーシフトタイムtushiftは、グローバルシフトタイムtgshiftを決定するために、デジタル通信システム100の設計者が指定できるシフトタイムである。
(H)グローバルシフトタイムtgshift
 グローバルシフトタイムtgshiftは、マスタ110のサイクルタイムの開始時点からDC同期信号を発生させる時間を設定するためのシフト時間であり、式(8)にて表現できる。
Figure JPOXMLDOC01-appb-M000008
   …式(8)
(I)SMイベントからDC同期信号までのイベント同期時間tSM2DC(i)
 ここで、SMイベントは、各スレーブ120(i)にてフレームの受信を完了すると発生する。したがって、SMイベントからDC同期信号までのイベント同期時間tSM2DC(i)は、式(9)にて表現できる。
Figure JPOXMLDOC01-appb-M000009
   …式(9)
 ここで、式(9)に式(3)を代入して式(10)を得ることができる。
Figure JPOXMLDOC01-appb-M000010
   …式(10)
(J)DC同期信号から次フレーム到着までの次フレーム到着時間tDC2NF(i)
 ここで、マスタ110からの接続順が遠いスレーブ120(i)ほど大きなハードウェア遅延時間が加算される。したがって、DC同期信号から次フレーム到着までの次フレーム到着時間tDC2NF(i)は、式(11)にて表現できる。
Figure JPOXMLDOC01-appb-M000011
   …式(11)
 ここで、式(11)に式(3)を代入して式(12)を得ることができる。
Figure JPOXMLDOC01-appb-M000012
   …式(12)
 次に、前述した各種パラメータの内容に基づいて、設定サイクルタイムtcycleおよびグローバルシフトタイムtgshiftを導出するモデル式(以下、CS導出モデル式とする)について説明する。
 まず、スレーブ内部処理時間tは、設定サイクルタイムtcycle以内である必要がある。なお、実際のサイクルタイムは、最大ネットワーク通信ジッタ時間tjitter_max分だけ変化するので考慮する必要がある。
 したがって、設定サイクルタイムtcycleの境界条件は、式(13)となる。
Figure JPOXMLDOC01-appb-M000013
   …式(13)
 ここで、式(13)に式(4)~(6)を代入して式(14)を得ることができる。
Figure JPOXMLDOC01-appb-M000014
   …式(14)
 また、マスタ内部処理時間tおよびネットワーク通信関連時間(ネットワーク通信時間tnet、全路ネットワーク遅延時間thw、最大ネットワーク通信ジッタ時間tjitter_max)の合計時間は、設定サイクルタイムtcycle以内である必要がある。
 したがって、設定サイクルタイムtcycleの境界条件は、以下の式(15)となる。
Figure JPOXMLDOC01-appb-M000015
   …式(15)
 ここで、式(15)に式(1),(2),(7)を代入して式(16)を得ることができる。
Figure JPOXMLDOC01-appb-M000016
   …式(16)
 また、PDI割り込み処理時間tPDIは、式(17)に示すように、SMイベントからDC同期信号までのイベント同期時間tSM2DC(i)より小さい必要がある。なお、SMイベントからDC同期信号までのイベント同期時間tSM2DC(i)が一番短くなるのは、n番目(最終端)のスレーブとなる。
Figure JPOXMLDOC01-appb-M000017
   …式(17)
 ここで、式(17)に式(5),(8),(10)を代入して式(18)を得ることができる。
Figure JPOXMLDOC01-appb-M000018
   …式(18)
 さらに、SYNC0割り込み処理時間tSYNC0は、式(19)に示すように、DC同期信号から次フレーム到着までの次フレーム到着時間tDC2NF(i)より小さい必要がある。次フレーム到着までの時間は、最大ネットワーク通信ジッタ時間tjitter_max分だけ変化するので考慮する必要がある。なお、DC同期信号から次フレーム到着までの次フレーム到着時間tDC2NF(i)が一番短くなるのは、1番目のスレーブとなる。
Figure JPOXMLDOC01-appb-M000019
   …式(19)
 ここで、式(19)に式(6),(12)を代入して式(20)を得ることができる。
Figure JPOXMLDOC01-appb-M000020
   …式(20)
 したがって、式(18),(20)のグローバルシフトタイムtgshiftの各不等式を満たす設定サイクルタイムtcycleは、式(21)となる。
Figure JPOXMLDOC01-appb-M000021
   …式(21)
 ただし、グローバルシフトタイムtgshiftは、式(22)に示すように、設定サイクルタイムtcycleを超えないものとする。
Figure JPOXMLDOC01-appb-M000022
   …式(22)
 また、全フレームサイズは、式(23)に示すように、Ethernet(登録商標)の1フレームサイズの最大値fmaxである1514バイト(12112ビット)を超えないものとする。
Figure JPOXMLDOC01-appb-M000023
   …式(23)
 このように、設定サイクルタイムtcycleは、式(16),(21)の連立不等式を満たす解によって求められる。
 したがって、サイクルタイム算出部42は、入力受付部41にて受け付けられたネットワーク通信時間tnet、最大ネットワーク通信ジッタ時間tjitter_max、全路ネットワーク遅延時間thw、およびスレーブ内部処理時間tに基づいて、式(16),(21)の連立不等式を満たす解を求めることによって、設定サイクルタイムtcycleを算出する(サイクルタイム算出ステップ)。
 また、グローバルシフトタイムtgshiftは、式(20)に導出された範囲の設定サイクルタイムtcycleを代入して、式(18),(20),(22)の連立不等式を満たす解によって求められる。
 したがって、グローバルシフトタイム算出部43は、サイクルタイム算出部42にて算出された設定サイクルタイムtcycle、イベント同期時間tSM2DC(i)、および次フレーム到着時間tDC2NF(i)に基づいて、式(18),(20),(22)の連立不等式を満たす解を求めることによって、グローバルシフトタイムtgshiftを算出する(グローバルシフトタイム算出ステップ)。
<各種係数の推定>
 前述した式(5),(6)における各係数kPDI,lPDIは、ペイロードフレームサイズfを変化させて各処理時間を計測し、近似式を求めて推定する。
 具体的には、各係数kPDI,lPDIは、各スレーブ120(i)に通信処理の開始および終了を示すデジタル出力を制御する機能を実装し、各スレーブ120(i)からのデジタル出力を計測することによって、スレーブ内部処理時間tを計測して推定する。なお、設定サイクルタイムtcycleは,1000μsとした。
 図4は、ペイロードフレームサイズを変化させてPDI割り込み処理時間を計測した結果を示すグラフである。図4では、ペイロードフレームサイズfを横軸とし、PDI割り込み処理時間tPDIを縦軸としている。
 ペイロードフレームサイズfおよびPDI割り込み処理時間tPDIの関係は、図4に示すように、線形近似式に良くフィットしている。本実施形態では、kPDI=0.0654と推定し、lPDI=5.85と推定する。
 図5は、ペイロードフレームサイズを変化させてSYNC0割り込み処理時間を計測した結果を示すグラフである。図5では、ペイロードフレームサイズfを横軸とし、SYNC0割り込み処理時間tSYNC0を縦軸としている。
 ペイロードフレームサイズfおよびSYNC0割り込み処理時間tSYNC0の関係は、図5に示すように、線形近似式に良くフィットしている。本実施形態では、kSYNC0=0.132と推定し、lSYNC0=27.0と推定する。
 次に、前述した式(2),(3)における各係数khw,lhwは、主にスレーブ数nを変化させて全路ネットワーク遅延時間thwを計測し、近似式を求めて推定する。
 具体的には、各係数khw,lhwは、マスタ110と、最初のスレーブ120(1)との間に、プローブを挿入し、このプローブによって、マスタ110の送信部TXから送信されたフレームをプローブにて受信完了した時間と、このフレームが各スレーブ120(i)を経由して再びプローブにて受信完了した時間とを計測して推定する。なお、スレーブ数nは、1、2、3、5台に変化させる。
 なお、ペイロードフレームサイズfは、全て224ビットに設定した。そして、スレーブ数nを5台とした場合のみ、ペイロードフレームサイズfの変化による影響を計測するために、ペイロードフレームサイズfは、1008ビットにも設定して計測する。また、設定サイクルタイムtcycleによる影響を計測するために、設定サイクルタイムtcycleは、224ビットのペイロードフレームサイズfに対しては、1000、200、100μsに設定して計測し、1008ビットのペイロードフレームサイズfに対しては、300μsの設定サイクルタイムtcycleに設定して計測する。なお、各計測時間は、10sとした。
 以上のような計測を行った結果、各条件における遅延時間の標準偏差は、0.02~0.04μsとなり、充分に小さい値となった。また、全路ネットワーク遅延時間thwは、設定サイクルタイムtcycleやペイロードフレームサイズfの変化に関係なく同様の傾向を示した。このため、以下では、ペイロードフレームサイズfを224ビットとし、設定サイクルタイムtcycleを200μsとした場合の全路ネットワーク遅延時間thwの平均遅延時間の計測結果について説明する。
 図6は、スレーブ数を変化させて全路ネットワーク遅延時間の平均遅延時間を計測した結果を示すグラフである。図6では、スレーブ数nを横軸とし、全路ネットワーク遅延時間thwの平均遅延時間を縦軸としている。
 スレーブ数nおよび全路ネットワーク遅延時間thwの平均遅延時間の関係は、図6に示すように、線形近似式に良くフィットしている。本実施形態では、khw=2.91と推定し、lhw=-0.855と推定する。
 次に、最大ネットワーク通信ジッタ時間tjitter_maxは、マスタ110の送信部TXから送信されたフレームの送信時間をプローブで計測して求める。なお、最大ネットワーク通信ジッタ時間tjitter_maxは、全路ネットワーク遅延時間thwを計測した環境と同様の環境および条件にて計測する。
 本実施形態では、各条件において計測された最大ばらつき時間は、13.9μs~20.2μsとなった。このため、最大ネットワーク通信ジッタ時間tjitter_maxは、20.2μsとした。
 また、デジタル通信システムの通信速度Cは、100Base-Tの規格に基づき100bit/μs(100Mbps)となる。そして、ヘッダーおよび自動的に付加されるフレームサイズfhdsは、Ethernet(登録商標),EtherCAT(登録商標)の規格に基づき760bitとなる。
<CS導出モデル式の検証>
 CS導出モデル式の検証は、全路ネットワーク遅延時間thwを計測した環境と同様の環境にて実施した。
 なお、スレーブ120(i)の処理内容は、マスタ110の送信部TXから送信されたフレームの特定値を受信し、同じ値を載せたフレームを返信するものとした。
 設定サイクルタイムtcycle、およびグローバルシフトタイムtgshiftを適切に設定できている場合には、マスタ110は、2回目のサイクル通信にて特定値をスレーブ120(1)から受信することになる。例えば、グローバルシフトタイムtgshiftを適切に設定できていなかった場合には、スレーブ120(1)~120(n)内部の処理が間に合わず、マスタ110は、3回目以降のサイクル通信にて特定値をスレーブ120(1)から受信することになると想定される。
(検証条件A)
 検証条件Aは、スレーブ数n=5とし、ペイロードフレームサイズf=224bitとした。この検証条件Aにおいて、設定サイクルタイムtcycleは、式(16),(21)、および前述した計測に基づき推定された各種係数を適用することによって、式(24)となる。
Figure JPOXMLDOC01-appb-M000024
   …式(24)
 ここで、この設定サイクルタイムtcycleは、前述した計測に基づき推定された各種係数を適用して算出されているので、計測誤差や、近似による誤差を含んでいる。したがって、実際のデジタル通信システム100に適用する設定サイクルタイムtcycle_setは、式(25)に示すように、マージンを追加して設定した。
Figure JPOXMLDOC01-appb-M000025
   …式(25)
 また、グローバルシフトタイムtgshiftは、式(18),(20),(25)、および前述した計測に基づき推定された各種係数を適用することによって、式(26)となる。
Figure JPOXMLDOC01-appb-M000026
   …式(26)
 ここで、このグローバルシフトタイムtgshiftは、設定サイクルタイムtcycleと同様に、誤差を含んでいる。したがって、実際のデジタル通信システム100に適用するグローバルシフトタイムtgshiftは、79.5μs、86.5μs、113.5μsの3つの値を設定し、式(26)の範囲外の値として150μsの値を設定した。
(検証条件B)
 検証条件Bは、スレーブ数n=5とし、ペイロードフレームサイズf=1006bitとした。この検証条件Bにおいて、設定サイクルタイムtcycleは、式(16),(21)、および前述した計測に基づき推定された各種係数を適用することによって、式(27)となる。
Figure JPOXMLDOC01-appb-M000027
   …式(27)
 ここで、この設定サイクルタイムtcycleは、前述した計測に基づき推定された各種係数を適用して算出されているので、計測誤差や、近似による誤差を含んでいる。したがって、実際のデジタル通信システム100に適用する設定サイクルタイムtcycle_setは、式(28)に示すように、マージンを追加して設定した。
Figure JPOXMLDOC01-appb-M000028
   …式(28)
 また、グローバルシフトタイムtgshiftは、式(18),(20),(25)、および前述した計測に基づき推定された各種係数を適用することによって、式(29)となる。
Figure JPOXMLDOC01-appb-M000029
   …式(29)
 ここで、このグローバルシフトタイムtgshiftは、設定サイクルタイムtcycleと同様に、誤差を含んでいる。したがって、実際のデジタル通信システム100に適用するグローバルシフトタイムtgshiftは、161.5μsの値を設定し、式(29)の範囲外の値として205.5μsの値を設定した。
<CS導出モデル式の検証結果>
 検証条件A,Bでは、CS導出モデル式にて導出されたグローバルシフトタイムtgshiftの範囲内に設定したケースでは、マスタ110は、2回目のサイクル通信にて特定値をスレーブ120(1)から受信した。
 しかしながら、CS導出モデル式にて導出されたグローバルシフトタイムtgshiftの範囲外に設定したケースでは、マスタ110は、3回目のサイクル通信にて特定値をスレーブ120(1)から受信した。
 したがって、本実施形態におけるCS導出モデル式にて導出された設定サイクルタイムtcycleおよびグローバルシフトタイムtgshiftは、スレーブの処理内容に基づいて、適切に設定されていることを確認できた。
 このような本実施形態によれば、以下の作用・効果を奏することができる。
(1)デジタル通信システムの設計装置1は、マスタ110の送信部TXからフレームを送信した後、次のフレームを送信するまでの設定サイクルタイムtcycleを入力受付部41にて受け付けられたネットワーク通信時間tnet、最大ネットワーク通信ジッタ時間tjitter_max、全路ネットワーク遅延時間thw、およびスレーブ内部処理時間tに基づいて算出するサイクルタイム算出部42と、サイクルタイム算出部42にて算出された設定サイクルタイムtcycleを結果出力手段3に出力させる設計結果出力部44とを備えているので、スレーブ120(1)~120(n)の処理内容に基づく設定サイクルタイムtcycleを算出することができる。したがって、デジタル通信システム100の設計者は、結果出力手段3に出力された設定サイクルタイムtcycleをデジタル通信システム100に設定することによって、サイクルタイムを適切に設定することができる。
(2)デジタル通信システムの設計装置1は、複数のスレーブ120(1)~120(n)のDC同期信号を発生させる時間を設定するためのシフト時間であるグローバルシフトタイムtgshiftをサイクルタイム算出部42にて算出された設定サイクルタイムtcycle、イベント同期時間tSM2DC(i)、および次フレーム到着時間tDC2NF(i)に基づいて算出するグローバルシフトタイム算出部43と、グローバルシフトタイム算出部43にて算出されたグローバルシフトタイムtgshiftを結果出力手段3に更に出力させる設計結果出力部44とを備えているので、デジタル通信システム100の設計者は、結果出力手段3に出力されたグローバルシフトタイムtgshiftをデジタル通信システム100に設定することによって、グローバルシフトタイムtgshiftを適切に設定することができる。
〔実施形態の変形〕
 なお、本発明は、前記実施形態に限定されるものではなく、本発明の目的を達成できる範囲での変形、改良等は本発明に含まれるものである。
 例えば、前記実施形態では、デジタル通信システムの設計装置1の設計対象としてEtherCAT(登録商標)を適用したデジタル通信システム100を採用していた。
 これに対して、デジタル通信システムの設計装置1の設計対象となるデジタル通信システムは、送信部および受信部を有するマスタと、送信部および受信部を有する複数のスレーブとを備え、マスタの送信部から送信されたフレーム単位のデータを全てのスレーブを経由してマスタの受信部にて受信するように接続されたデジタル通信システムであれば、他のデジタル通信システムを採用してもよい。
 また、前記実施形態では、デジタル通信システムの設計装置1は、制御手段4を備え、制御手段4は、グローバルシフトタイム算出部43を備えていたが、グローバルシフトタイム算出部43を備えていなくてもよい。この場合には、入力受付部41は、イベント同期時間tSM2DC(i)、および次フレーム到着時間tDC2NF(i)の各種パラメータの入力を受け付けなくてもよく、設計結果出力部44は、グローバルシフトタイムtgshiftを結果出力手段3に出力させなくてもよい。
 また、前記実施形態では、サイクルタイム算出部42は、サイクルタイム算出ステップを実行し、グローバルシフトタイム算出部43は、グローバルシフトタイム算出ステップを実行していた。
 これに対して、設計者は、サイクルタイム算出ステップおよびグローバルシフトタイム算出ステップを自ら実行するようにしてもよい。
 また、前記実施形態では、各スレーブ120(1)~120(n)は、同一の処理を実行するものとし、この処理される通信量も同一とすることによって、全路ネットワーク遅延時間thwを線形一次方程式にて表現していた。
 これに対して、全路ネットワーク遅延時間thwは、各スレーブ120(1)~120(n)の遅延時間を個別に求め、これらの遅延時間を合計して求めるようにしてもよい。要するに、全路ネットワーク遅延時間thwは、マスタ110の送信部TXから送信されたフレームが各スレーブ120(1)~120(n)を経由してマスタ110の受信部RXに到達するまでの遅延時間とすればよい。
 また、前記実施形態では、各スレーブ120(1)~120(n)は、同一の処理を実行するものとし、スレーブ内部処理時間t(PDI割り込み処理時間tPDIおよびSYNC0割り込み処理時間tSYNC0)を同一としていた。
 これに対して、スレーブ内部処理時間tは、各スレーブ120(1)~120(n)の内部処理時間を個別に求めるようにしてもよい。要するに、スレーブ内部処理時間tは、スレーブ120(i)内部の処理に要する時間であればよい。
 以上のように、本発明は、デジタル通信システムの設計装置、およびその設計方法に好適に利用できる。
  1   デジタル通信システムの設計装置
  2   操作入力手段
  3   結果出力手段
  4   制御手段
  41  入力受付部
  42  サイクルタイム算出部
  43  グローバルシフトタイム算出部
  44  設計結果出力部

Claims (4)

  1.  送信部および受信部を有するマスタと、送信部および受信部を有する複数のスレーブとを備え、前記マスタの送信部から送信されたフレーム単位のデータを全ての前記スレーブを経由して前記マスタの受信部にて受信するように接続されたデジタル通信システムの設計装置であって、
     使用者の操作入力を受け付ける操作入力手段と、
     前記デジタル通信システムの設計結果を出力する結果出力手段と、
     前記操作入力手段および前記結果出力手段を制御するとともに、前記デジタル通信システムの設計を実行する制御手段とを備え、
     前記制御手段は、
     前記操作入力手段を介して使用者の操作入力を受け付けることによって、前記マスタの送信部から送信するフレームのデータ数を前記通信システムの通信速度にて除算して得られたネットワーク通信時間、前記マスタの送信部からフレームを送信する際のバラつき時間の最大値である最大ネットワーク通信ジッタ時間、前記マスタの送信部から送信されたフレームが前記マスタの受信部に到達するまでの遅延時間である全路ネットワーク遅延時間、および前記スレーブの受信部にて受信したフレームを前記スレーブにて処理する時間であるスレーブ内部処理時間の各種パラメータの入力を受け付ける入力受付部と、
     前記マスタの送信部からフレームを送信した後、次のフレームを送信するまでの設定サイクルタイムを前記入力受付部にて受け付けられた前記ネットワーク通信時間、前記最大ネットワーク通信ジッタ時間、前記全路ネットワーク遅延時間、および前記スレーブ内部処理時間に基づいて算出するサイクルタイム算出部と、
     前記サイクルタイム算出部にて算出された前記設定サイクルタイムを前記結果出力手段に出力させる設計結果出力部とを備えることを特徴とするデジタル通信システムの設計装置。
  2.  請求項1に記載されたデジタル通信システムの設計装置において、
     前記制御手段は、
     前記操作入力手段を介して使用者の操作入力を受け付けることによって、前記スレーブにてフレームの受信を完了すると発生するイベントから前記複数のスレーブの同期信号までのイベント同期時間、および前記複数のスレーブの同期信号から当該スレーブに次のフレームが到着するまでの次フレーム到着時間の各種パラメータの入力を更に受け付ける前記入力受付部と、
     前記複数のスレーブの同期信号を発生させる時間を設定するためのシフト時間であるグローバルシフトタイムを前記サイクルタイム算出部にて算出された前記設定サイクルタイム、前記イベント同期時間、および前記次フレーム到着時間に基づいて算出するグローバルシフトタイム算出部と、
     前記グローバルシフトタイム算出部にて算出された前記グローバルシフトタイムを前記結果出力手段に更に出力させる前記設計結果出力部とを備えることを特徴とするデジタル通信システムの設計装置。
  3.  送信部および受信部を有するマスタと、送信部および受信部を有する複数のスレーブとを備え、前記マスタの送信部から送信されたフレーム単位のデータを全ての前記スレーブを経由して前記マスタの受信部にて受信するように接続されたデジタル通信システムの設計方法であって、
     前記マスタの送信部からフレームを送信した後、次のフレームを送信するまでの設定サイクルタイムを前記マスタの送信部から送信するフレームのデータ数を前記通信システムの通信速度にて除算して得られたネットワーク通信時間、前記マスタの送信部からフレームを送信する際のバラつき時間の最大値である最大ネットワーク通信ジッタ時間、前記マスタの送信部から送信されたフレームが前記マスタの受信部に到達するまでの遅延時間である全路ネットワーク遅延時間、および前記スレーブの受信部にて受信したフレームを前記スレーブにて処理する時間であるスレーブ内部処理時間の各種パラメータに基づいて算出するサイクルタイム算出ステップを備えることを特徴とするデジタル通信システムの設計方法。
  4.  請求項3に記載されたデジタル通信システムの設計方法において、
     前記複数のスレーブの同期信号を発生させる時間を設定するためのシフト時間であるグローバルシフトタイムを前記スレーブにてフレームの受信を完了すると発生するイベントから前記複数のスレーブの同期信号までのイベント同期時間、および前記複数のスレーブの同期信号から当該スレーブに次のフレームが到着するまでの次フレーム到着時間の各種パラメータと、前記サイクルタイム算出ステップにて算出された前記設定サイクルタイムとに基づいて算出するグローバルシフトタイム算出ステップを備えることを特徴とするデジタル通信システムの設計方法。
PCT/JP2019/048375 2019-12-11 2019-12-11 デジタル通信システムの設計装置、およびその設計方法 WO2021117149A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2020520666A JP6716822B1 (ja) 2019-12-11 2019-12-11 デジタル通信システムの設計装置、およびその設計方法
PCT/JP2019/048375 WO2021117149A1 (ja) 2019-12-11 2019-12-11 デジタル通信システムの設計装置、およびその設計方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2019/048375 WO2021117149A1 (ja) 2019-12-11 2019-12-11 デジタル通信システムの設計装置、およびその設計方法

Publications (1)

Publication Number Publication Date
WO2021117149A1 true WO2021117149A1 (ja) 2021-06-17

Family

ID=71131637

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2019/048375 WO2021117149A1 (ja) 2019-12-11 2019-12-11 デジタル通信システムの設計装置、およびその設計方法

Country Status (2)

Country Link
JP (1) JP6716822B1 (ja)
WO (1) WO2021117149A1 (ja)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015128265A (ja) * 2013-12-27 2015-07-09 株式会社Ihi 通信システム及び通信方法
JP2017139723A (ja) * 2016-02-02 2017-08-10 富士電機株式会社 通信システム、ノード装置、およびプログラム

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015128265A (ja) * 2013-12-27 2015-07-09 株式会社Ihi 通信システム及び通信方法
JP2017139723A (ja) * 2016-02-02 2017-08-10 富士電機株式会社 通信システム、ノード装置、およびプログラム

Also Published As

Publication number Publication date
JPWO2021117149A1 (ja) 2021-12-09
JP6716822B1 (ja) 2020-07-01

Similar Documents

Publication Publication Date Title
JP4767178B2 (ja) ネットワークセグメント上で共通のセンスオブタイムを維持するためのシステムおよび方法
US7330777B2 (en) Robot coordinated control method and system
JP4884199B2 (ja) ネットワークの時間同期化方法
JP4931108B2 (ja) 高精度時刻同期処理装置およびそのプログラム,ならびにネットワーク混雑度警告装置およびそのプログラム
EP2381622A1 (en) Update of a cumulative residence time of a packet in a packet-switched communication network
KR102181029B1 (ko) 고속 센서 인터페이스를 위한 동기화 메커니즘
EP2342850A1 (en) A method for synchronizing clocks in a communication network
JP2007060400A (ja) 通信タイミング制御方法および通信タイミング制御システム
KR101685856B1 (ko) 보정 파라미터 산출 장치 및 시스템 및 보정 파라미터 산출 방법 및 컴퓨터 프로그램
EP2807785B1 (en) Packet-based timing measurement
US11252687B2 (en) Remote signal synchronization
JP2014096853A (ja) 時刻同期装置
KR20180099140A (ko) 클럭 동기화 장치 및 방법
WO2021117149A1 (ja) デジタル通信システムの設計装置、およびその設計方法
TWI551084B (zh) 距離計測裝置及距離計測方法
JP2014146877A (ja) 通信システム、及び時刻同期方法
US20170117980A1 (en) Time synchronization for network device
KR102019234B1 (ko) 차량 네트워크 시간 동기화 평가 방법
US11757614B2 (en) Accurate timestamp correction
KR102229559B1 (ko) 이더캣 네트워크 기반의 외부프로세서 시계 동기화 시스템 및 방법
JP6823701B1 (ja) クロック調整装置、方法、及びプログラム
JP6205930B2 (ja) 受信装置及び通信システム
JP7161505B2 (ja) 情報通信システム及び情報通信装置
JP2023172122A (ja) 通信システム、第1通信装置、第2通信装置、処理システム及び処理装置
CN115459897A (zh) 电力实时仿真中的步长同步校准方法、装置及相关设备

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2020520666

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19955494

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19955494

Country of ref document: EP

Kind code of ref document: A1