WO2019031219A1 - Method for transmitting information in controller and method for detecting abnormality in encoder - Google Patents

Method for transmitting information in controller and method for detecting abnormality in encoder Download PDF

Info

Publication number
WO2019031219A1
WO2019031219A1 PCT/JP2018/027585 JP2018027585W WO2019031219A1 WO 2019031219 A1 WO2019031219 A1 WO 2019031219A1 JP 2018027585 W JP2018027585 W JP 2018027585W WO 2019031219 A1 WO2019031219 A1 WO 2019031219A1
Authority
WO
WIPO (PCT)
Prior art keywords
encoder
position information
motor
controller
command
Prior art date
Application number
PCT/JP2018/027585
Other languages
French (fr)
Japanese (ja)
Inventor
靖啓 衣笠
圭 相見
Original Assignee
パナソニックIpマネジメント株式会社
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 パナソニックIpマネジメント株式会社 filed Critical パナソニックIpマネジメント株式会社
Priority to DE112018003523.9T priority Critical patent/DE112018003523T5/en
Priority to CN201880050165.6A priority patent/CN111032294B/en
Priority to JP2019535080A priority patent/JP7220353B2/en
Publication of WO2019031219A1 publication Critical patent/WO2019031219A1/en
Priority to US16/780,867 priority patent/US11446823B2/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J13/00Controls for manipulators
    • B25J13/08Controls for manipulators by means of sensing devices, e.g. viewing or touching devices
    • B25J13/088Controls for manipulators by means of sensing devices, e.g. viewing or touching devices with position, velocity or acceleration sensors
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J15/00Gripping heads and other end effectors
    • B25J15/0019End effectors other than grippers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1628Programme controls characterised by the control loop
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1674Programme controls characterised by safety, monitoring, diagnostic
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/244Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/19Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/416Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by control of velocity, acceleration or deceleration
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/406Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by monitoring or safety
    • G05B19/4062Monitoring servoloop, e.g. overload of servomotor, loss of feedback or reference
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/37Measurements
    • G05B2219/37175Normal encoder, disk for pulses, incremental
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/37Measurements
    • G05B2219/37372Position and speed
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/42Servomotor, servo controller kind till VSS
    • G05B2219/42306Excess in error, compare reference with feedback
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/42Servomotor, servo controller kind till VSS
    • G05B2219/42329Defective measurement, sensor failure
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/50Machine tool, machine tool null till machine tool work handling
    • G05B2219/50391Robot

Definitions

  • the present disclosure relates to a method for transmitting information of a controller provided in an operating device such as a robot and a method for detecting an abnormality in an encoder.
  • An abnormality detection technique related to a failure of an encoder used to detect a rotational position of a motor that drives an output shaft of an operating device such as a robot is conventionally known.
  • Patent Document 1 discloses that an encoder system is provided with a first encoder that detects rotation of an input shaft of a motor and a second encoder that detects rotation of an output shaft of the motor. Further, Patent Document 1 discloses a technique for determining that any one of these encoders is abnormal when there is a difference of a predetermined value or more in position measurement values detected by these two encoders.
  • Patent Document 2 discloses a servo system including a safety unit that monitors that a motor is normally controlled.
  • the safety unit according to Patent Document 2 generates a stop signal to the servo driver when the command value or the feedback value received from the servo driver controlling the motor is abnormal.
  • Patent No. 5675761 gazette Patent No. 5376623 gazette
  • FIG. 17 is a block diagram showing the configuration of a robot control unit according to the prior art disclosed in Patent Document 2. As shown in FIG. In the robot control unit shown in FIG. 17, the controller 7 outputs a command signal to the servo driver 10. The servo driver 10 generates a current value for driving the motor 4 based on the command signal received from the controller 7 and the detection signal acquired from the encoder 5, and controls the motor 4 based on the current value.
  • the servo driver 10 generates a command value (motor command value) for comparison processing relating to the rotational position of the motor 4 based on the command signal received from the controller 7 and outputs it to the safety unit 9.
  • the servo driver 10 is a value indicating the rotational position of the motor 4 based on the output signal acquired from the encoder 5, the reduction ratio of each axis of the motor 4 and the origin information of the motor 4 (hereinafter simply referred to as origin information)
  • origin information origin information
  • the motor detection value is generated and output to the safety unit 9. Then, in the safety unit 9, the motor command value received from the servo driver 10 and the motor detection value are compared, and the abnormality of the encoder 5 is determined based on the comparison result.
  • the servo driver 10 of the general-purpose robot normally generates a motor command value and a motor detection value. It does not have the function and the function to output the generated motor command value and motor detection value.
  • circuit, program, display, etc. indicating whether or not the additionally designed circuit, program, etc. is functioning properly. That is, there is a problem that it takes time and complexity.
  • the position to be originally welded may shift due to thermal deformation during welding, or the position of the workpiece may be originally shifted from the correct position.
  • welding can not be performed correctly even if the robot is operated according to an operation program that is created before the start of welding and is held by the controller. Therefore, a sensor may be used for the purpose of detecting a positional deviation of a work, and a servo driver may independently control a motor based on information from the sensor.
  • the controller side can not know the control information uniquely generated by the servo driver for driving the motor. Therefore, there was a possibility that the abnormality detection of the encoder in the safety unit was not performed correctly. The same problem may occur when the controller transmits a speed command for high response to the servo driver, and the servo driver independently controls the motor based on the speed command.
  • the present disclosure provides a controller information transmission method and encoder abnormality detection method in which erroneous detection of an encoder abnormality in a safety unit is less likely to occur when a servo driver independently performs motor control.
  • the purpose is
  • the controller of the present disclosure when the servo driver controls the motor based on the main speed command from the controller and other information other than the output signal from the encoder, Control information on control of a motor generated by another information or a servo driver is transmitted to the controller. Then, the controller generates new command position information based on the received other information or control information, and transmits this to the safety unit, thereby preventing the false detection of the encoder abnormality by the safety unit. . Further, in the encoder abnormality detection method according to the present disclosure, when there is a difference between the detection position information calculated based on the output signal of the encoder and the command position information output from the controller, the encoder has a predetermined value or more. It was decided that it was an anomaly of
  • the information transmission method of the first controller of the present disclosure includes a robot arm and a motor connected to an output shaft of the robot arm, and the controller provided in an actuating device for processing a workpiece.
  • a method of transmitting information wherein a controller outputs a speed command instructing a rotational position of the motor and command position information indicating a rotational position of the motor according to the speed command, and an operating device detects the rotational position of the motor Encoder, a position sensor that outputs a displacement signal of the workpiece from a predetermined position as a differential signal, a speed command output from the controller, an output signal output from the encoder, and a differential signal output from the position sensor And a driver that controls the drive of the motor based on at least the speed command and the output signal, and an abnormality detection that detects an abnormality in the encoder And when the driver controls the motor based on the speed command, the output signal, and the differential signal, the driver transmits the differential signal to the controller, while the controller transmits the differential signal to the command
  • the control information of the motor uniquely received by the servo driver can be reflected on the command position information. Therefore, it becomes easy to prevent the erroneous detection of the abnormality of the encoder in the abnormality detection device.
  • the information transmission method of the second controller of the present disclosure is a method of transmitting information of a controller provided in an operating device for processing a work, including a robot arm and a motor connected to an output shaft of the robot arm.
  • the controller outputs a velocity command for instructing the rotational position of the motor and command position information indicating the rotational position of the motor according to the velocity command
  • the actuating device includes an encoder for detecting the rotational position of the motor, and A position sensor that outputs, as a differential signal, a positional displacement amount of the workpiece from the position of the target, a speed command output from the controller, an output signal output from the encoder, and a differential signal output from the position sensor; And a driver for controlling the drive of the motor based on the output signal, and an abnormality detection device for detecting an
  • the driver controls the motor based on the speed command, the output signal, and the difference signal
  • the driver generates target position information based on the difference signal and the speed command and transmits it to the controller.
  • the control information of the motor uniquely received by the servo driver can be reflected on the commanded position information.
  • a third controller information transmission method of the present disclosure is a controller information transmission method provided in an actuator including a robot arm and a motor connected to an output shaft of the robot arm, the controller being a motor First and second speed commands for specifying the rotational position of the motor and command position information indicating the rotational position of the motor according to the first and second speed commands, and the actuating device detects the rotational position of the motor And the first and second speed commands output from the controller and the output signal output from the encoder, and controlling the driving of the motor based on at least one of the first and second speed commands and the output signal And an abnormality detection device for detecting an abnormality in the encoder, the driver including the first and second speed commands and an output signal from the encoder When controlling the motor based on the driver, the driver transmits control information based on the second speed command to the controller, while the controller converts the control information based on the second speed command into the command position information, and the correction is obtained The values are added to generate new command position information, and the new command position information is transmitted to the abnormality detection
  • the control of the motor that the servo driver independently receives by adding the correction value obtained by converting the control information based on the second speed command to the command position information transmitted from the controller to the safety unit Since the information can be reflected on the command position information, it is easy to prevent the erroneous detection of the abnormality of the encoder in the abnormality detection device.
  • a fourth controller information transmission method of the present disclosure is a controller information transmission method provided in an actuator including a robot arm and a motor connected to an output shaft of the robot arm, the controller being a motor First and second speed commands for specifying the rotational position of the motor and command position information indicating the rotational position of the motor according to the first and second speed commands, and the actuating device detects the rotational position of the motor And the first and second speed commands output from the controller and the output signal output from the encoder, and controlling the driving of the motor based on at least one of the first and second speed commands and the output signal And an abnormality detection device for detecting an abnormality in the encoder, the driver including the first and second speed commands and an output signal from the encoder When controlling the motor on the basis, the driver generates target position information based on the first and second speed commands and transmits it to the controller, while the controller generates new command position information based on the target position information. And transmitting new command position information to the abnormality detection device.
  • the controller generates new command position information based on the target position information generated by the servo driver, and transmits this to the abnormality detection apparatus, thereby controlling the control information of the motor uniquely received by the servo driver. Since the command position information can be reflected, it becomes easy to prevent the erroneous detection of the abnormality of the encoder in the abnormality detection device.
  • An encoder abnormality detection method is an abnormality detection method for detecting an encoder abnormality for detecting a rotational position of a motor that drives an output shaft of an actuator, the actuator detecting an encoder abnormality
  • An abnormality detection device and a speed command for specifying a rotational position of the motor are output, and command position information indicating a rotational position of the motor according to the speed command is detected using any one of the first to fourth information transmission methods.
  • the abnormality detection device further comprises: a controller for transmitting to the controller; and a driver for receiving the speed command output from the controller and the output signal output from the encoder and controlling the driving of the motor based on the speed command and the output signal.
  • An information acquisition step for acquiring command position information from the controller and an output signal from the encoder, and command position information And an abnormality determination step of comparing the detected position information of the motor calculated based on the output signal and determining that the encoder is abnormal if there is a difference between the commanded position information and the detected position information by a predetermined value or more. It is characterized by doing.
  • the abnormality detection device determines the abnormality of the encoder based on the comparison result of the commanded position information received from the controller and the detected position information calculated based on the output signal from the encoder. This makes it possible to detect an abnormality in the encoder without adding a new configuration or function to the driver for detecting an abnormality in the encoder. That is, for example, it is possible to detect an abnormality in the encoder while suppressing the influence on the existing configuration and the existing circuit of a general actuation device (for example, a robot or an external axis).
  • a general actuation device for example, a robot or an external axis
  • the abnormality detection device compensates for the time delay caused due to the delay of the drive control of the motor with respect to the command position information acquired from the controller, and detects the command position information and the time delay compensated. It is preferable to determine the presence or absence of an abnormality of the encoder based on the comparison result with the position information.
  • the abnormality detection device In the abnormality determination step, the abnormality detection device generates an integrated value of the change amount of the command position information output from the controller, and based on the comparison result of the sum of the integrated value and the command position information and the detected position information. It is preferable to determine the presence or absence of abnormality of the encoder.
  • the margin in the abnormality determination is increased by adding the integrated value to the command position information used for the abnormality determination of the encoder. Therefore, it is possible to prevent the abnormality detection device from determining that the encoder is abnormal although the encoder is operating normally.
  • the abnormality detection device preferably determines the presence or absence of an abnormality in the encoder based on the comparison result of the sum of the integrated value and the command position information plus a predetermined threshold value and the detected position information in the abnormality determination step.
  • a safety circuit for emergency stop of the actuating device and the controller is configured to transmit an emergency stop signal to the safety circuit in an emergency, and the abnormality detection device is emergency stop from the controller in the abnormality determination step.
  • the abnormality detection device is emergency stop from the controller in the abnormality determination step.
  • the abnormality detection device Is less likely to erroneously detect an encoder error.
  • the encoder abnormality detection method of the present disclosure even when a general-purpose encoder is used, the influence on the existing function and the existing apparatus can be minimized, and the encoder abnormality can be determined.
  • FIG. 1 is a schematic configuration diagram of a robot control system as an actuation device according to the present embodiment.
  • FIG. 2 is a block diagram showing the configuration of the robot control unit 2, and arrows are shown so that the transmission direction of information or a signal can be known.
  • the robot A according to the present embodiment is used to process the workpiece W.
  • the robot A is configured by a robot mechanism unit 1, a robot control unit 2, and an operation unit 3 with a display.
  • a connection cable C is connected between the robot mechanism unit 1 and the robot control unit 2.
  • a connection form is not limited to wired connection, You may connect by wireless.
  • the connection between each block is also the same.
  • the robot mechanism unit 1 has a plurality of robot arms 11 and a plurality of joint shafts 12.
  • Each robot arm 11 is attached with a servomotor 4 (hereinafter referred to as a motor 4) for operating the robot arm 11.
  • a motor 4 for example, when the robot A is a vertical articulated six-axis robot, it has six robot arms 11, and six motors 4 are provided to correspond to each robot arm 11.
  • Each motor 4 is attached with an encoder 5 for detecting a rotational position of the motor 4 or an amount of rotation based on the rotational position.
  • a torch 14 for performing arc welding is provided at the tip of the robot arm 11, and power is supplied from a power supply unit (not shown), and the workpiece W is disposed at a predetermined position on a stage (not shown) Do welding.
  • a position sensor 13 for detecting the position of the work W is provided in the robot mechanism unit 1 separately from the robot arm 11.
  • the position sensor 13 may be disposed at a position where the trajectory connecting the welding start place and the welding end place of the workpiece W can be confirmed.
  • an external shaft driven based on drive control from the robot control unit 2 to the robot mechanism unit 1 is attached to the robot A.
  • the external axis is used in combination with the robot mechanical unit 1 in order to expand the movable range of the robot A.
  • a motor 4 for operating the external shaft is attached to the external shaft.
  • An encoder 5 for detecting a rotational position of the motor 4 or a rotation amount based on the rotational position is attached to the motor 4. That is, the motor 4 is connected to each of the plurality of joint shafts 12 and the external shaft, and the encoder 5 is attached to each motor 4.
  • the type of the external shaft is not particularly limited.
  • the technology according to the present embodiment is applicable to either the slider type or the positioner type, and may be other types.
  • the motor 4 and the encoder 5 using a plurality of joint shafts 12 and the motor 4 and the encoder 5 used for the external shaft are illustrated without distinction (FIG. 1) See) and explain. Therefore, in the following, the term “motor 4" or "encoder 5" refers to both those using a plurality of joint shafts 12 and those using an external shaft. That is, the abnormality detection device and the abnormality detection method of the encoder 5 described below are applied to both the encoder 5 attached to the motor 4 for the plurality of joint shafts 12 and the encoder 5 attached to the motor 4 for the external shaft It is possible.
  • the encoder 5 is connected to a safety unit 9 and a servo driver 10 described later, and outputs (feedback) the detected signal to the safety unit 9 and the servo driver 10.
  • the operation unit 3 includes an input unit (not shown) that receives an input operation of the operator of the robot A and a display (not shown).
  • the operation unit 3 communicates with the robot control unit 2 based on an input operation from the operator.
  • the operator can perform operation setting, operation control, and the like of the robot arm 11 through the operation unit 3.
  • the input unit may be configured by a touch panel, and the display and the input unit may be configured integrally.
  • the robot control unit 2 includes a controller (for example, CPU) 7, a RAM (Random Access Memory) 8 as a storage unit, a safety unit 9 as an abnormality detection device, a servo driver 10, and a safety circuit (controller) 6.
  • the servo driver 10 is a driver for driving each motor 4.
  • the safety circuit (controller) 6 also shuts off the power supply (not shown) for driving the robot A in response to an emergency stop signal instructing the emergency stop from the safety unit 9.
  • the robot control system includes the encoder 5, the robot control unit 2, and the position sensor 13.
  • the RAM 8 stores a teaching program of the robot A created by the operator using the operation unit 3, function settings of the robot A, and the like.
  • the controller 7 calculates a speed command (rotation angle of the motor 4 advancing per unit time) based on the teaching program, function setting and the like stored in the RAM 8. Further, the controller 7 outputs the calculated speed command to the servo driver 10 to issue an operation command of the robot A. Similarly, the controller 7 integrates the speed command based on the home position, and outputs the integrated value to the safety unit 9 as command position information.
  • the speed command is calculated based on, for example, the reduction ratio of the robot A, the origin position of the robot A, and the like.
  • the position sensor 13 is connected to the servo driver 10, and the displacement amount of the workpiece W from a predetermined position, that is, the displacement amount of the workpiece W with respect to the trajectory of the robot arm 11 specified in the operation program is expressed by XYZ coordinates. It transmits to the servo driver 10 as a differential signal represented by a system.
  • the servo driver 10 generates a current value for driving the motor 4 based on the speed command received from the controller 7, the output signal from the encoder 5, and the difference signal from the position sensor 13 as necessary. Furthermore, the servo driver 10 controls the operation of the robot A by controlling the motor 4 based on the current value.
  • the safety unit 9 is directly connected to the encoder 5 and the controller 7. Then, the safety unit 9 determines whether the encoder 5 is broken based on the detected position information of the motor 4 calculated based on the output signal received from the encoder 5 and the commanded position information received from the controller 7. Determine
  • FIG. 3 is a block diagram showing the configuration of the safety unit 9.
  • the safety unit 9 includes a CPU 92 as a determination unit, a RAM 93, an encoder reception unit 94 as a first reception unit, and a DPRAM (Dual Port RAM) 95 as a second reception unit. ing.
  • the encoder reception unit 94 is connected to the encoder 5 and acquires an output signal from the encoder 5.
  • the DPRAM 95 is connected to the controller 7 of the robot control unit 2 and acquires command position information output from the controller 7.
  • the command position information is obtained by integration of the speed command output from the controller 7 to the servo driver 10.
  • the command position information acquired by the DPRAM 95 is stored in the RAM 93.
  • the CPU 92 receives the output signal from the encoder reception unit 94 and calculates detection position information on the current position of the motor 4 using the output signal, the reduction ratio of the robot A, the origin position of the robot A, and the like. And the command position based on command position information and the detection position based on detection position information are compared, and the presence or absence of abnormality of the encoder 5 is confirmed.
  • the CPU 92, the RAM 93, and the DPRAM 95 are connected in the same configuration, and two sets having the same function are provided. This enables parallel processing using two CPUs 92. That is, the same abnormality determination can be performed in duplicate, and the reliability can be further improved as compared with the case of one set.
  • the servo driver 10 controls the motor 4 based on the speed command from the controller 7, the output signal from the encoder 5, and the difference signal from the position sensor 13.
  • FIG. 4A shows a flowchart of an output procedure of command position information by a controller according to the present embodiment
  • FIG. 4B shows a flowchart of another output procedure of command position information.
  • step ST1 the robot control unit 2 is activated (step ST1).
  • step ST1 the safety circuit 6, the controller 7, the RAM 8, the safety unit 9, and the servo driver 10 are activated.
  • the position sensor 13 is also activated.
  • the controller 7 generates a speed command and command position information based on the teaching program and the function setting of the robot A, the origin information, etc. stored in the RAM 8 (step ST2), and gives the servo driver 10 a speed command. Is sent (step ST3).
  • the servo driver 10 takes in the difference signal from the position sensor 13 (step ST4).
  • the servo driver 10 generates control information for controlling the rotation operation of the motor 4 based on the difference signal, the speed command from the controller 7 and the output signal from the encoder 5 (step ST5).
  • the difference signal is transmitted (step ST6).
  • the controller 7 converts the received difference signal into the amount of movement R of the corresponding joint axis, that is, the rotation angle of the motor 4 in the clockwise or counterclockwise direction (step ST7). Then, the converted operation amount R is added as a correction value to the command position information generated by the controller 7 itself to generate new command position information (step ST8). Next, the controller 7 transmits the new command position information to the safety unit 9 (step ST9).
  • steps ST1 to ST4 are the same as the flow shown in FIG. 4A, but the servo driver 10 sets the differential signal from the position sensor 13 to the movement amount R of the joint axis. Convert (step ST5), and further generate target position information as control information (step ST6).
  • the target position information is a value obtained by adding the operation amount R, the speed command V from the controller, and the initial value I at the time of power on.
  • the servo driver 10 transmits the target position information to the controller 7 (step ST7), and the controller 7 transmits the received target position information as new command position information to the safety unit 9 (step ST8).
  • the step in which the servo driver 10 takes in an output signal from the encoder 5 is not shown.
  • each step does not necessarily have to be processed in the order described, but the order may be changed, and if parallel processing is possible, the order or processing of processing may be appropriately performed. You may change the method.
  • the process according to step ST4 may be performed before the process according to step ST3 or in parallel with step ST3.
  • FIG. 5 is a flowchart showing how the safety unit 9 monitors the abnormality of the encoder 5 after the robot control unit 2 starts the robot A and the robot A starts its operation. That is, FIG. 5 shows how the safety unit 9 monitors the abnormality of the encoder 5 when the controller 7 causes the motor 4 to rotate via the servo driver 10.
  • step ST1 the controller 7 of the robot control unit 2 starts the robot A, and proceeds to step ST2.
  • the robot control unit 2 causes the robot A to operate based on the teaching program and the function setting and the like set by the operator via the operation unit 3.
  • the controller 7 outputs a speed command to the servo driver 10 and a command position information to the safety unit 9 based on the teaching program and function settings stored in the RAM 8.
  • the servo driver 10 drives the motor 4 based on the speed command received from the controller 7 to operate the joint axis 12 and the external axis of the robot A.
  • the servo driver 10 receives an output signal from the encoder 5 attached to the motor 4 and performs feedback control on the motor 4 based on the difference between the speed command and the output signal. At this time, the output signal from the encoder 5 is also output to the safety unit 9.
  • the motor position is calculated (ST4).
  • the CPU 92 of the safety unit 9 converts the rotational position (the current position) of the motor 4 based on the output signal acquired from the encoder 5, the reduction ratio of each axis of the motor 4 and the origin information of the motor 4 Make a calculation.
  • the output signal obtained from the encoder 5 is transmitted, for example, in the form of a pulse signal.
  • the safety unit 9 receives command position information from the controller 7 (ST5), and compares the detected position information on the current position of the motor 4 calculated in ST4 with the command position information from the controller 7 (ST6) ). Specifically, the CPU 92 of the safety unit 9 calculates the rotational position (motor detection value) of the motor 4 calculated based on the output signal from the encoder 5 and the rotational position (motor command value) of the motor instructed from the controller 7 Compare with).
  • the command position information shown in steps ST5 and ST6 also includes new command position information shown in FIGS. 4A and 4B.
  • step ST7 If the difference between the motor command value and the motor detection value is equal to or greater than the predetermined value as a result of the comparison (YES in ST7), the CPU 92 determines that the encoder 5 is abnormal, and proceeds to step ST8. On the other hand, if the difference between the motor command value and the motor detection value is less than the predetermined value (NO in ST7), the flow does not determine that the encoder 5 is abnormal, and the flow returns to step ST3.
  • the motor 4 is about to move to the position instructed by the controller 7. Therefore, the difference between the motor detection value (detection position information) indicating the rotation position of the motor 4 and the motor command value (command position information) indicating the rotation position commanded by the controller 7 is within the predetermined threshold Pth. It should be. Therefore, when it is determined that the rotational position of the motor based on the motor detection value is separated from the motor command position based on the motor command value by a predetermined position or more, it is determined that the encoder is broken.
  • step ST8 the CPU 92 of the safety unit 9 transmits an emergency stop signal to the safety circuit 6.
  • the safety circuit 6 that has received the emergency stop signal shuts off the drive power supply of the robot A, and makes the robot A emergency stop.
  • the safety unit 9 repeatedly executes the processing of steps ST3 to ST7 and determines that the encoder 5 is abnormal.
  • the safety unit 9 compares the position information directly acquired from the controller 7 with the position information calculated based on the output signal from the encoder 5. An abnormality of the encoder 5 is detected based on the result.
  • an operating device such as a general-purpose robot that does not have an encoder abnormality detection device
  • the servo driver 10 of the general purpose robot When the configuration as shown in FIG. 17 is applied to a general purpose robot not having the abnormality detection device of the encoder 5, the servo driver 10 of the general purpose robot usually generates a motor command value and a motor detection value, There is no function to output the generated motor command value and motor detection value. Therefore, it is necessary to newly design a circuit, a program and the like having the generation function and the output function. In addition, it is necessary to have a mechanism (circuit, program, display, etc.) indicating whether or not the additionally designed circuit, program, etc. is functioning properly. That is, there is a problem that it takes time and complexity. On the other hand, the abnormality detection method and the abnormality detection device according to the present disclosure do not have such a problem.
  • the abnormality detection of the encoder 5 is performed based on the command position information generated by the controller 7. In the safety unit 9, there was a risk that the abnormality detection could not be performed correctly.
  • the controller 7 when the servo driver 10 controls the rotational operation of the motor 4 based on not only the speed command from the controller 7 and the output signal from the encoder 5 but also the difference signal from the position sensor 13
  • the controller 7 generates new command position information based on the difference signal from the position sensor 13 or the target position information is generated by the servo driver 10 based on the difference signal from the position sensor 13, and the controller 7 As new command position information.
  • the control information of the motor 4 of the portion uniquely performed by the servo driver 10 can be reflected on the command position information generated by the controller 7. Therefore, it is possible to prevent the erroneous detection of the abnormality of the encoder 5 by the safety unit 9, and maintain the abnormality detection accuracy of the encoder 5.
  • control period of the servo driver 10 is shorter than the control period of the controller 7. Control information can be reflected.
  • the servo driver 10 when the difference signal from the position sensor 13 is not used for the rotation control of the motor 4, the servo driver 10 does not transmit the control information to the controller 7, and the command position information generated by the controller 7 is directly transmitted. , And the abnormality detection of the encoder 5 is performed based on the flow shown in FIG.
  • FIG. 6 is a schematic configuration diagram of a robot control system as an actuation device according to the present embodiment.
  • FIG. 7 is a block diagram showing the configuration of the robot control unit 2, and arrows are shown so that the transmission direction of information or a signal can be known.
  • the robot control system shown in FIG. 6 only omits the position sensor 13 from the robot control system shown in FIG. 1, and the other components and the functions of the respective components are the same as in the first embodiment. Because there is, I omit the explanation.
  • the configuration of the robot control unit 2 shown in FIG. 7 also omits the position sensor 13 from the configuration shown in FIG. 2, the difference from the configuration shown in the first embodiment is the first speed from the controller 7 The command and the second speed command are sent to the servo driver 10.
  • the first speed command is the same as the speed command shown in the first embodiment, and the first speed command is the main speed command.
  • the second speed command performs more responsive control (hereinafter referred to as high response control) on the servo driver 10 side separately from the first speed command created by the controller 7 based on the information of the teaching program.
  • the controller 7 sends a command to the servo driver 10.
  • the robot A may rapidly pull up and return the robot arm 11.
  • control that the servo driver 10 performs in parallel to normal control corresponds to high responsiveness control.
  • Control of the sudden acceleration / deceleration operation of the robot arm 11 or the like also corresponds to high response control.
  • the controller 7 transmits the second speed command to the servo driver 10 in addition to the first speed command, and the servo driver 10 controls the motor 4 by determining the target position in consideration of these two speed commands. .
  • the controller 7 transmits the first and second speed commands to the servo driver 10, and the servo driver 10 transmits the first and second speed commands.
  • the motor 4 is controlled based on the 2 speed command and the output signal from the encoder 5 will be considered.
  • FIG. 8A shows a flowchart of an output procedure of command position information by the controller according to the present embodiment
  • FIG. 8B shows a flowchart of another output procedure of command position information.
  • steps ST1 and ST2 are the same as steps ST1 and ST2 of the flows shown in FIGS. 4A and 4B, and thus the description thereof is omitted.
  • the controller 7 generates a second speed command for high response control (step ST3), and transmits the first and second speed commands to the servo driver 10 (step ST4).
  • the servo driver 10 generates control information for controlling the rotational operation of the motor 4 based on these speed commands and the output signal from the encoder 5 (step ST5).
  • the servo driver 10 transmits, to the controller 7, information uniquely generated by the servo driver 10, in this case, control information based on the second speed command (step ST6).
  • the controller 7 converts control information based on the second speed command into the movement amount R2 of the joint axis (step ST7), adds the movement amount R2 as a correction value to the command position information generated by itself, and generates a new command.
  • Position information is generated (step ST8), and the new command position information is transmitted to the safety unit 9 (step ST9).
  • steps ST1 to ST4 are the same as the flow shown in FIG. 8A, but target position information is generated as control information uniquely executed by the servo driver 10 (step ST5).
  • the target position information is a value obtained by adding the first and second speed commands V1 and V2 and the initial value I at power-on.
  • the servo driver 10 transmits the target position information to the controller 7 (step ST6).
  • the target position information shown in FIG. 8B is a relative value held by the servo driver 10, that is, an amount indicating how much the joint axis moves from the position at a certain point in time. Therefore, the controller 7 adds the integrated value up to that point to the received target position information to convert it into an absolute position, that is, a movement amount from the origin (step ST7), and uses this as new command position information. (Step ST8).
  • the step in which the servo driver 10 takes in an output signal from the encoder 5 is not shown.
  • FIGS. 8A and 8B the step in which the servo driver 10 takes in an output signal from the encoder 5 is not shown.
  • step ST3 may be performed before the process according to step ST2 or in parallel with step ST2.
  • the method of detecting an abnormality in the encoder according to the present embodiment is the same as the method of detecting an abnormality according to the first embodiment shown in FIG.
  • the command position information sent from the controller 7 to the safety unit 9 also includes new command position information shown in FIGS. 8A and 8B.
  • the safety unit 9 compares the position information directly acquired from the controller 7 with the position information calculated based on the output signal from the encoder 5 in the abnormality detection of the encoder 5 based on the result of comparison. An abnormality in the encoder 5 is detected.
  • an operating device such as a general-purpose robot that does not have an encoder abnormality detection device
  • there is no need to make a design change or the like on the components of the existing general-purpose robot such as the servo driver 10 and the influence on the existing system can be reduced. Therefore, it is not necessary to indicate to the existing system that the process related to the abnormality determination of the encoder is properly performed, and the process is not complicated.
  • the abnormality detection of the encoder 5 is performed based on the command position information generated by the controller 7. In the safety unit 9, there was a risk that the abnormality detection could not be performed correctly.
  • the controller 7 when the servo driver 10 controls the rotational operation of the motor 4 based on the two different types of speed commands from the controller 7 and the output signal from the encoder 5, the response for high response is
  • the controller 7 generates new command position information from control information based on the second speed command, or the target position information is generated by the servo driver 10 based on two speed commands, and the controller 7 converts this into an absolute position. New command position information.
  • the control information of the motor 4 of the portion uniquely performed by the servo driver 10 can be reflected on the command position information generated by the controller 7. For this reason, the erroneous detection of the abnormality of the encoder 5 by the safety unit 9 can be prevented, and the abnormality detection accuracy of the encoder 5 can be maintained.
  • the control cycle of the servo driver 10 is shorter than the control cycle of the controller 7, so the control responsiveness of the robot A can be improved.
  • the servo driver 10 when the controller 7 does not generate the second speed command, the servo driver 10 does not transmit the control information to the controller 7 and transmits the command position information generated by the controller 7 directly to the safety unit 9 Then, based on the flow shown in FIG. 5, the abnormality detection of the encoder 5 is performed.
  • the first embodiment has been described as an example of the technology disclosed in the present application.
  • the technology in the present disclosure is not limited to this, and can be applied to an embodiment in which changes, replacements, additions, omissions, and the like are appropriately made.
  • first and second embodiments may be configured as follows.
  • FIG. 9 is a block diagram showing a configuration of a robot control unit according to the modification (1).
  • a primary delay filter 22 as a delay control filter in consideration of a general control delay is provided between the controller 7 and the safety unit 9.
  • the first-order lag filter 22 shown in FIG. 9 can be applied to the configuration shown in FIG.
  • the rotational position (motor command position) of the motor 4 based on the command position information obtained by the safety unit 9 from the controller 7 and the safety unit 9 from the encoder 5 when compared in the same time
  • the rotational position (motor detection position) of the motor 4 may be deviated based on the output signal or the like. This occurs, for example, due to the nature of motor control.
  • the controller 7 of the robot control unit 2 outputs the speed command and the command position information
  • the servo driver 10 actually controls the motor 4 and the motor 4 operates based on the control, so the constant time This is because a delay of
  • FIG. 10 shows the relationship between the motor command position (thick solid line in FIG. 10) and the motor detection position (thin solid line in FIG. 10) when the joint shaft 12 of the robot arm 11 is reciprocated at the maximum speed. It is.
  • a delay of about 0.1 second occurs at the maximum, and a delay of about 18 degrees occurs in terms of angle (see the dashed line in FIG. 10).
  • a broken line indicates a motor command position according to the configuration of FIG. 9
  • a two-dot chain line indicates a deviation between the motor command position and the motor detection position according to the configuration of FIG.
  • the predetermined threshold value Pth used to compare the detected position information and the commanded position information may be determined based on the difference between the motor commanded position and the motor detected position. In this case, by reducing the difference between the motor command position and the motor detection position, the predetermined threshold value Pth can be reduced, and as a result, the abnormality detection accuracy of the encoder can be enhanced.
  • the abnormality detection method of the encoder 5 may be performed in the same manner as the procedure using FIG. 5, the detailed description thereof is omitted here.
  • FIG. 11 is a block diagram showing a configuration of a robot control unit according to the modification (2).
  • a damping filter 21 connected in series to the first-order lag filter 22 is provided between the controller 7 and the safety unit 9.
  • high response control may be performed depending on the contents of operation control of the servo driver 10.
  • high-speed control and control with improved trackability can be performed.
  • the motor 4 may vibrate due to the excitation component included in the command position information. Therefore, in order to suppress the vibration of the motor 4, a damping filter (not shown) is often used between the servo driver 10 and the motor 4. Therefore, when the above-described high responsiveness control is performed, a command similar to the control by the servo driver 10 can be generated by adopting the configuration as shown in FIG.
  • FIG. 12 is a diagram showing the relationship between the motor command position and the motor detection position when the joint shaft 12 of the robot arm 11 is reciprocated at the maximum speed.
  • the thick solid line and the thin solid line are the same as FIG. 10, and show the operation according to the configuration (see FIG. 2) in which the first-order lag filter 22 and the damping filter 21 are not used.
  • the broken line indicates the change of the motor command position according to the configuration of FIG. 11, and the two-dot chain line indicates the deviation between the motor command position and the motor detection position according to the configuration of FIG. From FIG. 12, it is understood that the difference between the motor command position and the motor detection position is further reduced by providing the damping filter 21 in addition to the first-order lag filter 22.
  • the damping filter 21 is for removing the resonance component from the inputted command position information. Further, both the damping filter 21 and the first-order lag filter 22 may be directly provided in random order, or only one of them may be provided.
  • damping filter 21 and first-order lag filter 22 may be interchanged with each other, and the same effect can be obtained.
  • step ST7 when the difference between the motor command value and the motor detection value is equal to or more than a predetermined value in step ST7, that is, when the result of step ST7 is "YES", the process proceeds to step ST8. Then, in step ST8, the CPU 92 of the safety unit 9 determines whether or not the controller 7 instructs an emergency stop of the robot A.
  • the controller 7 outputs an emergency stop signal (not shown) to the safety circuit 6 when stopping the robot A in an emergency.
  • the safety circuit 6 having received the emergency stop signal shuts off the driving power supply of the robot A, and stops the robot A.
  • the safety unit 9 acquires an emergency stop signal from the controller 7. Then, in step ST8, it is determined whether or not the emergency stop signal is output from the controller 7. If the emergency stop signal is output from the controller 7 (YES in ST8), the flow returns to step ST3. That is, even when the difference between the motor command value and the motor detection value is equal to or more than the predetermined value, it is not determined that the encoder 5 is abnormal.
  • step ST9 the CPU 92 of the safety unit 9 transmits an emergency stop signal to the safety circuit 6, and the safety circuit 6 having received the emergency stop signal stops the robot A in an emergency.
  • the safety unit 9 does not erroneously determine that the encoder 5 is abnormal when the emergency stop is instructed by the controller 7. Specifically, when the controller 7 stops the robot A by outputting an emergency stop signal, the output of the command position information of the controller 7 is stopped. For this reason, when the comparison between the motor command value and the motor detection value is continued in the safety unit 9, there is a possibility that it will be judged as abnormal although the encoder 5 is operating normally. However, the occurrence of such a problem can be prevented by performing the process according to this aspect.
  • the steps need not necessarily be processed in the order described, but if the order can be changed or parallel processing can be performed, the order of processing and the processing method are appropriately selected. You may change it.
  • the process according to steps ST3 and ST4 and the process according to step ST5 may be performed in parallel.
  • FIG. 14 shows the motor command positions P1 to P3 in the case of the so-called progressive operation in which the motor command position sequentially moves from P1 to P2 to P3 based on the speed command from the controller 7, and The relationship with the position Pr of the motor (hereinafter also referred to as the current position Pr) is shown.
  • the current position Pr the position of the motor
  • the safety unit 9 may erroneously determine that the encoder 5 is abnormal.
  • the servo driver 10 causes the motor 4 to start an operation before the current position Pr of the motor 4 reaches or sufficiently approaches P3. Pr may return from P2 to P1.
  • the safety unit 9 compares the motor command position based on the command position information P3 with the motor detection position based on the current position Pr of the motor 4, the difference between the position P3 and the position Pr is large. Due to the above, there is a possibility that the safety unit 9 will be determined as abnormal although the encoder 5 is operating normally.
  • FIG. 16 is a view showing a motor command position when the joint shaft 12 of the robot arm 11 is reciprocated.
  • step ST6 the CPU 92 compares the value obtained by increasing or decreasing the integrated value ⁇ to the motor command value with the motor detection value calculated based on the detection position information, and in step ST7, based on the comparison result. It makes it possible to determine an encoder error. Specifically, when the motor detection value P (fs) satisfies the condition of the lower (Equation 1), it is not determined that the encoder 5 is abnormal. At this time, the amount of change ⁇ n is integrated as an absolute value regardless of the direction of the change. Further, the amount of change ⁇ n changes in accordance with the speed of the motor, and is proportional to the speed. That is, when the drive of the motor is at high speed, the change amount ⁇ n has a large value. Conversely, when the drive of the motor is at a low speed, the change amount ⁇ n has a small value.
  • the integrated value ⁇ may become 0 during a period in which the robot A does not operate for a predetermined period in an emergency stop. Therefore, in step ST5, a predetermined threshold value Th may be added to the integrated value ⁇ as shown in (Equation 2) below instead of (Equation 1) above.
  • the safety unit 9 can detect an abnormality even when the robot is performing an unintended operation of the control device, and the operation of the robot A can be stopped in an emergency. It will be.
  • step ST1 is followed by a step in which the controller 7 takes in the difference signal from the position sensor 13, and based on this, the command position information generated in step ST2 is corrected. Good.
  • the controller 7 receives the difference signal from the position sensor 13, while the difference in command position information A correction value obtained by converting a signal is added to generate new command position information, and the new command position information is transmitted to the safety unit 9. Further, in this case, since steps ST4 to 8 shown in FIG. 4A are omitted, the procedure of transmitting the command position information to the safety unit 9 can be simplified, and the time until transmission can be shortened.
  • the controller information transmission method of the present disclosure can prevent erroneous detection of an encoder abnormality when the servo driver controls the motor also based on information other than the main speed command from the controller and the output signal from the encoder, and Since the encoder abnormality detection method can determine the encoder abnormality by minimizing the influence on the existing function and the existing device even when using a general-purpose encoder, an industrial robot such as a general-purpose welding robot or It is particularly useful in determining abnormalities in encoders associated with other actuators.
  • a robot (actuator) W Work 4 Motor 5 Encoder 7 Controller 8, 93 RAM (storage unit) 9 Safety unit (error detection device) 10 servo driver 12 joint axis (output axis) 13 Position Sensor 21 Damping Filter 22 First Order Delay Filter (Delay Control Filter) 92 CPU (judgment unit) 94 Encoder Receiver (First Receiver) 95 DPRAM (second receiver)

Abstract

A robot has a motor and processes a workpiece. The robot has: a controller for outputting speed commands and command position information; an encoder; a position sensor for outputting, as a difference signal, the amount of positional displacement of the workpiece W relative to a prescribed position; a servo driver for controlling the motor upon receiving the speed command, an output signal from the encoder, and the difference signal; and a safety unit for detecting abnormalities in the encoder. When the servo driver controls the motor on the basis of the speed command, the output signal, and the difference signal, the servo motor transmits the difference signal to the controller. The controller adds a correction value based on the difference signal to the command position information, generates new command position information, and transmits said new command position information to the safety unit.

Description

コントローラの情報送信方法及びエンコーダの異常検出方法Information transmission method of controller and abnormality detection method of encoder
 本開示は、ロボット等の作動装置に設けられたコントローラの情報送信方法及びエンコーダの異常検出方法に関する。 The present disclosure relates to a method for transmitting information of a controller provided in an operating device such as a robot and a method for detecting an abnormality in an encoder.
 従来から、ロボット等の作動装置の出力軸を駆動するモータの回転位置を検出するために用いられるエンコーダの故障に係る異常検出技術が知られている。 2. Description of the Related Art An abnormality detection technique related to a failure of an encoder used to detect a rotational position of a motor that drives an output shaft of an operating device such as a robot is conventionally known.
 特許文献1には、エンコーダシステムにモータの入力軸の回転を検出する第1のエンコーダと、モータの出力軸の回転を検出する第2のエンコーダとを設けることが開示されている。さらに、特許文献1には、これら2つのエンコーダで検出された位置測定値に一定以上の差がある場合に、これらエンコーダのいずれかが異常だと判定する技術が開示されている。 Patent Document 1 discloses that an encoder system is provided with a first encoder that detects rotation of an input shaft of a motor and a second encoder that detects rotation of an output shaft of the motor. Further, Patent Document 1 discloses a technique for determining that any one of these encoders is abnormal when there is a difference of a predetermined value or more in position measurement values detected by these two encoders.
 また、特許文献2には、モータが正常に制御されていることを監視するセーフティユニットを備えるサーボシステムが開示されている。特許文献2に係るセーフティユニットは、モータを制御しているサーボドライバから受けた指令値やフィードバック値が異常である場合に、上記サーボドライバへの停止信号を生成する。 Further, Patent Document 2 discloses a servo system including a safety unit that monitors that a motor is normally controlled. The safety unit according to Patent Document 2 generates a stop signal to the servo driver when the command value or the feedback value received from the servo driver controlling the motor is abnormal.
特許第5675761号公報Patent No. 5675761 gazette 特許第5367623号公報Patent No. 5376623 gazette
 しかしながら、汎用の作動装置の駆動系(モータ)では、単一のエンコーダしか設けられていないものも多い。そのため、特許文献1に開示された技術は、これらの汎用モータに対して適用できないという問題がある。また、新規に特許文献1に係るシステムを構成する場合においても、複数のセンサを設ける必要があるため、コストが高くなる。 However, in the drive system (motor) of a general-purpose actuator, there are many in which only a single encoder is provided. Therefore, there is a problem that the technology disclosed in Patent Document 1 can not be applied to these general-purpose motors. Further, even in the case of newly configuring a system according to Patent Document 1, it is necessary to provide a plurality of sensors, which increases the cost.
 特許文献2に開示された技術においても、異常検出機能を有していない汎用のシステムに対して適用する場合に、サーボドライバに新しい機能を追加する必要がある。そのため、サーボドライバ及びセーフティユニット双方の開発が必要である。すなわち、工数がかかるという問題がある。 Also in the technique disclosed in Patent Document 2, when applying to a general-purpose system not having an abnormality detection function, it is necessary to add a new function to the servo driver. Therefore, it is necessary to develop both the servo driver and the safety unit. That is, there is a problem that it takes man-hours.
 図17は、特許文献2に開示された従来の技術に係るロボット制御部の構成を示すブロック図を示す。図17に示すロボット制御部では、コントローラ7が、サーボドライバ10に指令信号を出力する。サーボドライバ10は、コントローラ7から受けた指令信号及びエンコーダ5から取得した検出信号に基づいてモータ4を駆動する電流値を生成し、この電流値に基づいてモータ4を制御する。 FIG. 17 is a block diagram showing the configuration of a robot control unit according to the prior art disclosed in Patent Document 2. As shown in FIG. In the robot control unit shown in FIG. 17, the controller 7 outputs a command signal to the servo driver 10. The servo driver 10 generates a current value for driving the motor 4 based on the command signal received from the controller 7 and the detection signal acquired from the encoder 5, and controls the motor 4 based on the current value.
 サーボドライバ10が、コントローラ7から受けた指令信号に基づいてモータ4の回転位置に係る比較処理用の指令値(モータ指令値)を生成し、セーフティユニット9に出力している。同様に、サーボドライバ10は、エンコーダ5から取得した出力信号、モータ4各軸の減速比及びモータ4の原点情報(以下、単に原点情報という)等に基づいてモータ4の回転位置を示す値(モータ検出値)を生成し、セーフティユニット9に出力している。そして、セーフティユニット9では、サーボドライバ10から受けたモータ指令値とモータ検出値とを比較し、その比較結果に基づいてエンコーダ5の異常を判定している。 The servo driver 10 generates a command value (motor command value) for comparison processing relating to the rotational position of the motor 4 based on the command signal received from the controller 7 and outputs it to the safety unit 9. Similarly, the servo driver 10 is a value indicating the rotational position of the motor 4 based on the output signal acquired from the encoder 5, the reduction ratio of each axis of the motor 4 and the origin information of the motor 4 (hereinafter simply referred to as origin information) The motor detection value is generated and output to the safety unit 9. Then, in the safety unit 9, the motor command value received from the servo driver 10 and the motor detection value are compared, and the abnormality of the encoder 5 is determined based on the comparison result.
 しかしながら、エンコーダ5の異常検出装置を有していない汎用ロボットに対して図17に示すような構成を適用する場合、汎用ロボットのサーボドライバ10は、通常、モータ指令値及びモータ検出値を生成する機能、並びに、生成したモータ指令値及びモータ検出値を出力する機能を有していない。 However, when the configuration as shown in FIG. 17 is applied to a general-purpose robot not having the abnormality detection device of the encoder 5, the servo driver 10 of the general-purpose robot normally generates a motor command value and a motor detection value. It does not have the function and the function to output the generated motor command value and motor detection value.
 従って、上記生成機能及び出力機能を有する回路、プログラム等を新規に設計する必要がある。また、追加設計した回路及びプログラム等が正しく機能しているかどうかを示すような仕組み(回路、プログラム、表示等)が必要である。すなわち、手間がかかるとともに処理が複雑化するという問題がある。 Therefore, it is necessary to newly design a circuit, a program and the like having the generation function and the output function. In addition, it is necessary to have a mechanism (circuit, program, display, etc.) indicating whether or not the additionally designed circuit, program, etc. is functioning properly. That is, there is a problem that it takes time and complexity.
 また、上記のロボットを使用してワークを溶接等する場合、溶接中の熱変形によって本来溶接すべき位置がずれたり、そもそもワークの位置が正しい位置からずれて設置されていることがある。このような場合には、溶接開始前に作成され、コントローラに保持されたロボットの動作を規定する動作プログラム通りにロボットを動作させても正しく溶接できない。そのため、ワークの位置ずれを検出する目的でセンサを使用し、サーボドライバがセンサからの情報に基づいて独自にモータを制御することがある。 Moreover, when welding a workpiece using the above-mentioned robot, the position to be originally welded may shift due to thermal deformation during welding, or the position of the workpiece may be originally shifted from the correct position. In such a case, welding can not be performed correctly even if the robot is operated according to an operation program that is created before the start of welding and is held by the controller. Therefore, a sensor may be used for the purpose of detecting a positional deviation of a work, and a servo driver may independently control a motor based on information from the sensor.
 しかし、上記従来の構成において、このような制御を行う場合、モータを駆動するためにサーボドライバが独自に生成した制御情報は、コントローラ側では分からない。そのため、セーフティユニットでのエンコーダの異常検出が正しく行われないおそれがあった。同様の課題は、コントローラからサーボドライバに対し高応答用の速度指令が送信され、サーボドライバが当該速度指令に基づいて独自にモータを制御する場合にも生じうる。 However, when performing such control in the above-described conventional configuration, the controller side can not know the control information uniquely generated by the servo driver for driving the motor. Therefore, there was a possibility that the abnormality detection of the encoder in the safety unit was not performed correctly. The same problem may occur when the controller transmits a speed command for high response to the servo driver, and the servo driver independently controls the motor based on the speed command.
 本開示は、上記課題を解決するために、サーボドライバが独自にモータ制御を行う場合に、セーフティユニットでのエンコーダ異常の誤検出が生じ難いコントローラの情報送信方法及びエンコーダの異常検出方法を提供することを目的とする。 In order to solve the above problems, the present disclosure provides a controller information transmission method and encoder abnormality detection method in which erroneous detection of an encoder abnormality in a safety unit is less likely to occur when a servo driver independently performs motor control. The purpose is
 上記の目的を達成するために、本開示のコントローラの情報送信方法では、サーボドライバがコントローラからの主たる速度指令とエンコーダからの出力信号以外の別の情報とに基づいてモータを制御する場合は、コントローラに対して別の情報あるいはサーボドライバが生成したモータの制御に関する制御情報を送信する。そして、コントローラが、受け取った別の情報または制御情報に基づいて新たな指令位置情報を生成し、これをセーフティユニットに送信することによって、セーフティユニットによるエンコーダの異常の誤検出を防止するようにした。また、本開示のエンコーダの異常検出方法では、エンコーダの出力信号に基づいて算出される検出位置情報とコントローラから出力される指令位置情報との間に所定値以上の差があった場合に、エンコーダの異常と判定するようにした。 In order to achieve the above object, according to the information transmission method of the controller of the present disclosure, when the servo driver controls the motor based on the main speed command from the controller and other information other than the output signal from the encoder, Control information on control of a motor generated by another information or a servo driver is transmitted to the controller. Then, the controller generates new command position information based on the received other information or control information, and transmits this to the safety unit, thereby preventing the false detection of the encoder abnormality by the safety unit. . Further, in the encoder abnormality detection method according to the present disclosure, when there is a difference between the detection position information calculated based on the output signal of the encoder and the command position information output from the controller, the encoder has a predetermined value or more. It was decided that it was an anomaly of
 具体的には、本開示の第1のコントローラの情報送信方法は、ロボットアームと、該ロボットアームの出力軸に連結されたモータとを有し、ワークを加工する作動装置に設けられたコントローラの情報送信方法であって、コントローラは、モータの回転位置を指示する速度指令及び該速度指令に応じたモータの回転位置を示す指令位置情報を出力し、作動装置は、モータの回転位置を検出するためのエンコーダと、所定の位置からのワークの位置ずれ量を差分信号として出力する位置センサと、コントローラから出力される速度指令とエンコーダから出力される出力信号と位置センサから出力される差分信号とを受け、少なくとも速度指令及び出力信号に基づいてモータの駆動を制御するドライバと、エンコーダの異常を検出する異常検出装置と、をさらに有し、ドライバが速度指令と出力信号と差分信号とに基づいてモータを制御する場合に、ドライバが差分信号をコントローラに送信する一方、コントローラは、指令位置情報に差分信号を換算して得られる補正値を加算して新たな指令位置情報を生成し、異常検出装置に新たな指令位置情報を送信することを特徴とする。 Specifically, the information transmission method of the first controller of the present disclosure includes a robot arm and a motor connected to an output shaft of the robot arm, and the controller provided in an actuating device for processing a workpiece. A method of transmitting information, wherein a controller outputs a speed command instructing a rotational position of the motor and command position information indicating a rotational position of the motor according to the speed command, and an operating device detects the rotational position of the motor Encoder, a position sensor that outputs a displacement signal of the workpiece from a predetermined position as a differential signal, a speed command output from the controller, an output signal output from the encoder, and a differential signal output from the position sensor And a driver that controls the drive of the motor based on at least the speed command and the output signal, and an abnormality detection that detects an abnormality in the encoder And when the driver controls the motor based on the speed command, the output signal, and the differential signal, the driver transmits the differential signal to the controller, while the controller transmits the differential signal to the command position information. A correction value obtained by conversion is added to generate new command position information, and new command position information is transmitted to the abnormality detection device.
 この方法によれば、コントローラからセーフティユニットに送信される指令位置情報にワークの位置ずれ量に基づく補正値を加算することで、サーボドライバが独自に受け取るモータの制御情報を指令位置情報に反映できるため、異常検出装置でのエンコーダの異常の誤検出の防止が容易になる。 According to this method, by adding the correction value based on the displacement amount of the work to the command position information transmitted from the controller to the safety unit, the control information of the motor uniquely received by the servo driver can be reflected on the command position information. Therefore, it becomes easy to prevent the erroneous detection of the abnormality of the encoder in the abnormality detection device.
 本開示の第2のコントローラの情報送信方法は、ロボットアームと、該ロボットアームの出力軸に連結されたモータとを有し、ワークを加工する作動装置に設けられたコントローラの情報送信方法であって、コントローラは、モータの回転位置を指示する速度指令及び該速度指令に応じたモータの回転位置を示す指令位置情報を出力し、作動装置はモータの回転位置を検出するためのエンコーダと、所定の位置からのワークの位置ずれ量を差分信号として出力する位置センサと、コントローラから出力される速度指令とエンコーダから出力される出力信号と位置センサから出力される差分信号とを受け、少なくとも速度指令及び出力信号に基づいてモータの駆動を制御するドライバと、エンコーダの異常を検出する異常検出装置と、をさらに有し、ドライバが速度指令と出力信号と差分信号とに基づいてモータを制御する場合に、ドライバが差分信号と速度指令とに基づいて目標位置情報を生成してコントローラに送信する一方、コントローラは目標位置情報を新たな指令位置情報にとして異常検出装置に送信することを特徴とする。 The information transmission method of the second controller of the present disclosure is a method of transmitting information of a controller provided in an operating device for processing a work, including a robot arm and a motor connected to an output shaft of the robot arm. The controller outputs a velocity command for instructing the rotational position of the motor and command position information indicating the rotational position of the motor according to the velocity command, and the actuating device includes an encoder for detecting the rotational position of the motor, and A position sensor that outputs, as a differential signal, a positional displacement amount of the workpiece from the position of the target, a speed command output from the controller, an output signal output from the encoder, and a differential signal output from the position sensor; And a driver for controlling the drive of the motor based on the output signal, and an abnormality detection device for detecting an When the driver controls the motor based on the speed command, the output signal, and the difference signal, the driver generates target position information based on the difference signal and the speed command and transmits it to the controller. The target position information is transmitted to the abnormality detection device as new command position information.
 この方法によれば、サーボドライバが生成した目標位置情報を指令位置情報とすることで、サーボドライバが独自に受け取るモータの制御情報を指令位置情報に反映できるため、異常検出装置でのエンコーダの異常の誤検出の防止が容易になる。 According to this method, by using the target position information generated by the servo driver as the commanded position information, the control information of the motor uniquely received by the servo driver can be reflected on the commanded position information. Prevention of false detection of
 本開示の第3のコントローラの情報送信方法は、ロボットアームと、該ロボットアームの出力軸に連結されたモータとを有する作動装置に設けられたコントローラの情報送信方法であって、コントローラは、モータの回転位置を指示する第1及び第2速度指令及び該第1及び第2速度指令に応じたモータの回転位置を示す指令位置情報を出力し、作動装置は、モータの回転位置を検出するためのエンコーダと、コントローラから出力される第1及び第2速度指令とエンコーダから出力される出力信号とを受け、第1及び第2速度指令の少なくとも一方と出力信号とに基づいてモータの駆動を制御するドライバと、エンコーダの異常を検出する異常検出装置と、をさらに有し、ドライバが第1及び第2速度指令とエンコーダからの出力信号とに基づいてモータを制御する場合に、ドライバが第2速度指令に基づいた制御情報をコントローラに送信する一方、コントローラは、指令位置情報に第2速度指令に基づいた制御情報を換算して得られる補正値を加算して新たな指令位置情報を生成し、異常検出装置に新たな指令位置情報を送信することを特徴とする。 A third controller information transmission method of the present disclosure is a controller information transmission method provided in an actuator including a robot arm and a motor connected to an output shaft of the robot arm, the controller being a motor First and second speed commands for specifying the rotational position of the motor and command position information indicating the rotational position of the motor according to the first and second speed commands, and the actuating device detects the rotational position of the motor And the first and second speed commands output from the controller and the output signal output from the encoder, and controlling the driving of the motor based on at least one of the first and second speed commands and the output signal And an abnormality detection device for detecting an abnormality in the encoder, the driver including the first and second speed commands and an output signal from the encoder When controlling the motor based on the driver, the driver transmits control information based on the second speed command to the controller, while the controller converts the control information based on the second speed command into the command position information, and the correction is obtained The values are added to generate new command position information, and the new command position information is transmitted to the abnormality detection device.
 この方法によれば、コントローラからセーフティユニットに送信される指令位置情報に第2速度指令に基づいた制御情報を換算して得られる補正値を加算することで、サーボドライバが独自に受け取るモータの制御情報を指令位置情報に反映できるため、異常検出装置でのエンコーダの異常の誤検出の防止が容易になる。 According to this method, the control of the motor that the servo driver independently receives by adding the correction value obtained by converting the control information based on the second speed command to the command position information transmitted from the controller to the safety unit Since the information can be reflected on the command position information, it is easy to prevent the erroneous detection of the abnormality of the encoder in the abnormality detection device.
 本開示の第4のコントローラの情報送信方法は、ロボットアームと、該ロボットアームの出力軸に連結されたモータとを有する作動装置に設けられたコントローラの情報送信方法であって、コントローラは、モータの回転位置を指示する第1及び第2速度指令及び該第1及び第2速度指令に応じたモータの回転位置を示す指令位置情報を出力し、作動装置は、モータの回転位置を検出するためのエンコーダと、コントローラから出力される第1及び第2速度指令とエンコーダから出力される出力信号とを受け、第1及び第2速度指令の少なくとも一方と出力信号とに基づいてモータの駆動を制御するドライバと、エンコーダの異常を検出する異常検出装置と、をさらに有し、ドライバが第1及び第2速度指令とエンコーダからの出力信号とに基づいてモータを制御する場合に、ドライバが第1及び第2速度指令に基づいて目標位置情報を生成してコントローラに送信する一方、コントローラは目標位置情報に基づいて新たな指令位置情報を生成し、異常検出装置に新たな指令位置情報を送信することを特徴とする。 A fourth controller information transmission method of the present disclosure is a controller information transmission method provided in an actuator including a robot arm and a motor connected to an output shaft of the robot arm, the controller being a motor First and second speed commands for specifying the rotational position of the motor and command position information indicating the rotational position of the motor according to the first and second speed commands, and the actuating device detects the rotational position of the motor And the first and second speed commands output from the controller and the output signal output from the encoder, and controlling the driving of the motor based on at least one of the first and second speed commands and the output signal And an abnormality detection device for detecting an abnormality in the encoder, the driver including the first and second speed commands and an output signal from the encoder When controlling the motor on the basis, the driver generates target position information based on the first and second speed commands and transmits it to the controller, while the controller generates new command position information based on the target position information. And transmitting new command position information to the abnormality detection device.
 この方法によれば、サーボドライバが生成した目標位置情報に基づいてコントローラが新たな指令位置情報を生成し、これを異常検出装置に送信することで、サーボドライバが独自に受け取るモータの制御情報を指令位置情報に反映できるため、異常検出装置でのエンコーダの異常の誤検出の防止が容易になる。 According to this method, the controller generates new command position information based on the target position information generated by the servo driver, and transmits this to the abnormality detection apparatus, thereby controlling the control information of the motor uniquely received by the servo driver. Since the command position information can be reflected, it becomes easy to prevent the erroneous detection of the abnormality of the encoder in the abnormality detection device.
 本開示のエンコーダの異常検出方法は、作動装置の出力軸を駆動するモータの回転位置を検出するためのエンコーダの異常を検出する異常検出方法であって、作動装置は、エンコーダの異常を検出する異常検出装置と、モータの回転位置を指示する速度指令を出力するとともに、速度指令に応じたモータの回転位置を示す指令位置情報を第1ないし第4のいずれかの情報送信方法により異常検出装置に送信するコントローラと、コントローラから出力される速度指令及びエンコーダから出力される出力信号を受け、速度指令及び出力信号に基づいてモータの駆動を制御するドライバと、をさらに有し、異常検出装置は、コントローラから指令位置情報を、またエンコーダから出力信号をそれぞれ取得する情報取得ステップと、指令位置情報と出力信号に基づいて算出されたモータの検出位置情報とを比較し、指令位置情報と検出位置情報との間に所定値以上の差があった場合にエンコーダの異常と判定する異常判定ステップとを行うことを特徴とする。 An encoder abnormality detection method according to the present disclosure is an abnormality detection method for detecting an encoder abnormality for detecting a rotational position of a motor that drives an output shaft of an actuator, the actuator detecting an encoder abnormality An abnormality detection device and a speed command for specifying a rotational position of the motor are output, and command position information indicating a rotational position of the motor according to the speed command is detected using any one of the first to fourth information transmission methods. The abnormality detection device further comprises: a controller for transmitting to the controller; and a driver for receiving the speed command output from the controller and the output signal output from the encoder and controlling the driving of the motor based on the speed command and the output signal. An information acquisition step for acquiring command position information from the controller and an output signal from the encoder, and command position information And an abnormality determination step of comparing the detected position information of the motor calculated based on the output signal and determining that the encoder is abnormal if there is a difference between the commanded position information and the detected position information by a predetermined value or more. It is characterized by doing.
 この方法によれば、異常検出装置は、コントローラから受けた指令位置情報と、エンコーダからの出力信号に基づいて算出された検出位置情報との比較結果に基づいてエンコーダの異常を判定する。これにより、ドライバにエンコーダの異常検出のための新しい構成、機能を追加することなく、エンコーダの異常検出ができるようになる。すなわち、例えば、一般的な作動装置(例えば、ロボットや外部軸)の既存構成、既存回路への影響を抑えて、エンコーダの異常検出ができるようになる。 According to this method, the abnormality detection device determines the abnormality of the encoder based on the comparison result of the commanded position information received from the controller and the detected position information calculated based on the output signal from the encoder. This makes it possible to detect an abnormality in the encoder without adding a new configuration or function to the driver for detecting an abnormality in the encoder. That is, for example, it is possible to detect an abnormality in the encoder while suppressing the influence on the existing configuration and the existing circuit of a general actuation device (for example, a robot or an external axis).
 異常検出装置は、異常判定ステップにおいて、コントローラから取得した指令位置情報に対し、モータの駆動制御の遅れに起因して生じた時間遅れを補償し、当該時間遅れが補償された指令位置情報と検出位置情報との比較結果に基づいて、エンコーダの異常の有無を判定する、のが好ましい。 In the abnormality determination step, the abnormality detection device compensates for the time delay caused due to the delay of the drive control of the motor with respect to the command position information acquired from the controller, and detects the command position information and the time delay compensated. It is preferable to determine the presence or absence of an abnormality of the encoder based on the comparison result with the position information.
 このように、エンコーダの異常判定に用いる指令位置情報を遅らせることで、モータ駆動制御の遅れに起因する時間のずれを解消することができる。そのため、エンコーダの異常検出精度を高めることができる。 As described above, by delaying the command position information used to determine the abnormality of the encoder, it is possible to eliminate the time lag due to the delay of the motor drive control. Therefore, the abnormality detection accuracy of the encoder can be enhanced.
 異常検出装置は、異常判定ステップにおいて、コントローラから出力された指令位置情報の変化量の積算値を生成し、当該積算値及び指令位置情報の和と、検出位置情報との比較結果に基づいて、エンコーダの異常の有無を判定する、のが好ましい。 In the abnormality determination step, the abnormality detection device generates an integrated value of the change amount of the command position information output from the controller, and based on the comparison result of the sum of the integrated value and the command position information and the detected position information. It is preferable to determine the presence or absence of abnormality of the encoder.
 このように、エンコーダの異常判定に用いる指令位置情報に対して、積算値を加えることにより異常判定におけるマージンを増やす。そのため、エンコーダが正常に動作しているにも拘わらず、異常検出装置がエンコーダの異常と判定することを防止することができる。 Thus, the margin in the abnormality determination is increased by adding the integrated value to the command position information used for the abnormality determination of the encoder. Therefore, it is possible to prevent the abnormality detection device from determining that the encoder is abnormal although the encoder is operating normally.
 異常検出装置は、異常判定ステップにおいて、積算値及び指令位置情報の和に所定の閾値を加えたものと検出位置情報との比較結果に基づいて、エンコーダの異常の有無を判定する、のが好ましい。 The abnormality detection device preferably determines the presence or absence of an abnormality in the encoder based on the comparison result of the sum of the integrated value and the command position information plus a predetermined threshold value and the detected position information in the abnormality determination step. .
 この方法によれば、積算値及び指令位置情報の和に閾値を加えて検出位置情報と比較することにより、例えば作動装置が動作していない場合等において、期間指令位置情報の変化がない場合に、差動装置が意図しない動作をしたときでも、エンコーダの異常を検出することができる。 According to this method, by adding a threshold value to the sum of the integrated value and the command position information and comparing it with the detected position information, there is no change in the period command position information, for example, when the operation device is not operating. Even when the differential device performs an unintended operation, an abnormality in the encoder can be detected.
 作動装置を非常停止するための安全回路がさらに設けられており、コントローラは、非常時に安全回路に非常停止信号を送信するように構成され、異常検出装置は、異常判定ステップにおいて、コントローラから非常停止信号が出力されたことを検知した場合、指令位置情報と検出位置情報との間に所定値以上の差があっても、エンコーダの異常と判定しない、のが好ましい。 There is further provided a safety circuit for emergency stop of the actuating device, and the controller is configured to transmit an emergency stop signal to the safety circuit in an emergency, and the abnormality detection device is emergency stop from the controller in the abnormality determination step. When it is detected that a signal is output, it is preferable not to determine that the encoder is abnormal even if there is a difference of a predetermined value or more between the command position information and the detection position information.
 この方法によれば、コントローラが非常停止信号を出力した後に、指令位置情報と検出位置情報との間に所定値以上の差があった場合でもエンコーダの異常と判定しない。そのため、例えば、コントローラが非常停止信号出力後に速度指令及び指令位置情報の出力を停止した場合に、エンコーダが正常に動作しているにも拘わらず、エンコーダの異常と判定することを防ぐことが容易になる。 According to this method, even if there is a difference between the commanded position information and the detected position information after the controller outputs the emergency stop signal, it is not determined that the encoder is abnormal. Therefore, for example, when the controller stops outputting the speed command and the command position information after outputting the emergency stop signal, it is easy to prevent the determination that the encoder is abnormal although the encoder is operating normally. become.
 以上説明したように、本開示のコントローラの情報送信方法によれば、サーボドライバがコントローラからの主たる速度指令とエンコーダからの出力信号以外の情報にも基づいてモータを制御する場合に、異常検出装置がエンコーダの異常を誤って検出することが生じ難くなる。また、本開示のエンコーダの異常検出方法によれば、汎用のエンコーダを使用している場合においても既存機能、既存装置への影響を最小限に抑えてエンコーダの異常判定をすることができる。 As described above, according to the controller information transmission method of the present disclosure, when the servo driver controls the motor also based on information other than the main speed command from the controller and the output signal from the encoder, the abnormality detection device Is less likely to erroneously detect an encoder error. Further, according to the encoder abnormality detection method of the present disclosure, even when a general-purpose encoder is used, the influence on the existing function and the existing apparatus can be minimized, and the encoder abnormality can be determined.
第1実施形態に係るロボット制御システムの概略構成図である。It is a schematic block diagram of the robot control system concerning a 1st embodiment. 第1実施形態に係るロボット制御部の構成を示すブロック図である。It is a block diagram showing composition of a robot control part concerning a 1st embodiment. セーフティユニットの構成を示すブロック図である。It is a block diagram showing composition of a safety unit. コントローラによる指令位置情報の送信手順を示すフローチャートである。It is a flowchart which shows the transmission procedure of command position information by a controller. コントローラによる指令位置情報の別の送信手順を示すフローチャートである。It is a flow chart which shows another transmitting procedure of command position information by a controller. エンコーダの異常判定方法を示すフローチャートである。It is a flowchart which shows the abnormality determination method of an encoder. 第2実施形態に係るロボット制御システムの概略構成図である。It is a schematic block diagram of the robot control system concerning a 2nd embodiment. 第2実施形態に係るロボット制御部の構成を示すブロック図である。It is a block diagram showing composition of a robot control part concerning a 2nd embodiment. コントローラによる指令位置情報の送信手順を示すフローチャートである。It is a flowchart which shows the transmission procedure of command position information by a controller. コントローラによる指令位置情報の別の送信手順を示すフローチャートである。It is a flow chart which shows another transmitting procedure of command position information by a controller. ロボット制御部の他の構成例を示すブロック図である。It is a block diagram which shows the other structural example of a robot control part. モータ指令位置とモータ検出位置との関係を示す図である。It is a figure which shows the relationship between a motor command position and a motor detection position. ロボット制御部の他の構成例を示すブロック図である。It is a block diagram which shows the other structural example of a robot control part. モータ指令位置とモータ検出位置との関係を示す図である。It is a figure which shows the relationship between a motor command position and a motor detection position. エンコーダの異常判定方法の他の例を示すフローチャートである。It is a flowchart which shows the other example of the abnormality determination method of an encoder. 第3実施形態に係る進行動作をした場合のモータ指令位置と実位置との関係を示す図である。It is a figure which shows the relationship of the motor command position at the time of advancing operation | movement which concerns on 3rd Embodiment, and an actual position. 第3実施形態に係る往復動作をした場合のモータ指令位置と実位置との関係を示す図である。It is a figure which shows the relationship of the motor instruction | command position at the time of reciprocation concerning 3rd Embodiment, and an actual position. モータ指令位置とモータ検出位置との関係を示す図である。It is a figure which shows the relationship between a motor command position and a motor detection position. 従来の技術に係るロボット制御部の構成を示すブロック図である。It is a block diagram which shows the structure of the robot control part which concerns on a prior art.
  以下、本実施形態を図面に基づいて詳細に説明する。以下の好ましい実施形態の説明は、本質的に例示に過ぎず、本発明、その適用物或いはその用途を制限することを意図するものでは全くない。 Hereinafter, the present embodiment will be described in detail based on the drawings. The following description of the preferred embodiments is merely exemplary in nature and is in no way intended to limit the invention, its applications or its uses.
 -第1実施形態-
 <ロボット及びその制御系の構成>
 図1は、本実施形態に係る作動装置としてのロボット制御システムの概略構成図である。また、図2はロボット制御部2の構成を示すブロック図であり、情報又は信号の送信方向がわかるように矢印を記載している。なお、本実施形態に係るロボットAは、ワークWを加工するために用いられる。
-First Embodiment-
<Configuration of robot and its control system>
FIG. 1 is a schematic configuration diagram of a robot control system as an actuation device according to the present embodiment. Further, FIG. 2 is a block diagram showing the configuration of the robot control unit 2, and arrows are shown so that the transmission direction of information or a signal can be known. The robot A according to the present embodiment is used to process the workpiece W.
 図1に示すように、ロボットAは、ロボット機構部1と、ロボット制御部2と、ディスプレイ付きの操作部3とによって構成されている。ロボット機構部1とロボット制御部2との間は、接続ケーブルCによって接続されている。なお、図1では、接続ケーブルCによる有線接続によって情報が伝達されるものとしているが、接続形態は有線接続に限定されず、無線で接続してもよい。各ブロック間の接続も同様である。 As shown in FIG. 1, the robot A is configured by a robot mechanism unit 1, a robot control unit 2, and an operation unit 3 with a display. A connection cable C is connected between the robot mechanism unit 1 and the robot control unit 2. In addition, in FIG. 1, although information shall be transmitted by wired connection by the connection cable C, a connection form is not limited to wired connection, You may connect by wireless. The connection between each block is also the same.
 ロボット機構部1は、複数のロボットアーム11および複数の関節軸12を有している。各ロボットアーム11には、それぞれ、ロボットアーム11を動作させるためのサーボモータ4(以下、モータ4という)が取り付けられている。例えば、ロボットAが垂直多関節6軸ロボットである場合、6個のロボットアーム11を有し、各ロボットアーム11に対応するように6個のモータ4が設けられている。各モータ4には、各モータ4の回転位置又は当該回転位置に基づく回転量を検出するためのエンコーダ5が取り付けられている。 The robot mechanism unit 1 has a plurality of robot arms 11 and a plurality of joint shafts 12. Each robot arm 11 is attached with a servomotor 4 (hereinafter referred to as a motor 4) for operating the robot arm 11. For example, when the robot A is a vertical articulated six-axis robot, it has six robot arms 11, and six motors 4 are provided to correspond to each robot arm 11. Each motor 4 is attached with an encoder 5 for detecting a rotational position of the motor 4 or an amount of rotation based on the rotational position.
 また、ロボットアーム11の先端にはアーク溶接を行うためのトーチ14が設けられており、図示しない電力供給部から電力が供給されて、図示しないステージ上の所定の位置に配置されているワークWの溶接を行う。 Further, a torch 14 for performing arc welding is provided at the tip of the robot arm 11, and power is supplied from a power supply unit (not shown), and the workpiece W is disposed at a predetermined position on a stage (not shown) Do welding.
 また、ロボット機構部1にはワークWの位置を検出する位置センサ13が、ロボットアーム11とは別に設けられている。位置センサ13は、ワークWの溶接開始場所と溶接終了場所とを結ぶ軌跡が確認できる位置に配設されていればよい。 In addition, a position sensor 13 for detecting the position of the work W is provided in the robot mechanism unit 1 separately from the robot arm 11. The position sensor 13 may be disposed at a position where the trajectory connecting the welding start place and the welding end place of the workpiece W can be confirmed.
 図1では図示しないが、ロボットAに対して、ロボット制御部2からロボット機構部1への駆動制御に基づいて駆動される外部軸が付設されている。外部軸は、ロボットAの可動範囲を拡大させるためにロボット機構部1と組み合わせて用いられるものである。外部軸には、外部軸を動作させるためのモータ4が取り付けられている。モータ4には、モータ4の回転位置又は当該回転位置に基づく回転量を検出するためのエンコーダ5が取り付けられている。すなわち、複数の関節軸12及び外部軸のそれぞれに対してモータ4が連結されて設けられ、各モータ4に対してエンコーダ5が取り付けられる。なお、外部軸の種類は、特に限定されない。例えば、スライダタイプ又はポジショナタイプのどちらであっても本実施形態に係る技術が適用可能であり、それ以外のタイプのものであってもよい。 Although not illustrated in FIG. 1, an external shaft driven based on drive control from the robot control unit 2 to the robot mechanism unit 1 is attached to the robot A. The external axis is used in combination with the robot mechanical unit 1 in order to expand the movable range of the robot A. A motor 4 for operating the external shaft is attached to the external shaft. An encoder 5 for detecting a rotational position of the motor 4 or a rotation amount based on the rotational position is attached to the motor 4. That is, the motor 4 is connected to each of the plurality of joint shafts 12 and the external shaft, and the encoder 5 is attached to each motor 4. The type of the external shaft is not particularly limited. For example, the technology according to the present embodiment is applicable to either the slider type or the positioner type, and may be other types.
 なお、本実施形態では、発明の理解を容易にするために、複数の関節軸12を用いるモータ4及びエンコーダ5と、外部軸に用いるモータ4及びエンコーダ5とを区別せずに図示(図1参照)及び説明している。したがって、以下において、モータ4又はエンコーダ5という場合、複数の関節軸12を用いるものと、外部軸に用いるものとの両方を指すものとする。すなわち、以下において説明するエンコーダ5の異常検出装置及び異常検出方法は、複数の関節軸12用のモータ4に取り付けられるエンコーダ5と、外部軸用のモータ4に取り付けられるエンコーダ5の両方において適用が可能である。 In the present embodiment, in order to facilitate understanding of the invention, the motor 4 and the encoder 5 using a plurality of joint shafts 12 and the motor 4 and the encoder 5 used for the external shaft are illustrated without distinction (FIG. 1) See) and explain. Therefore, in the following, the term "motor 4" or "encoder 5" refers to both those using a plurality of joint shafts 12 and those using an external shaft. That is, the abnormality detection device and the abnormality detection method of the encoder 5 described below are applied to both the encoder 5 attached to the motor 4 for the plurality of joint shafts 12 and the encoder 5 attached to the motor 4 for the external shaft It is possible.
 エンコーダ5は、後述するセーフティユニット9及びサーボドライバ10に接続されており、セーフティユニット9及びサーボドライバ10に対して、検出した信号を出力(フィードバック)する。 The encoder 5 is connected to a safety unit 9 and a servo driver 10 described later, and outputs (feedback) the detected signal to the safety unit 9 and the servo driver 10.
 操作部3は、ロボットAの操作者の入力操作を受ける入力部(図示しない)とディスプレイ(図示しない)とを備える。操作部3は、操作者からの入力操作に基づいてロボット制御部2との間で通信を行う。これにより、操作者が操作部3を介して、ロボットアーム11の動作設定や動作制御等を行うことができるようになっている。なお、入力部がタッチパネルで構成され、ディスプレイと入力部とが一体的に構成されていてもよい。 The operation unit 3 includes an input unit (not shown) that receives an input operation of the operator of the robot A and a display (not shown). The operation unit 3 communicates with the robot control unit 2 based on an input operation from the operator. Thus, the operator can perform operation setting, operation control, and the like of the robot arm 11 through the operation unit 3. The input unit may be configured by a touch panel, and the display and the input unit may be configured integrally.
 ロボット制御部2は、コントローラ(例えば、CPU)7と、記憶部としてのRAM(Random Access Memory)8と、異常検出装置としてのセーフティユニット9と、サーボドライバ10と、安全回路(コントローラ)6を備えている。このサーボドライバ10は、各モータ4を駆動させるためのドライバである。また、安全回路(コントローラ)6は、セーフティユニット9からの非常停止を指示する非常停止信号を受けてロボットAの駆動用電源(図示しない)を遮断する。なお、本実施形態において、ロボット制御システムとは、エンコーダ5と、ロボット制御部2と位置センサ13とを備えている。 The robot control unit 2 includes a controller (for example, CPU) 7, a RAM (Random Access Memory) 8 as a storage unit, a safety unit 9 as an abnormality detection device, a servo driver 10, and a safety circuit (controller) 6. Have. The servo driver 10 is a driver for driving each motor 4. The safety circuit (controller) 6 also shuts off the power supply (not shown) for driving the robot A in response to an emergency stop signal instructing the emergency stop from the safety unit 9. In the present embodiment, the robot control system includes the encoder 5, the robot control unit 2, and the position sensor 13.
 RAM8には、操作者が操作部3によって作成したロボットAの教示プログラム、ロボットAの機能設定等が格納されている。 The RAM 8 stores a teaching program of the robot A created by the operator using the operation unit 3, function settings of the robot A, and the like.
 コントローラ7は、RAM8に格納された上記教示プログラム、機能設定等に基づいて、速度指令(単位時間あたりに進むモータ4の回転角度)を算出する。さらに、コントローラ7は、算出した速度指令をサーボドライバ10に出力してロボットAの動作指令を行う。同様に、コントローラ7は、上記速度指令を原点位置に基づき積算し、その積算値を指令位置情報としてセーフティユニット9に出力する。速度指令は、例えば、ロボットAの減速比、ロボットAの原点位置等に基づいて算出される。 The controller 7 calculates a speed command (rotation angle of the motor 4 advancing per unit time) based on the teaching program, function setting and the like stored in the RAM 8. Further, the controller 7 outputs the calculated speed command to the servo driver 10 to issue an operation command of the robot A. Similarly, the controller 7 integrates the speed command based on the home position, and outputs the integrated value to the safety unit 9 as command position information. The speed command is calculated based on, for example, the reduction ratio of the robot A, the origin position of the robot A, and the like.
 位置センサ13は、サーボドライバ10に接続されており、所定の位置からのワークWの位置ずれ量、つまり、動作プログラムに規定されたロボットアーム11の軌跡に対するワークWの位置ずれ量を、XYZ座標系で表わされる差分信号としてサーボドライバ10に送信する。 The position sensor 13 is connected to the servo driver 10, and the displacement amount of the workpiece W from a predetermined position, that is, the displacement amount of the workpiece W with respect to the trajectory of the robot arm 11 specified in the operation program is expressed by XYZ coordinates. It transmits to the servo driver 10 as a differential signal represented by a system.
 サーボドライバ10は、コントローラ7から受けた速度指令とエンコーダ5からの出力信号と、さらに必要に応じて位置センサ13からの差分信号とに基づいてモータ4を駆動する電流値を生成する。さらに、サーボドライバ10は、この電流値に基づいてモータ4を制御することにより、ロボットAの動作を制御する。 The servo driver 10 generates a current value for driving the motor 4 based on the speed command received from the controller 7, the output signal from the encoder 5, and the difference signal from the position sensor 13 as necessary. Furthermore, the servo driver 10 controls the operation of the robot A by controlling the motor 4 based on the current value.
 セーフティユニット9は、エンコーダ5及びコントローラ7に直接接続されている。そして、セーフティユニット9は、エンコーダ5から受けた出力信号に基づいて算出されたモータ4の検出位置情報と、コントローラ7から受けた指令位置情報とに基づいて、エンコーダ5が故障しているか否かを判定する。 The safety unit 9 is directly connected to the encoder 5 and the controller 7. Then, the safety unit 9 determines whether the encoder 5 is broken based on the detected position information of the motor 4 calculated based on the output signal received from the encoder 5 and the commanded position information received from the controller 7. Determine
 図3はセーフティユニット9の構成を示すブロック図である。 FIG. 3 is a block diagram showing the configuration of the safety unit 9.
 図3に示すように、セーフティユニット9は、判定部としてのCPU92と、RAM93と、第1受信部としてのエンコーダ受信部94と、第2受信部としてのDPRAM(Dual Port RAM)95とを備えている。 As shown in FIG. 3, the safety unit 9 includes a CPU 92 as a determination unit, a RAM 93, an encoder reception unit 94 as a first reception unit, and a DPRAM (Dual Port RAM) 95 as a second reception unit. ing.
 エンコーダ受信部94は、エンコーダ5に接続されており、エンコーダ5からの出力信号を取得する。 The encoder reception unit 94 is connected to the encoder 5 and acquires an output signal from the encoder 5.
 DPRAM95は、ロボット制御部2のコントローラ7に接続されており、コントローラ7から出力された指令位置情報を取得する。この指令位置情報は、コントローラ7からサーボドライバ10に対して出力される速度指令の積算によって求められる。DPRAM95が取得した指令位置情報は、RAM93に格納される。 The DPRAM 95 is connected to the controller 7 of the robot control unit 2 and acquires command position information output from the controller 7. The command position information is obtained by integration of the speed command output from the controller 7 to the servo driver 10. The command position information acquired by the DPRAM 95 is stored in the RAM 93.
 CPU92は、エンコーダ受信部94からの出力信号を受けて、その出力信号と、ロボットAの減速比、ロボットAの原点位置等とを用いてモータ4の現在位置に関する検出位置情報を算出する。そして、指令位置情報に基づく指令位置と、検出位置情報に基づく検出位置とを比較してエンコーダ5の異常の有無を確認する。 The CPU 92 receives the output signal from the encoder reception unit 94 and calculates detection position information on the current position of the motor 4 using the output signal, the reduction ratio of the robot A, the origin position of the robot A, and the like. And the command position based on command position information and the detection position based on detection position information are compared, and the presence or absence of abnormality of the encoder 5 is confirmed.
 なお、図3において、CPU92、RAM93及びDPRAM95は、同一の構成で接続され、同一の機能を有するものが2セット設けられている。これにより、2つのCPU92を用いた並行処理が可能となる。すなわち、同一の異常判定を2重に行うことができ、1セットの場合と比較して、より信頼性を高めることができる。 In FIG. 3, the CPU 92, the RAM 93, and the DPRAM 95 are connected in the same configuration, and two sets having the same function are provided. This enables parallel processing using two CPUs 92. That is, the same abnormality determination can be performed in duplicate, and the reliability can be further improved as compared with the case of one set.
 <コントローラによる指令位置情報の送信手順>
 本実施形態では、ワークWの位置ずれを補正するために、サーボドライバ10が、コントローラ7からの速度指令と、エンコーダ5からの出力信号と、位置センサ13からの差分信号とに基づいてモータ4を制御する場合について考える。
<Transmission procedure of command position information by controller>
In the present embodiment, in order to correct the positional deviation of the work W, the servo driver 10 controls the motor 4 based on the speed command from the controller 7, the output signal from the encoder 5, and the difference signal from the position sensor 13. Consider the case of controlling
 図4Aは、本実施形態に係るコントローラによる指令位置情報の出力手順のフローチャートを示し、図4Bは、指令位置情報の別の出力手順のフローチャートを示す。 FIG. 4A shows a flowchart of an output procedure of command position information by a controller according to the present embodiment, and FIG. 4B shows a flowchart of another output procedure of command position information.
 まず、図4Aに示すように、ロボット制御部2を起動する(ステップST1)。ステップST1において、安全回路6、コントローラ7,RAM8、セーフティユニット9、サーボドライバ10がそれぞれ起動する。また、位置センサ13も起動する。 First, as shown in FIG. 4A, the robot control unit 2 is activated (step ST1). In step ST1, the safety circuit 6, the controller 7, the RAM 8, the safety unit 9, and the servo driver 10 are activated. The position sensor 13 is also activated.
 次に、コントローラ7は、RAM8に格納された上記の教示プログラム及びロボットAの機能設定や原点情報等に基づいて、速度指令及び指令位置情報を生成し(ステップST2)、サーボドライバ10に速度指令を送信する(ステップST3)。 Next, the controller 7 generates a speed command and command position information based on the teaching program and the function setting of the robot A, the origin information, etc. stored in the RAM 8 (step ST2), and gives the servo driver 10 a speed command. Is sent (step ST3).
 サーボドライバ10が位置センサ13からの差分信号を取り込む(ステップST4)。この差分信号とコントローラ7からの速度指令とエンコーダ5からの出力信号とに基づいて、サーボドライバ10がモータ4の回転動作を制御するための制御情報を生成し(ステップST5)、コントローラ7に当該差分信号を送信する(ステップST6)。 The servo driver 10 takes in the difference signal from the position sensor 13 (step ST4). The servo driver 10 generates control information for controlling the rotation operation of the motor 4 based on the difference signal, the speed command from the controller 7 and the output signal from the encoder 5 (step ST5). The difference signal is transmitted (step ST6).
 コントローラ7は、受信した差分信号を対応する関節軸の動作量R、つまり、時計回り方向または反時計回り方向のモータ4の回転角度に換算する(ステップST7)。そして、コントローラ7自身で生成した指令位置情報に、換算された当該動作量Rを補正値として加算し、新たな指令位置情報を生成する(ステップST8)。次に、コントローラ7は当該新たな指令位置情報をセーフティユニット9に送信する(ステップST9)。 The controller 7 converts the received difference signal into the amount of movement R of the corresponding joint axis, that is, the rotation angle of the motor 4 in the clockwise or counterclockwise direction (step ST7). Then, the converted operation amount R is added as a correction value to the command position information generated by the controller 7 itself to generate new command position information (step ST8). Next, the controller 7 transmits the new command position information to the safety unit 9 (step ST9).
 一方、図4Bに示す指令位置情報の送信手順では、ステップST1~ST4までは図4Aに示すフローと同様であるが、サーボドライバ10が位置センサ13からの差分信号を関節軸の動作量Rに換算し(ステップST5)、さらに制御情報として目標位置情報を生成する(ステップST6)。ここで、目標位置情報は、上記の動作量Rとコントローラからの速度指令Vと電源投入時の初期値Iとを加算した値である。さらに、サーボドライバ10は当該目標位置情報をコントローラ7に送信し(ステップST7)、コントローラ7は、受信した目標位置情報を新たな指令位置情報としてセーフティユニット9に送信する(ステップST8)。 On the other hand, in the command position information transmission procedure shown in FIG. 4B, steps ST1 to ST4 are the same as the flow shown in FIG. 4A, but the servo driver 10 sets the differential signal from the position sensor 13 to the movement amount R of the joint axis. Convert (step ST5), and further generate target position information as control information (step ST6). Here, the target position information is a value obtained by adding the operation amount R, the speed command V from the controller, and the initial value I at the time of power on. Further, the servo driver 10 transmits the target position information to the controller 7 (step ST7), and the controller 7 transmits the received target position information as new command position information to the safety unit 9 (step ST8).
 なお、図4A,4Bにおいて、サーボドライバ10がエンコーダ5から出力信号を取り込むステップは図示を省略している。 4A and 4B, the step in which the servo driver 10 takes in an output signal from the encoder 5 is not shown.
 また、図4A,4Bに示すフローにおいて、各ステップは必ずしも記載された順で処理しなければならないわけではなく、順番を変更してもよく、並列処理できる場合には、適宜処理の順番や処理方法を変更してもよい。例えば、図4A,4Bにおいて、ステップST4に係る処理は、ステップST3に係る処理の前か、あるいは、ステップST3と並列に処理を行ってもよい。 Further, in the flow shown in FIGS. 4A and 4B, each step does not necessarily have to be processed in the order described, but the order may be changed, and if parallel processing is possible, the order or processing of processing may be appropriately performed. You may change the method. For example, in FIGS. 4A and 4B, the process according to step ST4 may be performed before the process according to step ST3 or in parallel with step ST3.
 <エンコーダの異常検出方法>
 図5は、ロボット制御部2がロボットAを起動させ、ロボットAが動作を開始した後、セーフティユニット9がエンコーダ5の異常をどのように監視しているかを示したフローチャートである。すなわち、図5は、コントローラ7がサーボドライバ10を介してモータ4を回転動作させたときに、セーフティユニット9がエンコーダ5の異常をどのように監視しているかを示している。
<Abnormal detection method of encoder>
FIG. 5 is a flowchart showing how the safety unit 9 monitors the abnormality of the encoder 5 after the robot control unit 2 starts the robot A and the robot A starts its operation. That is, FIG. 5 shows how the safety unit 9 monitors the abnormality of the encoder 5 when the controller 7 causes the motor 4 to rotate via the servo driver 10.
 ステップST1において、ロボット制御部2のコントローラ7は、ロボットAを起動し、ステップST2に進む。 In step ST1, the controller 7 of the robot control unit 2 starts the robot A, and proceeds to step ST2.
 ステップST2において、ロボット制御部2は、操作者が操作部3を介して設定した教示プログラム及び機能設定等に基づいてロボットAを動作させる。具体的には、コントローラ7は、RAM8に格納された教示プログラム及び機能設定等に基づいて、サーボドライバ10に速度指令を、セーフティユニット9に指令位置情報を出力する。サーボドライバ10は、コントローラ7から受けた速度指令に基づいて、モータ4を駆動し、ロボットAの関節軸12及び外部軸を動作させる。サーボドライバ10は、モータ4に取り付けられたエンコーダ5からの出力信号を受け、モータ4に対して、速度指令と出力信号との差分に基づくフィードバック制御を行う。このとき、エンコーダ5からの出力信号は、セーフティユニット9にも出力されている。 In step ST2, the robot control unit 2 causes the robot A to operate based on the teaching program and the function setting and the like set by the operator via the operation unit 3. Specifically, the controller 7 outputs a speed command to the servo driver 10 and a command position information to the safety unit 9 based on the teaching program and function settings stored in the RAM 8. The servo driver 10 drives the motor 4 based on the speed command received from the controller 7 to operate the joint axis 12 and the external axis of the robot A. The servo driver 10 receives an output signal from the encoder 5 attached to the motor 4 and performs feedback control on the motor 4 based on the difference between the speed command and the output signal. At this time, the output signal from the encoder 5 is also output to the safety unit 9.
 セーフティユニット9では、エンコーダ5からの出力信号を取得すると(ST3)、モータの位置計算を行う(ST4)。具体的には、セーフティユニット9のCPU92は、エンコーダ5から取得した出力信号、モータ4各軸の減速比及びモータ4の原点情報等に基づいてモータ4の回転位置(現在位置)に変換する位置計算を行う。エンコーダ5から取得する出力信号は、例えばパルス信号の型式で送信される。 In the safety unit 9, when the output signal from the encoder 5 is obtained (ST3), the motor position is calculated (ST4). Specifically, the CPU 92 of the safety unit 9 converts the rotational position (the current position) of the motor 4 based on the output signal acquired from the encoder 5, the reduction ratio of each axis of the motor 4 and the origin information of the motor 4 Make a calculation. The output signal obtained from the encoder 5 is transmitted, for example, in the form of a pulse signal.
 さらに、セーフティユニット9では、コントローラ7から指令位置情報を受けており(ST5)、ST4で算出されたモータ4の現在位置に関する検出位置情報とコントローラ7からの指令位置情報との比較を行う(ST6)。具体的には、セーフティユニット9のCPU92は、エンコーダ5からの出力信号に基づいて計算されたモータ4の回転位置(モータ検出値)と、コントローラ7から指令されたモータの回転位置(モータ指令値)とを比較する。なお、ステップST5,ST6に示す指令位置情報には図4A,4Bに示す新たな指令位置情報も含まれる。 Furthermore, the safety unit 9 receives command position information from the controller 7 (ST5), and compares the detected position information on the current position of the motor 4 calculated in ST4 with the command position information from the controller 7 (ST6) ). Specifically, the CPU 92 of the safety unit 9 calculates the rotational position (motor detection value) of the motor 4 calculated based on the output signal from the encoder 5 and the rotational position (motor command value) of the motor instructed from the controller 7 Compare with). The command position information shown in steps ST5 and ST6 also includes new command position information shown in FIGS. 4A and 4B.
 CPU92は、上記比較の結果、モータ指令値とモータ検出値との差が所定値以上の場合(ST7でYES)、エンコーダ5の異常と判定し、ステップST8に進む。一方で、モータ指令値とモータ検出値との差が所定値未満の場合(ST7でNO)、エンコーダ5の異常と判定せず、フローはステップST3に戻る。 If the difference between the motor command value and the motor detection value is equal to or greater than the predetermined value as a result of the comparison (YES in ST7), the CPU 92 determines that the encoder 5 is abnormal, and proceeds to step ST8. On the other hand, if the difference between the motor command value and the motor detection value is less than the predetermined value (NO in ST7), the flow does not determine that the encoder 5 is abnormal, and the flow returns to step ST3.
 具体的には、ロボットAの駆動制御において、コントローラ7が指令した位置にモータ4は移動しようとしている。このため、モータ4の回転位置を示すモータ検出値(検出位置情報)と、コントローラ7が指令した回転位置を示すモータ指令値(指令位置情報)との差は、所定の閾値Pth以内に収まっているはずである。そこで、上記モータ検出値に基づくモータの回転位置が、モータ指令値に基づくモータ指令位置から所定の位置以上離れていると判定した場合に、エンコーダが故障していると判定している。 Specifically, in the drive control of the robot A, the motor 4 is about to move to the position instructed by the controller 7. Therefore, the difference between the motor detection value (detection position information) indicating the rotation position of the motor 4 and the motor command value (command position information) indicating the rotation position commanded by the controller 7 is within the predetermined threshold Pth. It should be. Therefore, when it is determined that the rotational position of the motor based on the motor detection value is separated from the motor command position based on the motor command value by a predetermined position or more, it is determined that the encoder is broken.
 ステップST8では、セーフティユニット9のCPU92は、安全回路6に対して非常停止信号を送信する。非常停止信号を受けた安全回路6は、ロボットAの駆動用電源を遮断し、ロボットAを非常停止させる。 In step ST8, the CPU 92 of the safety unit 9 transmits an emergency stop signal to the safety circuit 6. The safety circuit 6 that has received the emergency stop signal shuts off the drive power supply of the robot A, and makes the robot A emergency stop.
 このように、コントローラ7は、ロボットAを起動させ、ロボットAに動作を開始させた後、セーフティユニット9がステップST3~ST7の処理を繰り返し実行し、エンコーダ5の異常を判定している。 As described above, after the controller 7 starts the robot A and causes the robot A to start its operation, the safety unit 9 repeatedly executes the processing of steps ST3 to ST7 and determines that the encoder 5 is abnormal.
 以上のように、本実施形態によると、セーフティユニット9は、エンコーダ5の異常検出において、コントローラ7から直接取得した位置情報とエンコーダ5からの出力信号に基づいて算出された位置情報とを比較した結果に基づいてエンコーダ5の異常を検出している。これにより、エンコーダの異常検出装置を有していない汎用ロボット等の作動装置に対して、セーフティユニット9を追加することでエンコーダの故障による異常を検出することができる。さらに、その際に、サーボドライバ10等の既存の汎用ロボットの構成要素に対して設計変更等をする必要がなく、既存のシステムに対する影響を抑えつつ、一般的なエンコーダを使用した作動装置又はシステムに適用可能である。したがって、既存のシステムに対してエンコーダの異常判定に係る処理が正しく行われることを示す必要がなく、処理が複雑化することもない。 As described above, according to the present embodiment, in the abnormality detection of the encoder 5, the safety unit 9 compares the position information directly acquired from the controller 7 with the position information calculated based on the output signal from the encoder 5. An abnormality of the encoder 5 is detected based on the result. Thus, by adding the safety unit 9 to an operating device such as a general-purpose robot that does not have an encoder abnormality detection device, it is possible to detect an abnormality due to a failure of the encoder. Furthermore, at that time, there is no need to make a design change or the like to the components of the existing general-purpose robot such as the servo driver 10, and the operation device or system using a general encoder while suppressing the influence on the existing system. Applicable to Therefore, it is not necessary to indicate to the existing system that the process related to the abnormality determination of the encoder is properly performed, and the process is not complicated.
 この点に関し、図17に示す従来の技術と対比させて説明する。 This point will be described in comparison with the prior art shown in FIG.
 エンコーダ5の異常検出装置を有していない汎用ロボットに対して図17に示すような構成を適用する場合、汎用ロボットのサーボドライバ10は、通常、モータ指令値及びモータ検出値を生成する機能及び、生成したモータ指令値及びモータ検出値を出力する機能を有していない。したがって、上記生成機能及び出力機能を有する回路、プログラム等を新規に設計する必要がある。また、追加設計した回路及びプログラム等が正しく機能しているかどうかを示すような仕組み(回路、プログラム、表示等)が必要である。すなわち、手間がかかるとともに処理が複雑化するという問題がある。一方、本開示に係る異常検出方法及び異常検出装置は、そのようなことが生じない。 When the configuration as shown in FIG. 17 is applied to a general purpose robot not having the abnormality detection device of the encoder 5, the servo driver 10 of the general purpose robot usually generates a motor command value and a motor detection value, There is no function to output the generated motor command value and motor detection value. Therefore, it is necessary to newly design a circuit, a program and the like having the generation function and the output function. In addition, it is necessary to have a mechanism (circuit, program, display, etc.) indicating whether or not the additionally designed circuit, program, etc. is functioning properly. That is, there is a problem that it takes time and complexity. On the other hand, the abnormality detection method and the abnormality detection device according to the present disclosure do not have such a problem.
 また、前述したように、サーボドライバ10からモータ4を駆動するために生成する制御情報は、コントローラ7側では分からないため、コントローラ7が生成する指令位置情報に基づいてエンコーダ5の異常検出を行うセーフティユニット9において、当該異常検出が正しく行われないおそれがあった。 Further, as described above, since the control information generated to drive the motor 4 from the servo driver 10 is not known on the controller 7 side, the abnormality detection of the encoder 5 is performed based on the command position information generated by the controller 7. In the safety unit 9, there was a risk that the abnormality detection could not be performed correctly.
 本実施形態によれば、サーボドライバ10が、コントローラ7からの速度指令とエンコーダ5からの出力信号だけでなく位置センサ13からの差分信号にも基づいてモータ4の回転動作を制御する場合に、位置センサ13からの差分信号に基づいてコントローラ7で新たな指令位置情報を生成するか、あるいは、位置センサ13からの差分信号に基づいてサーボドライバ10で目標位置情報を生成し、コントローラ7はこれを新たな指令位置情報としている。このことにより、サーボドライバ10が独自に行う部分のモータ4の制御情報を、コントローラ7が生成する指令位置情報に反映させることができる。このため、セーフティユニット9によるエンコーダ5の異常の誤検出を防止し、エンコーダ5の異常検出精度を維持できる。 According to the present embodiment, when the servo driver 10 controls the rotational operation of the motor 4 based on not only the speed command from the controller 7 and the output signal from the encoder 5 but also the difference signal from the position sensor 13 The controller 7 generates new command position information based on the difference signal from the position sensor 13 or the target position information is generated by the servo driver 10 based on the difference signal from the position sensor 13, and the controller 7 As new command position information. As a result, the control information of the motor 4 of the portion uniquely performed by the servo driver 10 can be reflected on the command position information generated by the controller 7. Therefore, it is possible to prevent the erroneous detection of the abnormality of the encoder 5 by the safety unit 9, and maintain the abnormality detection accuracy of the encoder 5.
 なお、サーボドライバ10で目標位置情報(図4BのステップST6参照)を生成する場合、サーボドライバ10の制御周期がコントローラ7の制御周期よりも短いため、より短い周期で指令位置情報にサーボドライバ10の制御情報を反映できる。 When the target position information (see step ST6 in FIG. 4B) is generated by the servo driver 10, the control period of the servo driver 10 is shorter than the control period of the controller 7. Control information can be reflected.
 また、本実施形態において、位置センサ13からの差分信号をモータ4の回転制御に用いない場合は、サーボドライバ10からコントローラ7に制御情報を送信せず、コントローラ7が生成した指令位置情報を直接、セーフティユニット9に送信して、図5に示すフローに基づきエンコーダ5の異常検出を行うようにしている。 In the embodiment, when the difference signal from the position sensor 13 is not used for the rotation control of the motor 4, the servo driver 10 does not transmit the control information to the controller 7, and the command position information generated by the controller 7 is directly transmitted. , And the abnormality detection of the encoder 5 is performed based on the flow shown in FIG.
 -第2実施形態-
 <ロボット及びその制御系の構成>
 図6は、本実施形態に係る作動装置としてのロボット制御システムの概略構成図である。また、図7はロボット制御部2の構成を示すブロック図であり、情報又は信号の送信方向がわかるように矢印を記載している。
-Second embodiment-
<Configuration of robot and its control system>
FIG. 6 is a schematic configuration diagram of a robot control system as an actuation device according to the present embodiment. Further, FIG. 7 is a block diagram showing the configuration of the robot control unit 2, and arrows are shown so that the transmission direction of information or a signal can be known.
 図6に示すロボット制御システムは、図1に示すロボット制御システムに対して位置センサ13を省いたのみであり、その他の構成部品や各構成部品の機能は第1実施形態に示すのと同様であるので、その説明を省略する。 The robot control system shown in FIG. 6 only omits the position sensor 13 from the robot control system shown in FIG. 1, and the other components and the functions of the respective components are the same as in the first embodiment. Because there is, I omit the explanation.
 また、図7に示すロボット制御部2の構成も、図2に示す構成から位置センサ13が省かれているが、第1実施形態に示す構成と異なる点は、まず、コントローラ7から第1速度指令と第2速度指令とがサーボドライバ10に送信される点にある。 In addition, although the configuration of the robot control unit 2 shown in FIG. 7 also omits the position sensor 13 from the configuration shown in FIG. 2, the difference from the configuration shown in the first embodiment is the first speed from the controller 7 The command and the second speed command are sent to the servo driver 10.
 このうち、第1速度指令は、第1実施形態に示す速度指令と同じであり、第1速度指令が主たる速度指令である。一方、第2速度指令はコントローラ7が教示プログラムの情報に基づいて作成する第1速度指令とは別に、サーボドライバ10側でより応答性の高い制御(以下、高応答性制御という)を行う場合にコントローラ7からサーボドライバ10に送信する指令である。 Among these, the first speed command is the same as the speed command shown in the first embodiment, and the first speed command is the main speed command. On the other hand, in the case where the second speed command performs more responsive control (hereinafter referred to as high response control) on the servo driver 10 side separately from the first speed command created by the controller 7 based on the information of the teaching program. The controller 7 sends a command to the servo driver 10.
 ここで、高応答制御について説明する。例えば、ロボットAが溶接開始点等で溶接時に生じるスパッタを低減するために急速にロボットアーム11を引き上げ、また元に戻す動作を行うことがある。この引き上げまたは引き下ろし動作を行う場合に、サーボドライバ10が通常の制御に並行して行う制御が高応答性制御にあたる。ロボットアーム11の急な加減速動作の制御等も高応答制御に該当する。このような制御を行う場合、コントローラ7から直接にロボットAの動作指令である速度指令を送ると、サーボドライバ10側で速度指令を処理する過程が複雑となる。そのため、コントローラ7からはサーボドライバ10に第1速度指令に加えて第2速度指令を送信し、サーボドライバ10においてこれら2つの速度指令を考慮した目標位置を決定し、モータ4を制御している。 Here, high response control will be described. For example, in order to reduce the spatter generated at the time of welding at the welding start point or the like, the robot A may rapidly pull up and return the robot arm 11. When performing the pull-up or pull-down operation, control that the servo driver 10 performs in parallel to normal control corresponds to high responsiveness control. Control of the sudden acceleration / deceleration operation of the robot arm 11 or the like also corresponds to high response control. When such control is performed, if a speed command which is an operation command of the robot A is sent directly from the controller 7, the process of processing the speed command on the side of the servo driver 10 becomes complicated. Therefore, the controller 7 transmits the second speed command to the servo driver 10 in addition to the first speed command, and the servo driver 10 controls the motor 4 by determining the target position in consideration of these two speed commands. .
 <コントローラによる指令位置情報の送信手順>
 本実施形態では、前述したように、ロボットAの高応答制御を行うために、コントローラ7からサーボドライバ10に対して第1及び第2速度指令を送信し、サーボドライバ10がこれら第1及び第2速度指令と、エンコーダ5からの出力信号とに基づいてモータ4を制御する場合について考える。
<Transmission procedure of command position information by controller>
In the present embodiment, as described above, in order to perform high response control of the robot A, the controller 7 transmits the first and second speed commands to the servo driver 10, and the servo driver 10 transmits the first and second speed commands. A case where the motor 4 is controlled based on the 2 speed command and the output signal from the encoder 5 will be considered.
 図8Aは、本実施形態に係るコントローラによる指令位置情報の出力手順のフローチャートを示し、図8Bは、指令位置情報の別の出力手順のフローチャートを示す。 FIG. 8A shows a flowchart of an output procedure of command position information by the controller according to the present embodiment, and FIG. 8B shows a flowchart of another output procedure of command position information.
 図8A,8Bに示すフローのうち、ステップST1,ST2は、図4A,4Bに示すフローのステップST1,ST2と同様であるので説明を省略する。 Of the flows shown in FIGS. 8A and 8B, steps ST1 and ST2 are the same as steps ST1 and ST2 of the flows shown in FIGS. 4A and 4B, and thus the description thereof is omitted.
 図8Aに示すように、コントローラ7は高応答制御用の第2速度指令を生成し(ステップST3)、サーボドライバ10に第1及び第2速度指令を送信する(ステップST4)。これらの速度指令と、エンコーダ5からの出力信号とに基づいてサーボドライバ10が、モータ4の回転動作を制御する制御情報を生成する(ステップST5)。次に、サーボドライバ10はコントローラ7にサーボドライバ10が独自に生成した情報、この場合は、第2速度指令に基づいた制御情報を送信する(ステップST6)。コントローラ7は、第2速度指令に基づいた制御情報を関節軸の動作量R2に換算し(ステップST7)、自身で生成した指令位置情報に当該動作量R2を補正値として加算して新たな指令位置情報を生成し(ステップST8)、当該新たな指令位置情報をセーフティユニット9に送信する(ステップST9)。 As shown in FIG. 8A, the controller 7 generates a second speed command for high response control (step ST3), and transmits the first and second speed commands to the servo driver 10 (step ST4). The servo driver 10 generates control information for controlling the rotational operation of the motor 4 based on these speed commands and the output signal from the encoder 5 (step ST5). Next, the servo driver 10 transmits, to the controller 7, information uniquely generated by the servo driver 10, in this case, control information based on the second speed command (step ST6). The controller 7 converts control information based on the second speed command into the movement amount R2 of the joint axis (step ST7), adds the movement amount R2 as a correction value to the command position information generated by itself, and generates a new command. Position information is generated (step ST8), and the new command position information is transmitted to the safety unit 9 (step ST9).
 一方、図8Bに示す指令位置情報の送信手順では、ステップST1~ST4までは図8Aに示すフローと同様であるが、サーボドライバ10が独自に行う制御情報として目標位置情報を生成する(ステップST5)。ここで、目標位置情報は、第1及び第2速度指令V1,V2と、電源投入時の初期値Iとを加算した値である。さらに、サーボドライバ10は当該目標位置情報をコントローラ7に送信する(ステップST6)。ここで、図8Bに示す目標位置情報は、サーボドライバ10が保持する相対値、つまり、関節軸が、ある時点の位置からどれだけ動くかを示す量である。よって、コントローラ7は、受信した目標位置情報にそれまでの積算値を加算して絶対位置、つまり、原点からの移動量に換算し(ステップST7)、これを新たな指令位置情報としてセーフティユニット9に送信する(ステップST8)。 On the other hand, in the transmission procedure of command position information shown in FIG. 8B, steps ST1 to ST4 are the same as the flow shown in FIG. 8A, but target position information is generated as control information uniquely executed by the servo driver 10 (step ST5). ). Here, the target position information is a value obtained by adding the first and second speed commands V1 and V2 and the initial value I at power-on. Further, the servo driver 10 transmits the target position information to the controller 7 (step ST6). Here, the target position information shown in FIG. 8B is a relative value held by the servo driver 10, that is, an amount indicating how much the joint axis moves from the position at a certain point in time. Therefore, the controller 7 adds the integrated value up to that point to the received target position information to convert it into an absolute position, that is, a movement amount from the origin (step ST7), and uses this as new command position information. (Step ST8).
 なお、図4A,4Bにおいて、サーボドライバ10がエンコーダ5から出力信号を取り込むステップは図示を省略している。 4A and 4B, the step in which the servo driver 10 takes in an output signal from the encoder 5 is not shown.
 なお、図8A,8Bにおいて、サーボドライバ10がエンコーダ5から出力信号を取り込むステップは図示を省略している。 In FIGS. 8A and 8B, the step in which the servo driver 10 takes in an output signal from the encoder 5 is not shown.
 また、図8A,8Bに示すフローにおいて、各ステップは必ずしも記載された順で処理しなければならないわけではなく、順番を変更してもよく、並列処理できる場合には、適宜処理の順番や処理方法を変更してもよい。例えば、図8A,8Bにおいて、ステップST3に係る処理は、ステップST2に係る処理の前か、あるいは、ステップST2と並列に処理を行ってもよい。 Further, in the flow shown in FIGS. 8A and 8B, the steps do not necessarily have to be processed in the order described, but the order may be changed, and if parallel processing is possible, the order or processing of processing may be appropriately performed. You may change the method. For example, in FIGS. 8A and 8B, the process according to step ST3 may be performed before the process according to step ST2 or in parallel with step ST2.
 <エンコーダの異常検出方法>
 本実施形態におけるエンコーダの異常検出方法は、図5に示す第1実施形態に係る異常検出方法と同様であるので、その詳細については説明を省略する。なお、コントローラ7からセーフティユニット9に送られる指令位置情報には図8A,8Bに示す新たな指令位置情報も含まれることは言うまでもない。
<Abnormal detection method of encoder>
The method of detecting an abnormality in the encoder according to the present embodiment is the same as the method of detecting an abnormality according to the first embodiment shown in FIG. Needless to say, the command position information sent from the controller 7 to the safety unit 9 also includes new command position information shown in FIGS. 8A and 8B.
 本実施形態においても、セーフティユニット9は、エンコーダ5の異常検出において、コントローラ7から直接取得した位置情報と、エンコーダ5からの出力信号に基づいて算出された位置情報とを比較した結果に基づいてエンコーダ5の異常を検出している。これにより、エンコーダの異常検出装置を有していない汎用ロボット等の作動装置に対して、セーフティユニット9を追加することでエンコーダの故障による異常を検出することができる。さらに、その際に、サーボドライバ10等の既存の汎用ロボットの構成要素に対して設計変更等をする必要がなく、既存のシステムに対する影響を小さくすることができる。したがって、既存のシステムに対してエンコーダの異常判定に係る処理が正しく行われることを示す必要がなく、処理が複雑化することもない。 Also in this embodiment, the safety unit 9 compares the position information directly acquired from the controller 7 with the position information calculated based on the output signal from the encoder 5 in the abnormality detection of the encoder 5 based on the result of comparison. An abnormality in the encoder 5 is detected. Thus, by adding the safety unit 9 to an operating device such as a general-purpose robot that does not have an encoder abnormality detection device, it is possible to detect an abnormality due to a failure of the encoder. Furthermore, at that time, there is no need to make a design change or the like on the components of the existing general-purpose robot such as the servo driver 10, and the influence on the existing system can be reduced. Therefore, it is not necessary to indicate to the existing system that the process related to the abnormality determination of the encoder is properly performed, and the process is not complicated.
 また、前述したように、サーボドライバ10からモータ4を駆動するために生成する制御情報は、コントローラ7側では分からないため、コントローラ7が生成する指令位置情報に基づいてエンコーダ5の異常検出を行うセーフティユニット9において、当該異常検出が正しく行われないおそれがあった。 Further, as described above, since the control information generated to drive the motor 4 from the servo driver 10 is not known on the controller 7 side, the abnormality detection of the encoder 5 is performed based on the command position information generated by the controller 7. In the safety unit 9, there was a risk that the abnormality detection could not be performed correctly.
 本実施形態によれば、サーボドライバ10が、コントローラ7からの種類の異なる2つの速度指令と、エンコーダ5からの出力信号とに基づいてモータ4の回転動作を制御する場合に、高応答用の第2速度指令に基づく制御情報からコントローラ7が新たな指令位置情報を生成するか、あるいは、2つの速度指令基づいてサーボドライバ10で目標位置情報を生成し、コントローラ7はこれを絶対位置に換算した上で新たな指令位置情報としている。このことにより、サーボドライバ10が独自に行う部分のモータ4の制御情報を、コントローラ7が生成する指令位置情報に反映させることができる。このため、セーフティユニット9によるエンコーダ5の異常の誤検出を防止し、エンコーダ5の異常検出精度を維持できる。 According to the present embodiment, when the servo driver 10 controls the rotational operation of the motor 4 based on the two different types of speed commands from the controller 7 and the output signal from the encoder 5, the response for high response is The controller 7 generates new command position information from control information based on the second speed command, or the target position information is generated by the servo driver 10 based on two speed commands, and the controller 7 converts this into an absolute position. New command position information. As a result, the control information of the motor 4 of the portion uniquely performed by the servo driver 10 can be reflected on the command position information generated by the controller 7. For this reason, the erroneous detection of the abnormality of the encoder 5 by the safety unit 9 can be prevented, and the abnormality detection accuracy of the encoder 5 can be maintained.
 なお、サーボドライバ10で目標位置情報(図4BのステップST6参照)を生成する場合、サーボドライバ10の制御周期がコントローラ7の制御周期よりも短いため、ロボットAの制御応答性を高めることができる。 When the target position information (see step ST6 in FIG. 4B) is generated by the servo driver 10, the control cycle of the servo driver 10 is shorter than the control cycle of the controller 7, so the control responsiveness of the robot A can be improved. .
 また、本実施形態において、コントローラ7が第2速度指令を生成しない場合は、サーボドライバ10からコントローラ7に制御情報を送信せず、コントローラ7が生成した指令位置情報を直接、セーフティユニット9に送信して、図5に示すフローに基づきエンコーダ5の異常検出を行うようにしている。 Further, in the present embodiment, when the controller 7 does not generate the second speed command, the servo driver 10 does not transmit the control information to the controller 7 and transmits the command position information generated by the controller 7 directly to the safety unit 9 Then, based on the flow shown in FIG. 5, the abnormality detection of the encoder 5 is performed.
 以上のように、本出願において開示する技術の例示として上記第1実施形態について説明した。しかしながら、本開示における技術は、これに限定されず、適宜、変更、置き換え、付加、省略などを行った実施の形態にも適用が可能である。 As described above, the first embodiment has been described as an example of the technology disclosed in the present application. However, the technology in the present disclosure is not limited to this, and can be applied to an embodiment in which changes, replacements, additions, omissions, and the like are appropriately made.
 例えば、上記第1及び第2実施形態について、以下に示すような構成としてもよい。 For example, the first and second embodiments may be configured as follows.
 -変形例(1)-
 図9は変形例(1)に係るロボット制御部の構成を示すブロック図である。
-Modification (1)-
FIG. 9 is a block diagram showing a configuration of a robot control unit according to the modification (1).
 図9では、図6の構成に加えて、コントローラ7とセーフティユニット9との間に、一般的な制御遅れを考慮した遅れ制御フィルタとしての一次遅れフィルタ22が設けられている。なお、図9に示す一次遅れフィルタ22が図2に示す構成に適用できることは言うまでもない。 In FIG. 9, in addition to the configuration of FIG. 6, a primary delay filter 22 as a delay control filter in consideration of a general control delay is provided between the controller 7 and the safety unit 9. Needless to say, the first-order lag filter 22 shown in FIG. 9 can be applied to the configuration shown in FIG.
 実際のロボットAの制御において、同じ時間で比較した場合に、セーフティユニット9がコントローラ7から取得した指令位置情報に基づくモータ4の回転位置(モータ指令位置)と、セーフティユニット9がエンコーダ5から取得した出力信号等に基づくモータ4の回転位置(モータ検出位置)とがずれている可能性がある。これは、例えば、モータ制御の特性に起因して発生する。具体的には、ロボット制御部2のコントローラ7が速度指令及び指令位置情報を出力してからサーボドライバ10が実際にモータ4を制御し、その制御に基づいてモータ4が動作するため、一定時間の遅れが生じるためである。 In the actual control of the robot A, the rotational position (motor command position) of the motor 4 based on the command position information obtained by the safety unit 9 from the controller 7 and the safety unit 9 from the encoder 5 when compared in the same time There is a possibility that the rotational position (motor detection position) of the motor 4 may be deviated based on the output signal or the like. This occurs, for example, due to the nature of motor control. Specifically, after the controller 7 of the robot control unit 2 outputs the speed command and the command position information, the servo driver 10 actually controls the motor 4 and the motor 4 operates based on the control, so the constant time This is because a delay of
 図10は、ロボットアーム11の関節軸12を最高速度で往復運動させた場合におけるモータ指令位置(図10の太実線)と、モータ検出位置(図10の細実線)との関係を示した図である。図10の太実線と細実線を比較すると、最大で0.1秒程度の遅れが生じており、角度に換算すると18度程度の遅れが生じている(図10の一点鎖線参照)。 FIG. 10 shows the relationship between the motor command position (thick solid line in FIG. 10) and the motor detection position (thin solid line in FIG. 10) when the joint shaft 12 of the robot arm 11 is reciprocated at the maximum speed. It is. When the thick solid line and the thin solid line in FIG. 10 are compared, a delay of about 0.1 second occurs at the maximum, and a delay of about 18 degrees occurs in terms of angle (see the dashed line in FIG. 10).
 これに対し、図10の破線及び二点鎖線で示すように、一次遅れフィルタ22を設けることにより、モータ指令位置とモータ検出位置との差が大きく減少していることがわかる。なお、図10において、破線は、図9の構成に係るモータ指令位置を、二点鎖線は、図9の構成に係るモータ指令位置とモータ検出位置との偏差を示している。 On the other hand, it is understood that the difference between the motor command position and the motor detection position is largely reduced by providing the first-order lag filter 22 as shown by the broken line and the two-dot chain line in FIG. In FIG. 10, a broken line indicates a motor command position according to the configuration of FIG. 9, and a two-dot chain line indicates a deviation between the motor command position and the motor detection position according to the configuration of FIG.
 図9のような構成にすることにより、図2の構成や図6の構成と比較して、より精度が高くエンコーダの異常を判定することができるようになる。具体的には、例えば、検出位置情報と指令位置情報との比較に用いる所定の閾値Pthは、モータ指令位置とモータ検出位置との差に基づいて決定する場合がある。この場合、モータ指令位置とモータ検出位置との差が減少することによって、所定の閾値Pthを小さくすることができ、結果としてエンコーダの異常検出精度を高めることができる。 With the configuration as shown in FIG. 9, it is possible to determine the abnormality of the encoder with higher accuracy than in the configuration of FIG. 2 or the configuration of FIG. Specifically, for example, the predetermined threshold value Pth used to compare the detected position information and the commanded position information may be determined based on the difference between the motor commanded position and the motor detected position. In this case, by reducing the difference between the motor command position and the motor detection position, the predetermined threshold value Pth can be reduced, and as a result, the abnormality detection accuracy of the encoder can be enhanced.
 なお、エンコーダ5の異常検出方法は、上記図5を用いた手順と同様にすればよいため、ここではその詳細な説明を省略している。 In addition, since the abnormality detection method of the encoder 5 may be performed in the same manner as the procedure using FIG. 5, the detailed description thereof is omitted here.
 -変形例(2)-
 図11は変形例(2)に係るロボット制御部の構成を示すブロック図である。
-Modification (2)-
FIG. 11 is a block diagram showing a configuration of a robot control unit according to the modification (2).
 図11では、図9の構成に加えて、コントローラ7とセーフティユニット9との間に、一次遅れフィルタ22と直列接続された制振フィルタ21が設けられている。 In FIG. 11, in addition to the configuration of FIG. 9, a damping filter 21 connected in series to the first-order lag filter 22 is provided between the controller 7 and the safety unit 9.
 前述したように、実際のロボットAの制御において、サーボドライバ10の動作制御の内容によっては高応答性制御を行う場合がある。例えば、レーザーを用いた溶接ロボットにおいて、高速制御かつ軌跡の追従性を高めた制御を行うような場合である。このような高応答性制御を行う場合に、指令位置情報に含まれる起振成分によってモータ4が振動する場合がある。そこで、このモータ4の振動を抑制するために、サーボドライバ10とモータ4との間に制振フィルタ(図示しない)を用いることがよく行われている。そこで、上記のような高応答性制御が行われている場合に、図11に示すような構成を取ることにより、サーボドライバ10による制御と近い指令を作ることができる。 As described above, in actual control of the robot A, high response control may be performed depending on the contents of operation control of the servo driver 10. For example, in a welding robot using a laser, high-speed control and control with improved trackability can be performed. When such high responsiveness control is performed, the motor 4 may vibrate due to the excitation component included in the command position information. Therefore, in order to suppress the vibration of the motor 4, a damping filter (not shown) is often used between the servo driver 10 and the motor 4. Therefore, when the above-described high responsiveness control is performed, a command similar to the control by the servo driver 10 can be generated by adopting the configuration as shown in FIG.
 図12は、ロボットアーム11の関節軸12を最高速度で往復運動させた場合におけるモータ指令位置と、モータ検出位置との関係を示した図である。太実線及び細実線は、図10と同じであり、一次遅れフィルタ22及び制振フィルタ21を用いない構成(図2参照)に係る動作について示している。また、図12において、破線は、図11の構成に係るモータ指令位置の変化を、二点鎖線は、図11の構成に係るモータ指令位置とモータ検出位置との偏差を示している。図12から、一次遅れフィルタ22に加えて制振フィルタ21を設けることにより、モータ指令位置とモータ検出位置との差がさらに減少していることがわかる。 FIG. 12 is a diagram showing the relationship between the motor command position and the motor detection position when the joint shaft 12 of the robot arm 11 is reciprocated at the maximum speed. The thick solid line and the thin solid line are the same as FIG. 10, and show the operation according to the configuration (see FIG. 2) in which the first-order lag filter 22 and the damping filter 21 are not used. Further, in FIG. 12, the broken line indicates the change of the motor command position according to the configuration of FIG. 11, and the two-dot chain line indicates the deviation between the motor command position and the motor detection position according to the configuration of FIG. From FIG. 12, it is understood that the difference between the motor command position and the motor detection position is further reduced by providing the damping filter 21 in addition to the first-order lag filter 22.
 したがって、図11のような構成にすることにより、図2又は図9の構成と比較して、より精度が高くエンコーダの異常を判定することができるようになる。具体的には、例えば、変形例(1)と同様に、所定の閾値Pthを小さくすることができ、結果としてエンコーダの異常検出精度を高めることができる。なお、制振フィルタ21は、入力された指令位置情報から共振成分を除去するものである。また、制振フィルタ21および一次遅れフィルタ22は、両方を順不同で直接に備えていてもよく、また、いずれか一方のみでも構わない。 Therefore, with the configuration as shown in FIG. 11, it is possible to determine the abnormality of the encoder with higher accuracy than in the configuration of FIG. 2 or FIG. Specifically, for example, as in the modification (1), the predetermined threshold Pth can be reduced, and as a result, the abnormality detection accuracy of the encoder can be enhanced. The damping filter 21 is for removing the resonance component from the inputted command position information. Further, both the damping filter 21 and the first-order lag filter 22 may be directly provided in random order, or only one of them may be provided.
 なお、図11において、制振フィルタ21と一次遅れフィルタ22との位置が互いに入れ替わってもよく、同様の効果が得られる。 In FIG. 11, the positions of damping filter 21 and first-order lag filter 22 may be interchanged with each other, and the same effect can be obtained.
 -変形例(3)-
 また、図5に係る異常判定方法において、図13に示すようなフローとしてもよい。図13において、ステップST1からST6に係る処理は、図5と同様であるため、ここではその詳細な説明を省略する。
-Modification (3)-
Further, in the abnormality determination method according to FIG. 5, the flow as shown in FIG. 13 may be used. In FIG. 13, the processes according to steps ST1 to ST6 are the same as those in FIG. 5, and thus the detailed description thereof is omitted here.
 図13では、ステップST7において、モータ指令値とモータ検出値との差が所定値以上の場合、すなわち、ステップST7で「YES」の場合に、ステップST8に進むようにしている。そして、ステップST8において、セーフティユニット9のCPU92が、コントローラ7がロボットAの非常停止を指示したか否かを判定するようにしている。 In FIG. 13, when the difference between the motor command value and the motor detection value is equal to or more than a predetermined value in step ST7, that is, when the result of step ST7 is "YES", the process proceeds to step ST8. Then, in step ST8, the CPU 92 of the safety unit 9 determines whether or not the controller 7 instructs an emergency stop of the robot A.
 具体的には、コントローラ7は、ロボットAの非常停止をする場合、安全回路6に対して、非常停止信号(図示しない)を出力する。非常停止信号を受けた安全回路6は、ロボットAの駆動用電源を遮断し、ロボットAを停止させる。本変形例(3)では、セーフティユニット9は、コントローラ7から非常停止信号を取得する。そして、ステップST8において、コントローラ7から非常停止信号が出力されているか否かを判定する。コントローラ7から非常停止信号が出力されている場合(ST8でYES)、フローはステップST3に戻る。すなわち、モータ指令値とモータ検出値との差が所定値以上の場合でも、エンコーダ5の異常と判定しない。 Specifically, the controller 7 outputs an emergency stop signal (not shown) to the safety circuit 6 when stopping the robot A in an emergency. The safety circuit 6 having received the emergency stop signal shuts off the driving power supply of the robot A, and stops the robot A. In the present modification (3), the safety unit 9 acquires an emergency stop signal from the controller 7. Then, in step ST8, it is determined whether or not the emergency stop signal is output from the controller 7. If the emergency stop signal is output from the controller 7 (YES in ST8), the flow returns to step ST3. That is, even when the difference between the motor command value and the motor detection value is equal to or more than the predetermined value, it is not determined that the encoder 5 is abnormal.
 一方で、コントローラ7から非常停止信号が出力されていない場合(ST8でNO)、ステップST9に進む。ステップST9において、セーフティユニット9のCPU92は、安全回路6に対して非常停止信号を送信し、非常停止信号を受けた安全回路6は、ロボットAを非常停止させる。 On the other hand, when the emergency stop signal is not output from the controller 7 (NO in ST8), the process proceeds to step ST9. In step ST9, the CPU 92 of the safety unit 9 transmits an emergency stop signal to the safety circuit 6, and the safety circuit 6 having received the emergency stop signal stops the robot A in an emergency.
 このように、ステップST8の処理をステップST7の後に行うことによって、コントローラ7からの指示による非常停止された場合に、セーフティユニット9が、エンコーダ5の異常と誤って判定することがなくなる。具体的には、コントローラ7が非常停止信号を出力することによりロボットAを停止させた場合、コントローラ7の指令位置情報の出力が停止される。このため、セーフティユニット9において、モータ指令値とモータ検出値との比較を継続すると、エンコーダ5が正常動作しているにもかかわらず、異常と判定してしまう可能性がある。しかしながら、本態様にかかる処理を行うことでこのような問題の発生を防ぐことができる。 As described above, by performing the process of step ST8 after step ST7, the safety unit 9 does not erroneously determine that the encoder 5 is abnormal when the emergency stop is instructed by the controller 7. Specifically, when the controller 7 stops the robot A by outputting an emergency stop signal, the output of the command position information of the controller 7 is stopped. For this reason, when the comparison between the motor command value and the motor detection value is continued in the safety unit 9, there is a possibility that it will be judged as abnormal although the encoder 5 is operating normally. However, the occurrence of such a problem can be prevented by performing the process according to this aspect.
 なお、図5及び図13のフローにおいて、各ステップは必ずしも記載された順で処理しなければならないわけではなく、順番を変更したり、並列処理できる場合には、適宜処理の順番や処理方法を変更してもよい。例えば、ステップST3及びST4に係る処理と、ステップST5に係る処理とは、並列に処理を行ってもよい。 In the flows of FIG. 5 and FIG. 13, the steps need not necessarily be processed in the order described, but if the order can be changed or parallel processing can be performed, the order of processing and the processing method are appropriately selected. You may change it. For example, the process according to steps ST3 and ST4 and the process according to step ST5 may be performed in parallel.
 -第3実施形態-
 本実施形態では、ロボットAの連続動作に係るエンコーダの異常検出方法について説明する。
-Third embodiment-
In the present embodiment, a method of detecting an abnormality of an encoder related to the continuous operation of the robot A will be described.
 なお、ロボットAを連続動作させる場合においても、基本的な構成及び動作は、第1実施形態と同様であり、ここではその詳細な説明を省略し、連続動作に係る部分に対して詳細に説明する。 Even when the robot A is operated continuously, the basic configuration and operation are the same as in the first embodiment, and the detailed description thereof is omitted here, and the parts related to the continuous operation are described in detail. Do.
 図14は、コントローラ7からの速度指令に基づいて、モータ指令位置がP1からP2を経由してP3へと順番に移動する、いわゆる進行動作をした場合におけるモータ指令位置P1~P3と、実際のモータの位置Pr(以下、現在位置Prともいう)との関係を示している。図14のような進行動作では、モータ指令位置がP3まで移動したとき、現在位置PrがP3近辺に存在する。したがって、図5又は図13のフローに沿って処理を行うことにより、エンコーダ5の異常を検出することができる。 FIG. 14 shows the motor command positions P1 to P3 in the case of the so-called progressive operation in which the motor command position sequentially moves from P1 to P2 to P3 based on the speed command from the controller 7, and The relationship with the position Pr of the motor (hereinafter also referred to as the current position Pr) is shown. In the advancing operation as shown in FIG. 14, when the motor command position has moved to P3, the current position Pr exists in the vicinity of P3. Therefore, the abnormality of the encoder 5 can be detected by performing the process according to the flow of FIG. 5 or FIG.
 一方で、図15に示すように、コントローラ7からの速度指令に基づくモータ指令位置がP1からP2を経由してP3へと順番に移動した後にP2を経由してP1に戻る、いわゆる往復運動をした場合には、セーフティユニット9がエンコーダ5の異常を誤って判定する場合がある。例えば、図15の往復動作が高速に行われた場合、例えば、モータ4の現在位置PrがP3に到達又は十分に接近する前に、サーボドライバ10がモータ4に戻り動作を開始させ、現在位置PrがP2からP1へと戻り動作をする可能性がある。このような場合に、セーフティユニット9が、指令位置情報P3に基づくモータ指令位置と、モータ4の現在位置Prに基づくモータ検出位置との比較を行うと、位置P3と位置Prとの差が大きいことに起因して、エンコーダ5が正常に動作をしているにも拘わらず、セーフティユニット9が異常と判定してしまう可能性がある。 On the other hand, as shown in FIG. 15, the so-called reciprocation that the motor command position based on the speed command from the controller 7 sequentially moves from P1 to P2 via P2 to P3 and then returns to P1 via P2 In this case, the safety unit 9 may erroneously determine that the encoder 5 is abnormal. For example, when the reciprocating operation of FIG. 15 is performed at high speed, for example, the servo driver 10 causes the motor 4 to start an operation before the current position Pr of the motor 4 reaches or sufficiently approaches P3. Pr may return from P2 to P1. In such a case, when the safety unit 9 compares the motor command position based on the command position information P3 with the motor detection position based on the current position Pr of the motor 4, the difference between the position P3 and the position Pr is large. Due to the above, there is a possibility that the safety unit 9 will be determined as abnormal although the encoder 5 is operating normally.
 そこで、図5及び図13におけるステップST5において、CPU92は、指令位置情報に基づくモータ指令値の変化量Δn(直前の指令位置との差分量Δn)を所定のn回分(例えば5回分)積算する処理を行う。具体的には、例えば、図16に実線で示すように点P1から点P9へと往復運動をさせた場合、Δ1からΔ5までの5回分を積算する。すなわち、積算値ΔはΔ=Δ1+Δ2+Δ3+Δ4+Δ5となる。なお、図16はロボットアーム11の関節軸12を往復運動させた場合におけるモータ指令位置を示した図である。 Therefore, in step ST5 in FIG. 5 and FIG. 13, the CPU 92 integrates the change amount .DELTA.n of the motor command value (difference amount .DELTA.n from the immediately preceding command position) based on the command position information for a predetermined n times (for example, 5 times). Do the processing. Specifically, for example, when reciprocating from the point P1 to the point P9 as shown by a solid line in FIG. 16, five times from Δ1 to Δ5 are integrated. That is, the integrated value Δ is Δ = Δ1 + Δ2 + Δ3 + Δ4 + Δ5. FIG. 16 is a view showing a motor command position when the joint shaft 12 of the robot arm 11 is reciprocated.
 さらにステップST6では、CPU92は、モータ指令値に積算値Δを増減した値と、検出位置情報に基づいて計算されたモータ検出値とを比較し、そして、ステップST7では、その比較結果に基づいてエンコーダの異常を判定するようにする。具体的には、モータ検出値P(fs)が下の(数1)の条件を満たす場合、エンコーダ5の異常とは判定しないようにする。このとき、変化量Δnは、変化の方向に拘わらず、絶対値で積算するようにする。また、変化量Δnはモータの速度に応じて変化し、速度と比例関係である。つまり、モータの駆動が高速の場合、変化量Δnは大きい値となる。逆にモータの駆動が低速の場合、変化量Δnは小さい値となる。 Furthermore, in step ST6, the CPU 92 compares the value obtained by increasing or decreasing the integrated value Δ to the motor command value with the motor detection value calculated based on the detection position information, and in step ST7, based on the comparison result. It makes it possible to determine an encoder error. Specifically, when the motor detection value P (fs) satisfies the condition of the lower (Equation 1), it is not determined that the encoder 5 is abnormal. At this time, the amount of change Δn is integrated as an absolute value regardless of the direction of the change. Further, the amount of change Δn changes in accordance with the speed of the motor, and is proportional to the speed. That is, when the drive of the motor is at high speed, the change amount Δn has a large value. Conversely, when the drive of the motor is at a low speed, the change amount Δn has a small value.
Figure JPOXMLDOC01-appb-M000001
Figure JPOXMLDOC01-appb-M000001
 これにより、往復動作のような特定のロボットの動作方法において、エンコーダ5が正常に動作しているにもかかわらず、CPU92が異常と判定することを防ぐことができる。 This makes it possible to prevent the CPU 92 from determining that there is an abnormality despite the fact that the encoder 5 is operating normally in a specific robot operation method such as reciprocating operation.
 なお、上記のようなエンコーダ5の異常検出方法を採用した場合、例えば非常停止で、ロボットAが所定期間動作をしない期間は、積算値Δが0になってしまう場合がある。そこで、ステップST5において、上の(数1)に代えて、下の(数2)に示すように積算値Δに所定の閾値Thを加えるようにしてもよい。 When the abnormality detection method of the encoder 5 as described above is adopted, for example, the integrated value Δ may become 0 during a period in which the robot A does not operate for a predetermined period in an emergency stop. Therefore, in step ST5, a predetermined threshold value Th may be added to the integrated value Δ as shown in (Equation 2) below instead of (Equation 1) above.
Figure JPOXMLDOC01-appb-M000002
Figure JPOXMLDOC01-appb-M000002
 所定期間にわたってコントローラ7から指令位置情報の変更がない場合、すなわちコントローラ7からロボットAに対して所定期間動かないような指示が出ている期間がある。上記の場合、閾値Thを設けることにより、ロボットが制御装置の意図しない動作をしているときでも、セーフティユニット9が、異常を検出できるようになり、ロボットAの動作を非常停止することができるようになる。 When there is no change in the command position information from the controller 7 for a predetermined period, there is a period in which the controller 7 instructs the robot A not to move for a predetermined period. In the above case, by providing the threshold value Th, the safety unit 9 can detect an abnormality even when the robot is performing an unintended operation of the control device, and the operation of the robot A can be stopped in an emergency. It will be.
 なお、変形例(1)~(3)及び第3実施形態における指令位置情報には図4A,4B,8B,8Bに示す新たな指令位置情報も含まれることは言うまでもない。 It goes without saying that the new command position information shown in FIGS. 4A, 4B, 8B and 8B is also included in the command position information in the modified examples (1) to (3) and the third embodiment.
 また、第1実施形態において、位置センサ13からの差分信号がサーボドライバ10に入力される例について説明したが、特にこれに限定されず、コントローラ7に入力されるようにしてもよい。例えば、図4Aに示すフローにおいて、ステップST1の後に、位置センサ13からの差分信号をコントローラ7が取り込むステップを設け、これに基づいてステップST2で生成される指令位置情報を補正するようにしてもよい。つまり、サーボドライバ10が速度指令と出力信号と位置センサ13からの差分信号とに基づいてモータ4を制御する場合に、コントローラ7は、差分信号を位置センサ13から受け取る一方、指令位置情報に差分信号を換算して得られる補正値を加算して新たな指令位置情報を生成し、セーフティユニット9に新たな指令位置情報を送信する。また、この場合、図4Aに示すステップST4~8は省略されるため、セーフティユニット9に指令位置情報を送信する手順が簡略化され、また送信までの時間が短縮されうる。 Further, in the first embodiment, although an example in which the difference signal from the position sensor 13 is input to the servo driver 10 has been described, the present invention is not particularly limited thereto, and may be input to the controller 7. For example, in the flow shown in FIG. 4A, step ST1 is followed by a step in which the controller 7 takes in the difference signal from the position sensor 13, and based on this, the command position information generated in step ST2 is corrected. Good. That is, when the servo driver 10 controls the motor 4 based on the speed command, the output signal, and the difference signal from the position sensor 13, the controller 7 receives the difference signal from the position sensor 13, while the difference in command position information A correction value obtained by converting a signal is added to generate new command position information, and the new command position information is transmitted to the safety unit 9. Further, in this case, since steps ST4 to 8 shown in FIG. 4A are omitted, the procedure of transmitting the command position information to the safety unit 9 can be simplified, and the time until transmission can be shortened.
 本開示のコントローラの情報送信方法は、サーボドライバがコントローラからの主たる速度指令及びエンコーダからの出力信号以外の情報にも基づいてモータを制御する場合にエンコーダの異常の誤検出を防止でき、また、エンコーダの異常検出方法は、汎用のエンコーダを使用している場合においても既存機能、既存装置への影響を最小限に抑えてエンコーダの異常を判定できるので、汎用の溶接ロボット等の産業用ロボットやその他の作動装置に係るエンコーダの異常を判定する上で特に有用である。 The controller information transmission method of the present disclosure can prevent erroneous detection of an encoder abnormality when the servo driver controls the motor also based on information other than the main speed command from the controller and the output signal from the encoder, and Since the encoder abnormality detection method can determine the encoder abnormality by minimizing the influence on the existing function and the existing device even when using a general-purpose encoder, an industrial robot such as a general-purpose welding robot or It is particularly useful in determining abnormalities in encoders associated with other actuators.
A ロボット(作動装置)
W ワーク
4 モータ
5 エンコーダ
7 コントローラ
8,93 RAM(記憶部)
9 セーフティユニット(異常検出装置)
10 サーボドライバ
12 関節軸(出力軸)
13 位置センサ
21 制振フィルタ
22 一次遅れフィルタ(遅れ制御フィルタ)
92 CPU(判定部)
94 エンコーダ受信部(第1受信部)
95 DPRAM(第2受信部)
A robot (actuator)
W Work 4 Motor 5 Encoder 7 Controller 8, 93 RAM (storage unit)
9 Safety unit (error detection device)
10 servo driver 12 joint axis (output axis)
13 Position Sensor 21 Damping Filter 22 First Order Delay Filter (Delay Control Filter)
92 CPU (judgment unit)
94 Encoder Receiver (First Receiver)
95 DPRAM (second receiver)

Claims (10)

  1.  ロボットアームと、ロボットアームの出力軸に連結されたモータとを有し、ワークを加工する作動装置に設けられたコントローラの情報送信方法であって、
     前記コントローラは、前記モータの回転位置を指示する速度指令及び前記速度指令に応じた前記モータの回転位置を示す指令位置情報を出力し、
     前記作動装置は、
     前記モータの回転位置を検出するためのエンコーダと、
     所定の位置からの前記ワークの位置ずれ量を差分信号として出力する位置センサと、
     前記コントローラから出力される前記速度指令と前記エンコーダから出力される出力信号と前記位置センサから出力される前記差分信号とを受け、少なくとも前記速度指令及び前記出力信号に基づいて前記モータの駆動を制御するドライバと、
     前記エンコーダの異常を検出する異常検出装置と、をさらに有し、
     前記ドライバが前記速度指令と前記出力信号と前記差分信号とに基づいて前記モータを制御する場合に、
     前記ドライバが前記差分信号を前記コントローラに送信する一方、前記コントローラは、前記指令位置情報に前記差分信号を換算して得られる補正値を加算して新たな指令位置情報を生成し、前記異常検出装置に前記新たな指令位置情報を送信することを特徴とするコントローラの情報送信方法。
    A method of transmitting information from a controller provided in an operating device for processing a work, comprising a robot arm and a motor connected to an output shaft of the robot arm,
    The controller outputs a speed command instructing a rotational position of the motor and command position information indicating a rotational position of the motor according to the speed command.
    The actuating device is
    An encoder for detecting the rotational position of the motor;
    A position sensor that outputs the displacement amount of the work from a predetermined position as a difference signal;
    It controls the driving of the motor based on at least the speed command and the output signal, receiving the speed command output from the controller, an output signal output from the encoder, and the difference signal output from the position sensor. With the driver
    And an abnormality detection device that detects an abnormality in the encoder.
    When the driver controls the motor based on the speed command, the output signal, and the difference signal,
    While the driver transmits the difference signal to the controller, the controller adds a correction value obtained by converting the difference signal to the command position information to generate new command position information, and detects the abnormality. And transmitting the new command position information to the device.
  2.  ロボットアームと、前記ロボットアームの出力軸に連結されたモータとを有し、ワークを加工する作動装置に設けられたコントローラの情報送信方法であって、
     前記コントローラは、前記モータの回転位置を指示する速度指令及び前記速度指令に応じた前記モータの回転位置を示す指令位置情報を出力し、
     前記作動装置は、
     前記モータの回転位置を検出するためのエンコーダと、
     所定の位置からの前記ワークの位置ずれ量を差分信号として出力する位置センサと、
     前記コントローラから出力される前記速度指令と前記エンコーダから出力される出力信号と前記位置センサから出力される前記差分信号とを受け、少なくとも前記速度指令及び前記出力信号に基づいて前記モータの駆動を制御するドライバと、
     前記エンコーダの異常を検出する異常検出装置と、をさらに有し、
     前記ドライバが前記速度指令と前記出力信号と前記差分信号とに基づいて前記モータを制御する場合に、
     前記ドライバが前記差分信号と前記速度指令とに基づいて目標位置情報を生成して前記コントローラに送信する一方、前記コントローラは前記目標位置情報を新たな指令位置情報として前記異常検出装置に送信することを特徴とするコントローラの情報送信方法。
    A method of transmitting information from a controller provided in an operating device for processing a work, comprising a robot arm and a motor connected to an output shaft of the robot arm,
    The controller outputs a speed command instructing a rotational position of the motor and command position information indicating a rotational position of the motor according to the speed command.
    The actuating device is
    An encoder for detecting the rotational position of the motor;
    A position sensor that outputs the displacement amount of the work from a predetermined position as a difference signal;
    It controls the driving of the motor based on at least the speed command and the output signal, receiving the speed command output from the controller, an output signal output from the encoder, and the difference signal output from the position sensor. With the driver
    And an abnormality detection device that detects an abnormality in the encoder.
    When the driver controls the motor based on the speed command, the output signal, and the difference signal,
    The driver generates target position information based on the difference signal and the speed command and transmits the target position information to the controller, while the controller transmits the target position information as new command position information to the abnormality detection device. Method of transmitting information on a controller characterized by
  3.  ロボットアームと、前記ロボットアームの出力軸に連結されたモータとを有する作動装置に設けられたコントローラの情報送信方法であって、
     前記コントローラは、前記モータの回転位置を指示する第1及び第2速度指令及び前記第1及び第2速度指令に応じた前記モータの回転位置を示す指令位置情報を出力し、
     前記作動装置は、
     前記モータの回転位置を検出するためのエンコーダと、
     前記コントローラから出力される前記第1及び第2速度指令と前記エンコーダから出力される出力信号とを受け、前記第1及び第2速度指令の少なくとも一方と前記出力信号とに基づいて前記モータの駆動を制御するドライバと、
     前記エンコーダの異常を検出する異常検出装置と、をさらに有し、
     前記ドライバが前記第1及び第2速度指令と前記エンコーダからの出力信号とに基づいて前記モータを制御する場合に、
     前記ドライバが前記第2速度指令に基づいた制御情報を前記コントローラに送信する一方、前記コントローラは、前記指令位置情報に前記第2速度指令に基づいた制御情報を換算して得られる補正値を加算して新たな指令位置情報を生成し、前記異常検出装置に前記新たな指令位置情報を送信することを特徴とするコントローラの情報送信方法。
    A method of transmitting information of a controller provided in an operating device comprising: a robot arm; and a motor connected to an output shaft of the robot arm,
    The controller outputs first and second speed commands for instructing the rotational position of the motor and command position information indicating the rotational position of the motor according to the first and second speed commands.
    The actuating device is
    An encoder for detecting the rotational position of the motor;
    Receiving the first and second speed commands output from the controller and an output signal output from the encoder, and driving the motor based on at least one of the first and second speed commands and the output signal Driver to control the
    And an abnormality detection device that detects an abnormality in the encoder.
    When the driver controls the motor based on the first and second speed commands and the output signal from the encoder,
    The driver transmits control information based on the second speed command to the controller, while the controller adds a correction value obtained by converting control information based on the second speed command to the command position information. And generating new command position information and transmitting the new command position information to the abnormality detection device.
  4.  ロボットアームと、前記ロボットアームの出力軸に連結されたモータとを有する作動装置に設けられたコントローラの情報送信方法であって、
     前記コントローラは、前記モータの回転位置を指示する第1及び第2速度指令及び前記第1及び第2速度指令に応じた前記モータの回転位置を示す指令位置情報を出力し、
     前記作動装置は、
     前記モータの回転位置を検出するためのエンコーダと、
     前記コントローラから出力される前記第1及び第2速度指令と前記エンコーダから出力される出力信号とを受け、前記第1及び第2速度指令の少なくとも一方と前記出力信号とに基づいて前記モータの駆動を制御するドライバと、
     前記エンコーダの異常を検出する異常検出装置と、をさらに有し、
     前記ドライバが前記第1及び第2速度指令と前記エンコーダからの出力信号とに基づいて前記モータを制御する場合に、
     前記ドライバが前記第1及び第2速度指令に基づいて目標位置情報を生成して前記コントローラに送信する一方、前記コントローラは前記目標位置情報に基づいて新たな指令位置情報を生成し、前記異常検出装置に前記新たな指令位置情報を送信することを特徴とするコントローラの情報送信方法。
    A method of transmitting information of a controller provided in an operating device comprising: a robot arm; and a motor connected to an output shaft of the robot arm,
    The controller outputs first and second speed commands for instructing the rotational position of the motor and command position information indicating the rotational position of the motor according to the first and second speed commands.
    The actuating device is
    An encoder for detecting the rotational position of the motor;
    Receiving the first and second speed commands output from the controller and an output signal output from the encoder, and driving the motor based on at least one of the first and second speed commands and the output signal Driver to control the
    And an abnormality detection device that detects an abnormality in the encoder.
    When the driver controls the motor based on the first and second speed commands and the output signal from the encoder,
    The driver generates target position information based on the first and second speed commands and transmits the target position information to the controller, while the controller generates new command position information based on the target position information, and detects the abnormality. And transmitting the new command position information to the device.
  5.  作動装置の出力軸を駆動するモータの回転位置を検出するためのエンコーダの異常を検出する異常検出方法であって、
     前記作動装置は、
     前記エンコーダの異常を検出する異常検出装置と、
     前記モータの回転位置を指示する速度指令を出力するとともに、前記速度指令に応じた前記モータの回転位置を示す指令位置情報を請求項1ないし4のいずれか1項に記載の情報送信方法により前記異常検出装置に送信するコントローラと、
     前記コントローラから出力される前記速度指令及び前記エンコーダから出力される出力信号を受け、前記速度指令及び前記出力信号に基づいて前記モータの駆動を制御するドライバと、をさらに有し、
     前記異常検出装置は、
     前記コントローラから前記指令位置情報を、また前記エンコーダから前記出力信号をそれぞれ取得する情報取得ステップと、
     前記指令位置情報と前記出力信号に基づいて算出された前記モータの検出位置情報とを比較し、前記指令位置情報と前記検出位置情報との間に所定値以上の差があった場合に前記エンコーダの異常と判定する異常判定ステップとを行うことを特徴とするエンコーダの異常検出方法。
    An abnormality detection method for detecting an abnormality in an encoder for detecting a rotational position of a motor driving an output shaft of an actuator.
    The actuating device is
    An abnormality detection device that detects an abnormality of the encoder;
    The information transmission method according to any one of claims 1 to 4, further comprising: outputting a speed command instructing a rotational position of the motor, and command position information indicating a rotational position of the motor according to the speed command according to any one of claims 1 to 4. A controller that sends to the anomaly detection device;
    And a driver that receives the speed command output from the controller and an output signal output from the encoder, and controls driving of the motor based on the speed command and the output signal.
    The abnormality detection device is
    An information acquisition step of acquiring the command position information from the controller and the output signal from the encoder;
    The command position information and the detected position information of the motor calculated based on the output signal are compared, and when there is a difference of a predetermined value or more between the command position information and the detected position information, the encoder A method of detecting an abnormality in an encoder, comprising the steps of: determining an abnormality;
  6.  前記異常検出装置は、前記モータの駆動制御の遅れに起因する時間遅れが補償された指令位置情報を前記コントローラから受け、前記異常判定ステップにおいて、前記時間遅れが補償された指令位置情報と前記検出位置情報との比較結果に基づいて、前記エンコーダの異常の有無を判定する、ことを特徴とする請求項5に記載のエンコーダの異常検出方法。 The abnormality detection device receives, from the controller, command position information in which a time delay due to a delay in drive control of the motor is compensated, and in the abnormality determination step, the command position information in which the time delay is compensated and the detection The encoder abnormality detection method according to claim 5, wherein the presence or absence of an abnormality of the encoder is determined based on a comparison result with position information.
  7.  前記異常検出装置は、前記コントローラから共振成分が除去された指令位置情報を受け、前記異常判定ステップにおいて、前記共振成分が除去された指令位置情報と前記検出位置情報との比較結果に基づいて、前記エンコーダの異常の有無を判定する、ことを特徴とする請求項5または6に記載のエンコーダの異常検出方法。 The abnormality detection device receives command position information from which the resonance component has been removed from the controller, and in the abnormality determination step, based on a comparison result between the command position information from which the resonance component has been removed and the detection position information. The method for detecting an abnormality in an encoder according to claim 5 or 6, wherein presence or absence of an abnormality in the encoder is determined.
  8.  前記異常検出装置は、前記異常判定ステップにおいて、前記コントローラから出力された前記指令位置情報の変化量の積算値を生成し、前記積算値及び前記指令位置情報の和と前記検出位置情報との比較結果に基づいて、前記エンコーダの異常の有無を判定する、ことを特徴とする請求項5ないし7のいずれか1項に記載のエンコーダの異常検出方法。 The abnormality detection device generates an integrated value of change amounts of the command position information output from the controller in the abnormality determination step, and compares the sum of the integrated value and the command position information with the detected position information. The encoder abnormality detection method according to any one of claims 5 to 7, wherein presence or absence of an abnormality of the encoder is determined based on a result.
  9.  前記異常検出装置は、前記異常判定ステップにおいて、前記積算値及び前記指令位置情報の和に所定の閾値を加えたものと前記検出位置情報との比較結果に基づいて、前記エンコーダの異常の有無を判定する、ことを特徴とする請求項8記載のエンコーダの異常検出方法。 The abnormality detection device determines presence / absence of abnormality of the encoder based on a comparison result of the sum of the integrated value and the command position information plus a predetermined threshold and the detection position information in the abnormality determination step. The method according to claim 8, characterized in that the determination is made.
  10.  前記作動装置を非常停止するための安全回路がさらに設けられており、
     前記コントローラは、非常時に前記安全回路に非常停止信号を送信するように構成され、
     前記異常検出装置は、前記異常判定ステップにおいて、前記コントローラから前記非常停止信号が出力されたことを検知した場合、前記指令位置情報と前記検出位置情報との間に所定値以上の差があっても、前記エンコーダの異常と判定しない、ことを特徴とする請求項5ないし9のいずれか1項に記載のエンコーダの異常検出方法。
    There is further provided a safety circuit for emergency stop of the actuating device,
    The controller is configured to transmit an emergency stop signal to the safety circuit in an emergency,
    When the abnormality detection device detects that the emergency stop signal has been output from the controller in the abnormality determination step, a difference of a predetermined value or more exists between the command position information and the detection position information. The encoder abnormality detection method according to any one of claims 5 to 9, wherein the encoder abnormality is not determined to be the encoder abnormality.
PCT/JP2018/027585 2017-08-08 2018-07-24 Method for transmitting information in controller and method for detecting abnormality in encoder WO2019031219A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
DE112018003523.9T DE112018003523T5 (en) 2017-08-08 2018-07-24 METHOD FOR TRANSMITTING INFORMATION IN A CONTROL UNIT AND METHOD FOR DETECTING ERRORS IN A CODER
CN201880050165.6A CN111032294B (en) 2017-08-08 2018-07-24 Information transmission method for controller and abnormality detection method for encoder
JP2019535080A JP7220353B2 (en) 2017-08-08 2018-07-24 Controller information transmission method and encoder abnormality detection method
US16/780,867 US11446823B2 (en) 2017-08-08 2020-02-03 Method for transmitting information in controller and method for detecting abnormality in encoder

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017153530 2017-08-08
JP2017-153530 2017-08-08

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/780,867 Continuation US11446823B2 (en) 2017-08-08 2020-02-03 Method for transmitting information in controller and method for detecting abnormality in encoder

Publications (1)

Publication Number Publication Date
WO2019031219A1 true WO2019031219A1 (en) 2019-02-14

Family

ID=65272331

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/027585 WO2019031219A1 (en) 2017-08-08 2018-07-24 Method for transmitting information in controller and method for detecting abnormality in encoder

Country Status (5)

Country Link
US (1) US11446823B2 (en)
JP (1) JP7220353B2 (en)
CN (1) CN111032294B (en)
DE (1) DE112018003523T5 (en)
WO (1) WO2019031219A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019220719A1 (en) * 2018-05-16 2019-11-21 パナソニックIpマネジメント株式会社 Encoder abnormality detecting method, operation control device, robot, and robot system
JP2021012073A (en) * 2019-07-05 2021-02-04 ファナック株式会社 Servo motor controller

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11241792B2 (en) * 2016-10-24 2022-02-08 Panasonic Intellectual Property Management Co., Ltd. Method and device for detecting abnormality of encoder, and robot control system
CN111633281A (en) * 2020-06-09 2020-09-08 新代科技(苏州)有限公司 High-speed secondary gear aligning method and system for gear hobbing machine
JP2022119095A (en) * 2021-02-03 2022-08-16 セイコーエプソン株式会社 Robot control device and robot system
CN113697482A (en) * 2021-08-30 2021-11-26 上汽通用五菱汽车股份有限公司 Anti-collision method for engine crankshaft line transportation manipulator and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10315173A (en) * 1997-05-13 1998-12-02 Sankyo Seiki Mfg Co Ltd Abnormality detector for robot
JPH11129186A (en) * 1997-10-30 1999-05-18 Nachi Fujikoshi Corp Industrial robot, failure detecting method thereof, and recording medium recording failure detecting program for industrial robot
JP2010152595A (en) * 2008-12-25 2010-07-08 Omron Corp Servo system and safety control device
JP2011192015A (en) * 2010-03-15 2011-09-29 Omron Corp Servo system, servo motor driving device, safety unit and method for controlling servo system
JP2013000833A (en) * 2011-06-16 2013-01-07 Seiko Epson Corp Method of detecting failure of robot, and robot
WO2018079075A1 (en) * 2016-10-24 2018-05-03 パナソニックIpマネジメント株式会社 Method and device for detecting abnormality of encoder, and robot control system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4831549A (en) * 1987-07-28 1989-05-16 Brigham Young University Device and method for correction of robot inaccuracy
JPH0285906A (en) 1988-09-22 1990-03-27 Toshiba Corp Industrial robot controller
JP4282064B2 (en) 2003-05-01 2009-06-17 芝浦メカトロニクス株式会社 Robot position control apparatus and method, and robot system
DE102004026185A1 (en) * 2004-05-28 2005-12-22 Kuka Roboter Gmbh Method and apparatus for operating a machine, such as a multi-axis industrial robot
WO2006022201A1 (en) 2004-08-25 2006-03-02 Kabushiki Kaisha Yaskawa Denki Robot evaluation system and evaluation method
US9104650B2 (en) * 2005-07-11 2015-08-11 Brooks Automation, Inc. Intelligent condition monitoring and fault diagnostic system for preventative maintenance
WO2007008940A2 (en) * 2005-07-11 2007-01-18 Brooks Automation, Inc. Intelligent condition-monitoring and dault diagnostic system
CN104764473B (en) 2008-08-26 2017-07-07 株式会社尼康 Encoder system, signal processing method
US8473103B2 (en) * 2009-01-27 2013-06-25 Fanuc Robotics America, Inc. Secondary position feedback control of a robot
JP4741691B2 (en) 2009-06-15 2011-08-03 ファナック株式会社 Robot system with robot abnormality monitoring function
WO2014036138A1 (en) * 2012-08-28 2014-03-06 Rethink Robotics, Inc. Monitoring robot sensor consistency
JP6108860B2 (en) * 2013-02-14 2017-04-05 キヤノン株式会社 Robot system and control method of robot system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10315173A (en) * 1997-05-13 1998-12-02 Sankyo Seiki Mfg Co Ltd Abnormality detector for robot
JPH11129186A (en) * 1997-10-30 1999-05-18 Nachi Fujikoshi Corp Industrial robot, failure detecting method thereof, and recording medium recording failure detecting program for industrial robot
JP2010152595A (en) * 2008-12-25 2010-07-08 Omron Corp Servo system and safety control device
JP2011192015A (en) * 2010-03-15 2011-09-29 Omron Corp Servo system, servo motor driving device, safety unit and method for controlling servo system
JP2013000833A (en) * 2011-06-16 2013-01-07 Seiko Epson Corp Method of detecting failure of robot, and robot
WO2018079075A1 (en) * 2016-10-24 2018-05-03 パナソニックIpマネジメント株式会社 Method and device for detecting abnormality of encoder, and robot control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019220719A1 (en) * 2018-05-16 2019-11-21 パナソニックIpマネジメント株式会社 Encoder abnormality detecting method, operation control device, robot, and robot system
JP2021012073A (en) * 2019-07-05 2021-02-04 ファナック株式会社 Servo motor controller
JP7277291B2 (en) 2019-07-05 2023-05-18 ファナック株式会社 Servo motor controller

Also Published As

Publication number Publication date
US11446823B2 (en) 2022-09-20
CN111032294B (en) 2022-11-04
CN111032294A (en) 2020-04-17
JP7220353B2 (en) 2023-02-10
JPWO2019031219A1 (en) 2020-08-27
US20200171661A1 (en) 2020-06-04
DE112018003523T5 (en) 2020-04-09

Similar Documents

Publication Publication Date Title
JP6857818B2 (en) Encoder abnormality detection method, abnormality detection device, and robot control system
JP7220353B2 (en) Controller information transmission method and encoder abnormality detection method
JP7033704B2 (en) Encoder abnormality detection method
JP7296593B2 (en) Encoder abnormality detection method, operation control device, robot and robot system
EP3150341B1 (en) Robot control device
US8896255B2 (en) Servo controller having function for correcting amount of expansion/contraction of ball screw
JP2007257515A (en) Method for controlling servo motor
JP2010269412A (en) Robot device
WO2006043550A1 (en) Welding system and consumable electrode welding method
EP3520972B1 (en) Robot controlling method and welding method
US20220176557A1 (en) Robot control method and robot control device
US20240139955A1 (en) Control Method For Robot System And Robot System
JP5849455B2 (en) robot
KR20050040205A (en) Failsafe control method of active front steering system
KR20230054471A (en) Current limiting device, robotic system and current limiting method
JP2023084972A (en) Brake abnormality detection system and brake abnormality detection method in twin motor drive robot
JP2007024247A (en) Transmission
JPH0699371A (en) Control method utilizing acceleration change of industrial robot
JP2015122932A (en) Control unit and control method of robot
JPH01228784A (en) Master/slave manipulator controlling method

Legal Events

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

Ref document number: 18844266

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019535080

Country of ref document: JP

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 18844266

Country of ref document: EP

Kind code of ref document: A1