Communication unit, network system, output unit control method and control program
The communication unit with a control unit and memory for load shedding data addresses the inflexibility in industrial networks by enabling flexible output unit operation when master device communication is lost, ensuring safe and appropriate data handling.
Patent Information
- Application Number
- JP2021005293
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-15
- Publication Date
- 2025-09-17
- Estimated Expiration
- 2041-01-15
AI Technical Summary
Existing industrial network systems lack flexibility when communication with master devices is lost, causing output units to continue outputting invalid data due to missing instructions, leading to inflexibility in system operation.
A communication unit with a control unit that notifies output units of invalid data when instructions from the master device are lost, utilizing a memory unit to store load shedding data for appropriate output settings, enabling flexible operation.
Ensures system flexibility by allowing output units to operate according to user settings even when master device communication is lost, preventing malfunctions and ensuring safety.
Smart Images

Figure 0007739716000003 
Figure 0007739716000004 
Figure 0007739716000005
Abstract
Description
[Technical Field]
[0001] The present invention relates to a control method and a control program for a communication unit, a network system, and an output unit. [Background technology]
[0002] In the field of factory automation (FA), various types of devices that share work processes are controlled. To coordinate the operation of various controllers, remote I / O, and manufacturing devices used in work in a specific area such as a factory facility, an industrial network system, also known as a field network, is constructed to connect these devices.
[0003] A typical industrial network system uses a master-slave network consisting of various slave devices and a master device. The slave devices are devices that control or collect data from equipment installed in a factory. The master device is a device called a PLC (Programmable Logic Controller), for example, that centrally manages these slaves. EtherCAT (registered trademark) and Ethernet / IP (registered trademark) are examples of such industrial network system formats (ETHERNET: registered trademark). In such industrial network systems, communication cables are laid between each device to create a network.
[0004] A related technique is disclosed in Patent Document 1 below. Patent Document 1 relates to a communication system for controlling factory automation equipment and the like in a bus-type network, which is composed of a master station that manages the network and slave stations that control I / O, etc. In this communication system, when a communication abnormality is detected, a partial communication suspension mode can be set as an abnormality operation mode on the master station side that specifies whether to continue communication with slave stations included in the remote I / O system, in which communication is suspended only with the slave station where the abnormality occurred, and the communication abnormality state is continued without executing a subscription solicitation process to resume communication with the slave station, while normal communication is continued with other slave stations where no communication abnormality has occurred. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Japanese Patent Application Laid-Open No. 2007-312043 Summary of the Invention [Problem to be solved by the invention]
[0006] In the above-described network system, a system may be constructed in which a communication unit for controlling the IO units is provided between the master device and IO units such as input units and output units. This communication unit controls the IO units by receiving instructions from the master device, but if the instructions from the master device are lost due to debugging or the like of the master device, the communication unit will maintain the state of the output unit before the instructions from the master device were lost. Therefore, even if the output data to be sent to the output unit is invalid, the output unit will continue to output a constant value, resulting in a lack of flexibility as a system.
[0007] However, even if the technology disclosed in the above-mentioned Patent Document 1 is used, it is not possible to solve such problems.
[0008] The present invention has been made in consideration of the above problems, and has as its object to realize a communication unit that can provide system flexibility even when instructions from the master device are no longer received. [Means for solving the problem]
[0009] In order to solve the above-mentioned problems, the present invention employs the following configuration.
[0010] A communication unit according to one aspect of the present invention includes a first communication unit that communicates with a master device via a network, a second communication unit that communicates with an output unit via a local bus, and a control unit that controls the second communication unit to notify the output unit that output data received from the master device and to be sent to the output unit is invalid when instructions cannot be received from the master device via the first communication unit.
[0011] According to the above configuration, when the control unit is unable to receive instructions from the master device, it controls the second communication unit to notify the output unit that the output data received from the master device and to be sent to the output unit is invalid, thereby enabling the output unit to output according to the user's settings and making the system more flexible.
[0012] In the communication unit relating to the above-mentioned aspect, the communication unit further includes a memory unit that stores load shedding data corresponding to the output unit, and the control unit controls the second communication unit to notify the output unit of the load shedding data stored in the memory unit when it becomes unable to receive instructions from the master device via the first communication unit.
[0013] According to the above configuration, appropriate load shedding data can be set for the output unit.
[0014] A network system according to one aspect of the present invention is a network system comprising a master device and a communication unit, wherein the communication unit includes a first communication unit that communicates with the master device via a network, a second communication unit that communicates with an output unit via a local bus, and a control unit that controls the second communication unit to notify the output unit that output data received from the master device and to be sent to the output unit is invalid when instructions cannot be received from the master device via the first communication unit.
[0015] According to the above configuration, when the control unit is unable to receive instructions from the master device, it controls the second communication unit to notify the output unit that the output data received from the master device and to be sent to the output unit is invalid, thereby enabling the output unit to output according to the user's settings and making the system more flexible.
[0016] A method for controlling an output unit according to one aspect of the present invention includes the steps of receiving from the master device that the master device is in a state where it is not issuing instructions, and notifying the output unit that the output data received from the master device and to be output to the output unit is in an invalid state.
[0017] According to the above configuration, the output unit is notified that the output data received from the master device and output to the output unit is invalid, so that the output unit can output according to the user's settings, thereby making the system more flexible.
[0018] A control program according to one aspect of the present invention is a computer program for causing a computer to execute a control method for an output unit, the control method including the steps of receiving from the master device that the master device is in a state where it is not issuing instructions, and notifying the output unit that the output data received from the master device and to be output to the output unit is in an invalid state.
[0019] According to the above configuration, the output unit is notified that the output data received from the master device and output to the output unit is invalid, so that the output unit can output according to the user's settings, thereby making the system more flexible. [Effects of the Invention]
[0020] According to any one of the communication unit according to one aspect of the present invention, the network system according to one aspect of the present invention, the control method for an output unit according to one aspect of the present invention, and the control program for an output unit according to one aspect of the present invention, it is possible to make the system flexible. [Brief explanation of the drawings]
[0021] [Figure 1] FIG. 2 is a block diagram showing a functional configuration of a communication gateway device according to an embodiment of the present invention. [Figure 2] 1 is a diagram showing a schematic configuration of a network system according to an embodiment of the present invention; [Figure 3] 4 is a flowchart illustrating a processing procedure of the communication gateway device according to the embodiment of the present invention. DETAILED DESCRIPTION OF THE INVENTION
[0022] Hereinafter, an embodiment according to one aspect of the present invention (hereinafter also referred to as "the present embodiment") will be described with reference to the drawings.
[0023] §1 Application Examples 1 is a block diagram showing the functional configuration of a communication gateway device 10 included in a network system 1 according to an embodiment of the present invention. The network system 1 includes the communication gateway device 10, a master device 20, external input devices 61a and 61c and external output devices 61b and 61d controlled by a unit 11 belonging to a stand-alone system, and external input devices 71a and 71c and external output devices 71b and 71d controlled by a unit 12 belonging to a remote IO system. Hereinafter, the input units and output units may be collectively referred to as IO units.
[0024] The master device 20 is connected to the communication gateway device 10 via a communication network (hereinafter referred to as the upper network) such as EtherNet / IP (registered trademark), and controls the communication gateway device 10 via the upper network. The master device 20 may be, for example, a device such as a PLC.
[0025] When the master device 20 is in a state (operating mode) in which it controls the communication gateway device 10 via the upper network, the communication gateway device 10 controls the IO units 41a to 41d and 51a to 51d in response to instructions from the master device 20. When the master device 20 is in the operating mode, it is called a Run state, and the master device 20 notifies the communication gateway device 10 that it is in the Run state, and transmits output data to be set in the output units to the communication gateway device 10.
[0026] Furthermore, when the master device 20 is in a state (program mode) where the program is being debugged or the program is operating abnormally during operation, the master device 20 cannot receive instructions from the master device 20, and the communication gateway device 10 operates as described below. When the master device 20 is in the program mode, it is called an idle state, and the master device 20 notifies the communication gateway device 10 that it is in the idle state. The above-mentioned Run state and Idle state are called upper communication modes.
[0027] The communication gateway device 10 includes a communication unit 10A, a unit 11 belonging to a stand-alone system, and a unit 12 belonging to a remote IO system. The communication unit 10A also includes a first communication unit 13 and a second communication unit 14. The first communication unit 13 is connected to a master device 20 via a communication network (higher-level network) such as EtherNet / IP (registered trademark).
[0028] The second communication unit 14 includes a control unit 141 and a local bus communication unit 142. Under the control of the control unit 141, the local bus communication unit 142 communicates with the logic control unit 111, the input units 41a, 41c, 51a, and 51c, and the output units 41b, 41d, 51b, and 51d, which are connected to the local bus (lower network).
[0029] The stand-alone system can independently control the IO units 41a to 41d without instructions from the master device 20. The stand-alone system includes a logic control unit 111, input units 41a and 41c, and output units 41b and 41d.
[0030] The logic control unit 111 controls the input units 41a and 41c and the output units 41b and 41d via the local bus communication section 142. For example, the logic control unit 111 controls the input units 41a and 41c to receive input data from the external input devices 61a and 61c. The logic control unit 111 then performs calculations based on the input data, controls the output units 41b and 41d in accordance with the calculation results, and controls the external output devices 61b and 61d.
[0031] The master device 20 monitors the operation of the standalone system and communicates with the standalone system as appropriate. Therefore, the standalone system can operate independently whether the upper communication mode is in the Run state or the Idle state.
[0032] On the other hand, the remote IO system includes input units 51a and 51c and output units 51b and 51d. It controls the IO units 51a to 51d in response to instructions from the master device 20. For example, the remote IO system transmits input data from external input devices 71a and 71c connected to the input units 51a and 51c to the master device 20 via the first communication unit 13 in response to instructions from the master device 20. The master device 20 transmits instructions (output data) to the remote IO system in response to the received input data, and the remote IO system sets the output data in the output units 51b and 51d in response to the instructions from the master device 20. This allows the external output devices 71b and 71d to be controlled.
[0033] When the control unit 141 receives an upper communication mode in the Run state from the master device 20 via the first communication unit 13, the control unit 141 controls the local bus communication unit 142 in accordance with an instruction from the master device 20. That is, in accordance with an instruction from the master device 20, the control unit 141 receives input data from the external input devices 71a and 71c via the input units 51a and 51c and transmits the input data to the master device 20 via the first communication unit 13, and controls the external output devices 71b and 71d by controlling the output units 51b and 51d in accordance with the output data received from the master device 20.
[0034] The output unit 51b includes a control unit 511 and a storage unit 512. The storage unit 512 is configured with RAM (Random Access Memory), flash memory, etc., and stores setting data (hereinafter also referred to as load shedding data) to be set in the output unit 51b when the upper communication mode is in the idle state. Different load shedding data is stored for each of the multiple output units.
[0035] When the control unit 141 receives an upper communication mode in an idle state (a state in which instructions cannot be received from the master device 20) from the master device 20 via the first communication unit 13, the control unit 511 reads out the load shedding data stored in the storage unit 512 and sets the load shedding data in the output unit 51b. This allows the output unit 51b to output according to the user's settings, making the system more flexible.
[0036] In addition, the communication unit 10A may have a memory unit and store the load shedding data to be set for the output units 51b and 51d, and when an upper communication mode in the Idle state is received from the master device 20, the communication unit 10A may refer to the memory unit and set the load shedding data for all the output units.
[0037] §2 Configuration example (Overall overview of Network System 1) 2 is a diagram showing a schematic configuration of a network system 1 including a communication gateway device 10 according to an embodiment of the present invention. The network system 1 includes the communication gateway device 10, a master device 20, a hub device 30, external input devices 61a and 61c and external output devices 61b and 61d controlled by a standalone system, and external input devices 71a and 71c and external output devices 71b and 71d controlled by a remote IO system.
[0038] The master device 20 and the communication gateway device 10 are connected by a higher-level network via a hub device 30. The communication gateway device 10 includes a communication unit 10A, a unit 11 belonging to a stand-alone system, and a unit 12 belonging to a remote IO system. As shown in Fig. 2, the stand-alone system and the remote IO system are provided with a plurality of IO units for connecting external input devices and external output devices, and the external input devices and external output devices can be connected by connecting cables.
[0039] 2, external input devices 61a and 61c and external output devices 61b and 61d connected to unit 11 belonging to the standalone system belong to standalone system group 60 and are assigned to the standalone system. Also, external input devices 71a and 71c and external output devices 71b and 71d connected to unit 12 belonging to the remote IO system belong to remote IO system group 70 and are assigned to master device 20.
[0040] Table 1 below shows an example of the specifications of an output unit. This output unit is an analog output unit, and the settings that are set in the output unit when the upper communication mode transitions from Run state to Idle state are listed.
[0041] [Table 1]
[0042] As shown in the first setting in Table 1, when "Hold Output" is selected, the output unit will hold the value immediately before the abnormality occurred and output that value. In the Run state, the output range voltage can be set between -10V and +10V, and the current can be set between 4 and 20mA. In the Idle state, the upper limit can be set to 11V or 20.8mA, and the lower limit can be set to -11V or 3.2mA.
[0043] As shown in the second setting in Table 1, when "Lower limit output" is set, the output unit outputs the lower limit of each output range (-11V, 3.2mA). Also, as shown in the third setting in Table 1, when "Upper limit output" is set, the output unit outputs the upper limit of each output range (11V, 20.8mA).
[0044] As shown in the fourth setting in Table 1, when "User specified value output" is set, the output unit outputs the value specified by the user. Also, as shown in the fifth setting in Table 1, when "0 output" is set, the output unit outputs the analog value when the output setting value for each output range is "0."
[0045] Table 2 below shows an example of the specifications of an output unit. This output unit is a digital output unit, and the settings that are set in the output unit when the upper communication mode transitions from Run state to Idle state are listed.
[0046] [Table 2]
[0047] As shown in Table 2, output contact 00 and output contact 01 can be set to output when load is cut off; if 0 (FALSE), the output is turned OFF, and if 1 (TRUE), the current output value is maintained. The initial values of output contact 00 and output contact 01 are both FALSE.
[0048] When the upper communication mode is in the Run state, the remote IO system is in the OP (operation) state, and is in operation while performing IO refresh. Here, IO refresh is divided into IN refresh and OUT refresh. IN refresh is the operation of inputting input data from the input unit. OUT refresh is the operation of updating the output of the output unit.
[0049] When the upper communication mode is in the Idle state, the remote IO system is in the SafeOP (Safe Operation) state, and only IN refresh is performed, and OUT refresh is not performed. Therefore, only input data from the input unit is valid. At this time, as described above, the control unit 511 reads the load shedding data stored in the memory unit 512 and sets it in the output unit 51b.
[0050] An example of an external output device controlled by the output unit is a device that performs temperature control. If the upper communication mode transitions to the Idle state while the temperature control device is at a high temperature, the temperature control device will remain at a high temperature, resulting in a loss of safety. Safety may also be lost if the temperature drops suddenly when the output of the temperature control device is turned off. The setting data (load shedding data) stored in the storage unit 512 is set to a value that will set the temperature so as to prevent such a situation from occurring.
[0051] Furthermore, when the output unit controls a servo motor, if the drive waveform for driving the servo motor becomes fixed or if the drive waveform continues to be output, the safety of the device controlled by the servo motor may be compromised. When such external output equipment is controlled by the output unit, when the upper communication mode enters the idle state, the control unit 511 reads out the load shedding data stored in the memory unit 512 and sets it in the output unit 51b, thereby preventing safety from being compromised.
[0052] §3 Example of operation 3 is a flowchart for explaining the processing procedure of the communication gateway device 10 according to the embodiment of the present invention. First, the control unit 141 receives output data from the master device 20 via the first communication unit 13 (S1).
[0053] Next, the control unit 141 receives the upper communication mode from the master device 20 via the first communication unit 13 (S2). If the upper communication mode received last time was the Run state and the upper communication mode received this time is the Idle state (S3, from Run to Idle), the control unit 141 transitions the IO units 51a to 51d belonging to the remote IO system group 70 to the SafeOP state (S4), and the process proceeds to step S7.
[0054] At this time, the control unit 141 notifies the output units 51b and 51d via the local bus communication unit 142 that they have transitioned from the OP state to the SafeOP state, and notifies them that the output data from the master device 20 is invalid.
[0055] When the control unit 511 of the output unit 51b receives from the communication unit 10A the information that the state has been changed to the SafeOP state, the control unit 511 reads the load shedding data stored in the storage unit 512 and outputs the value to the external output device 71b. The control unit 511 determines the load shedding data in accordance with the settings shown in Tables 1 and 2 and outputs the value to the external output device 71b.
[0056] Furthermore, the output unit 51d does not have a control unit 511 and a storage unit 512 like the output unit 51b. In this case, the communication unit 10A notifies the output unit 51d that it has transitioned to the SafeOP state, and also notifies the output unit 51d of the load shedding data stored in a storage unit (not shown). Upon receiving notification from the communication unit 10A that it has transitioned to the SafeOP state, the output unit 51d receives the load shedding data from the communication unit 10A and outputs the value to the external output device 71d.
[0057] Furthermore, if the upper communication mode received last time is the same as the upper communication mode received this time (S3, same as last time), the control unit 121 does not perform any particular process (S5), and the process proceeds to step S7.
[0058] Also, if the upper communication mode received last time was the Idle state and the upper communication mode received this time is the Run state (S3, from Idle to Run), the control unit 141 transitions the IO units 51a to 51d belonging to the remote IO system group 70 to the OP state (S6), and processing proceeds to step S7.
[0059] In step S7, the control unit 141 stores the currently received upper communication mode (S7), and returns to step S1 to repeat the subsequent processes. Note that the processes of steps S1 to S7 are performed periodically, and the cycle is assumed to be predetermined.
[0060] §4 Action and effect According to the embodiment of the present invention, when the control unit 141 receives the upper communication mode in the Idle state from the master device 20 via the first communication unit 13, the control unit 511 reads out the setting data stored in the storage unit 512 and sets it in the output unit 51b. Therefore, the output unit 51b can cut off the output to prevent the external output device 71b from malfunctioning or falling into an unexpected state, thereby ensuring safety.
[0061] Furthermore, when the upper communication mode is in the idle state, the control unit 141 reads out the load shedding data stored in the storage unit and sets the load shedding data corresponding to each of the output units 51b and 51d. Therefore, appropriate setting data can be set for each of the output units 51b and 51d.
[0062] Furthermore, the stand-alone system controls the output units 41b and 41d independently even when it is unable to receive instructions from the master device 20 via the first communication unit 13. Therefore, setting data corresponding to the output units 41b and 41d is not required.
[0063] [Software implementation example] The functional blocks of the communication unit 10A (particularly, the control unit 141) may be realized by a logic circuit (hardware) formed on an integrated circuit (IC chip) or the like, or may be realized by software.
[0064] In the latter case, the communication unit 10A includes a computer that executes instructions of a program, which is software that realizes each function. This computer includes, for example, one or more processors and a computer-readable recording medium that stores the program. The object of the present invention is achieved by having the processor in the computer read and execute the program from the recording medium.
[0065] The processor may be, for example, a CPU (Central Processing Unit). The recording medium may be a "non-transitory tangible medium," such as a ROM (Read Only Memory), a tape, a disk, a card, a semiconductor memory, or a programmable logic circuit. The computer may further include a RAM for expanding the program. The program may be supplied to the computer via any transmission medium capable of transmitting the program (such as a communication network or broadcast waves). One aspect of the present invention may also be realized in the form of a data signal embedded in a carrier wave, in which the program is embodied by electronic transmission.
[0066] The present invention is not limited to the above-described embodiments and examples, and various modifications are possible within the scope of the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments and examples are also included in the technical scope of the present invention. [Explanation of symbols]
[0067] 1 Network System 10. Communication gateway device 10A communication unit 11 Units belonging to a stand-alone system 12 Units belonging to the remote IO system 13 First Communications Department 14 Second Communications Department 20 Master device 30 Hub Device 41a, 41c, 51a, 51c Input units 41b, 41d, 51b, 51d output units 60 Standalone System Group 61a, 61c, 71a, 71c External input devices 61b,61d,71b,71d External output device 70 Remote IO System Group 141,511 Control Unit 142 Local bus communication unit 512 Storage section
Claims
1. a first communication unit that communicates with a master device via a network; a second communication unit that communicates with the output unit via the local bus; a control unit that, when receiving a notification from the master device via the first communication unit that the master device is in an idle state in which it is not issuing instructions, controls the second communication unit to notify the output unit that output data received from the master device and to be transmitted to the output unit is invalid.
2. the communication unit further includes a storage unit configured to store load shedding data corresponding to the output unit; 2. The communication unit according to claim 1, wherein the control unit controls the second communication unit to notify the output unit of the load shedding data stored in the memory unit when the control unit is unable to receive instructions from the master device via the first communication unit.
3. A network system including a master device and a communication unit, The communication unit includes a first communication section that communicates with the master device via a network; a second communication unit that communicates with the output unit via the local bus; a control unit that, when receiving a notification from the master device via the first communication unit that the master device is in an idle state in which it is not issuing instructions, controls the second communication unit to notify the output unit that output data received from the master device and to be transmitted to the output unit is invalid.
4. 1. A computer-implemented method for controlling an output unit, comprising: receiving a notification from the master device that the master device is in an idle state in which the master device is not issuing instructions; and when receiving the notification from the master device, notifying the output unit that the output data received from the master device and to be output to the output unit is invalid.
5. A computer program for causing a computer to execute a control method for an output unit, The control method includes the steps of: receiving a notification from the master device that the master device is in an idle state in which the master device does not issue instructions; and notifying the output unit, upon receiving the notification from the master device, that the output data received from the master device and to be output to the output unit is invalid.
Citation Information
Patent Citations
Digital audio device
JP2002164873A
Remote I / O system
JP2007312043A
Control system, communication control method for control system, and relay device
JP2019079395A
Control method, controller, and program
JP2020106930A