[0001] The present invention relates to a safety network system, a safety slave unit, a safety controller and a communication method, and an information collecting method and a monitoring method for the safety network system.
[0002] A programmable controller (hereinafter referred to as “PLC”) used for factory automation (hereinafter referred to as “FA”) performs the control operation in such a manner that the on/off information is input from an input device such as a switch or a sensor, the logical operation is executed according to a sequence program (also called a user program) written in the ladder language or the like, and in accordance with the operation result thus determined, on/off information signals are output to an output device such as a relay, a valve or an actuator.
[0003] The PLC is connected to the input devices or the output devices either directly or through a network. In the case where a network system connected by a network is constructed, the on/off information is transmitted and received through the network. In the process, the information are transmitted by a master slave method in which the PLC normally acts as a master unit, and the devices as slave units.
[0004] In recent years, on the other hand, a fail-safe (safety) system has been introduced also in the PLC operation. Specifically, not only the PLC and the devices but the network has a security function built therein. The security function is the one for confirming safety and producing an output. In the case where the network system enters a hazardous state as an emergency stop switch is depressed or a sensor such as a light curtain detects intrusion of a person (a part of a human body), the fail-safe system is so activated that the safety system turns to the safety side and halts the operation. In other words, the aforementioned safety functions cause the system to produce an output and operate a machine only when safety is stored. Unless safety cannot be confirmed, therefore, the machine stops.
[0005] In a network system having the safety functions (safety network system) described above, the maximum response time from the occurrence of a fault, a hazardous situation or other unsafe state to the execution of the safety operation (device halt, etc.) is required to be kept constant. Specifically, in the case where information are transmitted by the master-slave method, as well known, the slave units return a safety response to a master unit sequentially in response to the request of the master unit, as shown in
[0006] On the other hand, demand is high for collecting complementary information (unsafety information) other than the safety information described above, such as the slave unit status, the turn-on time and the number of times operated, for monitoring the slave units and the devices connected to the slave units. By acquiring these unsafety information, the life of the devices, for example, can be determined, and the devices can be replaced before they actually develop a malfunction and the system halts.
[0007] The unsafety information may be sent, for example, as shown in
[0008] As another method, as shown in
[0009] The object of this invention is to provide a safety network system, a safety slave unit, a safety controller and a communication method, and an information collecting method and a monitoring method for the safety network system in which the response time of the original safety signal is not delayed even in the case where the information other than the safety signal are transmitted or received while the system is in operation.
[0010] In order to achieve the object described above, a safety network system according to this invention is constructed by connecting a safety controller and a safety slave unit to each other through a safety network. The safety network system is such that in the case where an abnormal or hazardous or other unsafe situation occurs in the network system, the fail-safe function is activated to avoid the abnormality or hazard. The safety controller, the safety slave unit and the safety network are devices used for the fail-safe processing.
[0011] The safety slave unit includes a safety information transmission function for transmitting the safety information for determining whether a safe state prevails or not and an unsafety information transmission function for transmitting the unsafety information containing no safety information. The unsafety information transmission function is configured to transmit the unsafety information on condition that the safety slave unit is in a safe state.
[0012] Preferably, the safety slave unit has the function of transmitting safety without sending the unsafety information in the case where it is determined that no safe state prevails at the timing of transmitting the unsafety information.
[0013] The communication method according to this invention is used for the safety network system constructed by connecting a safety controller and a safety slave unit to each other through a safety network. The safety slave unit executes the process of transmitting the safety information for determining whether a safe state prevails or not or the unsafety information containing no safety information, toward the safety controller through the safety network at a predetermined timing. In the process, the process of transmitting the unsafety information is executed on condition that the safety slave unit is in a safe state.
[0014] The safety slave unit according to this invention has the safety information transmission function for transmitting the safety information for determining whether a safe state prevails and the unsafety information transmission function for transmitting the unsafety information containing no safety information. The unsafety information transmission function is so configured as to transmit the unsafety information on condition that a safe state prevails. Each transmission function of the safety slave unit is implemented by a MPU
[0015] Further, the safety controller according to this invention has the fail-safe processing function for analyzing the contents of the safety information received from the safety slave unit, and upon determination that no safe state prevails, executing a predetermined process, and the function for estimating that the safety slave unit of the transmitting end is in a safe state in the case where the unsafety information is received.
[0016] According to this invention, the fact that the unsafety information is transmitted indicates that the safety of the safety slave unit is guaranteed. In the case where the safety slave unit is in a safe state, therefore, the safety controller, upon receipt of the safety information, can indirectly ascertain that the safety slave unit is in a safe state, and upon receipt of the unsafety information, can indirectly ascertain that the safety slave unit is in a safe state. Also, suppose the safe state ceases at the timing of transmitting the unsafety state, the safety information indicating that no safe state prevails (hazardous or abnormal) is transmitted. In the case where the safe state ceases, therefore, the response time before activation of the fail-safe function need not be extended.
[0017] In this way, the time of updating the unsafety information required by the user can be set. Even in the case where the unsafety information is transmitted, the safe state is be guaranteed, and therefore the response time is not as long as in the case where the safety information is transmitted each time.
[0018] In other words, the unsafety information can be notified from the slave unit (safety slave unit) to the master unit (safety controller) without affecting the traffic of the safety network. As a result, the update time of the unsafety information can be set by the user, thereby making possible the management suitable for the user applications. Also, since the unsafety information can be collected without halting the system, the devices can be monitored on line.
[0019] The transmission timing of the unsafety information may be controlled either on the part of the safety controller or on the part of the safety slave unit. Specifically, the former can be implemented by the safety controller including unsafety information request control means for controlling the timing of issuing an unsafety information transmission request. The safety slave unit to meet this situation can be so configured as to determine whether the request received from the safety controller concerns the safety information or the unsafety information, and in the case of the safety information request, transmits the safety information. In the case of the request for the unsafety information, on the other hand, the safety slave unit transmits the unsafety information in the case where the particular slave unit is in a safe state and transmits the safety information in the case where the slave unit is not in a safe state. In the latter case, the safety slave unit includes unsafety information transmission control means for controlling the timing of transmitting the unsafety information, and has such a configuration that the unsafety information is transmitted on condition that no safe state prevails at the time of transmission. Also, the specific value of the transmission timing may be set either by the maker at the time of manufacture or by the user.
[0020] The safety information contains the information as to whether at least the slave unit and/or the safety devices connected thereto are in a safe state or not. Nevertheless, other information may of course be also contained. The unsafety information, in contrast, are various information containing no safety information. The relay life, the investigation result, the turn-on time, the number of times operated and the model are some examples. The “turn-on time” and the “number of times operated”, for example, are determined by measuring or counting with the timer or counter, and the numerical values as of the time of measurement is sent as unsafety information. The “relay life” is a life prediction. Specifically, the relay life representing the unsafety information as it is called here is not the information indicating that the life has expired and no safety operation is possible (in which case the information is handled as safety information) but predictive information that although the relay is operating safely, the time requiring maintenance (change, readjustment, etc.) is approaching. The “investigation result” is the information predicted or detected statistically. In other words, it is not the result of the self-diagnosis conducted as to safety on the part of the slave unit. The self-diagnosis result is sent as safety information. Examples of the inspection result as unsafety information includes the following: (1) life has almost expired, (2) the relay is used in an unfavorable environment, (3) temperature, (4) vibrations, (5) supplied voltage, and (6) used in overloaded state. By acquiring these information, early maintenance work (change, readjustment, etc.) is made possible, thereby preventing a case in which the relay becomes inoperative upon expiry of life or a fault has an excessively large effect.
[0021] Further, the information collecting method for the safety network system according to this invention presupposes a safety network system constructed by connecting the safety controller and the safety slave unit through the safety network. The safety slave unit has the safety information transmission function for transmitting the safety information for determining whether a safe state prevails or not and the unsafety information transmission function for transmitting the unsafety information containing no safety information. The unsafety information transmission function is for transmitting the unsafety information on condition that the safety slave unit is in a safe state. When the safety slave unit transmits information to ward the safety controller, the unsafety information transmission function determines which of the safety information and the unsafety information is to be transmitted, and transmits the information thus determined through the safety network. The safety controller receives the safety information or the unsafety information sent through the safety network, and in the case where the received information is the unsafety information, stores the information based on the particular unsafety information.
[0022] By doing so, the safety controller can acquire the unsafety information from the safety slave unit connected to the safety network. In addition, in the case where no safe state prevails at the timing of transmitting the unsafety information, the safety information is sent, and therefore the unsafety information can be collected without deteriorating the reliability of the safety system. Also, in the case where the unsafety information is collected, safety can be indirectly recognized.
[0023] The monitor method according to this invention is for a system constructed by connecting a monitor device further to the safety network system constructed by connecting the safety controller and the safety slave unit to each other through the safety network. The safety slave has the safety information transmission function for transmitting the safety information for determining whether a safe state prevails or not and the unsafety information transmission function for transmitting the unsafety information containing no safety information. The unsafety information transmission function is for transmitting the unsafety information on condition that the safety slave unit is in a safe state. The monitor device acquires the unsafety information transmitted toward the safety controller from the safety slave unit, analyzes the unsafety information thus acquired, and stores the information based on the particular unsafety information.
[0024] The monitor device is connected to the safety controller and can acquire the unsafety information indirectly through the safety controller. Also, the unsafety information can be directly collected by connecting the monitor device to the safety network, monitoring the frames transmitted on the safety network and receiving the unsafety information addressed to the safety controller.
[0025] The monitor device can acquire the unsafety information from the safety slave unit connected to the safety network. In addition, in the case where no safe state prevails at the timing of transmitting the unsafety information, the safety information is sent. Therefore, the unsafety information can be collected and the monitoring operation can be performed without deteriorating the reliability of the safety system. By the way, the data can be stored in any of various forms including the logging data. In addition, in the case where the unsafety information is acquired, it can be indirectly recognized that the safety system is in a safe state. This monitor device corresponds to the tool of the personal computer
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042] This invention is explained in detail with reference to the accompanying drawings. Specifically,
[0043] Further, a personal computer
[0044] All of the various devices making up this safety network system have a built-in safety (fail-safe) function. The safety function is for confirming the safety and produces an (control) output. Once a hazardous situation arrives, the fail-safe function is activated and the system turns to safety side to halt the operation. Specifically, the safety system is such that when the emergency stop switch is depressed, a sensor such as a light curtain detects the intrusion of a person (a part of human body) or otherwise a hazardous situation of the network system arrives, the fail-safe function works and the system turns to safety side to halt the operation. In other words, this system allows an output to be produced and a machine to operate only in the case where safety is stored by the safety functions. Unless safety cannot be confirmed, therefore, the machine stops.
[0045] Next, of these safety functions, the transmission and receiving of information constituting the essential feature of the invention is explained. The master unit
[0046] The master unit
[0047] Naturally, this master unit
[0048] As an example of the program executed by the MPU
[0049] The internal structure of the safety slave unit
[0050] Further, the MPU
[0051] Specifically, the request from the master unit
[0052] According to this embodiment, the master unit
[0053] The safety slave unit
[0054] By doing so, in the case where the unsafety information arrives, the safe state of the safety slave unit
[0055] As an example, assume that, as shown in
[0056] To realize the above-mentioned process, it is necessary to discriminate whether the information received on the part of the master unit
[0057] Next, an explanation is given about the processing steps executed in the MPU
[0058] Once power is switched on, the arrival of the setting input for the unsafety information update period from the user is awaited (ST
[0059] In the case where the update timing is once every N times, the conversion to unsafety in step
[0060] Upon completion of each process described above, the safety network system is actually activated to perform a predetermined control operation. Specifically, the value n of the sequence No. is first set to 1 (ST
[0061] The response from the safety slave unit (
[0062] In the case where the branching decision in step
[0063] A similar process is executed for the safety slave unit (
[0064] Once the information are acquired from the three safety slave units (
[0065] In the case where the determination as to safety in steps
[0066] On the other hand, the operation of the MPU
[0067] Next, a request from the master unit
[0068] The process described above, as viewed from the operation of one safety slave unit, is shown in
[0069] Also, as shown in
[0070] In the embodiment described above, the unsafety information is acquired at the rate of once every N times. However, this invention is not limited to such a rate but the unsafety information can be acquired at regular time intervals. In this case, the sequence No. for transmitting the unsafety information is not determined as described above, but a flag is attached or otherwise to discriminate the normal safety information request and the unsafety information request from each other on the part of the safety slave unit. The unsafety information request control unit
[0071] Also, in the case where the unsafety information is collected by the number of the communication cycles, assume that the master unit issues both the safety information request and the unsafety information request as in the aforementioned case. The unsafety information request control unit
[0072] In the example described above, the timing of acquiring the unsafety information is controlled by the master unit. This invention is not limited to such a configuration, but the acquisition timing may alternatively be controlled on the part of the safety slave unit. In such a case, as shown in
[0073] The MPU
[0074] The master unit
[0075] A timing chart for data transmission and receipt between the master unit and the slave units for the above-mentioned operation is shown in
[0076] Furthermore, the embodiment described above concerns the master-slave method in which a desired slave unit returns a response to a request from a master unit. Specifically, the right to determine which of the safety information and the unsafety information is to be transmitted may be granted to either the master unit or the safety slave unit, as described already. In any way, the timing of transmission from each slave unit is derived from an external t rigger such as a request of the master unit. The slave unit as it is called in this invention, however, is not limited to the one included in the master-slave communication. Specifically, in spite of the naming “slave”, an arbitrary communication method can be used. In this respect, strictly speaking, the slave unit according to the invention is considered to be different in concept with the generally defined slave. In other words, the slave unit as it is called in this invention can operate on an arbitrary communication protocol for actual transmission and receiving process as long as it has the function of transmitting while switching the safety information and the unsafety information at appropriate timing. Especially, the destination of the unsafety information to be transmitted according to the invention is not confined to the master unit or the controller, but may be other devices than the local node, i.e. other nodes such as the configurator (configuration tool), the monitoring devices or other slave units connected to a network.
[0077] The communication method can also be appropriately selected in accordance with the other party of transmission. The trigger for transmission is of course not limited to an external request such as from the master unit, for example, but the transmission may be based on an internal trigger (internal timer, an event generated when meeting predetermined conditions, etc.).
[0078] The “internal trigger” is based on the result of executing a predetermined process by a slave unit itself and generated in the particular slave unit. One example of an internal trigger is the fact that the unsafety information (the status information of the input/output unit, etc.) acquired by the slave unit develops into a preset status. Specifically, a n internal trigger may be generated in the case where the turn-on time of the input/output devices exceeds 5000 hours or the number of times operated exceeds ten thousands. An internal trigger signal may also be generated periodically upon each lapse of a predetermined time or at a predetermined time point as counted by an internal clock.
[0079] In the case where an internal trigger is generated when a preset status is attained, the frequent transmission of the unsafety information can be suppressed and the safety information can be transmitted in normal communication by appropriately setting the particular status. Thus, the required unsafety information can be transmitted efficiently by transmitting the unsafety information with the internal trigger generated at regular time intervals or when the life of the input/output devices is about to expire, in accordance with the operating conditions of the input/output devices. Specifically, the number of times operated and the turn-on time are not very important information and allowed to change by several times or several minutes from the preceding data. By suppressing the transmission of these information not so important, the safety information and the unsafety information can be transmitted efficiently.
[0080] An example of a time chart for transmitting the information from the safety slave unit based on this internal trigger is shown in
[0081] Each safety slave unit transmits the information based on its own internal timer. In the case where any other slave unit is already transmitting the information, however, the slave unit trying to transmit the information stops the transmission. In the case where an attempt to transmit the information at the same time leads to a conflict on the network, the safety slave unit of higher priority order (smaller node number) continues the communication. As a result, the information can be transmitted from the safety slave units sequentially in a predetermined order in one communication cycle. By setting the transmission timer appropriately, the information can be subsequently repeatedly transmitted smoothly in the same order.
[0082] An example of the function of the MPU of the safety slave unit which executes the above-mentioned transmission process is shown in the flowchart of
[0083] Upon complete setting, the generation of the transmission conditions, i.e. the internal trigger is awaited (ST
[0084] The threshold value for determination in step
[0085] Also, which of the safety information and the unsafety information is currently transmitted is determined by the identification bit (
[0086] The device receiving the information from the safety slave unit has the function of executing the process of the flowchart shown in
[0087] In the case where the identification bit is
[0088] With regard to the identification bit, the foregoing description deals with a case in which the safety information and the unsafety information are indicated by one bit of “1” and “0”, respectively. This invention, however, is not limited to this, but another information may be added. Specifically, in the case of unsafety information, the specific information stored in the data unit include various information such as the accumulated time of conduction or operation, the number of times operated, etc. of the input/output devices connected to the slave units, and in the case where only a numerical value is transmitted, the information associated with the particular numerical value may not be recognized. In such a case, the identification code for specifying the type of the unsafety information may be added in accordance with the contents of the data section. Further, a plurality of I/O terminals are provided. In an assumed case where eight I/O terminals are involved, for example, an 8-bit identification code is prepared so that a bit for identifying the safety information and the unsafety information is set for each I/O terminal. Also, in the case where all the eight I/O terminals transmit the unsafety information or the safety information, all the eight bits constitute the same identification bit. In such a case, the eight bits can be represented by one bit. As a result, the transmission data can be compressed and transmitted within a short length of time. In this case, however, a flag is required to discriminate an uncompressed identification code from a compressed identification code.
[0089] As described above, according to this invention, the unsafety information is transmitted on condition that a safe state prevails. Even in the case where the information other than the safety information (safety signal) is transmitted or received through a network while the system is in operation, therefore, the original response time of the safety information is not delayed.