Robot controller, robot system, and logging method
By synchronizing the robot controller's time with a main external device, the log order is maintained consistently, addressing the issue of differing time zones and enhancing log review accuracy in robot systems.
Patent Information
- Application Number
- JP2025077175
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2026-11-19
AI Technical Summary
In robot systems with multiple external devices connected to a robot controller, differing time zones between these devices cause discrepancies in the recorded log order, making it difficult to accurately check the occurrence of events.
The robot controller synchronizes its time with a designated main external device and records events based on that device's time zone, ensuring consistent log ordering regardless of the actual event occurrence order.
This synchronization maintains the chronological accuracy of event logs, facilitating easier review and analysis by aligning the log order with the actual event sequence.
Smart Images

Figure 2026181678000001_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a robot controller, a robot system, and a log recording method.
Background Art
[0002] Patent Document 1 describes a system that enables immediate recognition of the time in the time zone of an electronic device that generated a log, when the log generated in the electronic device is referenced from an external device (log server).
Prior Art Literature
Patent Documents
[0003]
Patent Document 1
Summary of Invention
Problems to be Solved by the Invention
[0004] Here, in the robot technical field, a plurality of external devices may be connected to a robot controller that controls a robot. The controller records logs in response to events generated inside the controller. In this case, as in Patent Document 1, it is conceivable to record the generated logs based on the time information of each external device that has communicated with the controller. In that case, every time the external device that performs communication is switched, the controller records logs based on time information respectively associated with different external devices. In that case, when the time zones of the first external device and the second external device are different from each other, the occurrence order of events on the log may differ from the actual occurrence order of the events. This leads to the problem that log checking becomes difficult.
Means for Solving the Problems
[0005] A robot controller according to the present invention is a robot controller that controls driving of a robot, the robot controller comprising: It is connected to multiple external devices, The system synchronizes its time with one main external device selected from multiple external devices and records the events that occur as logs associated with the time.
[0006] The robot system of the present invention comprises a robot and A robot controller that controls the movement of the robot, The robot controller has a plurality of external devices connected to it, The robot controller synchronizes its time with one main external device selected from a plurality of external devices and records the events that occur as logs associated with the time.
[0007] The present invention relates to a logging method for a robot controller that controls the drive of a robot, The system synchronizes its time with one main external device selected from multiple external devices connected to the robot controller, and records the events that occur as logs associated with the time. [Brief explanation of the drawing]
[0008] [Figure 1] Figure 1 is an overall view showing a robot system according to a preferred embodiment. [Figure 2] Figure 2 shows the events that occurred, arranged in chronological order. [Figure 3] Figure 3 shows the events that occurred, arranged in chronological order according to the log. [Figure 4] Figure 4 is a block diagram when the main external device is a host computer. [Figure 5] Figure 5 is a block diagram when the main external device is a PLC. [Figure 6] Figure 6 shows an example of an image displayed on a display device. [Modes for carrying out the invention]
[0009] The robot controller, robot system, and log recording method of the present invention will be described in detail below based on embodiments shown in the accompanying drawings.
[0010] Figure 1 is an overall diagram showing a robot system according to a preferred embodiment. Figure 2 is a diagram showing the events that occurred in actual time order. Figure 3 is a diagram showing the events that occurred in log time order. Figure 4 is a block diagram when the main external device is a host computer. Figure 5 is a block diagram when the main external device is a PLC. Figure 6 is a diagram showing an example of an image displayed on a display device.
[0011] The robot system 1 shown in Figure 1 comprises a robot 2, a robot controller 3, and a plurality of external devices 4 and an information processing device 5 connected to the robot controller 3. The plurality of external devices 4 include a host computer 41, which is the first external device, and a PLC 42 (programmable logic controller), which is the second external device. The number of external devices 4 in the robot system 1 is not limited to two, but may be three or more.
[0012] ≪Robot 2≫ As shown in Figure 1, the robot 2 is a SCARA robot (horizontally articulated robot) and includes a base 21 fixed to the floor, a first arm 22 that rotates around a first pivot axis J1 perpendicular to the base 21, a second arm 23 that rotates around a second pivot axis J2 perpendicular to the first arm 22, and a work head 24 positioned on the second arm 23. The work head 24 also includes a spline nut 241 and a ball screw nut 242 arranged coaxially in a vertical direction, and a spline shaft 243 inserted through the spline nut 241 and the ball screw nut 242. An end effector 25, depending on the purpose of the work, is attached to the lower end of the spline shaft 243. In such a work head 24, the rotation of the spline nut 241 causes the spline shaft 243 to rotate around the third pivot axis J3 which is aligned vertically, and also to move linearly (up and down) along the third pivot axis J3. The rotation of the ball screw nut 242 causes the spline shaft 243 to move linearly along the third pivot axis J3. The rotation of both the spline nut 241 and the ball screw nut 242 causes the spline shaft 243 to rotate around the third pivot axis J3.
[0013] Furthermore, robot 2 includes a motor M1 that rotates the first arm 22 around the first rotation axis J1 relative to the base 21, a motor M2 that rotates the second arm 23 around the second rotation axis J2 relative to the first arm 22, a motor M3 that rotates the spline nut 241 around the third rotation axis J3, and a motor M4 that rotates the ball screw nut 242 around the third rotation axis J3.
[0014] The above describes robot 2, but robot 2 is not particularly limited and may be, for example, a vertical articulated robot.
[0015] ≪Robot Controller 3≫ The robot controller 3 controls the driving of the robot 2. Such a robot controller 3 is constituted by, for example, a computer, and includes a processor that processes information, a memory communicably connected to the processor, and an external interface. The memory stores various programs executable by the processor, and the processor can read and execute various programs and the like recorded in the memory.
[0016] ≪Host Computer 41≫ The host computer 41 creates an operation program for causing the robot 2 to operate. Then, the host computer 41 outputs the created operation program to the robot controller 3. The robot controller 3 controls the driving of the robot 2 based on the operation program output from the host computer 41. Such a host computer 41 is constituted by, for example, a computer, and includes a processor that processes information, a memory communicably connected to the processor, and an external interface. The memory stores various programs executable by the processor, and the processor can read and execute various programs and the like recorded in the memory. Further, the host computer 41 is set with a time zone determined based on UTC (Coordinated Universal Time), and has an internal clock adjusted to the time zone. Further, the external interface included in the host computer 41 has a function of communicating with a communication unit 31 to be described later, and includes, for example, an interface circuit.
[0017] The host computer 41 as the first external device has been described above, but the host computer 41 is not particularly limited, and may not have a time zone, for example. Further, the first external device is not limited to the host computer 41.
[0018] Note that the host computer 41 can disconnect from the robot controller 3 after causing the created operation program to be recorded in the robot controller 3. In this case, the robot controller 3 only needs to control the driving of the robot 2 based on the operation program recorded therein.
[0019] ≪PLC 42≫ The PLC 42 is a teaching device, and is used when teaching operations to the robot 2. The PLC 42 performs teaching work for the robot 2 by, for example, performing jog operation of the robot 2 via the robot controller 3 and registering necessary teaching points. Such a PLC 42 is configured by, for example, a computer, and includes a processor that processes information, a memory communicably connected to the processor, and an external interface. The memory stores various programs executable by the processor, and the processor can read and execute the various programs and the like recorded in the memory. In addition, a time zone defined based on UTC (Coordinated Universal Time) is set in the PLC 42, and the PLC 42 has an internal clock adjusted to the time zone. Further, the external interface provided in the PLC 42 has a function of communicating with a communication unit 31 to be described later, and includes, for example, an interface circuit.
[0020] The PLC 42 as the second external device has been described above, but the PLC 42 is not particularly limited, and may not have a time zone, for example. Further, the second external device is not limited to the PLC 42.
[0021] ≪Information Processing Apparatus 5≫ The information processing device 5 comprises a main unit 51, a display device 52 connected to the main unit 51, and an input device 53 connected to the main unit 51. The main unit 51 is, for example, a computer and comprises a processor for processing information, a memory connected to the processor for communication, and an external interface. Various programs that can be executed by the processor are stored in the memory, and the processor can read and execute the various programs recorded in the memory.
[0022] The display device 52 is, for example, a monitor, which can display a predetermined image on its screen 520 in response to a command from the main unit 51 of the device. The input device 53 is, for example, a keyboard, mouse, etc., which can receive input from the user.
[0023] The above is a brief explanation of the overall configuration of robot system 1. Next, we will explain the logging method in robot system 1.
[0024] The robot controller 3 records logs of events that occur while the robot 2 is running, along with the time of the event. The events include at least anomalies (errors) that occur in either the robot controller 3 or the robot 2. With this configuration, anomalies in either the robot controller 3 or the robot 2 are recorded as logs, allowing for easy confirmation of the anomaly's nature, time of occurrence, etc., when necessary, such as during recovery or cause verification. However, the events are not particularly limited.
[0025] Here, if the host computer 41 and the PLC 42 are in different time zones based on UTC (Coordinated Universal Time), the following problem arises. For example, if the robot controller 3 is configured to generate logs in synchronization with the internal clock of the host computer 41 when it receives a request from the host computer 41, and to generate logs in synchronization with the internal clock of the PLC 42 when it receives a request from the PLC 42, then as shown in Figure 2, the actual order of events is event A1, event A2, event A3, event A4, event A5, but as shown in Figure 3, the log will show the order as event A1, event A3, event A5, event A2, event A4. In this way, if the order of events in the log differs from the actual order of events, it becomes difficult to check the log. Therefore, the robot controller 3 in this embodiment is configured so that the order of events in the log is the same as the actual order of events. This will be explained below.
[0026] As shown in Figure 1, the robot controller 3 includes a communication unit 31 for communicating with the robot 2, host computer 41, PLC 42, and information processing device 5; a drive control unit 32 for controlling the driving of the robot 2; a log generation unit 33 for generating logs of events that occur; a recording unit 34 for recording the logs generated by the log generation unit 33; and a main external device determination unit 35 for determining one main external device 40 from among a plurality of external devices 4. The communication unit 31 includes an interface circuit.
[0027] The drive control unit 32 can switch between a first control state in which it controls the drive of the robot 2 based on an operation program for the robot 2 generated by the host computer 41, and a second control state in which it controls the drive of the robot 2 based on a command from the PLC 42.
[0028] The main external device determination unit 35 determines one main external device 40 from among multiple external devices 4. The determination of the main external device 40 is made based on a request from the information processing device 5, as will be described later. The main external device determination unit 35 then synchronizes the time with the determined main external device 40. In other words, as shown in Figures 4 and 5, the robot controller 3 synchronizes its time with the internal clock of the host computer 41 when the host computer 41 is designated as the main external device 40, and with the internal clock of the PLC 42 when the PLC 42 is designated as the main external device 40.
[0029] Furthermore, when an event occurs, the log generation unit 33 generates a log corresponding to that event. The log includes information about the event content, the time the event occurred, the type of event, and the time zone from which the event occurred. The log generation unit 33 then records the generated log in the recording unit 34. As mentioned above, since the robot controller 3 is synchronized with the internal clock of the main external device 40, the time each event occurs is determined based on the internal clock of the main external device 40. In other words, regardless of whether the event is a request from the host computer 41 or a request from the PLC 42, if the main external device 40 is the host computer 41, the log generation unit 33 determines the event time based on the internal clock of the host computer 41, and if the main external device 40 is the PLC 42, it determines the event time based on the internal clock of the PLC 42.
[0030] With this configuration, the event occurrence times included in the log can be standardized to the time based on the internal clock of the main external device 40. Therefore, even if the host computer 41 and the PLC 42 are in different time zones based on UTC (Coordinated Universal Time), the order of events in the log can be made the same as the actual order of events, making it easier to review the log.
[0031] Furthermore, as shown in Figure 6, the information processing device 5 can display logs recorded in the recording unit 34 on the screen 520 of the display device 52. With this configuration, logs can be displayed easily. In particular, in this embodiment, the information processing device 5 can display logs in chronological order. By displaying logs in chronological order on the display device 52 in this way, it becomes easier for the user to check the logs. The display device 52 also simultaneously displays a display area Q1 on the screen 520 that displays logs in chronological order and a switching area Q2 that switches the time zone of the occurrence time. In Figure 6, the types of events are divided into abnormalities (errors) that occurred in the robot controller 3 or robot 2 and others.
[0032] When the switching area Q2 is selected via the input device 53, the information processing device 5 displays a list of time zones on the screen 520. If a time zone different from the current time zone is selected from this list via the input device 53, the information processing device 5 changes the event occurrence time displayed in the display area Q1 to match the time of the newly selected time zone. With this configuration, the time zone from which the event occurrence time of the log is derived can be easily switched. In addition, since the log can be displayed with a time based on the time zone desired by the user, checking the log becomes easier.
[0033] Furthermore, the information processing device 5 displays a display range specification area Q3 on the screen 520 of the display device 52, simultaneously with the display area Q1 (on the same screen), which allows the user to specify the display range of the log. When the display range of the display range specification area Q3 is specified via the input device 53, only the logs within the specified display range are displayed in the display area Q1.
[0034] Furthermore, the information processing device 5 displays a main external device change area Q4 on the screen 520 of the display device 52 simultaneously with the display area Q1 (on the same screen) for changing the main external device 40. When the main external device change area Q4 is selected via the input device 53, a list of external devices 4 that can be designated as the main external device 40 is displayed on the screen 520. If an external device 4 different from the current main external device 40 is selected from this list via the input device 53, the information processing device 5 transmits this information to the robot controller 3, and the robot controller 3 changes the main external device 40 based on the received information. With this configuration, the main external device 40 can be easily determined and changed.
[0035] The logging method for robot system 1 has been described above. However, the logging method for robot system 1 is not particularly limited as long as it can synchronize with the time of one main external device 40 selected from multiple external devices 4 and record the events that occur as logs associated with the time.
[0036] The robot system 1 has been described above. The robot controller 3 of this robot system 1 controls the drive of the robot 2 and is connected to multiple external devices 4. It synchronizes its time with one main external device 40 selected from the multiple external devices 4 and records the events that occur as logs associated with the time. With this configuration, the occurrence times of the events included in the log can be unified to the time based on the internal clock of the main external device 40. Therefore, even if the time zones based on UTC (Coordinated Universal Time) differ among the multiple external devices 4, the order of events in the log can be made the same as the actual order of events, making it easier to check the log.
[0037] Furthermore, as mentioned above, the robot controller 3 includes multiple external devices 4, including a host computer 41 as the first external device and a PLC 42 as the second external device. When the main external device 40 is the host computer 41, it synchronizes its time with the host computer 41, and when the main external device 40 is the PLC 42, it synchronizes its time with the PLC 42. With this configuration, the occurrence times of events included in the log can be unified to the time based on the internal clock of the main external device 40.
[0038] For example, suppose the robot controller 3 is connected to a host computer 41 as the first external device and a PLC 42 as the second external device. If the main external device 40 is the host computer 41, the robot controller 3 synchronizes its time with the host computer 41 but not with the PLC 42. On the other hand, if the main external device 40 is the PLC 42, the robot controller 3 synchronizes its time with the PLC 42 but not with the host computer 41. With this configuration, the event occurrence times included in the log will not be a mixture of multiple timestamps, such as the time synchronized with the host computer 41 and the time synchronized with the PLC 42, making it easier to check the log.
[0039] Furthermore, as mentioned above, events indicate abnormalities (errors) that occurred in robot controller 3 or robot 2. With this configuration, abnormalities that occur in robot controller 3 or robot 2 are recorded as logs, so the details of the abnormality, the time of occurrence, etc. can be easily checked when necessary, such as during recovery or cause verification.
[0040] Furthermore, as mentioned above, the log includes time zone information contained in the main external device 40. This makes it easy to check the time zone from which the event occurred.
[0041] As mentioned above, the robot system 1 includes a robot 2, a robot controller 3 that controls the driving of the robot 2, and a plurality of external devices 4 connected to the robot controller 3. The robot controller 3 synchronizes its time with one main external device 40 selected from the plurality of external devices 4, and records the events that occur as a log associated with the time. With this configuration, the occurrence times of the events included in the log can be unified to the time based on the internal clock of the main external device 40. Therefore, even if the multiple external devices 4 have different time zones based on UTC (Coordinated Universal Time), the order of events occurring in the log can be made the same as the actual order of events occurring, making it easier to check the log.
[0042] Furthermore, as mentioned above, the robot system 1 has a display device 52 that displays the logs recorded in the robot controller 3 in chronological order. With this configuration, the logs can be easily displayed.
[0043] Furthermore, as mentioned above, the display device 52 displays a screen that includes a display area Q1 that displays logs in chronological order and a switching area Q2 that switches the time zone of the time. With this configuration, the time zone from which the log event occurrence time is derived can be easily switched.
[0044] Furthermore, as mentioned above, the display device 52 displays the main external device change area Q4 for changing the main external device 40. With this configuration, the main external device 40 can be easily changed.
[0045] Furthermore, as mentioned above, the logging method is a logging method for the robot controller 3 that controls the drive of the robot 2, and it synchronizes its time with one main external device 40 selected from multiple external devices 4 connected to the robot controller 3, and records the events that occur as logs associated with their time. With this method, the occurrence times of the events included in the log can be unified to the time based on the internal clock of the main external device 40. Therefore, even if the time zones based on UTC (Coordinated Universal Time) differ among the multiple external devices 4, the order in which events occur in the log can be made the same as the actual order in which events occur, making it easier to check the log.
[0046] Although the robot controller, robot system, and log recording method of the present invention have been described above based on the illustrated embodiments, the present invention is not limited thereto, and the configuration of each part can be replaced with any configuration having a similar function. Furthermore, any other configuration may be added to the present invention. [Explanation of Symbols]
[0047] 1...Robot system, 2...Robot, 21...Base, 22...First arm, 23...Second arm, 24...Work head, 241...Spline nut, 242...Ball screw nut, 243...Spline shaft, 25...End effector, 3...Robot controller, 31...Communication unit, 32...Drive control unit, 33...Log generation unit, 34...Recording unit, 35...Main external device determination unit, 4...External device, 40...Main external device, 41...Host computer Motor, 42...PLC, 5...Information Processing Device, 51...Device Body, 52...Display Device, 520...Screen, 53...Input Device, A1...Event, A2...Event, A3...Event, A4...Event, A5...Event, J1...First Rotation Axis, J2...Second Rotation Axis, J3...Third Rotation Axis, M1...Motor, M2...Motor, M3...Motor, M4...Motor, Q1...Display Area, Q2...Switching Area, Q3...Display Range Specification Area, Q4...Main External Device Change Area
Claims
1. A robot controller that controls the movement of a robot, It is connected to multiple external devices, A robot controller characterized by synchronizing time with one main external device selected from a plurality of external devices, and recording the events that occur as logs associated with the time.
2. The plurality of external devices include a first external device and a second external device, If the main external device is the first external device, then synchronize the time with the first external device. The robot controller according to claim 1, wherein the main external device is the second external device, and the robot controller synchronizes with the second external device in time.
3. The robot controller according to claim 1, wherein the event indicates an abnormality that has occurred in the robot controller or the robot.
4. The robot controller according to claim 1, wherein the log includes time zone information included in the main external device.
5. Robots and, A robot controller that controls the movement of the robot, The robot controller has a plurality of external devices connected to it, The robot controller is characterized by synchronizing with one main external device selected from a plurality of external devices, and recording the events that occur as logs associated with the time.
6. The robot system according to claim 5, further comprising a display device that displays the logs recorded in the robot controller in chronological order.
7. The robot system according to claim 6, wherein the display device displays a screen including a display area for displaying the logs in chronological order and a switching area for switching the time zone of the time.
8. The robot system according to claim 6, wherein the display device displays a main external device change area for changing the main external device.
9. A method for logging data from a robot controller that controls the movement of a robot, A logging method characterized by synchronizing the time with one main external device selected from a plurality of external devices connected to the robot controller, and recording the events that occur as logs associated with the time.
Citation Information
Patent Citations
Electronic equipment
JP2008278092A
