WO2020105099A1 - Communication system, communication device, communication method, and program - Google Patents

Communication system, communication device, communication method, and program

Info

Publication number
WO2020105099A1
WO2020105099A1 PCT/JP2018/042727 JP2018042727W WO2020105099A1 WO 2020105099 A1 WO2020105099 A1 WO 2020105099A1 JP 2018042727 W JP2018042727 W JP 2018042727W WO 2020105099 A1 WO2020105099 A1 WO 2020105099A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
data
cycle
communication device
target
Prior art date
Application number
PCT/JP2018/042727
Other languages
French (fr)
Japanese (ja)
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 DE112018008145.1T priority Critical patent/DE112018008145T5/en
Priority to PCT/JP2018/042727 priority patent/WO2020105099A1/en
Priority to US17/283,550 priority patent/US11528348B2/en
Priority to JP2019531359A priority patent/JP6570804B1/en
Priority to TW108119127A priority patent/TWI699105B/en
Publication of WO2020105099A1 publication Critical patent/WO2020105099A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0048Allocation of pilot signals, i.e. of signals known to the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/147Signalling methods or messages providing extensions to protocols defined by standardisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols

Definitions

  • the present invention relates to a communication system, a communication device, a communication method, and a program.
  • a system that controls multiple devices via a communication network is in operation. Such a system is required to allow a plurality of devices to cooperate efficiently. Therefore, there is a case where so-called cyclic communication is adopted in which common data is stored in the memory of each device. In the cyclic communication, communication for sharing the content of the area allocated to each device in the memory with other devices is periodically executed.
  • each device In cyclic communication, each device normally communicates with each cycle to synchronize the data stored in the memory with each successive cycle.
  • the cycle information for identifying the cycle relating to the data may be added to the data transmitted between the devices (for example, see Patent Document 1).
  • Patent Document 1 describes a cyclic communication system in which a plurality of terminals perform cyclic communication via a network.
  • a cyclic communication system when the cyclic communication data is divided into a plurality of data and transmitted, a counter value counted for each cycle of the cyclic communication is added to each data. Then, the terminal receiving the divided data refers to the counter value, so that the simultaneity with respect to the plurality of divided data is secured.
  • the present invention has been made in view of the above circumstances, and an object thereof is to improve the efficiency of a communication system.
  • the communication system of the present invention is a communication including a first communication device and a second communication device that performs communication for sharing storage data stored in a storage unit at each predetermined cycle.
  • the communication data transmitted by the first communication device includes identification information that identifies a cycle relating to the communication data from other cycles before and after the cycle, and the communication data is a target of communication for each cycle.
  • Target information indicating whether the communication data is an exception or an exception excluded from the target
  • the second communication device receives the communication data, and the communication data is targeted by the target information included in the received communication data. Is indicated and the cycle indicated by the identification information included in the communication data is different from the current cycle, the communication data is discarded, and the communication data is an exception due to the target information included in the communication data.
  • Communication data is processed.
  • the second communication device receives the communication data, indicates that the communication data is the target by the target information included in the received communication data, and uses the identification information included in the communication data by the target information.
  • the communication data is discarded, and when the target information included in the communication data indicates that the communication data is an exception, the communication data is processed. Therefore, the communication performance can be utilized while the devices having different communication performances are mixed, and the efficiency of the communication system can be improved.
  • FIG. 6 is a diagram showing a format of a frame transmitted in the master initialization process according to the embodiment.
  • Flowchart showing slave initialization processing according to the embodiment FIG. 3 is a diagram showing a format of a frame transmitted in the slave initialization process according to the embodiment.
  • 1 is a first diagram showing an example of communication processing according to an embodiment.
  • 2nd figure which shows an example of the communication processing which concerns on embodiment Flowchart showing master communication processing according to the embodiment The figure which shows the format of the frame transmitted in the master communication process which concerns on embodiment.
  • 3rd figure which shows an example of the communication processing which concerns on embodiment
  • Communication system 1000 corresponds to a part of FA system installed in a factory.
  • the communication system 1000 is formed by connecting devices constituting a FA system, such as a production system, an inspection system, a processing system, and other systems, via a communication path.
  • the communication system 1000 includes a master device 10 and slave devices 21, 22, 30 as communication devices.
  • the master device 10 and the slave devices 21, 22, 30 are, for example, a PLC (Programmable Logic Controller), a device that works with the PLC, or an IPC (Industrial Personal Computer).
  • the master device 10 and the slave devices 21, 22, 30 are connected to each other via a communication network 50.
  • the communication network 50 is, for example, a field network formed by a network cable.
  • the master device 10 corresponds to a master node of the communication system 1000, and the slave devices 21, 22, 30 correspond to slave nodes of the communication system 1000, respectively.
  • the master device 10 transmits a control instruction to the slave devices 21, 22, 30 via the communication network 50.
  • Each of the slave devices 21, 22 and 30 controls a device (not shown) connected to itself, according to a control instruction.
  • This device is, for example, a sensor device, an actuator, or a robot.
  • the master device 10 and the slave devices 21, 22, 30 each have a cyclic memory 41 in which common data is stored.
  • the cyclic memory 41 includes a storage area assigned to each communication device. Specifically, as shown in FIG. 2, the cyclic memory 41 has a storage area A10 assigned to the master device 10, a storage area A21 assigned to the slave device 21, and a storage assigned to the slave device 22. It has an area A22 and a storage area A30 assigned to the slave device 30. Each of these storage areas stores data updated by the assigned communication device. For example, the storage area A10 stores data updated by the master device 10, and the data stored in the storage area A10 is not updated by the slave devices 21, 22, 30.
  • the cyclic memory 41 is an example of a storage unit that stores data shared by the master device 10 and the slave devices 21, 22, 30. Hereinafter, the data stored in the cyclic memory 41 will be referred to as stored data.
  • the master device 10 and the slave devices 21, 22, 30 carry out cyclic communication for sharing the storage data stored in the cyclic memory 41 for each predetermined cycle.
  • FIG. 3 exemplifies such communication.
  • the slave device 21 is shown as a representative of the slave devices 21 and 22, and the slave device 22 is omitted.
  • each communication device transmits communication data for updating the contents of the cyclic memory 41.
  • the arrow 501 indicates that the master device 10 transmits communication data including data for updating the content of the storage area A10 to the slave devices 21 and 30.
  • the slave devices 21 and 30 also transmit communication data for updating the contents of the storage areas A21 and 30 to other communication devices in the cycle T1.
  • the contents of the cyclic memory 41 are shared by all the communication devices by the end time of the cycle T1.
  • the length of the cycles T1 to T3 is, for example, 1 microsecond or 1 millisecond.
  • the cycles T1, T2 and T3 may be cycles defined by managing time by connecting a plurality of communication devices to an NTP (Network Time Protocol) server, or the master device 10 transmits communication data. It may be a cycle that starts each time.
  • NTP Network Time Protocol
  • the slave devices 21 and 30 may determine the current cycle by measuring the time elapsed from the start time of the previous cycle. Further, in this case, if the slave devices 21 and 30 respond to the communication data transmitted from the master device 10 at a relatively high speed and transmit the communication data, the communication is completed within each cycle.
  • the slave device 30 is a device that communicates at a lower speed than the slave devices 21 and 22, and as shown by an arrow 503, transmission of communication data from the slave device 30 may not be completed within a cycle. ..
  • the communication device according to the present embodiment treats the communication data thus transmitted as a target of cyclic communication for which communication should be completed in each cycle according to the content of the communication data, and discards or discards it. It is used for updating the cyclic memory 41 as an exception to the click communication.
  • the slave devices 21 and 22 that communicate at a higher speed than the slave device 30 are, for example, devices that execute software processing with a high-performance processor. However, the slave devices 21 and 22 may be devices that are hardware-implemented with dedicated communication circuit chips.
  • the slave device 30 that communicates at a lower speed than the slave devices 21 and 22 is, for example, a device that executes software processing with a low-performance processor.
  • the master device 10 carries out the above-mentioned cyclic communication with the slave devices 21 and 22, and carries out exceptional communication with the slave device 30 in which communication data transmitted is treated as an exception to cyclic communication. However, when the master device 10 itself is a device that communicates at low speed, the master device 10 performs exceptional communication with all the slave devices 21, 22, and 30.
  • the master device 10 and the slave devices 21, 22, 30 are collectively referred to as the communication device 40.
  • the hardware configuration of the communication device 40 includes a processor 401, a main storage unit 402, an auxiliary storage unit 403, an input unit 404, an output unit 405, and a communication unit 406.
  • the main storage unit 402, the auxiliary storage unit 403, the input unit 404, the output unit 405, and the communication unit 406 are all connected to the processor 401 via the internal bus 407.
  • the processor 401 includes a CPU (Central Processing Unit).
  • the processor 401 realizes various functions of the communication device 40 by executing the program P1 stored in the auxiliary storage unit 403, and executes the processing described below.
  • the main storage unit 402 includes a RAM (Random Access Memory).
  • the program P1 is loaded from the auxiliary storage unit 403 into the main storage unit 402.
  • the main storage unit 402 is used as a work area of the processor 401.
  • the auxiliary storage unit 403 includes a nonvolatile memory represented by an EEPROM (Electrically Erasable Programmable Read-Only Memory) and an HDD (Hard Disk Drive).
  • the auxiliary storage unit 403 stores, in addition to the program P1, various data used for the processing of the processor 401.
  • the auxiliary storage unit 403 supplies data used by the processor 401 to the processor 401 according to an instruction from the processor 401, and stores the data supplied from the processor 401.
  • the input unit 404 includes an input device represented by an input key and a pointing device.
  • the input unit 404 acquires information input by the user of the communication device 40 and notifies the processor 401 of the acquired information.
  • the output unit 405 includes an output device represented by an LCD (Liquid Crystal Display) and a speaker.
  • the output unit 405 presents various kinds of information to the user according to the instruction of the processor 401.
  • the communication unit 406 includes a network interface circuit for communicating with an external device.
  • the communication unit 406 receives a signal from the outside and outputs the data indicated by this signal to the processor 401.
  • the communication unit 406 also transmits a signal indicating the data output from the processor 401 to an external device.
  • the communication device 40 exerts various functions by the cooperation of the hardware configurations shown in FIG.
  • the communication device 40 has, as its functions, a cyclic memory 41, a communication interface 42 that transmits communication data to the communication network 50, and receives communication data from the communication network 50.
  • a reception processing unit 43 that processes communication data received via the communication interface 42, and a transmission processing unit 44 that executes a process of transmitting communication data via the communication interface 42.
  • the cyclic memory 41 is mainly realized by the main storage unit 402. However, the invention is not limited to this, and the cyclic memory 41 may be realized by the auxiliary storage unit 403.
  • the communication interface 42 is realized by the communication unit 406.
  • the communication interface 42 sends the communication data received from the communication network 50 to the reception processing unit 43, and sends the communication data sent from the transmission processing unit 44 to the communication network 50.
  • the reception processing unit 43 is realized by the cooperation of the processor 401 and the main storage unit 402.
  • the reception processing unit 43 is an example of a processing unit that discards or processes the received communication data.
  • the reception processing unit 43 includes a reception data analysis unit 431 that analyzes received communication data, and a reception buffer 432 that temporarily stores the received communication data.
  • the reception data analysis unit 431 reads out the information included in the received communication data and determines whether or not to store the communication data in the reception buffer 432. Communication data determined to be stored by the reception data analysis unit 431 is stored in the reception buffer 432, and communication data determined not to be stored is discarded. Then, storage data is extracted from the communication data stored in the reception buffer 432, and the extracted storage data is stored in the cyclic memory 41.
  • the storage data extracted from the communication data by the reception data analysis unit 431 may be stored in the reception buffer 432.
  • the transmission processing unit 44 is realized by the cooperation of the processor 401 and the main storage unit 402.
  • the transmission processing unit 44 includes a transmission data generation unit 441 that generates communication data and a transmission buffer 442 that temporarily stores communication data to be transmitted.
  • the transmission data generation unit 441 determines whether the communication data to be transmitted is an object of cyclic communication or an exception, according to the analysis result by the reception data analysis unit 431, or by the transmission data generation unit 441 itself. decide. Then, the transmission data generation unit 441 generates communication data including the determined content and the storage data read from the cyclic memory 41, and stores the communication data in the transmission buffer 442.
  • the communication data stored in the transmission buffer 442 is transmitted to the communication network 50 via the communication interface 42 at the timing controlled by the transmission processing unit 44.
  • the transmission data generation unit 441 causes the transmission data generation unit 441 to store the communication data in the transmission buffer 442.
  • the communication data may be generated by reading the stored data.
  • the master device 10 executes the master process shown in FIG. 6, and the slave devices 21, 22, 30 execute the slave process shown in FIG. These processes are started when the communication device 40 is powered on and becomes communicable via the communication network 50.
  • the master device 10 executes a master initialization process (step S11).
  • the master initialization process is a process executed by the master device 10 in the initialization phase of the communication system 1000, and is a process of setting whether the master device 10 performs cyclic communication or exceptional communication.
  • the master device 10 executes a master communication process (step S12).
  • the master communication process is a process of communicating with the slave devices 21, 22, 30 every cycle according to the setting of the master initialization process. Details of these master initialization processing and master communication processing will be described later.
  • the slave process shown in FIG. 7 will be described by taking the case where the slave device 30 executes it as an example.
  • the slave process executed by the slave devices 21 and 22 is the same process as the slave device 30.
  • the slave device 30 executes a slave initialization process (step S21).
  • the slave initialization process is a process executed by the slave device 30 in the initialization phase of the communication system 1000, and is a process of setting whether the slave device 30 performs cyclic communication or exceptional communication.
  • the slave initialization process is executed in parallel with the master initialization process.
  • the slave device 30 performs a slave communication process (step S22).
  • the slave communication process is a process of communicating with the master device 10 and the slave devices 21 and 22 every cycle according to the setting of the slave initialization process. Details of these slave initialization processing and slave communication processing will be described later.
  • the master device 10 determines whether or not the device itself communicates according to the software process (step S111). Specifically, the transmission processing unit 44 of the master device 10 determines whether or not the communication for sharing the stored data with the other communication device 40 is accompanied by the software processing of the own device. Since software processing takes time to complete compared to hardware processing, it can be said that communication according to software processing is low-speed communication.
  • the master device 10 when the master device 10 includes the high-performance processor 401, high-speed communication can be performed even with software processing. Therefore, in addition to the software processing involved in communication, the master device 10 is predetermined.
  • the determination in step S111 may be affirmed when the condition that the processor 401 of the different type is provided is satisfied. Further, even if the communication involves software processing, the determination in step S111 may be denied when the processor 401 of a predetermined type is provided. Further, in addition to the software processing involved in the communication, the determination in step S111 may be affirmed when the condition that the calculation load of the software processing is heavy to some extent is satisfied. Whether or not the calculation load is heavy may be determined by determining whether or not the size of the source code exceeds the threshold value, or whether or not the time taken in the past execution exceeds the threshold value. You may judge by.
  • the master device 10 determines to communicate according to the software processing (step S111; Yes)
  • the master device 10 notifies all slave devices that it communicates at low speed, and instructs the slave device to perform exceptional communication with itself.
  • Yes step S112
  • the transmission processing unit 44 generates the frame 60 in the format illustrated in FIG.
  • the frame 60 includes a header portion 61, a data portion 62, and a footer portion 63.
  • the header portion 61 indicates a destination address 611 indicating the communication device 40 which is the transmission destination of the frame 60, a transmission source address 612 indicating the communication device 40 which is the transmission source of the frame 60, and the type of the frame 60.
  • frame type information 613 is a frame type information 613.
  • the data unit 62 also includes instruction information 621 indicating whether or not to instruct the slave devices 21, 22 and 30 to perform exceptional communication.
  • the instruction information 621 is, for example, a 1-bit flag. If the value of this flag is zero, execution of exception communication is not instructed, and each slave device may perform cyclic communication or exception communication according to the communication performance of its own device. If the value of the flag is 1, the master device 10 is notified that the speed is low, and all slave devices are instructed to perform exceptional communication.
  • step S112 the process executed by the master device 10 returns from the master initialization process to the master process shown in FIG.
  • the master device 10 determines whether the device 10 communicates at a lower speed than the other communication device 40 (step S111). S113). Specifically, the transmission processing unit 44 determines whether or not a parameter indicating that the master device 10 is a device that communicates at low speed is stored in the auxiliary storage unit 403 of the master device 10. This parameter may be preset when the master device 10 is shipped, or may be preset by the user. Further, the master device 10 may make a determination in step S113 by inquiring the communication performance of another communication device 40 and comparing it with the communication performance of the own device.
  • step S113 If the master device 10 determines that it communicates at a lower speed than the other communication device 40 (step S113; Yes), the master device 10 shifts the processing to step S112. On the other hand, when the master device 10 determines that the device is not a device that communicates at a lower speed than the other communication device 40 (step S113; No), the master device 10 provides device information regarding the slave devices 21, 22, and 30 to each slave device. Request (step S114). Specifically, the transmission processing unit 44 generates a frame for inquiring each of the slave devices 21, 22 and 30 as to whether to perform low speed communication or high speed communication. This frame may follow the format illustrated in FIG. When a frame of the format shown in FIG. 9 is generated, this frame will include instruction information 621 that does not instruct execution of exceptional communication. Then, the generated frame is transmitted to the slave devices 21, 22, 30 via the communication interface 42.
  • the master device 10 receives device information from the slave devices 21, 22, 30 (step S115). Specifically, the reception processing unit 43 receives the response from the slave devices 21, 22, 30 to the request in step S114 via the communication interface 42. Thereby, the master device 10 can determine whether the slave devices 21, 22, and 30 are low-speed communication devices or high-speed communication devices, respectively.
  • the master device 10 determines to perform exceptional communication with a slave device that communicates at a lower speed than the other communication device 40 and to perform cyclic communication with another slave device. Specifically, the reception processing unit 43 notifies the transmission processing unit 44 of the device information obtained in step S115. As a result, the transmission processing unit 44 generates a frame for cyclic communication with the slave devices 21 and 22 that communicate at high speed, and performs exceptional communication with the slave device 30 that communicates at low speed. Generate the frame of. After that, the process by the master device 10 returns from the master initialization process to the master process shown in FIG.
  • the slave device 30 determines whether or not there is an exception communication instruction from the master device 10. The determination is made (step S211). Specifically, the reception processing unit 43 of the slave device 30 determines whether or not the instruction of step S112 in FIG. 8 is received via the communication interface 42.
  • the slave device 30 determines to implement exceptional communication (step S212). Accordingly, the communication data generated by the transmission processing unit 44 of the slave device 30 includes information indicating that the communication data is treated as an exception of cyclic communication. After that, the processing executed by the slave device 30 returns from the slave initialization processing to the slave processing shown in FIG. 7.
  • the slave device 30 determines whether there is a device information request from the master device 10 (step S213). Specifically, the reception processing unit 43 of the slave device 30 determines whether or not the data indicating the request of step S114 in FIG. 8 is received via the communication interface.
  • step S213 When it is determined that there is no request for device information (step S213; No), the slave device 30 repeats the determination of step S213 and waits until there is a request for device information. On the other hand, if it is determined that there is a request for device information (step S213; Yes), the slave device 30 determines whether or not the slave device 30 communicates according to software processing (step S214). This determination is the same processing as the determination in step S111 in the master initialization processing shown in FIG.
  • the slave device 30 determines to communicate according to the software processing (step S214; Yes)
  • the slave device 30 determines to perform exception communication, and returns device information indicating that the device is low speed to the master device 10.
  • Step S215 the transmission processing unit 44 of the slave device 30 generates the frame 60 in the format illustrated in FIG. 11 and transmits the frame 60 via the communication interface 42.
  • the data portion 62 of this frame 60 includes device information 622 indicating that the slave device 30 itself communicates at a low speed.
  • the device information 622 is, for example, a 1-bit flag. If the value of this flag is zero, it indicates that the communication is low-speed, and if the value of this flag is 1, it indicates that the communication is high-speed.
  • the process executed by the slave device 30 returns from the slave initialization process to the slave process shown in FIG. 7.
  • step S214 determines that the device is not a device that communicates according to the software processing
  • step S216 determines whether the device communicates at a lower speed than the other communication device 40 (step S216). ). This determination is the same process as the determination in step S113 in the master initialization process shown in FIG.
  • step S216 If the slave device 30 determines that the device communicates at a lower speed than the other communication device 40 (step S216; Yes), the slave device 30 shifts the processing to step S215. On the other hand, when the slave device 30 determines that the device is not a device that communicates at a lower speed than the other communication device 40 (step S216; No), the slave device 30 determines to perform cyclic communication, and the device is high speed.
  • the device information indicating that is transmitted as a response to the master device 10 step S217). Specifically, the transmission processing unit 44 of the slave device 30 generates the frame 60 in the format shown in FIG. 11 and transmits the frame 60 via the communication interface 42.
  • the data portion 62 of the frame 60 includes device information 622 indicating that the slave device 30 itself communicates at high speed. After that, the processing executed by the slave device 30 returns from the slave initialization processing to the slave processing shown in FIG. 7.
  • the slave device 30 that communicates at low speed and the master device 10 that is the main communication partner perform exceptional communication, and the other slave devices 21 and 22 and the master device 10 perform cyclic communication.
  • the master device 10 communicates at a low speed
  • the master device 10 and all the slave devices 21, 22, 30 perform exceptional communication.
  • the communication device 40 that implements exceptional communication is The communication device 40 that transmits the communication data including the information indicating that the communication is to be treated as the target and transmits the communication data that includes the information indicating that the communication is to be treated as the target of the cyclic communication.
  • the master device 10 when the master device 10 is a device that communicates at a low speed, as shown in FIG. 12, the master device 10 and all slave devices perform exceptional communication. Specifically, as shown in FIG. 12, the master device 10 confirms that the device itself is a device that communicates at low speed (step S31). This step S31 corresponds to the affirmative determination in step S111 and the positive determination in step S113 in the master initialization processing shown in FIG.
  • step S32 the master device 10 notifies the slave devices 21, 22, 30 that the master device 10 itself communicates at a low speed. Note that, in FIG. 12, only the slave device 21 is shown as a representative of the slave devices 21, 22, and 30. This step S32 corresponds to step S112 in the master initialization process shown in FIG.
  • step S33 corresponds to step S212 in the slave initialization process shown in FIG.
  • the slave device 21 transmits / receives communication data including target information indicating an exception of cyclic communication to / from the master device 10 in the communication phase of the communication system 1000. Details of this communication phase will be described later.
  • step S35 corresponds to the affirmative determination in step S214 and the affirmative determination in step S216 in the slave initialization process shown in FIG.
  • step S36 corresponds to step S215 in the slave initialization process shown in FIG.
  • the master device 10 receives the notification in step S36 and determines to perform exceptional communication with the slave device 30 (step S37).
  • This step S37 corresponds to step S116 in the master initialization process shown in FIG.
  • the master device 10 transmits / receives communication data including target information indicating an exception of cyclic communication to / from the slave device 30 in the communication phase of the communication system 1000.
  • the master device 10 indicates, in the communication data to be transmitted, identification information indicating the cycle relating to this communication data, and whether this communication data is a target of cyclic communication or an exception.
  • the target information and the target information are transmitted to the slave devices 21, 22, and 30 (step S121).
  • the transmission processing unit 44 of the master device 10 generates a frame 60 in the format illustrated in FIG. 15 and transmits the frame 60 via the communication interface 42.
  • the header portion 61 of the frame 60 includes, in addition to the destination address 611, the source address 612, and the frame type information 613, identification information 614 for identifying the cycle from other cycles before and after the cycle, and the frame 60 cyclically.
  • the target information 615 indicating whether the target of communication is an exception excluded from the target of cyclic communication.
  • the data portion 62 of the frame 60 stores storage data for updating the cyclic memory 41.
  • the identification information 614 is, for example, 7-bit data, and the cycle indicated by the identification information 614 is, for example, a cycle number including the time when the master device 10 transmits the frame 60. This number is a serial number and is incremented each time the cycle is updated.
  • the cycle indicated by the identification information 614 is not limited to this, and may be changed arbitrarily.
  • the target information 615 is, for example, a 1-bit flag, and if the value of this flag is zero, it indicates that the frame 60 is the target of cyclic communication. If the value of this flag is 1, the frame 60 is cyclic. It indicates that this is an exception to click communication and is the target of exception communication.
  • the master device 10 determines whether communication data has been received (step S122). Specifically, the reception processing unit 43 determines whether communication data has been received from another communication device 40 via the communication interface 42.
  • step S122 When it is determined that communication data has not been received (step S122; No), the master device 10 shifts the processing to step S128. On the other hand, if the master device 10 determines that the communication data is received (step S122; Yes), the target information included in the received communication data indicates that the communication data is the target of the cyclic communication. It is determined whether or not (step S123).
  • the master device 10 determines that the received communication data is the target of the exceptional communication, and the communication data Is processed (step S124). Specifically, the master device 10 processes the received communication data regardless of the cycle indicated by the identification information. Specifically, the reception processing unit 43 stores the communication data in the reception buffer 432. As a result, when the target information included in the communication data indicates that the communication data is an exception to cyclic communication, the reception processing unit 43 processes the communication data.
  • the master device 10 acquires the current cycle managed by the master device 10 (step S125). Specifically, the reception processing unit 43 reads the data indicating the current cycle stored in the main storage unit 402.
  • the master device 10 determines whether the cycle indicated by the identification information included in the received communication data is equal to the current cycle acquired in step S125 (step S126). When it is determined that the cycles are equal (step S126; Yes), the master device 10 shifts the processing to step S124. On the other hand, when it is determined that the cycles are not equal (step S126; No), the master device 10 discards the received communication data (step S127). Accordingly, when the communication data that is the target of the cyclic communication is received in a cycle different from the cycle indicated by the communication data, the communication data is discarded.
  • the processing unit 43 discards the communication data.
  • step S124 After the end of step S124 or step S127, or if the determination in step S122 is negative, the master device 10 determines whether or not the current time is a time after which the cycle update timing has passed (step S128).
  • step S128; No When it is determined that the current time has not passed the update timing (step S128; No), the master device 10 executes the processing of step S122 and thereafter. On the other hand, when it is determined that the current time has passed the update timing (step S128; Yes), the master device 10 updates the cycle (step S129). Specifically, the master device 10 updates the current cycle managed by itself. Thereafter, the processing by the master device 10 returns from the master communication processing shown in FIG. 14 to the master processing shown in FIG.
  • the slave communication process shown in FIG. 7 is executed in parallel with the above master communication process.
  • the slave communication process is the same process as the master communication process shown in FIG.
  • the data transmission corresponding to step S121 may be executed at the timing when the cycle managed by the slave device 30 itself is updated, or the data reception from the master device 10 is used as a trigger. It may be executed.
  • the communication data determined to be received is the communication data from the master device 10 and the communication data from another slave device.
  • one of the master device 10 and the slave devices 21, 22, 30 is the first communication device for transmitting communication data, and the other is the second communication device for receiving communication data.
  • the second communication device indicates that the communication data is the target of the cyclic communication by the target information included in the received communication data, and the cycle indicated by the identification information included in the communication data is the current one. If it is different from the cycle, the communication data is discarded.
  • the second communication device processes the communication data when the target information included in the communication data indicates that the communication data is an exception to cyclic communication. Therefore, the communication performance can be utilized while the devices having different communication performances are mixed, and the efficiency of the communication system can be improved.
  • the communication device 40 which is the master device 10 or the slave devices 21, 22, and 30, determines whether the communication data is an object of cyclic communication or an exception, and a device that transmits or receives the communication data has a low speed. Change according to whether or not to communicate with. Accordingly, in a case where the master device 10 and the slave device 21 communicate at high speed and the slave device 30 communicates at low speed, cyclic communication is performed between the master device 10 and the slave device 21, and the master device 10 and the slave device 21 communicate with each other. Exception communication is carried out between 10 and the slave device 30.
  • FIG. 16 illustrates the data transmission in such a case together with the contents of the identification information 614 and the target information 615.
  • the data transmitted from the slave device 30 in the cycle T2 may be received by the master device 10 in the cycle T3.
  • the master device 10 can receive and process such data without discarding it. As a result, it is possible to perform communication utilizing the communication performance while mixing the communication devices 40 having different communication performances.
  • FIG. 17 shows a comparative example in which all communication devices 40 carry out cyclic communication.
  • the data transmitted from the slave device 30 communicating at low speed in the cycle T2 is discarded when received by the master device 10 in the cycle T3, and as a result, the information from the slave device 30 is transmitted to the master device 10. It is not transmitted and the cyclic memory 41 is not shared between the master device 10 and the slave device 30. Therefore, there is a possibility that an inconvenience may occur in the operation of the FA system including the communication system 1000.
  • the master device 10 receives and processes the data from the slave device 30, so that it is possible to avoid the above situation.
  • the target information indicating whether or not the communication data is the target of the cyclic communication is stored in the header part of the frame which is the communication data. Therefore, the communication device 40 that has received the communication data can determine whether or not the communication data is the target of the cyclic communication just by checking the header part even before checking the data part. it can.
  • the first communication device transmitting communication data transmits communication data including target information indicating an exception of cyclic communication, when the first communication device communicates according to software processing. Therefore, the communication data transmitted from the first communication device that communicates at a low speed is targeted for the exceptional communication, and appropriate communication data can be targeted for the exceptional communication.
  • the first communication device transmitting communication data transmits communication data including target information indicating an exception of cyclic communication when communicating at a lower speed than other communication devices. Therefore, the communication data transmitted from the first communication device that communicates at a low speed is targeted for the exceptional communication, and appropriate communication data can be targeted for the exceptional communication.
  • the first communication device transmitting the communication data transmits the communication data including the target information indicating the exception of the cyclic communication in response to the notification from the second communication device which is the transmission destination of the communication data. ..
  • the slave devices 21, 22, 30 receive the notification of step S112 in FIG. 8 and carry out exceptional communication.
  • the master device 10 receives the device information as notification of the low speed of the slave devices 21, 22, 30 and executes the exceptional communication as shown in step S115 in FIG.
  • the communication partner of the communication device 40 which has a low speed, can perform exceptional communication with the communication device 40.
  • a device that communicates at low speed may not be able to control the timing of transmission, and further may not be able to receive and process all communication data transmitted at high speed. Therefore, it is desirable that the communication partner of the communication device 40, which has a low speed, also perform the exceptional communication.
  • the number of communication devices 40 is not limited to the number illustrated in FIG. 1, and may be changed arbitrarily.
  • the first communication device may receive a notification that the second communication device will communicate according to software processing, and may carry out exceptional communication in response to this notification.
  • the second communication device may notify the first communication device that it communicates according to software communication.
  • Such notification is realized by, for example, a pattern represented by a code of 2 bits or more.
  • the slave devices 21, 22, 30 transmit the device information and determine whether the self device performs cyclic communication or exceptional communication.
  • the master device 10 instructs each slave device to perform either cyclic communication or exception communication according to the collected device information, and each slave device Cyclic communication or exception communication may be performed according to this instruction.
  • the master device 10 indicates that one slave device communicates at a low speed by the collected device information
  • the master device 10 sends target information indicating that the slave device is an exception of cyclic communication to the one slave device. You may instruct to transmit the communication data containing. This instruction may be provided by a frame 60 of the type shown in FIG.
  • FIG. 18 an example in which the master device 10 and the slave device 30 do not perform exceptional communication with each other and the master device 10 transmits communication data that is the target of cyclic communication to all slave devices About.
  • the above embodiment has described the example in which the pair of communication devices that perform exceptional communication with each other are determined.
  • the first communication device that communicates at a low speed transmits the communication data that is the target of the exceptional communication
  • the second communication device that receives this communication data is the exception of the cyclic communication. Communication data may be handled and the communication data to be subjected to cyclic communication may be transmitted to the first communication device.
  • the communication data that is the target of the exceptional communication may not include the identification information 614.
  • the communication device 40 that receives this communication data may process the communication data regardless of the presence or absence of the identification information 614.
  • the function of the communication device 40 can be realized by dedicated hardware or a normal computer system.
  • the program P1 executed by the processor 401 is stored in a computer-readable non-transitory recording medium and distributed, and the program P1 is installed in the computer to configure an apparatus that executes the above-described processing. be able to.
  • a recording medium for example, a flexible disk, a CD-ROM (Compact Disc Read-Only Memory), a DVD (Digital Versatile Disc), and an MO (Magneto-Optical Disc) can be considered.
  • the program P1 may be stored in a disk device included in a server device on a communication network typified by the Internet, and, for example, may be superimposed on a carrier wave and downloaded to a computer.
  • the above processing can also be achieved by starting and executing the program P1 while transferring it through the communication network.
  • processing can be achieved by executing all or a part of the program P1 on the server device and executing the program while the computer transmits and receives information regarding the processing via the communication network.
  • OS Operating System
  • the means for realizing the function of the communication device 40 is not limited to software, and a part or all thereof may be realized by dedicated hardware including a circuit.
  • the present invention is suitable for operating a plurality of communication devices having different communication performances.

Abstract

A communication system (1000) comprises a master device (10) and a slave device (30) which perform, at predetermined periods, communication for sharing stored data stored in a cyclic memory (41). Communication data transmitted by the master device (10) includes: identifying information identifying a period relating to the communication data from other periods before and after the period relating to the communication data; and relevance information indicating whether the communication data is relevant for the periodical communication or irrelevant and should be excluded from the periodical communication. The slave device (30) discards the communication data if the relevance information included in the communicated and received communication data indicates that the communication data is relevant and if the period indicated by the identifying information included in the communication data differs from the period of the current period. The slave device (30) processes the communication data if the relevance information included in the communication data indicates that the communication data is irrelevant and if the period indicated by the identifying information included in the communication data differs from the current period.

Description

通信システム、通信装置、通信方法及びプログラムCommunication system, communication device, communication method, and program
 本発明は、通信システム、通信装置、通信方法及びプログラムに関する。 The present invention relates to a communication system, a communication device, a communication method, and a program.
 工場に代表される施設では、通信ネットワークを介して複数の機器を制御するシステムが運用されている。このようなシステムには、複数の機器を効率的に協働させることが求められる。そこで、各機器が有するメモリに共通のデータが格納されるような、いわゆるサイクリック通信が採用されるケースがある。サイクリック通信では、メモリのうち各機器に割り当てられた領域の内容を他の機器と共有するための通信が周期的に実行される。 At facilities represented by factories, a system that controls multiple devices via a communication network is in operation. Such a system is required to allow a plurality of devices to cooperate efficiently. Therefore, there is a case where so-called cyclic communication is adopted in which common data is stored in the memory of each device. In the cyclic communication, communication for sharing the content of the area allocated to each device in the memory with other devices is periodically executed.
 サイクリック通信では、通常、周期毎に各機器が通信することで、連続する周期の各々でメモリに記憶されるデータが同期される。ここで、機器間で伝送されるデータに、当該データに関する周期を識別するための周期情報が付与されることがある(例えば、特許文献1を参照)。 In cyclic communication, each device normally communicates with each cycle to synchronize the data stored in the memory with each successive cycle. Here, the cycle information for identifying the cycle relating to the data may be added to the data transmitted between the devices (for example, see Patent Document 1).
 特許文献1には、複数の端末がネットワークを介してサイクリック通信を行うサイクリック通信システムについて記載されている。このサイクリック通信システムでは、サイクリック通信データを複数のデータに分割して送信する場合に、サイクリック通信の周期ごとにカウントされるカウンタ値が各データに付加される。そして、分割されたデータを受信した端末がカウンタ値を参照することで、分割された複数のデータについての同時性が確保される。 Patent Document 1 describes a cyclic communication system in which a plurality of terminals perform cyclic communication via a network. In this cyclic communication system, when the cyclic communication data is divided into a plurality of data and transmitted, a counter value counted for each cycle of the cyclic communication is added to each data. Then, the terminal receiving the divided data refers to the counter value, so that the simultaneity with respect to the plurality of divided data is secured.
特開2015-82271号公報JP, 2005-82271, A
 サイクリック通信では、データを同期させるための通信を各周期内で行う必要がある。特許文献1の技術に例示されるように周期情報を含むデータが伝送される場合には、当該データを受信した機器が、周期情報により示される周期を、内部で管理している現在の周期と照合することが考えられる。そして、この機器は、周期が一致する場合には受信したデータを有効と判断して処理し、周期が異なる場合には受信したデータを無効と判断して破棄すればよい。これにより、各周期で伝送されるべきデータとして送信側と受信側とで共通のデータを管理することができる。 In cyclic communication, it is necessary to perform communication for synchronizing data within each cycle. When data including cycle information is transmitted as exemplified in the technique of Patent Document 1, the device receiving the data sets the cycle indicated by the cycle information as the current cycle internally managed. It is possible to collate. Then, when the cycles match, the device determines that the received data is valid and processes it, and when the cycles are different, it determines that the received data is invalid and discards it. As a result, common data can be managed on the transmitting side and the receiving side as data to be transmitted in each cycle.
 しかしながら、高速に通信する第1の機器と低速に通信する第2の機器とが混在するような場合には、第2の機器について各周期での通信が完了しないおそれがある。具体的には、一の周期で伝送されるべきデータが、当該一の周期の期間内に受信されずに次の周期で受信された場合には、データが処理対象とされず、その結果としてメモリに格納すべきデータが格納されないおそれがある。そこで、各周期で通信を完了させるために、高速に通信する機器の速度を落として稼働させるか、或いは低速に通信する機器を高性能な機器に置き換える必要がある。このため、通信性能が異なる機器を混在させたままその通信性能を活用することができず、通信システムの効率を向上させる余地があった。 However, when the first device that communicates at high speed and the second device that communicates at low speed coexist, there is a possibility that communication in each cycle of the second device may not be completed. Specifically, when the data to be transmitted in one cycle is not received within the period of the one cycle and is received in the next cycle, the data is not processed, and as a result, Data that should be stored in memory may not be stored. Therefore, in order to complete the communication in each cycle, it is necessary to reduce the speed of the device that communicates at high speed to operate, or replace the device that communicates at low speed with a high-performance device. Therefore, it is not possible to utilize the communication performance while mixing the devices having different communication performances, and there is a room for improving the efficiency of the communication system.
 本発明は、上記の事情に鑑みてなされたものであり、通信システムの効率を向上させることを目的とする。 The present invention has been made in view of the above circumstances, and an object thereof is to improve the efficiency of a communication system.
 上記目的を達成するため、本発明の通信システムは、記憶手段に記憶される記憶データを共有するための通信を予め定められた周期毎に実施する第1通信装置及び第2通信装置を有する通信システムであって、第1通信装置によって送信される通信データは、該通信データに関する周期を該周期の前後の他の周期と識別して示す識別情報と、該通信データが周期毎の通信の対象であるか又は該対象から除外される例外であるかを示す対象情報と、を含み、第2通信装置は、通信データを受信して、受信した通信データに含まれる対象情報により通信データが対象であることが示され、かつ該通信データに含まれる識別情報により示される周期が現在の周期とは異なる場合に、通信データを破棄し、通信データに含まれる対象情報により通信データが例外であることが示される場合に、通信データを処理する。 In order to achieve the above object, the communication system of the present invention is a communication including a first communication device and a second communication device that performs communication for sharing storage data stored in a storage unit at each predetermined cycle. In the system, the communication data transmitted by the first communication device includes identification information that identifies a cycle relating to the communication data from other cycles before and after the cycle, and the communication data is a target of communication for each cycle. Target information indicating whether the communication data is an exception or an exception excluded from the target, the second communication device receives the communication data, and the communication data is targeted by the target information included in the received communication data. Is indicated and the cycle indicated by the identification information included in the communication data is different from the current cycle, the communication data is discarded, and the communication data is an exception due to the target information included in the communication data. Communication data is processed.
 本発明によれば、第2通信装置は、通信データを受信して、受信した通信データに含まれる対象情報により通信データが対象であることが示され、かつ該通信データに含まれる識別情報により示される周期が現在の周期とは異なる場合に、通信データを破棄し、通信データに含まれる対象情報により通信データが例外であることが示される場合に、通信データを処理する。このため、通信性能が異なる機器を混在させたままその通信性能を活用することができ、通信システムの効率を向上させることができる。 According to the present invention, the second communication device receives the communication data, indicates that the communication data is the target by the target information included in the received communication data, and uses the identification information included in the communication data by the target information. When the indicated cycle is different from the current cycle, the communication data is discarded, and when the target information included in the communication data indicates that the communication data is an exception, the communication data is processed. Therefore, the communication performance can be utilized while the devices having different communication performances are mixed, and the efficiency of the communication system can be improved.
本発明の実施の形態に係る通信システムの構成を示す図The figure which shows the structure of the communication system which concerns on embodiment of this invention. 実施の形態に係るサイクリックメモリを示す図The figure which shows the cyclic memory which concerns on embodiment. 実施の形態に係る通信装置による周期毎の通信を示す図The figure which shows the communication for every period by the communication apparatus which concerns on embodiment. 実施の形態に係る通信装置のハードウェア構成を示す図The figure which shows the hardware constitutions of the communication apparatus which concerns on embodiment. 実施の形態に係る通信装置の機能的な構成を示す図The figure which shows the functional structure of the communication apparatus which concerns on embodiment. 実施の形態に係るマスタ処理を示すフローチャートFlowchart showing master processing according to an embodiment 実施の形態に係るスレーブ処理を示すフローチャートFlowchart showing slave processing according to the embodiment 実施の形態に係るマスタ初期化処理を示すフローチャートFlowchart showing master initialization processing according to the embodiment 実施の形態に係るマスタ初期化処理において送信されるフレームの形式を示す図FIG. 6 is a diagram showing a format of a frame transmitted in the master initialization process according to the embodiment. 実施の形態に係るスレーブ初期化処理を示すフローチャートFlowchart showing slave initialization processing according to the embodiment 実施の形態に係るスレーブ初期化処理において送信されるフレームの形式を示す図FIG. 3 is a diagram showing a format of a frame transmitted in the slave initialization process according to the embodiment. 実施の形態に係る通信処理の一例を示す第1の図FIG. 1 is a first diagram showing an example of communication processing according to an embodiment. 実施の形態に係る通信処理の一例を示す第2の図2nd figure which shows an example of the communication processing which concerns on embodiment 実施の形態に係るマスタ通信処理を示すフローチャートFlowchart showing master communication processing according to the embodiment 実施の形態に係るマスタ通信処理において送信されるフレームの形式を示す図The figure which shows the format of the frame transmitted in the master communication process which concerns on embodiment. 実施の形態に係る通信処理の一例を示す第3の図3rd figure which shows an example of the communication processing which concerns on embodiment 比較例に係る通信処理の一例を示す図The figure which shows an example of the communication processing which concerns on a comparative example. 変形例に係る通信処理の一例を示す図The figure which shows an example of the communication processing which concerns on a modification.
 以下、本発明の実施の形態に係る通信システム1000について、図面を参照しつつ詳細に説明する。 Hereinafter, a communication system 1000 according to an embodiment of the present invention will be described in detail with reference to the drawings.
 実施の形態.
 本実施の形態に係る通信システム1000は、工場に設置されるFAシステムの一部に相当する。通信システム1000は、FAシステムとしての生産システム、検査システム、加工システム、その他のシステムを構成する機器同士を、通信路を介して接続することで形成される。図1に示されるように、通信システム1000は、通信装置として、マスタ装置10及びスレーブ装置21,22,30を有する。
Embodiment.
Communication system 1000 according to the present embodiment corresponds to a part of FA system installed in a factory. The communication system 1000 is formed by connecting devices constituting a FA system, such as a production system, an inspection system, a processing system, and other systems, via a communication path. As shown in FIG. 1, the communication system 1000 includes a master device 10 and slave devices 21, 22, 30 as communication devices.
 マスタ装置10及びスレーブ装置21,22,30は、例えば、PLC(Programmable Logic Controller)、PLCと連動するデバイス、又はIPC(Industrial Personal Computer)である。マスタ装置10及びスレーブ装置21,22,30は、通信ネットワーク50を介して互いに接続される。通信ネットワーク50は、例えば、ネットワークケーブルにより形成されるフィールドネットワークである。 The master device 10 and the slave devices 21, 22, 30 are, for example, a PLC (Programmable Logic Controller), a device that works with the PLC, or an IPC (Industrial Personal Computer). The master device 10 and the slave devices 21, 22, 30 are connected to each other via a communication network 50. The communication network 50 is, for example, a field network formed by a network cable.
 マスタ装置10は、通信システム1000のマスターノードに相当し、スレーブ装置21,22,30はそれぞれ、通信システム1000のスレーブノードに相当する。マスタ装置10は、スレーブ装置21,22,30に対する制御指示を、通信ネットワーク50を介して送信する。スレーブ装置21,22,30はそれぞれ、制御指示に従って、自機に接続された不図示の機器を制御する。この機器は、例えば、センサ装置、アクチュエータ又はロボットである。 The master device 10 corresponds to a master node of the communication system 1000, and the slave devices 21, 22, 30 correspond to slave nodes of the communication system 1000, respectively. The master device 10 transmits a control instruction to the slave devices 21, 22, 30 via the communication network 50. Each of the slave devices 21, 22 and 30 controls a device (not shown) connected to itself, according to a control instruction. This device is, for example, a sensor device, an actuator, or a robot.
 マスタ装置10及びスレーブ装置21,22,30はそれぞれ、共通のデータが格納されるサイクリックメモリ41を有する。サイクリックメモリ41は、通信装置それぞれに割り当てられた記憶領域を含む。詳細には、サイクリックメモリ41は、図2に示されるように、マスタ装置10に割り当てられた記憶領域A10と、スレーブ装置21に割り当てられた記憶領域A21と、スレーブ装置22に割り当てられた記憶領域A22と、スレーブ装置30に割り当てられた記憶領域A30と、を有する。これらの記憶領域にはそれぞれ、割り当てられた通信装置によって更新されるデータが格納される。例えば、記憶領域A10には、マスタ装置10によって更新されるデータが格納され、記憶領域A10に格納されたデータは、スレーブ装置21,22,30によって更新されることはない。なお、サイクリックメモリ41は、マスタ装置10及びスレーブ装置21,22,30によって共有されるデータを記憶する記憶手段の一例である。以下では、サイクリックメモリ41に記憶されるデータを記憶データと表記する。 The master device 10 and the slave devices 21, 22, 30 each have a cyclic memory 41 in which common data is stored. The cyclic memory 41 includes a storage area assigned to each communication device. Specifically, as shown in FIG. 2, the cyclic memory 41 has a storage area A10 assigned to the master device 10, a storage area A21 assigned to the slave device 21, and a storage assigned to the slave device 22. It has an area A22 and a storage area A30 assigned to the slave device 30. Each of these storage areas stores data updated by the assigned communication device. For example, the storage area A10 stores data updated by the master device 10, and the data stored in the storage area A10 is not updated by the slave devices 21, 22, 30. The cyclic memory 41 is an example of a storage unit that stores data shared by the master device 10 and the slave devices 21, 22, 30. Hereinafter, the data stored in the cyclic memory 41 will be referred to as stored data.
 マスタ装置10及びスレーブ装置21,22,30は、予め定められた周期毎にサイクリックメモリ41に記憶される記憶データを共有するためのサイクリック通信を実施する。図3には、このような通信について例示されている。ただし、図3では、スレーブ装置21,22を代表してスレーブ装置21が示されており、スレーブ装置22が省略されている。 The master device 10 and the slave devices 21, 22, 30 carry out cyclic communication for sharing the storage data stored in the cyclic memory 41 for each predetermined cycle. FIG. 3 exemplifies such communication. However, in FIG. 3, the slave device 21 is shown as a representative of the slave devices 21 and 22, and the slave device 22 is omitted.
 図3に示されるように、周期T1において、各通信装置が、サイクリックメモリ41の内容を更新するための通信データを送信する。例えば、マスタ装置10が、記憶領域A10の内容を更新するためのデータを含む通信データをスレーブ装置21,30に送信することが、矢印501により示されている。同様に、スレーブ装置21,30もそれぞれ、周期T1において、記憶領域A21,30の内容を更新するための通信データを他の通信装置に送信する。そして、周期T1の終了時刻までにサイクリックメモリ41の内容がすべての通信装置で共有される。 As shown in FIG. 3, in a cycle T1, each communication device transmits communication data for updating the contents of the cyclic memory 41. For example, the arrow 501 indicates that the master device 10 transmits communication data including data for updating the content of the storage area A10 to the slave devices 21 and 30. Similarly, the slave devices 21 and 30 also transmit communication data for updating the contents of the storage areas A21 and 30 to other communication devices in the cycle T1. The contents of the cyclic memory 41 are shared by all the communication devices by the end time of the cycle T1.
 周期T1と同様の通信が、他の周期T2,T3でも実施される。周期T1~T3の長さは、例えば、1マイクロ秒間又は1ミリ秒間である。周期T1,T2,T3は、複数の通信装置がNTP(Network Time Protocol)サーバに接続されて時刻を管理することにより規定される周期であってもよいし、マスタ装置10が通信データを送信するたびに開始する周期であってもよい。周期T1,T2,T3が、マスタ装置10からの通信データの送信により開始する場合には、周期T1,T2,T3の長さが異なっていてもよい。また、このような場合においては、スレーブ装置21,30は、前回の周期の開始時刻から経過した時間を計測することで現在の周期を判断してもよい。また、この場合には、スレーブ装置21,30がマスタ装置10から送信された通信データをトリガーとしてある程度高速に応答して通信データを送信すれば、各周期内で通信が完了する。 Communication similar to cycle T1 is performed in other cycles T2 and T3. The length of the cycles T1 to T3 is, for example, 1 microsecond or 1 millisecond. The cycles T1, T2 and T3 may be cycles defined by managing time by connecting a plurality of communication devices to an NTP (Network Time Protocol) server, or the master device 10 transmits communication data. It may be a cycle that starts each time. When the cycles T1, T2, T3 are started by transmission of communication data from the master device 10, the lengths of the cycles T1, T2, T3 may be different. In such a case, the slave devices 21 and 30 may determine the current cycle by measuring the time elapsed from the start time of the previous cycle. Further, in this case, if the slave devices 21 and 30 respond to the communication data transmitted from the master device 10 at a relatively high speed and transmit the communication data, the communication is completed within each cycle.
 ここで、スレーブ装置30は、スレーブ装置21,22より低速で通信する機器であって、矢印503で示されるように、スレーブ装置30からの通信データの伝送が周期内で完了しないことが起こり得る。本実施の形態に係る通信装置は、このように伝送された通信データを、当該通信データの内容に応じて、各周期で通信を完了すべきサイクリック通信の対象として扱い破棄し、又は、サイクリック通信の例外としてサイクリックメモリ41の更新に利用する。 Here, the slave device 30 is a device that communicates at a lower speed than the slave devices 21 and 22, and as shown by an arrow 503, transmission of communication data from the slave device 30 may not be completed within a cycle. .. The communication device according to the present embodiment treats the communication data thus transmitted as a target of cyclic communication for which communication should be completed in each cycle according to the content of the communication data, and discards or discards it. It is used for updating the cyclic memory 41 as an exception to the click communication.
 スレーブ装置30より高速で通信するスレーブ装置21,22は、例えば、高性能なプロセッサでソフトウェア処理を実行する機器である。ただし、スレーブ装置21,22は、専用の通信回路チップでハードウェア実装した機器であってもよい。また、スレーブ装置21,22より低速で通信するスレーブ装置30は、例えば、低性能なプロセッサでソフトウェア処理を実行する機器である。マスタ装置10は、スレーブ装置21,22との間では上述のサイクリック通信を実施し、スレーブ装置30との間では伝送される通信データをサイクリック通信の例外として扱う例外通信を実施する。ただし、マスタ装置10自体が低速で通信する機器である場合には、マスタ装置10は、すべてのスレーブ装置21,22,30との間で例外通信を実施する。 The slave devices 21 and 22 that communicate at a higher speed than the slave device 30 are, for example, devices that execute software processing with a high-performance processor. However, the slave devices 21 and 22 may be devices that are hardware-implemented with dedicated communication circuit chips. The slave device 30 that communicates at a lower speed than the slave devices 21 and 22 is, for example, a device that executes software processing with a low-performance processor. The master device 10 carries out the above-mentioned cyclic communication with the slave devices 21 and 22, and carries out exceptional communication with the slave device 30 in which communication data transmitted is treated as an exception to cyclic communication. However, when the master device 10 itself is a device that communicates at low speed, the master device 10 performs exceptional communication with all the slave devices 21, 22, and 30.
 以下では、マスタ装置10及びスレーブ装置21,22,30を総称して通信装置40と表記する。 In the following, the master device 10 and the slave devices 21, 22, 30 are collectively referred to as the communication device 40.
 通信装置40は、そのハードウェア構成として、図4に示されるように、プロセッサ401と、主記憶部402と、補助記憶部403と、入力部404と、出力部405と、通信部406と、を有する。主記憶部402、補助記憶部403、入力部404、出力部405及び通信部406はいずれも、内部バス407を介してプロセッサ401に接続される。 As shown in FIG. 4, the hardware configuration of the communication device 40 includes a processor 401, a main storage unit 402, an auxiliary storage unit 403, an input unit 404, an output unit 405, and a communication unit 406. Have. The main storage unit 402, the auxiliary storage unit 403, the input unit 404, the output unit 405, and the communication unit 406 are all connected to the processor 401 via the internal bus 407.
 プロセッサ401は、CPU(Central Processing Unit)を含む。プロセッサ401は、補助記憶部403に記憶されるプログラムP1を実行することにより、通信装置40の種々の機能を実現して、後述の処理を実行する。 The processor 401 includes a CPU (Central Processing Unit). The processor 401 realizes various functions of the communication device 40 by executing the program P1 stored in the auxiliary storage unit 403, and executes the processing described below.
 主記憶部402は、RAM(Random Access Memory)を含む。主記憶部402には、補助記憶部403からプログラムP1がロードされる。そして、主記憶部402は、プロセッサ401の作業領域として用いられる。 The main storage unit 402 includes a RAM (Random Access Memory). The program P1 is loaded from the auxiliary storage unit 403 into the main storage unit 402. The main storage unit 402 is used as a work area of the processor 401.
 補助記憶部403は、EEPROM(Electrically Erasable Programmable Read-Only Memory)及びHDD(Hard Disk Drive)に代表される不揮発性メモリを含む。補助記憶部403は、プログラムP1の他に、プロセッサ401の処理に用いられる種々のデータを記憶する。補助記憶部403は、プロセッサ401の指示に従って、プロセッサ401によって利用されるデータをプロセッサ401に供給し、プロセッサ401から供給されたデータを記憶する。 The auxiliary storage unit 403 includes a nonvolatile memory represented by an EEPROM (Electrically Erasable Programmable Read-Only Memory) and an HDD (Hard Disk Drive). The auxiliary storage unit 403 stores, in addition to the program P1, various data used for the processing of the processor 401. The auxiliary storage unit 403 supplies data used by the processor 401 to the processor 401 according to an instruction from the processor 401, and stores the data supplied from the processor 401.
 入力部404は、入力キー及びポインティングデバイスに代表される入力デバイスを含む。入力部404は、通信装置40のユーザによって入力された情報を取得して、取得した情報をプロセッサ401に通知する。 The input unit 404 includes an input device represented by an input key and a pointing device. The input unit 404 acquires information input by the user of the communication device 40 and notifies the processor 401 of the acquired information.
 出力部405は、LCD(Liquid Crystal Display)及びスピーカに代表される出力デバイスを含む。出力部405は、プロセッサ401の指示に従って、種々の情報をユーザに提示する。 The output unit 405 includes an output device represented by an LCD (Liquid Crystal Display) and a speaker. The output unit 405 presents various kinds of information to the user according to the instruction of the processor 401.
 通信部406は、外部の装置と通信するためのネットワークインタフェース回路を含む。通信部406は、外部から信号を受信して、この信号により示されるデータをプロセッサ401へ出力する。また、通信部406は、プロセッサ401から出力されたデータを示す信号を外部の装置へ送信する。 The communication unit 406 includes a network interface circuit for communicating with an external device. The communication unit 406 receives a signal from the outside and outputs the data indicated by this signal to the processor 401. The communication unit 406 also transmits a signal indicating the data output from the processor 401 to an external device.
 図4に示されるハードウェア構成が協働することで、通信装置40は、種々の機能を発揮する。詳細には、通信装置40は、図5に示されるように、その機能として、サイクリックメモリ41と、通信ネットワーク50へ通信データを送信し通信ネットワーク50から通信データを受信する通信インタフェース42と、通信インタフェース42を介して受信した通信データを処理する受信処理部43と、通信インタフェース42を介して通信データを送信する処理を実行する送信処理部44と、を有する。 The communication device 40 exerts various functions by the cooperation of the hardware configurations shown in FIG. In detail, as shown in FIG. 5, the communication device 40 has, as its functions, a cyclic memory 41, a communication interface 42 that transmits communication data to the communication network 50, and receives communication data from the communication network 50. A reception processing unit 43 that processes communication data received via the communication interface 42, and a transmission processing unit 44 that executes a process of transmitting communication data via the communication interface 42.
 サイクリックメモリ41は、主として主記憶部402により実現される。ただし、これには限定されず、サイクリックメモリ41は、補助記憶部403により実現されてもよい。 The cyclic memory 41 is mainly realized by the main storage unit 402. However, the invention is not limited to this, and the cyclic memory 41 may be realized by the auxiliary storage unit 403.
 通信インタフェース42は、通信部406により実現される。通信インタフェース42は、通信ネットワーク50から受信した通信データを受信処理部43に送出し、送信処理部44から送出された通信データを通信ネットワーク50へ送信する。 The communication interface 42 is realized by the communication unit 406. The communication interface 42 sends the communication data received from the communication network 50 to the reception processing unit 43, and sends the communication data sent from the transmission processing unit 44 to the communication network 50.
 受信処理部43は、プロセッサ401及び主記憶部402の協働により実現される。受信処理部43は、受信した通信データを破棄し又は処理する処理手段の一例である。受信処理部43は、受信された通信データを解析する受信データ解析部431と、受信された通信データが一時的に格納される受信バッファ432と、を有する。受信データ解析部431は、受信された通信データに含まれる情報を読み出して、当該通信データを受信バッファ432に格納するか否かを判定する。受信データ解析部431によって格納することが決定された通信データは受信バッファ432に格納され、格納しないことが決定された通信データは破棄される。そして、受信バッファ432に格納された通信データから記憶データが抽出され、抽出された記憶データは、サイクリックメモリ41に格納される。なお、受信バッファ432に通信データが格納される例について説明したが、受信データ解析部431によって通信データから抽出された記憶データが受信バッファ432に格納されてもよい。 The reception processing unit 43 is realized by the cooperation of the processor 401 and the main storage unit 402. The reception processing unit 43 is an example of a processing unit that discards or processes the received communication data. The reception processing unit 43 includes a reception data analysis unit 431 that analyzes received communication data, and a reception buffer 432 that temporarily stores the received communication data. The reception data analysis unit 431 reads out the information included in the received communication data and determines whether or not to store the communication data in the reception buffer 432. Communication data determined to be stored by the reception data analysis unit 431 is stored in the reception buffer 432, and communication data determined not to be stored is discarded. Then, storage data is extracted from the communication data stored in the reception buffer 432, and the extracted storage data is stored in the cyclic memory 41. Although the example in which the communication data is stored in the reception buffer 432 has been described, the storage data extracted from the communication data by the reception data analysis unit 431 may be stored in the reception buffer 432.
 送信処理部44は、プロセッサ401及び主記憶部402の協働により実現される。送信処理部44は、通信データを生成する送信データ生成部441と、送信すべき通信データが一時的に格納される送信バッファ442と、を有する。送信データ生成部441は、送信すべき通信データがサイクリック通信の対象であるか例外であるかを、受信データ解析部431による解析の結果に応じて、又は送信データ生成部441自体の判断により決定する。そして、送信データ生成部441は、決定した内容とサイクリックメモリ41から読み出した記憶データとを含む通信データを生成して送信バッファ442に格納する。送信バッファ442に格納された通信データは、送信処理部44によって制御されたタイミングで、通信インタフェース42を介して通信ネットワーク50へ送信される。なお、送信バッファ442に通信データが格納される例について説明したが、送信バッファ442には、サイクリックメモリ41から読み出された記憶データが格納され、送信データ生成部441は、送信バッファ442から記憶データを読み出して通信データを生成してもよい。 The transmission processing unit 44 is realized by the cooperation of the processor 401 and the main storage unit 402. The transmission processing unit 44 includes a transmission data generation unit 441 that generates communication data and a transmission buffer 442 that temporarily stores communication data to be transmitted. The transmission data generation unit 441 determines whether the communication data to be transmitted is an object of cyclic communication or an exception, according to the analysis result by the reception data analysis unit 431, or by the transmission data generation unit 441 itself. decide. Then, the transmission data generation unit 441 generates communication data including the determined content and the storage data read from the cyclic memory 41, and stores the communication data in the transmission buffer 442. The communication data stored in the transmission buffer 442 is transmitted to the communication network 50 via the communication interface 42 at the timing controlled by the transmission processing unit 44. Note that the example in which the communication data is stored in the transmission buffer 442 has been described, but the storage data read from the cyclic memory 41 is stored in the transmission buffer 442, and the transmission data generation unit 441 causes the transmission data generation unit 441 to store the communication data in the transmission buffer 442. The communication data may be generated by reading the stored data.
 続いて、複数の通信装置40によって実行される通信処理について、図6~15を用いて説明する。マスタ装置10は、図6に示されるマスタ処理を実行し、スレーブ装置21,22,30は、図7に示されるスレーブ処理を実行する。これらの処理は、通信装置40の電源が投入されて通信ネットワーク50を介して通信可能な状態になることで開始する。 Next, communication processing executed by the plurality of communication devices 40 will be described with reference to FIGS. The master device 10 executes the master process shown in FIG. 6, and the slave devices 21, 22, 30 execute the slave process shown in FIG. These processes are started when the communication device 40 is powered on and becomes communicable via the communication network 50.
 図6に示されるマスタ処理において、マスタ装置10は、マスタ初期化処理を実行する(ステップS11)。マスタ初期化処理は、通信システム1000の初期化フェーズにおいてマスタ装置10が実行する処理であって、マスタ装置10がサイクリック通信を実施するか例外通信を実施するかを設定する処理である。次に、マスタ装置10は、マスタ通信処理を実行する(ステップS12)。マスタ通信処理は、マスタ初期化処理の設定に従って、周期毎にスレーブ装置21,22,30と通信する処理である。これらのマスタ初期化処理及びマスタ通信処理の詳細については後述する。 In the master process shown in FIG. 6, the master device 10 executes a master initialization process (step S11). The master initialization process is a process executed by the master device 10 in the initialization phase of the communication system 1000, and is a process of setting whether the master device 10 performs cyclic communication or exceptional communication. Next, the master device 10 executes a master communication process (step S12). The master communication process is a process of communicating with the slave devices 21, 22, 30 every cycle according to the setting of the master initialization process. Details of these master initialization processing and master communication processing will be described later.
 また、図7に示されるスレーブ処理に関しては、スレーブ装置30が実行する場合を例に説明する。ただし、スレーブ装置21,22によって実行されるスレーブ処理は、スレーブ装置30と同等の処理である。スレーブ処理において、スレーブ装置30は、スレーブ初期化処理を実行する(ステップS21)。スレーブ初期化処理は、通信システム1000の初期化フェーズにおいてスレーブ装置30が実行する処理であって、スレーブ装置30がサイクリック通信を実施するか例外通信を実施するかを設定する処理である。スレーブ初期化処理は、マスタ初期化処理と並行して実行される。次に、スレーブ装置30は、スレーブ通信処理を実施する(ステップS22)。スレーブ通信処理は、スレーブ初期化処理の設定に従って、周期毎にマスタ装置10及びスレーブ装置21,22と通信する処理である。これらのスレーブ初期化処理及びスレーブ通信処理の詳細については後述する。 Further, the slave process shown in FIG. 7 will be described by taking the case where the slave device 30 executes it as an example. However, the slave process executed by the slave devices 21 and 22 is the same process as the slave device 30. In the slave process, the slave device 30 executes a slave initialization process (step S21). The slave initialization process is a process executed by the slave device 30 in the initialization phase of the communication system 1000, and is a process of setting whether the slave device 30 performs cyclic communication or exceptional communication. The slave initialization process is executed in parallel with the master initialization process. Next, the slave device 30 performs a slave communication process (step S22). The slave communication process is a process of communicating with the master device 10 and the slave devices 21 and 22 every cycle according to the setting of the slave initialization process. Details of these slave initialization processing and slave communication processing will be described later.
 続いて、マスタ初期化処理及びスレーブ初期化処理について順に説明する。マスタ初期化処理では、図8に示されるように、マスタ装置10が、自機がソフトウェア処理に従って通信するか否かを判定する(ステップS111)。具体的には、マスタ装置10の送信処理部44が、他の通信装置40と記憶データを共有するための通信に、自機のソフトウェア処理が伴うか否かを判定する。ソフトウェア処理は、ハードウェア処理に比して処理の完了までに時間がかかることから、ソフトウェア処理に従う通信は、低速な通信になるといえる。 Next, the master initialization process and slave initialization process will be explained in order. In the master initialization process, as shown in FIG. 8, the master device 10 determines whether or not the device itself communicates according to the software process (step S111). Specifically, the transmission processing unit 44 of the master device 10 determines whether or not the communication for sharing the stored data with the other communication device 40 is accompanied by the software processing of the own device. Since software processing takes time to complete compared to hardware processing, it can be said that communication according to software processing is low-speed communication.
 ただし、マスタ装置10が高性能なプロセッサ401を備える場合には、ソフトウェア処理を伴っても高速に通信することができるため、通信にソフトウェア処理が伴うことに加えて、マスタ装置10が予め定められた種類のプロセッサ401を備えるという条件が成立するときにステップS111の判定が肯定されてもよい。また、通信にソフトウェア処理が伴っていても、予め定められた種類のプロセッサ401を備えるときにはステップS111の判定が否定されてもよい。さらに、通信にソフトウェア処理が伴うことに加えて、このソフトウェア処理の演算負荷がある程度重いという条件が成立するときにステップS111の判定が肯定されてもよい。演算負荷が重いか否かは、ソースコードのサイズが閾値を超えるか否かを判定することで判断してもよいし、過去の実行時にかかった時間が閾値を超えるか否かを判定することで判断してもよい。 However, when the master device 10 includes the high-performance processor 401, high-speed communication can be performed even with software processing. Therefore, in addition to the software processing involved in communication, the master device 10 is predetermined. The determination in step S111 may be affirmed when the condition that the processor 401 of the different type is provided is satisfied. Further, even if the communication involves software processing, the determination in step S111 may be denied when the processor 401 of a predetermined type is provided. Further, in addition to the software processing involved in the communication, the determination in step S111 may be affirmed when the condition that the calculation load of the software processing is heavy to some extent is satisfied. Whether or not the calculation load is heavy may be determined by determining whether or not the size of the source code exceeds the threshold value, or whether or not the time taken in the past execution exceeds the threshold value. You may judge by.
 自機がソフトウェア処理に従って通信すると判定した場合(ステップS111;Yes)、マスタ装置10は、自機が低速で通信することを全スレーブ装置に通知して、自機と例外通信をすることを指示する(ステップS112)。具体的には、送信処理部44が、図9に例示される形式のフレーム60を生成する。このフレーム60は、ヘッダ部61とデータ部62とフッタ部63とを備える。ヘッダ部61は、このフレーム60の送信先である通信装置40を示す送信先アドレス611と、このフレーム60の送信元である通信装置40を示す送信元アドレス612と、このフレーム60の種別を示すフレーム種別情報613と、を含む。また、データ部62は、スレーブ装置21,22,30に対して例外通信の実施を指示するか否かを示す指示情報621を含む。指示情報621は、例えば、1bitのフラグである。このフラグの値がゼロであれば、例外通信の実施が指示されず、各スレーブ装置は、自機の通信性能に従ってサイクリック通信を実施してもよいし、例外通信を実施してもよい。フラグの値が1であれば、マスタ装置10が低速であることが通知されるとともに、全スレーブ装置に例外通信を実施することが指示される。 When the master device 10 determines to communicate according to the software processing (step S111; Yes), the master device 10 notifies all slave devices that it communicates at low speed, and instructs the slave device to perform exceptional communication with itself. Yes (step S112). Specifically, the transmission processing unit 44 generates the frame 60 in the format illustrated in FIG. The frame 60 includes a header portion 61, a data portion 62, and a footer portion 63. The header portion 61 indicates a destination address 611 indicating the communication device 40 which is the transmission destination of the frame 60, a transmission source address 612 indicating the communication device 40 which is the transmission source of the frame 60, and the type of the frame 60. And frame type information 613. The data unit 62 also includes instruction information 621 indicating whether or not to instruct the slave devices 21, 22 and 30 to perform exceptional communication. The instruction information 621 is, for example, a 1-bit flag. If the value of this flag is zero, execution of exception communication is not instructed, and each slave device may perform cyclic communication or exception communication according to the communication performance of its own device. If the value of the flag is 1, the master device 10 is notified that the speed is low, and all slave devices are instructed to perform exceptional communication.
 図8に戻り、ステップS112の後に、マスタ装置10によって実行される処理は、マスタ初期化処理から図6に示されるマスタ処理に戻る。 Returning to FIG. 8, after step S112, the process executed by the master device 10 returns from the master initialization process to the master process shown in FIG.
 一方、自機がソフトウェア処理に従って通信する装置ではないと判定した場合(ステップS111;No)、マスタ装置10は、自機が他の通信装置40より低速で通信するか否かを判定する(ステップS113)。具体的には、送信処理部44が、マスタ装置10が低速で通信する装置であることを示すパラメータがマスタ装置10の補助記憶部403に格納されているか否かを判定する。このパラメータは、マスタ装置10の製品出荷時に予め設定されていてもよいし、ユーザにより予め設定されてもよい。また、マスタ装置10が、他の通信装置40に通信性能を問い合わせて、自機の通信性能と比較することで、ステップS113の判定をしてもよい。 On the other hand, when the master device 10 determines that the device is not a device that communicates according to software processing (step S111; No), the master device 10 determines whether the device 10 communicates at a lower speed than the other communication device 40 (step S111). S113). Specifically, the transmission processing unit 44 determines whether or not a parameter indicating that the master device 10 is a device that communicates at low speed is stored in the auxiliary storage unit 403 of the master device 10. This parameter may be preset when the master device 10 is shipped, or may be preset by the user. Further, the master device 10 may make a determination in step S113 by inquiring the communication performance of another communication device 40 and comparing it with the communication performance of the own device.
 自機が他の通信装置40より低速で通信すると判定した場合(ステップS113;Yes)、マスタ装置10は、ステップS112へ処理を移行する。一方、自機が他の通信装置40より低速で通信する装置でないと判定した場合(ステップS113;No)、マスタ装置10は、スレーブ装置21,22,30に関する装置情報を各スレーブ装置に対して要求する(ステップS114)。具体的には、送信処理部44が、スレーブ装置21,22,30それぞれに対して、低速で通信するか高速で通信するかを問い合わせるためのフレームを生成する。このフレームは、図9に例示された形式に従ってもよい。図9に示される形式のフレームが生成される場合には、このフレームは、例外通信の実行を指示しない指示情報621を含むこととなる。そして、生成されたフレームが通信インタフェース42を介してスレーブ装置21,22,30へ送信される。 If the master device 10 determines that it communicates at a lower speed than the other communication device 40 (step S113; Yes), the master device 10 shifts the processing to step S112. On the other hand, when the master device 10 determines that the device is not a device that communicates at a lower speed than the other communication device 40 (step S113; No), the master device 10 provides device information regarding the slave devices 21, 22, and 30 to each slave device. Request (step S114). Specifically, the transmission processing unit 44 generates a frame for inquiring each of the slave devices 21, 22 and 30 as to whether to perform low speed communication or high speed communication. This frame may follow the format illustrated in FIG. When a frame of the format shown in FIG. 9 is generated, this frame will include instruction information 621 that does not instruct execution of exceptional communication. Then, the generated frame is transmitted to the slave devices 21, 22, 30 via the communication interface 42.
 次に、マスタ装置10は、スレーブ装置21,22,30から装置情報を受信する(ステップS115)。具体的には、受信処理部43が、ステップS114の要求に対するスレーブ装置21,22,30からの応答を、通信インタフェース42を介して受信する。これにより、マスタ装置10は、スレーブ装置21,22,30がそれぞれ低速で通信する装置であるか高速で通信する装置であるかを判断することができる。 Next, the master device 10 receives device information from the slave devices 21, 22, 30 (step S115). Specifically, the reception processing unit 43 receives the response from the slave devices 21, 22, 30 to the request in step S114 via the communication interface 42. Thereby, the master device 10 can determine whether the slave devices 21, 22, and 30 are low-speed communication devices or high-speed communication devices, respectively.
 次に、マスタ装置10は、他の通信装置40より低速で通信するスレーブ装置とは例外通信を実施して、その他のスレーブ装置とはサイクリック通信を実施することを決定する。具体的には、受信処理部43が、ステップS115で得た装置情報を送信処理部44に通知する。これにより、送信処理部44は、高速で通信するスレーブ装置21,22に対してはサイクリック通信をするためのフレームを生成し、低速で通信するスレーブ装置30に対しては例外通信をするためのフレームを生成する。その後、マスタ装置10による処理は、マスタ初期化処理から図6に示されるマスタ処理に戻る。 Next, the master device 10 determines to perform exceptional communication with a slave device that communicates at a lower speed than the other communication device 40 and to perform cyclic communication with another slave device. Specifically, the reception processing unit 43 notifies the transmission processing unit 44 of the device information obtained in step S115. As a result, the transmission processing unit 44 generates a frame for cyclic communication with the slave devices 21 and 22 that communicate at high speed, and performs exceptional communication with the slave device 30 that communicates at low speed. Generate the frame of. After that, the process by the master device 10 returns from the master initialization process to the master process shown in FIG.
 以上のマスタ初期化処理と連動してスレーブ装置30により実行されるスレーブ初期化処理では、図10に示されるように、スレーブ装置30が、マスタ装置10から例外通信の指示があるか否かを判定する(ステップS211)。具体的には、スレーブ装置30の受信処理部43が、図8中のステップS112の指示を、通信インタフェース42を介して受信したか否かを判定する。 In the slave initialization process executed by the slave device 30 in conjunction with the above master initialization process, as shown in FIG. 10, the slave device 30 determines whether or not there is an exception communication instruction from the master device 10. The determination is made (step S211). Specifically, the reception processing unit 43 of the slave device 30 determines whether or not the instruction of step S112 in FIG. 8 is received via the communication interface 42.
 マスタ装置10から例外通信の指示があると判定した場合(ステップS211;Yes)、スレーブ装置30は、例外通信を実施することを決定する(ステップS212)。これにより、スレーブ装置30の送信処理部44が生成する通信データには、当該通信データをサイクリック通信の例外として扱うことを示す情報が含まれることとなる。その後、スレーブ装置30によって実行される処理は、スレーブ初期化処理から図7に示されるスレーブ処理に戻る。 When it is determined that there is an instruction for exceptional communication from the master device 10 (step S211; Yes), the slave device 30 determines to implement exceptional communication (step S212). Accordingly, the communication data generated by the transmission processing unit 44 of the slave device 30 includes information indicating that the communication data is treated as an exception of cyclic communication. After that, the processing executed by the slave device 30 returns from the slave initialization processing to the slave processing shown in FIG. 7.
 一方、マスタ装置10から例外通信の指示がないと判定した場合(ステップS211;No)、スレーブ装置30は、マスタ装置10からの装置情報の要求があるか否かを判定する(ステップS213)。具体的には、スレーブ装置30の受信処理部43が、図8中のステップS114の要求を示すデータを、通信インタフェースを介して受信したか否かを判定する。 On the other hand, when it is determined that there is no exception communication instruction from the master device 10 (step S211; No), the slave device 30 determines whether there is a device information request from the master device 10 (step S213). Specifically, the reception processing unit 43 of the slave device 30 determines whether or not the data indicating the request of step S114 in FIG. 8 is received via the communication interface.
 装置情報の要求がないと判定した場合(ステップS213;No)、スレーブ装置30は、ステップS213の判定を繰り返して装置情報の要求があるまで待機する。一方、装置情報の要求があると判定した場合(ステップS213;Yes)、スレーブ装置30は、自機がソフトウェア処理に従って通信するか否かを判定する(ステップS214)。この判定は、図8に示されるマスタ初期化処理におけるステップS111の判定と同様の処理である。 When it is determined that there is no request for device information (step S213; No), the slave device 30 repeats the determination of step S213 and waits until there is a request for device information. On the other hand, if it is determined that there is a request for device information (step S213; Yes), the slave device 30 determines whether or not the slave device 30 communicates according to software processing (step S214). This determination is the same processing as the determination in step S111 in the master initialization processing shown in FIG.
 自機がソフトウェア処理に従って通信すると判定した場合(ステップS214;Yes)、スレーブ装置30は、例外通信を実施することを決定し、自機が低速であることを示す装置情報をマスタ装置10に対する応答として送信する(ステップS215)。具体的には、スレーブ装置30の送信処理部44が、図11に例示される形式のフレーム60を生成して、通信インタフェース42を介して送信する。このフレーム60のデータ部62は、スレーブ装置30自体が低速で通信することを示す装置情報622を含む。装置情報622は、例えば、1bitのフラグである。このフラグの値がゼロであれば、低速で通信することを示し、このフラグの値が1であれば、高速で通信することを示す。図10に戻り、ステップS215の後に、スレーブ装置30によって実行される処理は、スレーブ初期化処理から図7に示されるスレーブ処理に戻る。 When the slave device 30 determines to communicate according to the software processing (step S214; Yes), the slave device 30 determines to perform exception communication, and returns device information indicating that the device is low speed to the master device 10. (Step S215). Specifically, the transmission processing unit 44 of the slave device 30 generates the frame 60 in the format illustrated in FIG. 11 and transmits the frame 60 via the communication interface 42. The data portion 62 of this frame 60 includes device information 622 indicating that the slave device 30 itself communicates at a low speed. The device information 622 is, for example, a 1-bit flag. If the value of this flag is zero, it indicates that the communication is low-speed, and if the value of this flag is 1, it indicates that the communication is high-speed. Returning to FIG. 10, after step S215, the process executed by the slave device 30 returns from the slave initialization process to the slave process shown in FIG. 7.
 一方、自機がソフトウェア処理に従って通信する装置でないと判定した場合(ステップS214;No)、スレーブ装置30は、自機が他の通信装置40より低速で通信するか否かを判定する(ステップS216)。この判定は、図8に示されるマスタ初期化処理におけるステップS113の判定と同様の処理である。 On the other hand, when the slave device 30 determines that the device is not a device that communicates according to the software processing (step S214; No), the slave device 30 determines whether the device communicates at a lower speed than the other communication device 40 (step S216). ). This determination is the same process as the determination in step S113 in the master initialization process shown in FIG.
 自機が他の通信装置40より低速で通信すると判定した場合(ステップS216;Yes)、スレーブ装置30は、ステップS215に処理を移行する。一方、自機が他の通信装置40より低速で通信する装置でないと判定した場合(ステップS216;No)、スレーブ装置30は、サイクリック通信を実施することを決定し、自機が高速であることを示す装置情報をマスタ装置10に対する応答として送信する(ステップS217)。具体的には、スレーブ装置30の送信処理部44が、図11に示される形式のフレーム60を生成して、通信インタフェース42を介して送信する。このフレーム60のデータ部62は、スレーブ装置30自体が高速で通信することを示す装置情報622を含む。その後、スレーブ装置30によって実行される処理は、スレーブ初期化処理から図7に示されるスレーブ処理に戻る。 If the slave device 30 determines that the device communicates at a lower speed than the other communication device 40 (step S216; Yes), the slave device 30 shifts the processing to step S215. On the other hand, when the slave device 30 determines that the device is not a device that communicates at a lower speed than the other communication device 40 (step S216; No), the slave device 30 determines to perform cyclic communication, and the device is high speed. The device information indicating that is transmitted as a response to the master device 10 (step S217). Specifically, the transmission processing unit 44 of the slave device 30 generates the frame 60 in the format shown in FIG. 11 and transmits the frame 60 via the communication interface 42. The data portion 62 of the frame 60 includes device information 622 indicating that the slave device 30 itself communicates at high speed. After that, the processing executed by the slave device 30 returns from the slave initialization processing to the slave processing shown in FIG. 7.
 以上のマスタ初期化処理及びスレーブ初期化処理により、各通信装置40についてサイクリック通信を実施するか例外通信を実施するかが決定される。具体的には、低速で通信するスレーブ装置30と、その主たる通信相手であるマスタ装置10と、が例外通信を実施し、他のスレーブ装置21,22とマスタ装置10とがサイクリック通信を実施する。ここで、マスタ装置10が低速で通信する場合には、マスタ装置10と全スレーブ装置21,22,30とが例外通信を実施するここで、例外通信を実施する通信装置40は、例外通信の対象として扱われることを示す情報を含む通信データを送信し、サイクリック通信を実施する通信装置40は、サイクリック通信の対象として扱われることを示す情報を含む通信データを送信する。 By the above master initialization process and slave initialization process, it is determined whether to perform cyclic communication or exception communication for each communication device 40. Specifically, the slave device 30 that communicates at low speed and the master device 10 that is the main communication partner perform exceptional communication, and the other slave devices 21 and 22 and the master device 10 perform cyclic communication. To do. Here, when the master device 10 communicates at a low speed, the master device 10 and all the slave devices 21, 22, 30 perform exceptional communication. Here, the communication device 40 that implements exceptional communication is The communication device 40 that transmits the communication data including the information indicating that the communication is to be treated as the target and transmits the communication data that includes the information indicating that the communication is to be treated as the target of the cyclic communication.
 例えば、マスタ装置10が低速で通信する機器である場合には、図12に示されるように、マスタ装置10とすべてのスレーブ装置とが例外通信を実施する。詳細には、図12に示されるように、マスタ装置10が、自機が低速で通信する機器であることを確認する(ステップS31)。このステップS31は、図8に示されるマスタ初期化処理におけるステップS111の判定の肯定、及びステップS113の判定の肯定に対応する。 For example, when the master device 10 is a device that communicates at a low speed, as shown in FIG. 12, the master device 10 and all slave devices perform exceptional communication. Specifically, as shown in FIG. 12, the master device 10 confirms that the device itself is a device that communicates at low speed (step S31). This step S31 corresponds to the affirmative determination in step S111 and the positive determination in step S113 in the master initialization processing shown in FIG.
 次に、マスタ装置10は、マスタ装置10自体が低速で通信することをスレーブ装置21,22,30に通知する(ステップS32)。なお、図12では、スレーブ装置21,22,30を代表してスレーブ装置21のみが示されている。このステップS32は、図8に示されるマスタ初期化処理におけるステップS112に対応する。 Next, the master device 10 notifies the slave devices 21, 22, 30 that the master device 10 itself communicates at a low speed (step S32). Note that, in FIG. 12, only the slave device 21 is shown as a representative of the slave devices 21, 22, and 30. This step S32 corresponds to step S112 in the master initialization process shown in FIG.
 次に、スレーブ装置21は、ステップS32の通知を受けて例外通信をすることを決定する(ステップS33)。このステップS33は、図10に示されるスレーブ初期化処理におけるステップS212に対応する。その後、スレーブ装置21は、通信システム1000の通信フェーズにおいてサイクリック通信の例外であることを示す対象情報を含む通信データをマスタ装置10との間で送受信する。この通信フェーズの詳細については後述する。 Next, the slave device 21 receives the notification in step S32 and determines to perform exceptional communication (step S33). This step S33 corresponds to step S212 in the slave initialization process shown in FIG. After that, the slave device 21 transmits / receives communication data including target information indicating an exception of cyclic communication to / from the master device 10 in the communication phase of the communication system 1000. Details of this communication phase will be described later.
 また、例えば、マスタ装置10が高速で通信する機器であり、スレーブ装置30が低速で通信する機器である場合には、図13に示されるように、スレーブ装置30が、自機が低速で通信する機器であることを確認する(ステップS35)。このステップS35は、図10に示されるスレーブ初期化処理におけるステップS214の判定の肯定、及びステップS216の判定の肯定に対応する。 In addition, for example, when the master device 10 is a device that communicates at high speed and the slave device 30 is a device that communicates at low speed, as shown in FIG. 13, the slave device 30 communicates at a low speed with itself. It is confirmed that the device is a device to be operated (step S35). This step S35 corresponds to the affirmative determination in step S214 and the affirmative determination in step S216 in the slave initialization process shown in FIG.
 次に、スレーブ装置30は、スレーブ装置30自体が低速で通信することをマスタ装置10に通知する(ステップS36)。このステップS36は、図10に示されるスレーブ初期化処理におけるステップS215に対応する。 Next, the slave device 30 notifies the master device 10 that the slave device 30 itself communicates at a low speed (step S36). This step S36 corresponds to step S215 in the slave initialization process shown in FIG.
 次に、マスタ装置10は、ステップS36の通知を受けて、スレーブ装置30とは例外通信をすることを決定する(ステップS37)。このステップS37は、図8に示されるマスタ初期化処理におけるステップS116に対応する。その後、マスタ装置10は、通信システム1000の通信フェーズにおいてサイクリック通信の例外であることを示す対象情報を含む通信データをスレーブ装置30との間で送受信する。 Next, the master device 10 receives the notification in step S36 and determines to perform exceptional communication with the slave device 30 (step S37). This step S37 corresponds to step S116 in the master initialization process shown in FIG. After that, the master device 10 transmits / receives communication data including target information indicating an exception of cyclic communication to / from the slave device 30 in the communication phase of the communication system 1000.
 続いて、通信システム1000の通信フェーズにおいてマスタ装置10によって実行されるマスタ通信処理について、図14,15を用いて説明する。このマスタ通信処理では、マスタ装置10は、送信すべき通信データに、この通信データに関する周期を識別して示す識別情報と、この通信データがサイクリック通信の対象であるか例外であるかを示す対象情報と、を含めてスレーブ装置21,22,30に送信する(ステップS121)。 Next, the master communication processing executed by the master device 10 in the communication phase of the communication system 1000 will be described with reference to FIGS. In this master communication process, the master device 10 indicates, in the communication data to be transmitted, identification information indicating the cycle relating to this communication data, and whether this communication data is a target of cyclic communication or an exception. The target information and the target information are transmitted to the slave devices 21, 22, and 30 (step S121).
 具体的には、マスタ装置10の送信処理部44が、図15に例示される形式のフレーム60を生成して、通信インタフェース42を介して送信する。このフレーム60のヘッダ部61は、送信先アドレス611、送信元アドレス612及びフレーム種別情報613に加えて、周期をその前後の他の周期と識別するための識別情報614と、フレーム60がサイクリック通信の対象であるかサイクリック通信の対象から除外される例外であるを示す対象情報615と、を含む。また、このフレーム60のデータ部62には、サイクリックメモリ41を更新するための記憶データが格納される。 Specifically, the transmission processing unit 44 of the master device 10 generates a frame 60 in the format illustrated in FIG. 15 and transmits the frame 60 via the communication interface 42. The header portion 61 of the frame 60 includes, in addition to the destination address 611, the source address 612, and the frame type information 613, identification information 614 for identifying the cycle from other cycles before and after the cycle, and the frame 60 cyclically. The target information 615 indicating whether the target of communication is an exception excluded from the target of cyclic communication. Further, the data portion 62 of the frame 60 stores storage data for updating the cyclic memory 41.
 識別情報614は、例えば7bitのデータであって、識別情報614により示される周期は、例えばマスタ装置10がフレーム60を送信する時刻を含む周期の番号である。この番号は、連番の数値であって、周期が更新されるたびにインクリメントされる。なお、識別情報614により示される周期は、これに限定されず、任意に変更してもよい。 The identification information 614 is, for example, 7-bit data, and the cycle indicated by the identification information 614 is, for example, a cycle number including the time when the master device 10 transmits the frame 60. This number is a serial number and is incremented each time the cycle is updated. The cycle indicated by the identification information 614 is not limited to this, and may be changed arbitrarily.
 対象情報615は、例えば1bitのフラグであって、このフラグの値がゼロであればフレーム60がサイクリック通信の対象であることが示され、このフラグの値が1であればフレーム60がサイクリック通信の例外であり例外通信の対象であることが示される。 The target information 615 is, for example, a 1-bit flag, and if the value of this flag is zero, it indicates that the frame 60 is the target of cyclic communication. If the value of this flag is 1, the frame 60 is cyclic. It indicates that this is an exception to click communication and is the target of exception communication.
 図14に戻り、マスタ装置10は、通信データを受信したか否かを判定する(ステップS122)。具体的には、受信処理部43が、通信インタフェース42を介して他の通信装置40から通信データを受信したか否かを判定する。 Returning to FIG. 14, the master device 10 determines whether communication data has been received (step S122). Specifically, the reception processing unit 43 determines whether communication data has been received from another communication device 40 via the communication interface 42.
 通信データを受信していないと判定した場合(ステップS122;No)、マスタ装置10は、ステップS128に処理を移行する。一方、通信データを受信したと判定した場合(ステップS122;Yes)、マスタ装置10は、受信した通信データに含まれる対象情報により、当該通信データがサイクリック通信の対象であることが示されるか否かを判定する(ステップS123)。 When it is determined that communication data has not been received (step S122; No), the master device 10 shifts the processing to step S128. On the other hand, if the master device 10 determines that the communication data is received (step S122; Yes), the target information included in the received communication data indicates that the communication data is the target of the cyclic communication. It is determined whether or not (step S123).
 対象情報によりサイクリック通信の対象であることが示されていないと判定した場合(ステップS123;No)、マスタ装置10は、受信した通信データが例外通信の対象であると判断し、この通信データを処理する(ステップS124)。詳細には、マスタ装置10は、その識別情報により示される周期に関わらず、受信した通信データを処理する。具体的には、受信処理部43が、通信データを受信バッファ432に格納する。これにより、通信データに含まれる対象情報により通信データがサイクリック通信の例外であることが示される場合に、受信処理部43は通信データを処理することとなる。 When it is determined that the target information does not indicate that it is the target of the cyclic communication (step S123; No), the master device 10 determines that the received communication data is the target of the exceptional communication, and the communication data Is processed (step S124). Specifically, the master device 10 processes the received communication data regardless of the cycle indicated by the identification information. Specifically, the reception processing unit 43 stores the communication data in the reception buffer 432. As a result, when the target information included in the communication data indicates that the communication data is an exception to cyclic communication, the reception processing unit 43 processes the communication data.
 一方、対象情報によりサイクリック通信の対象であることが示されると判定した場合(ステップS123;Yes)、マスタ装置10は、自機が管理している現在の周期を取得する(ステップS125)。具体的には、受信処理部43が、主記憶部402に格納されている現在の周期を示すデータを読み出す。 On the other hand, when it is determined that the target information indicates the target of cyclic communication (step S123; Yes), the master device 10 acquires the current cycle managed by the master device 10 (step S125). Specifically, the reception processing unit 43 reads the data indicating the current cycle stored in the main storage unit 402.
 次に、マスタ装置10は、受信した通信データに含まれる識別情報により示される周期が、ステップS125にて取得した現在の周期に等しいか否かを判定する(ステップS126)。周期が等しいと判定した場合(ステップS126;Yes)、マスタ装置10は、ステップS124に処理を移行する。一方、周期が等しくはないと判定した場合(ステップS126;No)、マスタ装置10は、受信した通信データを破棄する(ステップS127)。これにより、サイクリック通信の対象である通信データが、その通信データにより示される周期と異なる周期で受信された場合には、当該通信データが破棄される。すなわち、通信データに含まれる対象情報により通信データがサイクリック通信の対象であることが示され、かつ、この通信データに含まれる識別情報により示される周期が現在の周期とは異なる場合に、受信処理部43は、通信データを破棄する。 Next, the master device 10 determines whether the cycle indicated by the identification information included in the received communication data is equal to the current cycle acquired in step S125 (step S126). When it is determined that the cycles are equal (step S126; Yes), the master device 10 shifts the processing to step S124. On the other hand, when it is determined that the cycles are not equal (step S126; No), the master device 10 discards the received communication data (step S127). Accordingly, when the communication data that is the target of the cyclic communication is received in a cycle different from the cycle indicated by the communication data, the communication data is discarded. That is, if the target information included in the communication data indicates that the communication data is a target of cyclic communication, and if the cycle indicated by the identification information included in the communication data is different from the current cycle, reception is performed. The processing unit 43 discards the communication data.
 ステップS124又はステップS127の終了後、若しくはステップS122の判定が否定された場合、マスタ装置10は、現在時刻が周期の更新タイミングを経過した時刻であるか否かを判定する(ステップS128)。 After the end of step S124 or step S127, or if the determination in step S122 is negative, the master device 10 determines whether or not the current time is a time after which the cycle update timing has passed (step S128).
 現在時刻が更新タイミングを経過していないと判定した場合(ステップS128;No)、マスタ装置10は、ステップS122以降の処理を実行する。一方、現在時刻が更新タイミングを経過したと判定した場合(ステップS128;Yes)、マスタ装置10は、周期を更新する(ステップS129)。具体的には、マスタ装置10は、自機が管理している現在の周期を更新する。その後、マスタ装置10による処理は、図14に示されるマスタ通信処理から図6に示されるマスタ処理に戻る。 When it is determined that the current time has not passed the update timing (step S128; No), the master device 10 executes the processing of step S122 and thereafter. On the other hand, when it is determined that the current time has passed the update timing (step S128; Yes), the master device 10 updates the cycle (step S129). Specifically, the master device 10 updates the current cycle managed by itself. Thereafter, the processing by the master device 10 returns from the master communication processing shown in FIG. 14 to the master processing shown in FIG.
 通信システム1000の通信フェーズでは、以上のマスタ通信処理と並行に、図7に示されるスレーブ通信処理が実行される。スレーブ通信処理は、図14に示されるマスタ通信処理と同等の処理である。ただし、スレーブ通信処理では、ステップS121に対応するデータの送信が、スレーブ装置30自体が管理している周期が更新したタイミングで実行されてもよいし、マスタ装置10からのデータの受信をトリガーとして実行されてもよい。また、ステップS122に対応する手順において、受信したと判定される通信データは、マスタ装置10からの通信データ、及び、他のスレーブ装置からの通信データである。 In the communication phase of the communication system 1000, the slave communication process shown in FIG. 7 is executed in parallel with the above master communication process. The slave communication process is the same process as the master communication process shown in FIG. However, in the slave communication process, the data transmission corresponding to step S121 may be executed at the timing when the cycle managed by the slave device 30 itself is updated, or the data reception from the master device 10 is used as a trigger. It may be executed. Also, in the procedure corresponding to step S122, the communication data determined to be received is the communication data from the master device 10 and the communication data from another slave device.
 以上、説明したように、マスタ装置10とスレーブ装置21,22,30とのいずれが一方を、通信データを送信する第1通信装置として、他方を、通信データを受信する第2通信装置としたときに、第2通信装置は、受信した通信データに含まれる対象情報により通信データがサイクリック通信の対象であることが示され、かつ該通信データに含まれる識別情報により示される周期が現在の周期とは異なる場合に、通信データを破棄する。また、第2通信装置は、通信データに含まれる対象情報により通信データがサイクリック通信の例外であることが示される場合に、通信データを処理する。このため、通信性能が異なる機器を混在させたままその通信性能を活用することができ、通信システムの効率を向上させることができる。 As described above, one of the master device 10 and the slave devices 21, 22, 30 is the first communication device for transmitting communication data, and the other is the second communication device for receiving communication data. At this time, the second communication device indicates that the communication data is the target of the cyclic communication by the target information included in the received communication data, and the cycle indicated by the identification information included in the communication data is the current one. If it is different from the cycle, the communication data is discarded. The second communication device processes the communication data when the target information included in the communication data indicates that the communication data is an exception to cyclic communication. Therefore, the communication performance can be utilized while the devices having different communication performances are mixed, and the efficiency of the communication system can be improved.
 具体的には、マスタ装置10或いはスレーブ装置21,22,30である通信装置40は、通信データがサイクリック通信の対象であるか例外であるかを、通信データを送信又は受信する装置が低速で通信するか否かに応じて変更する。これにより、マスタ装置10及びスレーブ装置21が高速で通信し、スレーブ装置30が低速で通信するようなケースにおいては、マスタ装置10とスレーブ装置21との間でサイクリック通信が実施され、マスタ装置10とスレーブ装置30との間では例外通信が実施される。 Specifically, the communication device 40, which is the master device 10 or the slave devices 21, 22, and 30, determines whether the communication data is an object of cyclic communication or an exception, and a device that transmits or receives the communication data has a low speed. Change according to whether or not to communicate with. Accordingly, in a case where the master device 10 and the slave device 21 communicate at high speed and the slave device 30 communicates at low speed, cyclic communication is performed between the master device 10 and the slave device 21, and the master device 10 and the slave device 21 communicate with each other. Exception communication is carried out between 10 and the slave device 30.
 図16には、このようなケースにおけるデータの伝送が、識別情報614及び対象情報615の内容とともに例示されている。図16に示されるように、スレーブ装置30は低速であるため、スレーブ装置30から周期T2において送信されたデータが、マスタ装置10によって周期T3において受信されることがある。マスタ装置10は、、このようなデータを破棄することなく、受信して処理することができる。これにより、通信性能が異なる通信装置40を混在させたままその通信性能を活用した通信をすることができる。 FIG. 16 illustrates the data transmission in such a case together with the contents of the identification information 614 and the target information 615. As shown in FIG. 16, since the slave device 30 has a low speed, the data transmitted from the slave device 30 in the cycle T2 may be received by the master device 10 in the cycle T3. The master device 10 can receive and process such data without discarding it. As a result, it is possible to perform communication utilizing the communication performance while mixing the communication devices 40 having different communication performances.
 図17には、すべての通信装置40がサイクリック通信を実施する比較例が示されている。この例では、低速で通信するスレーブ装置30から周期T2において送信されたデータは、マスタ装置10によって周期T3において受信されると破棄されてしまい、結果としてスレーブ装置30からの情報がマスタ装置10に伝送されることがなく、サイクリックメモリ41がマスタ装置10とスレーブ装置30との間で共有されない。したがって、通信システム1000を含むFAシステムの運用に不都合が生じる事態となる可能性がある。本実施の形態に係る通信システム1000によれば、マスタ装置10がスレーブ装置30からのデータを受信して処理するため、上述のような事態になることを回避することができる。 FIG. 17 shows a comparative example in which all communication devices 40 carry out cyclic communication. In this example, the data transmitted from the slave device 30 communicating at low speed in the cycle T2 is discarded when received by the master device 10 in the cycle T3, and as a result, the information from the slave device 30 is transmitted to the master device 10. It is not transmitted and the cyclic memory 41 is not shared between the master device 10 and the slave device 30. Therefore, there is a possibility that an inconvenience may occur in the operation of the FA system including the communication system 1000. According to the communication system 1000 according to the present embodiment, the master device 10 receives and processes the data from the slave device 30, so that it is possible to avoid the above situation.
 また、通信データがサイクリック通信の対象であるか否かを示す対象情報は、通信データであるフレームのヘッダ部に格納された。このため、通信データを受信した通信装置40は、データ部を確認する前であっても、ヘッダ部を確認するだけで、通信データがサイクリック通信の対象であるか否かを判定することができる。 Also, the target information indicating whether or not the communication data is the target of the cyclic communication is stored in the header part of the frame which is the communication data. Therefore, the communication device 40 that has received the communication data can determine whether or not the communication data is the target of the cyclic communication just by checking the header part even before checking the data part. it can.
 なお、例外通信をすることで、周期それぞれの内にすべての通信装置40で共有されることが保証されなくなってしまうが、低速に通信する機器についてはそのような保証がされないことを加味した運用をすればよい。 It should be noted that by performing exceptional communication, it is no longer guaranteed that all communication devices 40 will be shared within each cycle, but operations that take into account that such guarantee is not made for devices that communicate at low speed. You can do it.
 また、通信データを送信する第1通信装置は、自機がソフトウェア処理に従って通信する場合に、サイクリック通信の例外であることを示す対象情報を含む通信データを送信する。このため、低速で通信する第1通信装置から送信される通信データが例外通信の対象とされ、適当な通信データを例外通信の対象とすることができる。 Also, the first communication device transmitting communication data transmits communication data including target information indicating an exception of cyclic communication, when the first communication device communicates according to software processing. Therefore, the communication data transmitted from the first communication device that communicates at a low speed is targeted for the exceptional communication, and appropriate communication data can be targeted for the exceptional communication.
 また、通信データを送信する第1通信装置は、他の通信装置より低速で通信する場合に、サイクリック通信の例外であることを示す対象情報を含む通信データを送信する。このため、低速で通信する第1通信装置から送信される通信データが例外通信の対象とされ、適当な通信データを例外通信の対象とすることができる。 Also, the first communication device transmitting communication data transmits communication data including target information indicating an exception of cyclic communication when communicating at a lower speed than other communication devices. Therefore, the communication data transmitted from the first communication device that communicates at a low speed is targeted for the exceptional communication, and appropriate communication data can be targeted for the exceptional communication.
 また、通信データを送信する第1通信装置は、通信データの送信先である第2通信装置からの通知に応じて、サイクリック通信の例外であることを示す対象情報を含む通信データを送信する。具体的には、スレーブ装置21,22,30が、図8中のステップS112の通知を受けて、例外通信を実施する。また、マスタ装置10が、スレーブ装置21,22,30が低速であることの通知として、図8中のステップS115に示されるように装置情報を受信して、例外通信を実施する。これにより、低速である通信装置40の通信相手が、当該通信装置40と互いに例外通信を実施することができる。低速で通信する装置は、送信するタイミングを制御することができない可能性があり、さらに、高速な周期で送信された通信データをすべて受信して処理することができない可能性がある。このため、低速である通信装置40の通信相手も、例外通信を実施することが望ましい。 Further, the first communication device transmitting the communication data transmits the communication data including the target information indicating the exception of the cyclic communication in response to the notification from the second communication device which is the transmission destination of the communication data. .. Specifically, the slave devices 21, 22, 30 receive the notification of step S112 in FIG. 8 and carry out exceptional communication. Further, the master device 10 receives the device information as notification of the low speed of the slave devices 21, 22, 30 and executes the exceptional communication as shown in step S115 in FIG. As a result, the communication partner of the communication device 40, which has a low speed, can perform exceptional communication with the communication device 40. A device that communicates at low speed may not be able to control the timing of transmission, and further may not be able to receive and process all communication data transmitted at high speed. Therefore, it is desirable that the communication partner of the communication device 40, which has a low speed, also perform the exceptional communication.
 以上、本発明の実施の形態について説明したが、本発明は上記実施の形態によって限定されるものではない。 The embodiments of the present invention have been described above, but the present invention is not limited to the above embodiments.
 例えば、通信装置40の数は、図1に例示した数に限られず、任意に変更してもよい。 For example, the number of communication devices 40 is not limited to the number illustrated in FIG. 1, and may be changed arbitrarily.
 また、第1通信装置が低速であることが、1bitのフラグにより通知される例について説明したが、これには限定されない。例えば、第1通信装置は、第2通信装置がソフトウェア処理に従って通信することの通知を受けて、この通知に応じて例外通信を実施してもよい。第2通信装置は、自機がソフトウェア通信に従って通信することを第1通信装置に通知してもよい。このような通知は、例えば、2bit以上のコードで表されるパターンにより実現される。 Also, an example has been described in which the fact that the first communication device is slow is notified by a 1-bit flag, but the invention is not limited to this. For example, the first communication device may receive a notification that the second communication device will communicate according to software processing, and may carry out exceptional communication in response to this notification. The second communication device may notify the first communication device that it communicates according to software communication. Such notification is realized by, for example, a pattern represented by a code of 2 bits or more.
 また、マスタ装置10が装置情報を収集する際に、スレーブ装置21,22,30が、装置情報を送信するとともに自機がサイクリック通信を実施するか例外通信を実施するかを決定する例について説明したが、これには限定されない。例えば、図18に示されるように、マスタ装置10が、収集した装置情報に応じて、サイクリック通信又は例外通信のいずれか一方を実施することを各スレーブ装置に指示し、各スレーブ装置は、この指示に従ってサイクリック通信又は例外通信を実施してもよい。例えば、マスタ装置10が、収集した装置情報により一のスレーブ装置が低速で通信することが示される場合に、当該一のスレーブ装置に対して、サイクリック通信の例外であることを示す対象情報を含む通信データを送信することを指示してもよい。この指示は、図9に示される形式のフレーム60によりなされてもよい。 Further, regarding an example in which when the master device 10 collects the device information, the slave devices 21, 22, 30 transmit the device information and determine whether the self device performs cyclic communication or exceptional communication. Although described, it is not limited to this. For example, as shown in FIG. 18, the master device 10 instructs each slave device to perform either cyclic communication or exception communication according to the collected device information, and each slave device Cyclic communication or exception communication may be performed according to this instruction. For example, when the master device 10 indicates that one slave device communicates at a low speed by the collected device information, the master device 10 sends target information indicating that the slave device is an exception of cyclic communication to the one slave device. You may instruct to transmit the communication data containing. This instruction may be provided by a frame 60 of the type shown in FIG.
 なお、図18においては、マスタ装置10とスレーブ装置30とが互いに例外通信を実施することなく、マスタ装置10が、すべてのスレーブ装置に対してサイクリック通信の対象である通信データを送信する例について示されている。上記実施の形態では、互いに例外通信をするペアとなる通信装置が決定される例について説明した。しかしながら、図18に示されるように、低速で通信する第1通信装置が、例外通信の対象である通信データを送信し、この通信データを受信する第2通信装置は、サイクリック通信の例外として通信データを扱い、第1通信装置に対しては、サイクリック通信の対象となる通信データを送信してもよい。 In FIG. 18, an example in which the master device 10 and the slave device 30 do not perform exceptional communication with each other and the master device 10 transmits communication data that is the target of cyclic communication to all slave devices About. The above embodiment has described the example in which the pair of communication devices that perform exceptional communication with each other are determined. However, as shown in FIG. 18, the first communication device that communicates at a low speed transmits the communication data that is the target of the exceptional communication, and the second communication device that receives this communication data is the exception of the cyclic communication. Communication data may be handled and the communication data to be subjected to cyclic communication may be transmitted to the first communication device.
 また、例外通信の対象である通信データは、識別情報614を含まなくてもよい。この通信データを受信した通信装置40は、識別情報614の有無に関わらず、通信データを処理すればよい。 Further, the communication data that is the target of the exceptional communication may not include the identification information 614. The communication device 40 that receives this communication data may process the communication data regardless of the presence or absence of the identification information 614.
 また、通信装置40の機能は、専用のハードウェアによっても、また、通常のコンピュータシステムによっても実現することができる。 The function of the communication device 40 can be realized by dedicated hardware or a normal computer system.
 例えば、プロセッサ401によって実行されるプログラムP1を、コンピュータ読み取り可能な非一時的な記録媒体に格納して配布し、そのプログラムP1をコンピュータにインストールすることにより、上述の処理を実行する装置を構成することができる。このような記録媒体としては、例えばフレキシブルディスク、CD-ROM(Compact Disc Read-Only Memory)、DVD(Digital Versatile Disc)、MO(Magneto-Optical Disc)が考えられる。 For example, the program P1 executed by the processor 401 is stored in a computer-readable non-transitory recording medium and distributed, and the program P1 is installed in the computer to configure an apparatus that executes the above-described processing. be able to. As such a recording medium, for example, a flexible disk, a CD-ROM (Compact Disc Read-Only Memory), a DVD (Digital Versatile Disc), and an MO (Magneto-Optical Disc) can be considered.
 また、プログラムP1をインターネットに代表される通信ネットワーク上のサーバ装置が有するディスク装置に格納しておき、例えば、搬送波に重畳させて、コンピュータにダウンロードするようにしてもよい。 Alternatively, the program P1 may be stored in a disk device included in a server device on a communication network typified by the Internet, and, for example, may be superimposed on a carrier wave and downloaded to a computer.
 また、通信ネットワークを介してプログラムP1を転送しながら起動実行することによっても、上述の処理を達成することができる。 The above processing can also be achieved by starting and executing the program P1 while transferring it through the communication network.
 さらに、プログラムP1の全部又は一部をサーバ装置上で実行させ、その処理に関する情報をコンピュータが通信ネットワークを介して送受信しながらプログラムを実行することによっても、上述の処理を達成することができる。 Further, the above-described processing can be achieved by executing all or a part of the program P1 on the server device and executing the program while the computer transmits and receives information regarding the processing via the communication network.
 なお、上述の機能を、OS(Operating System)が分担して実現する場合又はOSとアプリケーションとの協働により実現する場合等には、OS以外の部分のみを媒体に格納して配布してもよく、また、コンピュータにダウンロードしてもよい。 If the OS (Operating System) shares the functions described above, or if the OS and applications cooperate with each other, even if only the parts other than the OS are stored in the medium and distributed. Well, it may also be downloaded to your computer.
 また、通信装置40の機能を実現する手段は、ソフトウェアに限られず、その一部又は全部を、回路を含む専用のハードウェアによって実現してもよい。 Further, the means for realizing the function of the communication device 40 is not limited to software, and a part or all thereof may be realized by dedicated hardware including a circuit.
 本発明は、本発明の広義の精神と範囲を逸脱することなく、様々な実施の形態及び変形が可能とされるものである。また、上述した実施の形態は、本発明を説明するためのものであり、本発明の範囲を限定するものではない。つまり、本発明の範囲は、実施の形態ではなく、請求の範囲によって示される。そして、請求の範囲内及びそれと同等の発明の意義の範囲内で施される様々な変形が、本発明の範囲内とみなされる。 The present invention allows various embodiments and modifications without departing from the broad spirit and scope of the present invention. Further, the above-described embodiments are for explaining the present invention and do not limit the scope of the present invention. That is, the scope of the present invention is not defined by the embodiments but by the claims. Various modifications made within the scope of the claims and the scope of the invention equivalent thereto are considered to be within the scope of the present invention.
 本発明は、通信性能が異なる複数の通信装置の運用に適している。 The present invention is suitable for operating a plurality of communication devices having different communication performances.
 1000 通信システム、 10 マスタ装置、 21,22,30 スレーブ装置、 40 通信装置、 41 サイクリックメモリ、 42 通信インタフェース、 43 受信処理部、 431 受信データ解析部、 432 受信バッファ、 44 送信処理部、 441 送信データ生成部、 442 送信バッファ、 401 プロセッサ、 402 主記憶部、 403 補助記憶部、 404 入力部、 405 出力部、 406 通信部、 50 通信ネットワーク、 60 フレーム、 61 ヘッダ部、 611 送信先アドレス、 612 送信元アドレス、 613 フレーム種別情報、 614 識別情報、 615 対象情報、 62 データ部、 621 指示情報、 622 装置情報、 63 フッタ部、 A10,A21,A22,A30 記憶領域、 P1 プログラム。 1000 communication system, 10 master device, 21,22,30 slave device, 40 communication device, 41 cyclic memory, 42 communication interface, 43 reception processing unit, 431 reception data analysis unit, 432 reception buffer, 44 transmission processing unit, 441 Transmission data generation unit, 442 transmission buffer, 401 processor, 402 main storage unit, 403 auxiliary storage unit, 404 input unit, 405 output unit, 406 communication unit, 50 communication network, 60 frame, 61 header unit, 611 destination address, 612 sender address, 613 frame type information, 614 identification information, 615 target information, 62 data section, 621 instruction information, 622 device information, 63 footer section, A10, A21, A22, A30 storage area, P1 program.

Claims (11)

  1.  記憶手段に記憶される記憶データを共有するための通信を予め定められた周期毎に実施する第1通信装置及び第2通信装置を有する通信システムであって、
     前記第1通信装置によって送信される通信データは、該通信データに関する周期を該周期の前後の他の周期と識別して示す識別情報と、該通信データが周期毎の通信の対象であるか又は該対象から除外される例外であるかを示す対象情報と、を含み、
     前記第2通信装置は、前記通信データを受信して、受信した前記通信データに含まれる前記対象情報により前記通信データが前記対象であることが示され、かつ該通信データに含まれる前記識別情報により示される周期が現在の周期とは異なる場合に、前記通信データを破棄し、前記通信データに含まれる前記対象情報により前記通信データが前記例外であることが示される場合に、前記通信データを処理する、通信システム。
    A communication system having a first communication device and a second communication device for performing communication for sharing storage data stored in a storage means at a predetermined cycle,
    The communication data transmitted by the first communication device is identification information that identifies a cycle relating to the communication data from other cycles before and after the cycle, and the communication data is an object of communication in each cycle, or Target information indicating whether the exception is excluded from the target,
    The second communication device receives the communication data, the target information included in the received communication data indicates that the communication data is the target, and the identification information included in the communication data. When the cycle indicated by is different from the current cycle, the communication data is discarded, and when the communication information indicates that the communication data is the exception, the communication data is deleted. Processing, communication system.
  2.  前記第1通信装置は、ソフトウェア処理に従って通信する場合に、前記例外であることを示す前記対象情報を含む前記通信データを送信する、
     請求項1に記載の通信システム。
    The first communication device, when communicating according to software processing, transmits the communication data including the target information indicating the exception,
    The communication system according to claim 1.
  3.  前記第1通信装置、前記第2通信装置及び第3通信装置を有する通信システムであって、
     前記第1通信装置は、前記第3通信装置より低速で通信する場合に、前記例外であることを示す前記対象情報を含む前記通信データを送信する、
     請求項1又は2に記載の通信システム。
    A communication system comprising the first communication device, the second communication device and a third communication device,
    The first communication device transmits the communication data including the target information indicating the exception when communicating at a lower speed than the third communication device,
    The communication system according to claim 1.
  4.  前記第2通信装置は、前記第1通信装置に関する装置情報を収集し、収集した前記装置情報により前記第1通信装置が前記第3通信装置より低速で通信することが示される場合に、前記例外であることを示す前記対象情報を含む前記通信データを送信することを前記第1通信装置に指示し、
     前記第1通信装置は、前記第2通信装置による指示に従って、前記例外であることを示す前記対象情報を含む前記通信データを送信する、
     請求項3に記載の通信システム。
    The second communication device collects device information about the first communication device, and when the collected device information indicates that the first communication device communicates at a lower speed than the third communication device, the exception Instructing the first communication device to transmit the communication data including the target information indicating that
    The first communication device transmits the communication data including the target information indicating the exception, according to an instruction from the second communication device,
    The communication system according to claim 3.
  5.  前記第1通信装置は、前記第2通信装置からの通知に応じて、前記例外であることを示す前記対象情報を含む前記通信データを送信する、
     請求項1から4のいずれか一項に記載の通信システム。
    The first communication device transmits the communication data including the target information indicating the exception, in response to a notification from the second communication device,
    The communication system according to any one of claims 1 to 4.
  6.  前記第2通信装置は、ソフトウェア処理に従って通信することを前記第1通信装置に通知する、
     請求項5に記載の通信システム。
    The second communication device notifies the first communication device to communicate according to software processing,
    The communication system according to claim 5.
  7.  前記第1通信装置、前記第2通信装置、及び第4通信装置を有する通信システムであって、
     前記第2通信装置は、前記第4通信装置より低速で通信することを前記第1通信装置に通知する、
     請求項5又は6に記載の通信システム。
    A communication system comprising the first communication device, the second communication device, and a fourth communication device,
    The second communication device notifies the first communication device that communication is performed at a lower speed than the fourth communication device,
    The communication system according to claim 5.
  8.  前記通信データは、ヘッダを有するフレームであって、
     前記対象情報は、前記ヘッダに含まれる、
     請求項1から7のいずれか一項に記載の通信システム。
    The communication data is a frame having a header,
    The target information is included in the header,
    The communication system according to any one of claims 1 to 7.
  9.  記憶手段に記憶される記憶データを共有するための通信を予め定められた周期毎に他の通信装置と実施する通信装置であって、
     前記通信により伝送される通信データに関する周期を該周期の前後の他の周期と識別して示す識別情報と、該通信データが周期毎の通信の対象であるか又は該対象から除外される例外であるかを示す対象情報と、を含む前記通信データを前記他の通信装置から受信する通信インタフェースと、
     前記通信データに含まれる前記対象情報により前記通信データが前記対象であることが示され、かつ該通信データに含まれる前記識別情報により示される周期が現在の周期とは異なる場合に、前記通信データを破棄し、前記通信データに含まれる前記対象情報により前記通信データが前記例外であることが示される場合に、前記通信データを処理する処理手段と、
     を備える通信装置。
    A communication device for performing communication for sharing storage data stored in a storage means with another communication device at a predetermined cycle,
    Identification information indicating a cycle relating to communication data transmitted by the communication by distinguishing it from other cycles before and after the cycle, and an exception that the communication data is a target of communication in each cycle or is excluded from the target. Target information indicating whether there is, a communication interface that receives the communication data including from the other communication device,
    The communication data is indicated by the target information included in the communication data indicating that the communication data is the target, and the cycle indicated by the identification information included in the communication data is different from the current cycle. And processing means for processing the communication data when the target information included in the communication data indicates that the communication data is the exception.
    A communication device including.
  10.  予め定められた周期毎に通信する通信方法であって、
     データに関する周期を該周期の前後の他の周期と識別して示す識別情報と、該データが周期毎の通信の対象であるか又は該対象から除外される例外であるかを示す対象情報と、を含む前記データを受信するステップと、
     前記データに含まれる前記対象情報により前記データが前記対象であることが示され、かつ該データに含まれる前記識別情報により示される周期が現在の周期とは異なる場合に、前記データを破棄し、前記データに含まれる前記対象情報により前記データが前記例外であることが示される場合に、前記データを処理するステップと、
     を含む通信方法。
    A communication method of communicating at a predetermined cycle,
    Identification information indicating a cycle relating to the data by distinguishing it from other cycles before and after the cycle, and target information indicating whether the data is a communication target for each cycle or an exception excluded from the target, Receiving the data including
    When the target information included in the data indicates that the data is the target, and when the cycle indicated by the identification information included in the data is different from the current cycle, the data is discarded, Processing the data if the target information contained in the data indicates that the data is the exception;
    Communication method including.
  11.  予め定められた周期毎に通信装置と通信するコンピュータに、
     データに関する周期を該周期の前後の他の周期と識別して示す識別情報と、該データが周期毎の通信の対象であるか又は該対象から除外される例外であるかを示す対象情報と、を含む前記データを前記通信装置から受信し、
     前記データに含まれる前記対象情報により前記データが前記対象であることが示され、かつ該データに含まれる前記識別情報により示される周期が現在の周期とは異なる場合に、前記データを破棄し、前記データに含まれる前記対象情報により前記データが前記例外であることが示される場合に、前記データを処理する、
     ことを実行させるためのプログラム。
    To a computer that communicates with the communication device for each predetermined cycle,
    Identification information indicating a cycle relating to the data by distinguishing it from other cycles before and after the cycle, and target information indicating whether the data is a communication target for each cycle or an exception excluded from the target, Receiving the data from the communication device including
    When the target information included in the data indicates that the data is the target, and when the cycle indicated by the identification information included in the data is different from the current cycle, the data is discarded, Processing the data if the target information contained in the data indicates that the data is the exception;
    A program that lets you do things.
PCT/JP2018/042727 2018-11-19 2018-11-19 Communication system, communication device, communication method, and program WO2020105099A1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
DE112018008145.1T DE112018008145T5 (en) 2018-11-19 2018-11-19 Communication system, communication device, communication method and program
PCT/JP2018/042727 WO2020105099A1 (en) 2018-11-19 2018-11-19 Communication system, communication device, communication method, and program
US17/283,550 US11528348B2 (en) 2018-11-19 2018-11-19 Communication system, communication device, communication method, and program for reliably receiving periodic data
JP2019531359A JP6570804B1 (en) 2018-11-19 2018-11-19 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND PROGRAM
TW108119127A TWI699105B (en) 2018-11-19 2019-06-03 Communication system, communication device and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2018/042727 WO2020105099A1 (en) 2018-11-19 2018-11-19 Communication system, communication device, communication method, and program

Publications (1)

Publication Number Publication Date
WO2020105099A1 true WO2020105099A1 (en) 2020-05-28

Family

ID=67844800

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/042727 WO2020105099A1 (en) 2018-11-19 2018-11-19 Communication system, communication device, communication method, and program

Country Status (5)

Country Link
US (1) US11528348B2 (en)
JP (1) JP6570804B1 (en)
DE (1) DE112018008145T5 (en)
TW (1) TWI699105B (en)
WO (1) WO2020105099A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114868371A (en) 2019-12-25 2022-08-05 三菱电机株式会社 Data collection management device and data collection system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004133581A (en) * 2002-10-09 2004-04-30 Toshiba Corp Monitoring control system
JP2007166014A (en) * 2005-12-09 2007-06-28 Mitsubishi Electric Corp Cyclic communication system
JP2015082271A (en) * 2013-10-24 2015-04-27 三菱電機株式会社 Cyclic communication system
JP2016533090A (en) * 2013-08-06 2016-10-20 ソニー株式会社 Communication terminal and method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0679307B2 (en) * 1987-10-22 1994-10-05 日本電気株式会社 Coprocessor parallel operation control method
FI88841C (en) * 1991-10-30 1993-07-12 Nokia Telecommunications Oy Method for processing alternate length data transfer frames with a channel controller and for placing them into a cyclic buffer memory
JP2000029509A (en) 1998-07-09 2000-01-28 Yaskawa Electric Corp Method and device for master/slave transmission
WO2003028289A2 (en) * 2001-09-26 2003-04-03 Siemens Aktiengesellschaft Method for transmitting real time data messages in a cyclic communications system
DE10243850A1 (en) * 2002-09-20 2004-04-01 Siemens Ag Process for the transmission of data telegrams in a switched, cyclical communication system
EP2187400B1 (en) * 2008-11-14 2012-01-04 Telefonaktiebolaget L M Ericsson (publ) Network access device with shared memory
JP5247422B2 (en) * 2008-12-26 2013-07-24 三菱電機株式会社 Cyclic communication system, communication apparatus, and cyclic communication method
US9735831B1 (en) * 2009-09-22 2017-08-15 Honeywell International Inc. System, apparatus and method for synchronizing communications between devices
DE112010003776B4 (en) * 2009-09-25 2016-08-18 Mitsubishi Electric Corp. Network performance estimator, network performance estimation method, and network configuration test method
KR20120055034A (en) * 2010-11-22 2012-05-31 삼성전자주식회사 Apparatus for connecting peripheral device in portable terminal using serial peripheral interface and method for transmitting data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004133581A (en) * 2002-10-09 2004-04-30 Toshiba Corp Monitoring control system
JP2007166014A (en) * 2005-12-09 2007-06-28 Mitsubishi Electric Corp Cyclic communication system
JP2016533090A (en) * 2013-08-06 2016-10-20 ソニー株式会社 Communication terminal and method
JP2015082271A (en) * 2013-10-24 2015-04-27 三菱電機株式会社 Cyclic communication system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "Motor business division , appliances company Panasonic corporation", 9 April 2014 (2014-04-09), pages 1 - 168, XP055710109, Retrieved from the Internet <URL:https://industrial.panasonic.com/content/data/MT/PDF/SX-DSV02841_R1_0J.pdf> [retrieved on 20190117] *

Also Published As

Publication number Publication date
US20210392209A1 (en) 2021-12-16
DE112018008145T5 (en) 2021-08-12
JP6570804B1 (en) 2019-09-04
JPWO2020105099A1 (en) 2021-02-15
TW202021327A (en) 2020-06-01
TWI699105B (en) 2020-07-11
US11528348B2 (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN110062054B (en) Remote control method and system for Internet of things equipment
TWI648638B (en) Multi-microcontroller system, internet of things gateway system, and control flow of multi-microcontroller system based on network bridge
KR101761495B1 (en) Reducing a number of server-client sessions
WO2020105099A1 (en) Communication system, communication device, communication method, and program
CN110326262B (en) Abstracting a wireless device as a virtual ethernet interface
JP2023126702A (en) Information processing device and data transfer method
JP7110573B2 (en) Information processing device, information processing program and information processing method
JP3494545B2 (en) Distributed computer system, computer and distributed processing method
KR20190062214A (en) Communication controlling apparatus
JP7076654B1 (en) Programmable controller communication unit, received data storage method and program
WO2023238326A1 (en) Switch
WO2013176250A1 (en) Communication device
JP7460719B1 (en) Data collection device and data collection method
US20230336429A1 (en) Communication system, control method, control apparatus and program
WO2024014048A1 (en) Control system, control device, and communication method
JP4456553B2 (en) Network system and command data processing method
JP2001312432A (en) Network server and its control method
JP2023176362A (en) Slave device, control method of the slave device, and program
US9843633B2 (en) Network device and information sharing system
US9633555B2 (en) Remote device location identification
JP2015049600A (en) Peripheral equipment controller, peripheral equipment control method and peripheral equipment control program
JP4654056B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
JP2022156624A (en) Repeater, communication method, and program
JP2021124829A (en) Electronic control device
CN114443061A (en) Program programming method and device of embedded equipment, storage medium and terminal

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2019531359

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: 18940579

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 18940579

Country of ref document: EP

Kind code of ref document: A1