US20130033218A1 - Synchronous control apparatus - Google Patents

Synchronous control apparatus Download PDF

Info

Publication number
US20130033218A1
US20130033218A1 US13/547,608 US201213547608A US2013033218A1 US 20130033218 A1 US20130033218 A1 US 20130033218A1 US 201213547608 A US201213547608 A US 201213547608A US 2013033218 A1 US2013033218 A1 US 2013033218A1
Authority
US
United States
Prior art keywords
switch
data
cam curve
cam
weight
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
US13/547,608
Other versions
US8901870B2 (en
Inventor
Takaaki Yamada
Hiroshi Sawaragi
Junji Shimamura
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
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 Omron Corp filed Critical Omron Corp
Assigned to OMRON CORPORATION reassignment OMRON CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: SHIMAMURA, JUNJI, SAWARAGI, HIROSHI, YAMADA, TAKAAKI
Publication of US20130033218A1 publication Critical patent/US20130033218A1/en
Application granted granted Critical
Publication of US8901870B2 publication Critical patent/US8901870B2/en
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • 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/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/06Programme control other than numerical control, i.e. in sequence controllers or logic controllers using cams, discs, rods, drums, or the like
    • 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/50233Synchonize time-dependent with electronic cam data
    • 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/50234Synchronize two spindles, axis, electronic transmission, line shafting

Definitions

  • the present invention relates to a synchronous control apparatus, and particularly to a synchronous control apparatus that synchronously operates a main shaft and a driven shaft with an arbitrary gear ratio.
  • a programmable logic controller (hereinafter, referred to as a “PLC”) is made up of a plurality of units including, for example, an arithmetic operation unit that executes a user program, an IO (Input Output) unit responsible for signal input from an external switch or an external sensor, and signal output to an external relay or an external actuator, and the like.
  • the PLC executes control operation while giving and receiving data via a PLC system bus and/or a field network in every user program execution cycle among the above-described units.
  • motion control to control a motion of a motor may be included.
  • an application that performs positioning of a mechanical mechanism such as a positioning table or robot is assumed.
  • synchronous operation and synchronous control means systems in which a main shaft and a driven shaft are operated while maintaining some relationships, and generally include cam operation and gear operation.
  • the cam operation is a system of searching a position (displacement) of the driven shaft corresponding to a position (phase) of the main shaft from a cam table in each control period to decide a command position of the driven shaft.
  • the gear operation is a system of determining the command position of the driven shaft with a value obtained by multiplying a velocity of the main shaft by the gear ratio used as a command velocity of the driven shaft.
  • a position target value (position command value) becomes discontinuous, causing vibration and impact.
  • the present invention has been devised to solve the problems described above, and an object thereof is to provide a synchronous control apparatus capable of switching cam curves with ease and without delay.
  • a synchronous control apparatus that executes synchronous control of a main shaft and a driven shaft in each control period, including a storage that stores a representation of a first cam curve and a representation of a second cam curve, and a controller that calculates a position command value of the driven shaft to control the driven shaft with the calculated position command value.
  • the controller finds the position command value to a driven-side member, based on a value on the first cam curve at each control timing.
  • the controller finds the position command value, based on a value on the second cam curve at each control timing.
  • the controller finds the position command value to the driven-side member, based on a value obtained by subjecting (or utilizing) first data based on any one of the first cam curve and a position of the driven shaft and second data based on the second cam curve to provide a weighted average at each control timing.
  • a weight is variable in conjunction with a main shaft position, and at start timing of the switch-over period, a weight of the first data is set larger than a weight of the second data, and at end timing of the switch-over period, the weight of the first data is set smaller than the weight of the second data.
  • the first data is the value on the first cam curve at each control timing.
  • the first data is the value on the first cam curve at start timing of the switch-over period.
  • the first data is the position of the driven shaft at each control timing.
  • the first data is the position of the driven shaft at start timing of the switch-over period.
  • the second data is the value on the second cam curve at each control timing.
  • the second data is the value on the second cam curve at end timing of the switch-over period.
  • a weight of the first data is (1-a)
  • a weight of the second data is “a”
  • the weight “a” is 0 at start timing of the switch-over period, and monotonically increases as clock time (i.e., a time period) advances in the switch-over period to reach 1 at end timing of the switch-over period.
  • the weight “a” changes as a linear function with respect to clock time.
  • the weight “a” changes as an n-th order function with respect to clock time, where “n” is a positive real number other than 1.
  • the weight “a” changes as a sine function with respect to clock time.
  • the weight “a” changes as a cosine function with respect to clock time.
  • the impact applied to the driven shaft can be alleviated, and the synchronous control can be surely started at the synchronization start position.
  • FIG. 1 is a schematic diagram showing a schematic configuration of a PLC system
  • FIG. 2 is a schematic diagram showing a hardware configuration of a CPU unit
  • FIG. 3 is a schematic diagram showing a software configuration executed in the CPU unit
  • FIG. 4 is a diagram showing a configuration of a synchronous control apparatus
  • FIG. 5 is a diagram showing change in a weight “a”
  • FIG. 6A is a diagram showing a first cam curve, a second cam curve and a switch-over curve in a first embodiment
  • FIG. 6B is a diagram showing a cam curve to be used in a control unit 66 and a curve indicating a velocity, which is a curve resulting from differentiating the cam curve in the first embodiment
  • FIG. 7A is a diagram showing the first cam curve, the second cam curve and the switch-over curve in a second embodiment
  • FIG. 7B is a diagram showing the cam curve to be used in the control unit 66 and the curve indicating the velocity, which is the curve resulting from differentiating the cam curve in the second embodiment
  • FIG. 8A is a diagram showing the first cam curve, the second cam curve and the switch-over curve in a third embodiment
  • FIG. 8B is a diagram showing the cam curve to be used in the control unit 66 and the curve indicating the velocity, which is the curve resulting from differentiating the cam curve in the third embodiment.
  • a PLC Programmable Logic Controller
  • FIG. 1 a system configuration of a PLC 1 according to the present embodiment will be described.
  • FIG. 1 is a schematic diagram showing a schematic configuration of a PLC system according to the embodiment of the present invention.
  • a PLC system SYS includes the PLC 1 , and servo motor drivers 3 and a remote IO terminal 5 , which are connected to the PLC 1 through a field network 2 , and a detection switch 6 and a relay 7 as field devices.
  • a PLC support apparatus 8 to the PLC 1 is connected a PLC support apparatus 8 through a connection cable 10 or the like.
  • the PLC 1 includes a CPU unit 13 that executes main arithmetic operation processing, one or more IO units 14 , and a special unit 15 . These units are configured so as to be capable of exchanging data through a PLC system bus 11 . Moreover, power of a proper voltage is supplied by a power supply unit 12 .
  • Each of the IO units 14 is a unit involved in general input/output processing, and controls input/output of binarized data such as On/Off.
  • the IO unit 14 collects information of whether a sensor such as the detection switch 6 is in a state where it is detecting some object (On), or in a state where it is not detecting any object (Off).
  • the IO unit 14 outputs either of a command to activate an output destination such as the relay 7 and an actuator (On) and a command to inactivate the same (Off).
  • the special unit 15 has functions that the IO units 14 do not support, such as input/output of analog data, temperature control, and communication by a specific communication method.
  • the field network 2 transmits various types of data exchanged with the CPU unit 13 .
  • various types of industrial Ethernet registered trademark
  • the PLC system SYS having both the PLC system bus 11 and the field network 2 is illustrated, a system configuration in which only one of them is mounted can also be employed.
  • all the units may be connected by the field network 2 .
  • the servo motor drivers 3 may be directly connected to the PLC system bus 11 without using the field network 2 .
  • a communication unit of the field network 2 may be connected to the PLC system bus 11 , so that the communication with a device connected to the field network 2 may be performed from the CPU unit 13 via the relevant communication unit.
  • the servo motor drivers 3 are each connected to the CPU unit 13 through the field network 2 , and drive a servo motor 4 in accordance with command values form the CPU unit 13 . More specifically, the servo motor driver 3 receives the command values such as a position command value, a velocity command value, and a torque command value from the PLC 1 with a predetermined period. Moreover, the servo motor driver 3 acquires actual measured values according to operation of the servo motor 4 , such as a position, a velocity (typically, calculated from a difference between a current position and a last position), and a torque from a detector such as a position sensor (rotary encoder) and a torque sensor connected to a shaft of the servo motor 4 .
  • the servo motor driver 3 sets the command values from the CPU unit 13 as target values, and the actual measured values as feedback values to perform feedback control. That is, the servo motor driver 3 adjusts a current to drive the servo motor 4 so that the actual measured values become closer to the target values.
  • the servo motor driver 3 may also be referred to as a servo motor amplifier.
  • FIG. 1 While in FIG. 1 , a system example in which the servo motors 4 and the servo motor drivers 3 are combined is shown, another configuration, for example, a system in which pulse motors and pulse motor drivers are combined can also be employed.
  • the remote IO terminal 5 basically performs processing regarding general input/output processing as in the IO units 14 . More specifically, the remote IO terminal 5 includes a communication coupler 52 that performs processing involving the data transmission in the field network 2 , and one or more IO units 53 . These units are configured so as to be capable of mutually exchanging data through a remote IO terminal bus 51 .
  • FIG. 2 is a schematic diagram showing the hardware configuration of the CPU unit 13 according to the embodiment of the present invention.
  • the CPU unit 13 includes a microprocessor 100 , a chip set 102 , a main memory 104 , a non-volatile memory 106 , a system timer 108 , a PLC system bus controller 120 , a field network controller 140 , and a USB connector 110 .
  • the chip set 102 and the other components are joined through various buses.
  • the microprocessor 100 and the chip set 102 are typically configured in accordance with a general-purpose computer architecture. That is, the microprocessor 100 interprets and executes instruction codes sequentially supplied in accordance with an internal clock from the chip set 102 .
  • the chip set 102 exchanges internal data with the connected various components, and generates the instruction codes necessary for the microprocessor 100 .
  • the chip set 102 has a function of caching data resulting from execution of arithmetic operation processing in the microprocessor 100 , and the like.
  • the CPU unit 13 has the main memory 104 and the non-volatile memory 106 as storage means.
  • the main memory 104 is a volatile storage area (RAM), and holds various programs to be executed in the microprocessor 100 after power-on of the CPU unit 13 . Moreover, the main memory 104 is used as a working memory at the time of execution of the various programs by the microprocessor 100 .
  • main memory 104 a device such as a DRAM (Dynamic Random Access Memory) and an SRAM (Static Random Access Memory) is used.
  • the non-volatile memory 106 holds data such as a real-time OS (Operating System), and a system program, a user program, a motion arithmetic operation program, system setting parameters of the PLC 1 in a non-volatile manner. These programs and data are copied to the main memory 104 so as to enable the microprocessor 100 to access them, as needed.
  • a semiconductor memory such as a flash memory can be used.
  • a magnetic recording medium such as a hard disk drive, an optical recording medium such as a DVD-RAM (Digital Versatile Disk Random Access Memory), and the like can also be used.
  • the system timer 108 generates an interrupt signal every predetermined period to provide to the microprocessor 100 .
  • the interrupt signal is generated with a plurality of different periods depending on a specification of hardware, setting can also be made so as to generate the interrupt signal with an arbitrary period in accordance with the OS (Operating System), the BIOS (Basic Input Output System) and the like.
  • the interrupt signal generated by this system timer 108 is utilized to implement control operation in each motion control cycle described later.
  • the CPU unit 13 has the PLC system bus controller 120 and the field network controller 140 as communication circuits.
  • the PLC system bus controller 120 controls the exchange of the data through the PLC system bus 11 . More specifically, the PLC system bus controller 120 includes a DMA (Dynamic Memory Access) control circuit 122 , a PLC system bus control circuit 124 , and a buffer memory 126 . The PLC system bus controller 120 is internally connected to the PLC system bus 11 through a PLC system bus connector 130 .
  • DMA Dynamic Memory Access
  • the buffer memory 126 functions as a transmission buffer of data outputted to another unit through the PLC system bus 11 (hereinafter, also referred to as “output data”), and a reception buffer of data inputted from another unit through the PLC system bus 11 (hereinafter, also referred to as “input data”).
  • the output data created by the arithmetic operation processing of the microprocessor 100 is primitively stored in the main memory 104 .
  • the output data to be forwarded to a specific unit is read from the main memory 104 , and primarily held in the buffer memory 126 .
  • the input data forwarded from another unit, after being primarily held in the buffer memory 126 is transferred to the main memory 104 .
  • the DMA control circuit 122 performs forwarding of the output data from the main memory 104 to the buffer memory 126 , and forwarding of the input data from the buffer memory 126 to the main memory 104 .
  • the PLC system bus control circuit 124 performs processing of transmitting the output data of the buffer memory 126 and processing of receiving the input data to store the same in the buffer memory 126 with respect to another unit connected to the PLC system bus 11 .
  • the PLC system bus control circuit 124 provides functions of a physical layer and a data link layer in the PLC system bus 11 .
  • the field network controller 140 controls the exchange of the data through the field network 2 . That is, the field network controller 140 controls the transmission of the output data and the reception of the input data in accordance with a standard of the used field network 2 . In this manner, the CPU unit 13 according to the present embodiment is connected to each of the servo motor drivers 3 as a drive apparatus through the field network 2 .
  • a DMA control circuit 142 performs forwarding of the output data from the main memory 104 to a buffer memory 146 , and forwarding of the input data from the buffer memory 146 to the main memory 104 .
  • the field network control circuit 144 performs processing of transmitting the output data of the buffer memory 146 and processing of receiving the input data to store the same in the buffer memory 146 with respect to another unit connected to the field network 2 .
  • the field network control circuit 144 provides functions of a physical layer and a data link layer in the field network 2 .
  • the USB connector 110 is an interface to connect the PLC support apparatus 8 and the CPU unit 13 .
  • a program and the like that are forwarded from the PLC support apparatus 8 and can be executed in the microprocessor 100 of the CPU unit 13 are loaded on the PLC 1 through the USB connector 110 .
  • the instruction codes included in the software are read at proper timing to be executed by the microprocessor 100 of the CPU unit 13 .
  • FIG. 3 is a schematic diagram showing the software configuration executed in the CPU unit 13 according to the embodiment of the present invention.
  • the software executed in the CPU unit 13 three hierarchies of a real-time OS 200 , a system program 210 , and a user program 236 are configured.
  • the real-time OS 200 is designed in accordance with a computer architecture of the CPU unit 13 to provide a basic execution environment for the microprocessor 100 to execute the system program 210 and the user program 236 .
  • This real-time OS is typically provided by a manufacturer of the PLC, a specialized software company or the like.
  • the system program 210 is a software group to provide a function as the PLC 1 .
  • the system program 210 includes a scheduler program 212 , an output processing program 214 , an input processing program 216 , a sequence-instruction arithmetic operation program 232 , a motion arithmetic operation program 234 , and another system program 220 .
  • these programs may be collectively referred to as an 10 processing program 218 .
  • the user program 236 is created in accordance with a control purpose in a user. That is, the user program 236 is a program arbitrarily designed in accordance with an object line (process) to be controlled using the PLC system SYS, or the like.
  • the user program 236 cooperates with the sequence-instruction arithmetic operation program 232 and the motion arithmetic operation program 234 to implement the control purpose in the user. That is, the user program 236 utilizes instructions, functions, functional modules and the like provided by the sequence-instruction arithmetic operation program 232 and the motion arithmetic operation program 234 to thereby implement programmed operation.
  • the user program 236 , the sequence-instruction arithmetic operation program 232 , and the motion arithmetic operation program 234 may be collectively referred to as a control program 230 .
  • the microprocessor 100 of the CPU unit 13 executes the system program 210 and the user program 236 stored in the storage means.
  • the user program 236 is created in accordance with the control purpose in the user (e.g., the object line or process) as described above.
  • the user program 236 is typically in an object program format executable in the microprocessor 100 of the CPU unit 13 .
  • This user program 236 is generated in the PLC support apparatus 8 or the like by compiling a source program described in a ladder language or the like.
  • the generated user program 236 in the object program format is forwarded from the PLC support apparatus 8 to the CPU unit 13 through the connection cable 10 to be stored in the non-volatile memory 106 or the like.
  • the scheduler program 212 controls processing start in each execution cycle and processing restart after processing interruption with respect to the output processing program 214 , the input processing program 216 and the control program 230 . More specifically, the scheduler program 212 controls the execution of the user program 236 and the motion arithmetic operation program 234 .
  • the output processing program 214 rearranges the output data generated by the execution of the user program 236 (the control program 230 ) into a format appropriate for forwarding the same to the PLC system bus controller 120 and/or the field network controller 140 .
  • the output processing program 214 issues the command.
  • the input processing program 216 rearranges the input data received by the PLC system bus controller 120 and/or the field network controller 140 into a format appropriate for the use by the control program 230 .
  • the sequence-instruction arithmetic operation program 232 is a program that is called when a certain type of sequence instruction to be used in the user program 236 is executed, and is executed to implement a content of the instruction.
  • the motion arithmetic operation program 234 is a program that is executed in accordance with a command by the user program 236 to calculate the command values outputted to the motor driver such as the servo motor driver 3 and the pulse motor driver.
  • the other system program 220 collectively indicates a program group to implement various functions of the PLC 1 other than the programs shown individually in FIG. 3 .
  • the other system program 220 includes a program 222 that sets a period of the motion control cycle.
  • the period of the motion control cycle can be appropriately set in accordance with the control purpose.
  • the program 222 that sets the period of the motion control cycle sets the system timer 108 so that the interrupt signal is generated with the period of the motion control cycle specified from the system timer 108 .
  • the program 222 that sets the period of the motion control cycle is executed, by which information specifying the period of the motion control cycle is read from the non-volatile memory 106 and the system timer 108 is set in accordance with the read information.
  • the real-time OS 200 provides an environment to switch and execute the plurality of programs as time advances.
  • the user program 236 includes an instruction to cause whether or not a condition of the control start regarding the motion of the motor is established to be periodically determined. For example, it is logic in which whether or not a work to be subjected to some treatment by a driving force of the motor is conveyed up to a predetermined treatment position is determined.
  • the user program 236 further includes an instruction to start the motion control in response to the determination of the establishment of this condition of the control start. With the start of this motion control, the execution of a motion instruction is instructed.
  • the motion arithmetic operation program 234 corresponding to the instructed motion instruction is activated to execute, first, initial processing necessary for calculating the command values to the motor every time the motion arithmetic operation program 234 is executed. Moreover, in the same motion control cycle as that of the initial processing, the command values in a first cycle are calculated. Accordingly, the initial processing and the first command value calculating processing are processing for the activated motion arithmetic operation program 234 to perform in the first execution. Hereinafter, the command values in each cycle are sequentially calculated.
  • FIG. 4 is a diagram showing a configuration of a synchronous control apparatus.
  • a synchronous control apparatus 61 is an apparatus that executes the synchronous control of a main shaft and the driven shaft every control period, and includes a cam curve storing unit 64 , a detection unit 65 , and a control unit 66 . These components are implemented by the control program 230 , the program 222 that sets the period of the motion control cycle, and the scheduler program 212 .
  • the detection unit 65 detects a current position of the main shaft, a current position of the driven shaft, a current velocity of the main shaft, and a current velocity of the driven shaft, based on count values of pulses from an encoder 67 for the main shaft and an encoder 68 for the driven shaft.
  • the cam curve storing unit 64 stores a first cam curve and a second cam curve.
  • the cam curve indicates a position of the driven shaft to displacement with time expressed by a rotation angle of the main shaft.
  • the control unit 66 calculates the position command value of the driven shaft, based on the first cam curve, the second cam curve and the current position of the driven shaft to output the same to a servo motor driver 70 for the driven shaft.
  • the control unit finds the position command value as a position command value to a driven-side member, based on a value of the first cam curve and the current position of the driven shaft at each control timing. After the switch-over of the cam curves, the control unit finds the position command value, based on a value of the second cam curve and the current position of the driven shaft at each control timing. In a switch-over period of the cam curves, the control unit finds the position command value to the driven-side member, based on a value of a switch-over curve and the current position of the driven shaft.
  • the value on the switch-over curve is a value obtained by subjecting first data based on the first cam curve or the position of the driven shaft and second data based on the second cam curve to weighted average.
  • a weight of the first data is (1-a), and a weight of the second data is “a”.
  • the weight “a” is 0 at start timing of the switch-over period, and monotonically increases as clock time advances in the switch-over period to reach 1 at end timing of the switch-over period.
  • the weight “a” changes as a linear function with respect to the clock time passage, as shown in FIG. 5 .
  • the first data is the value on the first cam curve at each control timing.
  • the second data is the value on the second cam curve at each control timing.
  • FIG. 6A is a diagram showing the first cam curve, the second cam curve and the switch-over curve in the first embodiment.
  • the value of the switch-over curve at each control timing is the value obtained by subjecting the value on the first cam curve at each control timing and the value on the second cam curve at each control timing to the weighted average, using the weight increasing from 0 to 1
  • FIG. 6B is a diagram showing a cam curve to be used in the control unit 66 and a curve indicating a velocity, which is a curve resulting from differentiating the cam curve in the first embodiment.
  • the first cam curve Before the switch-over of the cam curves, the first cam curve is used, in the switch-over period of the cam curves, the switch-over curve is used, and after the switch-over of the cam curves, the second cam curve is used.
  • the switch-over curve is found by the weighted average of the first cam curve and the second cam curve, the cam curves can be switched with ease and without delay.
  • the first data is the value on the first cam curve at the start timing of the switch-over period.
  • the second data is the value on the second cam curve at each control timing as in the first embodiment.
  • the weight “a” changes as a linear function with respect to the clock time passage, as shown in FIG. 5 as in the first embodiment.
  • FIG. 7A is a diagram showing the first cam curve, the second cam curve and the switch-over curve in the second embodiment.
  • the value of the switch-over curve at each control timing is the value obtained by subjecting the value on the first cam curve at the start timing of the switch-over period and the value on the second cam curve at each control timing to the weighted average, using the weight increasing from 0 to 1.
  • FIG. 7B is a diagram showing the cam curve to be used in the control unit 66 and the curve indicating the velocity, which is the curve resulting from differentiating the cam curve in the second embodiment.
  • the first cam curve Before the switch-over of the cam curves, the first cam curve is used, in the switch-over period of the cam curves, the switch-over curve is used, and after the switch-over of the cam curves, the second cam curve is used.
  • the switch-over curve is found by the weighted average of the value of the first cam curve at the start timing of the switch-over period and the second cam curve, the cam curves can be switched with ease and without delay.
  • the first data is the value on the first cam curve at each control timing as in the first embodiment.
  • the second data is the value on the second cam curve at end timing of the switch-over period.
  • the switch-over curve is found by the weighted average of the first cam curve and the value on the second cam curve at the end timing of the switch-over period, the cam curves can be switched with ease and without delay.
  • the first data is the position of the driven shaft at each control timing.
  • the value that the detection unit 65 calculates, based on the count value of the pulses from the encoder 68 for the driven shaft is used.
  • the second data is the value on the second cam curve at each control timing as in the first embodiment.
  • FIG. 8A is a diagram showing the first cam curve, the second cam curve and the switch-over curve in the third embodiment.
  • the value of the switch-over curve at each control timing is the value obtained by subjecting the position of the driven shaft at each control timing and the value on the second cam curve at each control timing to the weighted average, using the weight increasing from 0 to 1.
  • FIG. 8B is a diagram showing the cam curve to be used in the control unit 66 and the curve indicating the velocity, which is the curve resulting from differentiating the cam curve in the third embodiment.
  • the first cam curve Before the switch-over of the cam curves, the first cam curve is used, in the switch-over period of the cam curves, the switch-over curve is used, and after the switch-over of the cam curves, the second cam curve is used.
  • the switch-over curve is found by the weighted average of the current position of the driven shaft and the second cam curve, the cam curves can be switched with ease and without delay.
  • the first data is the position of the driven shaft at the start timing of the switch-over period.
  • the second data is the value on the second cam curve at each control timing as in the first embodiment.
  • the switch-over curve is found by the weighted average of the position of the driven shaft at the start timing of the switch-over period and the second cam curve, the cam curves can be switched with ease and without delay.
  • the present invention is not limited to the above embodiments, but for example, includes the following modifications as well.
  • the weight “a” may change as an n-th order function with respect to clock time. “n” is a positive real number. When “n” is 1, the weight “a” is a function that changes as a straight line as in the first embodiment. When “n” is not 1, the weight “a” is a function that changes as a curve.
  • ⁇ associated with clock time is a phase of the main shaft
  • a(0) 0

Abstract

A synchronous control apparatus capable of switching cam curves with ease and without delay is provided. A cam curve storing unit stores a representation of a first cam curve and a representation of a second cam curve. Before switch-over of the cam curves, a control unit finds a position command value to a driven-side member, after the switch-over of the cam curves, the control unit finds the position command value, and in a switch-over period of the cam curves, the control unit finds the position command value to the driven-side member based on a value obtained by utilizing first data based on the first cam curve or a position of the driven shaft and second data based on the second cam curve to provide a weighted average at each control timing.

Description

  • This application claims benefit of priority under 35 U.S.C. §119 to Japanese Patent Application No. 2011-170169 filed on Aug. 3, 2011, which is expressly incorporated herein by reference in its entirety.
  • BACKGROUND OF THE INVENTION
  • 1. Technical Field
  • The present invention relates to a synchronous control apparatus, and particularly to a synchronous control apparatus that synchronously operates a main shaft and a driven shaft with an arbitrary gear ratio.
  • 2. Related Art
  • A programmable logic controller (hereinafter, referred to as a “PLC”) is made up of a plurality of units including, for example, an arithmetic operation unit that executes a user program, an IO (Input Output) unit responsible for signal input from an external switch or an external sensor, and signal output to an external relay or an external actuator, and the like. The PLC executes control operation while giving and receiving data via a PLC system bus and/or a field network in every user program execution cycle among the above-described units.
  • As control of operation of machinery, equipment and the like, motion control to control a motion of a motor may be included. As a representative example of the above-described motion control, an application that performs positioning of a mechanical mechanism such as a positioning table or robot is assumed.
  • In a motion controller, synchronous operation and synchronous control means systems in which a main shaft and a driven shaft are operated while maintaining some relationships, and generally include cam operation and gear operation. The cam operation is a system of searching a position (displacement) of the driven shaft corresponding to a position (phase) of the main shaft from a cam table in each control period to decide a command position of the driven shaft. The gear operation is a system of determining the command position of the driven shaft with a value obtained by multiplying a velocity of the main shaft by the gear ratio used as a command velocity of the driven shaft.
  • In a position control system performing the synchronous control, when a cam curve is switched, a position target value (position command value) becomes discontinuous, causing vibration and impact.
  • Against this problem, for example, in Japanese Unexamined Patent Publication Nos. S59-183413 and H5-127731, there is disclosed a technique of generating an orbit (a curve of a command value) so that a position and a velocity are not discontinuous at an end of a connection section of the cam curve.
  • However, in Japanese Unexamined Patent Publication Nos. S59-183413 and H5-127731, a velocity curve needs to be generated in advance, and thus, a user cannot switch the cam curve at arbitrary timing.
  • Moreover, in Japanese Unexamined Patent Publication Nos. S59-183413 and H5-127731, since a higher-order curve in which a derivative value is continuous needs to be generated, complicated software processing is required. Thus, there is a problem that real-time calculation within a control period is disabled in a CPU of a low specification.
  • SUMMARY
  • The present invention has been devised to solve the problems described above, and an object thereof is to provide a synchronous control apparatus capable of switching cam curves with ease and without delay.
  • In order to solve the above-described problem, in accordance with one aspect of the present invention, there is provided a synchronous control apparatus that executes synchronous control of a main shaft and a driven shaft in each control period, including a storage that stores a representation of a first cam curve and a representation of a second cam curve, and a controller that calculates a position command value of the driven shaft to control the driven shaft with the calculated position command value. Before switch-over of the cam curves, the controller finds the position command value to a driven-side member, based on a value on the first cam curve at each control timing. After the switch-over of the cam curves, the controller finds the position command value, based on a value on the second cam curve at each control timing. In a switch-over period of the cam curves, the controller finds the position command value to the driven-side member, based on a value obtained by subjecting (or utilizing) first data based on any one of the first cam curve and a position of the driven shaft and second data based on the second cam curve to provide a weighted average at each control timing.
  • Preferably, in the weighted average, a weight is variable in conjunction with a main shaft position, and at start timing of the switch-over period, a weight of the first data is set larger than a weight of the second data, and at end timing of the switch-over period, the weight of the first data is set smaller than the weight of the second data.
  • Preferably, the first data is the value on the first cam curve at each control timing.
  • Preferably, the first data is the value on the first cam curve at start timing of the switch-over period.
  • Preferably, the first data is the position of the driven shaft at each control timing.
  • Preferably, the first data is the position of the driven shaft at start timing of the switch-over period.
  • Preferably, the second data is the value on the second cam curve at each control timing.
  • Preferably, the second data is the value on the second cam curve at end timing of the switch-over period.
  • Preferably, when in the weighted average, a weight of the first data is (1-a), and a weight of the second data is “a”, the weight “a” is 0 at start timing of the switch-over period, and monotonically increases as clock time (i.e., a time period) advances in the switch-over period to reach 1 at end timing of the switch-over period.
  • Preferably, the weight “a” changes as a linear function with respect to clock time.
  • Preferably, the weight “a” changes as an n-th order function with respect to clock time, where “n” is a positive real number other than 1.
  • Preferably, the weight “a” changes as a sine function with respect to clock time.
  • Preferably, the weight “a” changes as a cosine function with respect to clock time.
  • According to the present invention, the impact applied to the driven shaft can be alleviated, and the synchronous control can be surely started at the synchronization start position.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a schematic diagram showing a schematic configuration of a PLC system;
  • FIG. 2 is a schematic diagram showing a hardware configuration of a CPU unit;
  • FIG. 3 is a schematic diagram showing a software configuration executed in the CPU unit;
  • FIG. 4 is a diagram showing a configuration of a synchronous control apparatus;
  • FIG. 5 is a diagram showing change in a weight “a”;
  • FIG. 6A is a diagram showing a first cam curve, a second cam curve and a switch-over curve in a first embodiment, and FIG. 6B is a diagram showing a cam curve to be used in a control unit 66 and a curve indicating a velocity, which is a curve resulting from differentiating the cam curve in the first embodiment;
  • FIG. 7A is a diagram showing the first cam curve, the second cam curve and the switch-over curve in a second embodiment, and FIG. 7B is a diagram showing the cam curve to be used in the control unit 66 and the curve indicating the velocity, which is the curve resulting from differentiating the cam curve in the second embodiment;
  • FIG. 8A is a diagram showing the first cam curve, the second cam curve and the switch-over curve in a third embodiment; and FIG. 8B is a diagram showing the cam curve to be used in the control unit 66 and the curve indicating the velocity, which is the curve resulting from differentiating the cam curve in the third embodiment.
  • DETAILED DESCRIPTION
  • Hereinafter, embodiments of the present invention will be described with reference to the drawings.
  • First Embodiment
  • An embodiment of the present invention will be described in detail with reference to the drawings. Identical or corresponding units in the figures will be given the same reference numerals, and descriptions thereof will not be repeated.
  • <A. System Configuration>
  • A PLC (Programmable Logic Controller) according to the present embodiment has a motion control function for controlling a motion of a motor. First, referring to FIG. 1, a system configuration of a PLC 1 according to the present embodiment will be described.
  • FIG. 1 is a schematic diagram showing a schematic configuration of a PLC system according to the embodiment of the present invention. Referring to FIG. 1, a PLC system SYS includes the PLC 1, and servo motor drivers 3 and a remote IO terminal 5, which are connected to the PLC 1 through a field network 2, and a detection switch 6 and a relay 7 as field devices. Moreover, to the PLC 1 is connected a PLC support apparatus 8 through a connection cable 10 or the like.
  • The PLC 1 includes a CPU unit 13 that executes main arithmetic operation processing, one or more IO units 14, and a special unit 15. These units are configured so as to be capable of exchanging data through a PLC system bus 11. Moreover, power of a proper voltage is supplied by a power supply unit 12.
  • Details of the CPU unit 13 will be described with reference to FIG. 2 later.
  • Each of the IO units 14 is a unit involved in general input/output processing, and controls input/output of binarized data such as On/Off. In other words, the IO unit 14 collects information of whether a sensor such as the detection switch 6 is in a state where it is detecting some object (On), or in a state where it is not detecting any object (Off). Moreover, the IO unit 14 outputs either of a command to activate an output destination such as the relay 7 and an actuator (On) and a command to inactivate the same (Off).
  • The special unit 15 has functions that the IO units 14 do not support, such as input/output of analog data, temperature control, and communication by a specific communication method.
  • The field network 2 transmits various types of data exchanged with the CPU unit 13. As the field network 2, typically, various types of industrial Ethernet (registered trademark) can be used.
  • While in FIG. 1, the PLC system SYS having both the PLC system bus 11 and the field network 2 is illustrated, a system configuration in which only one of them is mounted can also be employed. For example, all the units may be connected by the field network 2. Alternatively, the servo motor drivers 3 may be directly connected to the PLC system bus 11 without using the field network 2. Furthermore, a communication unit of the field network 2 may be connected to the PLC system bus 11, so that the communication with a device connected to the field network 2 may be performed from the CPU unit 13 via the relevant communication unit.
  • The servo motor drivers 3 are each connected to the CPU unit 13 through the field network 2, and drive a servo motor 4 in accordance with command values form the CPU unit 13. More specifically, the servo motor driver 3 receives the command values such as a position command value, a velocity command value, and a torque command value from the PLC 1 with a predetermined period. Moreover, the servo motor driver 3 acquires actual measured values according to operation of the servo motor 4, such as a position, a velocity (typically, calculated from a difference between a current position and a last position), and a torque from a detector such as a position sensor (rotary encoder) and a torque sensor connected to a shaft of the servo motor 4. The servo motor driver 3 sets the command values from the CPU unit 13 as target values, and the actual measured values as feedback values to perform feedback control. That is, the servo motor driver 3 adjusts a current to drive the servo motor 4 so that the actual measured values become closer to the target values. The servo motor driver 3 may also be referred to as a servo motor amplifier.
  • While in FIG. 1, a system example in which the servo motors 4 and the servo motor drivers 3 are combined is shown, another configuration, for example, a system in which pulse motors and pulse motor drivers are combined can also be employed.
  • To the field network 2 of the PLC system SYS shown in FIG. 1 is further connected the remote IO terminal 5. The remote IO terminal 5 basically performs processing regarding general input/output processing as in the IO units 14. More specifically, the remote IO terminal 5 includes a communication coupler 52 that performs processing involving the data transmission in the field network 2, and one or more IO units 53. These units are configured so as to be capable of mutually exchanging data through a remote IO terminal bus 51.
  • <B. Hardware Configuration of CPU Unit>
  • Next, referring to FIG. 2, a hardware configuration of the CPU unit 13 will be described. FIG. 2 is a schematic diagram showing the hardware configuration of the CPU unit 13 according to the embodiment of the present invention.
  • Referring to FIG. 2, the CPU unit 13 includes a microprocessor 100, a chip set 102, a main memory 104, a non-volatile memory 106, a system timer 108, a PLC system bus controller 120, a field network controller 140, and a USB connector 110. The chip set 102 and the other components are joined through various buses.
  • The microprocessor 100 and the chip set 102 are typically configured in accordance with a general-purpose computer architecture. That is, the microprocessor 100 interprets and executes instruction codes sequentially supplied in accordance with an internal clock from the chip set 102. The chip set 102 exchanges internal data with the connected various components, and generates the instruction codes necessary for the microprocessor 100. Furthermore, the chip set 102 has a function of caching data resulting from execution of arithmetic operation processing in the microprocessor 100, and the like.
  • The CPU unit 13 has the main memory 104 and the non-volatile memory 106 as storage means.
  • The main memory 104 is a volatile storage area (RAM), and holds various programs to be executed in the microprocessor 100 after power-on of the CPU unit 13. Moreover, the main memory 104 is used as a working memory at the time of execution of the various programs by the microprocessor 100. As the above-described main memory 104, a device such as a DRAM (Dynamic Random Access Memory) and an SRAM (Static Random Access Memory) is used.
  • On the other hand, the non-volatile memory 106 holds data such as a real-time OS (Operating System), and a system program, a user program, a motion arithmetic operation program, system setting parameters of the PLC 1 in a non-volatile manner. These programs and data are copied to the main memory 104 so as to enable the microprocessor 100 to access them, as needed. As the non-volatile memory 106, a semiconductor memory such as a flash memory can be used. Alternatively, a magnetic recording medium such as a hard disk drive, an optical recording medium such as a DVD-RAM (Digital Versatile Disk Random Access Memory), and the like can also be used.
  • The system timer 108 generates an interrupt signal every predetermined period to provide to the microprocessor 100. Typically, while the interrupt signal is generated with a plurality of different periods depending on a specification of hardware, setting can also be made so as to generate the interrupt signal with an arbitrary period in accordance with the OS (Operating System), the BIOS (Basic Input Output System) and the like. The interrupt signal generated by this system timer 108 is utilized to implement control operation in each motion control cycle described later.
  • The CPU unit 13 has the PLC system bus controller 120 and the field network controller 140 as communication circuits.
  • The PLC system bus controller 120 controls the exchange of the data through the PLC system bus 11. More specifically, the PLC system bus controller 120 includes a DMA (Dynamic Memory Access) control circuit 122, a PLC system bus control circuit 124, and a buffer memory 126. The PLC system bus controller 120 is internally connected to the PLC system bus 11 through a PLC system bus connector 130.
  • The buffer memory 126 functions as a transmission buffer of data outputted to another unit through the PLC system bus 11 (hereinafter, also referred to as “output data”), and a reception buffer of data inputted from another unit through the PLC system bus 11 (hereinafter, also referred to as “input data”). The output data created by the arithmetic operation processing of the microprocessor 100 is primitively stored in the main memory 104. The output data to be forwarded to a specific unit is read from the main memory 104, and primarily held in the buffer memory 126. The input data forwarded from another unit, after being primarily held in the buffer memory 126, is transferred to the main memory 104.
  • The DMA control circuit 122 performs forwarding of the output data from the main memory 104 to the buffer memory 126, and forwarding of the input data from the buffer memory 126 to the main memory 104.
  • The PLC system bus control circuit 124 performs processing of transmitting the output data of the buffer memory 126 and processing of receiving the input data to store the same in the buffer memory 126 with respect to another unit connected to the PLC system bus 11. Typically, the PLC system bus control circuit 124 provides functions of a physical layer and a data link layer in the PLC system bus 11.
  • The field network controller 140 controls the exchange of the data through the field network 2. That is, the field network controller 140 controls the transmission of the output data and the reception of the input data in accordance with a standard of the used field network 2. In this manner, the CPU unit 13 according to the present embodiment is connected to each of the servo motor drivers 3 as a drive apparatus through the field network 2.
  • A DMA control circuit 142 performs forwarding of the output data from the main memory 104 to a buffer memory 146, and forwarding of the input data from the buffer memory 146 to the main memory 104.
  • The field network control circuit 144 performs processing of transmitting the output data of the buffer memory 146 and processing of receiving the input data to store the same in the buffer memory 146 with respect to another unit connected to the field network 2. Typically, the field network control circuit 144 provides functions of a physical layer and a data link layer in the field network 2.
  • The USB connector 110 is an interface to connect the PLC support apparatus 8 and the CPU unit 13. Typically, a program and the like that are forwarded from the PLC support apparatus 8 and can be executed in the microprocessor 100 of the CPU unit 13 are loaded on the PLC 1 through the USB connector 110.
  • <C. Software Configuration of CPU Unit>
  • Next, referring to FIG. 3, a software group to provide various functions according to the present embodiment will be described. The instruction codes included in the software are read at proper timing to be executed by the microprocessor 100 of the CPU unit 13.
  • FIG. 3 is a schematic diagram showing the software configuration executed in the CPU unit 13 according to the embodiment of the present invention. Referring to FIG. 3, as the software executed in the CPU unit 13, three hierarchies of a real-time OS 200, a system program 210, and a user program 236 are configured.
  • The real-time OS 200 is designed in accordance with a computer architecture of the CPU unit 13 to provide a basic execution environment for the microprocessor 100 to execute the system program 210 and the user program 236. This real-time OS is typically provided by a manufacturer of the PLC, a specialized software company or the like.
  • The system program 210 is a software group to provide a function as the PLC 1. Specifically, the system program 210 includes a scheduler program 212, an output processing program 214, an input processing program 216, a sequence-instruction arithmetic operation program 232, a motion arithmetic operation program 234, and another system program 220. Generally, since the output processing program 214 and the input processing program 216 are continuously (integrally) executed, these programs may be collectively referred to as an 10 processing program 218.
  • The user program 236 is created in accordance with a control purpose in a user. That is, the user program 236 is a program arbitrarily designed in accordance with an object line (process) to be controlled using the PLC system SYS, or the like.
  • As will be described later, the user program 236 cooperates with the sequence-instruction arithmetic operation program 232 and the motion arithmetic operation program 234 to implement the control purpose in the user. That is, the user program 236 utilizes instructions, functions, functional modules and the like provided by the sequence-instruction arithmetic operation program 232 and the motion arithmetic operation program 234 to thereby implement programmed operation. Thus, the user program 236, the sequence-instruction arithmetic operation program 232, and the motion arithmetic operation program 234 may be collectively referred to as a control program 230.
  • In this manner, the microprocessor 100 of the CPU unit 13 executes the system program 210 and the user program 236 stored in the storage means.
  • Hereinafter, the respective programs will be described in more detail.
  • The user program 236 is created in accordance with the control purpose in the user (e.g., the object line or process) as described above. The user program 236 is typically in an object program format executable in the microprocessor 100 of the CPU unit 13. This user program 236 is generated in the PLC support apparatus 8 or the like by compiling a source program described in a ladder language or the like. The generated user program 236 in the object program format is forwarded from the PLC support apparatus 8 to the CPU unit 13 through the connection cable 10 to be stored in the non-volatile memory 106 or the like.
  • The scheduler program 212 controls processing start in each execution cycle and processing restart after processing interruption with respect to the output processing program 214, the input processing program 216 and the control program 230. More specifically, the scheduler program 212 controls the execution of the user program 236 and the motion arithmetic operation program 234.
  • The output processing program 214 rearranges the output data generated by the execution of the user program 236 (the control program 230) into a format appropriate for forwarding the same to the PLC system bus controller 120 and/or the field network controller 140. When the PLC system bus controller 120 or the field network controller 140 need a command to execute the transmission from the microprocessor 100, the output processing program 214 issues the command.
  • The input processing program 216 rearranges the input data received by the PLC system bus controller 120 and/or the field network controller 140 into a format appropriate for the use by the control program 230.
  • The sequence-instruction arithmetic operation program 232 is a program that is called when a certain type of sequence instruction to be used in the user program 236 is executed, and is executed to implement a content of the instruction.
  • The motion arithmetic operation program 234 is a program that is executed in accordance with a command by the user program 236 to calculate the command values outputted to the motor driver such as the servo motor driver 3 and the pulse motor driver.
  • The other system program 220 collectively indicates a program group to implement various functions of the PLC 1 other than the programs shown individually in FIG. 3. The other system program 220 includes a program 222 that sets a period of the motion control cycle. The period of the motion control cycle can be appropriately set in accordance with the control purpose. The program 222 that sets the period of the motion control cycle sets the system timer 108 so that the interrupt signal is generated with the period of the motion control cycle specified from the system timer 108. At the power-on of the CPU unit 13, the program 222 that sets the period of the motion control cycle is executed, by which information specifying the period of the motion control cycle is read from the non-volatile memory 106 and the system timer 108 is set in accordance with the read information.
  • The real-time OS 200 provides an environment to switch and execute the plurality of programs as time advances.
  • <D. Outline of Motion Control>
  • Next, a typical configuration included in the above-described user program 236 will be described. The user program 236 includes an instruction to cause whether or not a condition of the control start regarding the motion of the motor is established to be periodically determined. For example, it is logic in which whether or not a work to be subjected to some treatment by a driving force of the motor is conveyed up to a predetermined treatment position is determined. The user program 236 further includes an instruction to start the motion control in response to the determination of the establishment of this condition of the control start. With the start of this motion control, the execution of a motion instruction is instructed. Consequently, the motion arithmetic operation program 234 corresponding to the instructed motion instruction is activated to execute, first, initial processing necessary for calculating the command values to the motor every time the motion arithmetic operation program 234 is executed. Moreover, in the same motion control cycle as that of the initial processing, the command values in a first cycle are calculated. Accordingly, the initial processing and the first command value calculating processing are processing for the activated motion arithmetic operation program 234 to perform in the first execution. Hereinafter, the command values in each cycle are sequentially calculated.
  • <E. Outline of Synchronous Control>
  • FIG. 4 is a diagram showing a configuration of a synchronous control apparatus.
  • As shown in FIG. 4, a synchronous control apparatus 61 is an apparatus that executes the synchronous control of a main shaft and the driven shaft every control period, and includes a cam curve storing unit 64, a detection unit 65, and a control unit 66. These components are implemented by the control program 230, the program 222 that sets the period of the motion control cycle, and the scheduler program 212.
  • The detection unit 65 detects a current position of the main shaft, a current position of the driven shaft, a current velocity of the main shaft, and a current velocity of the driven shaft, based on count values of pulses from an encoder 67 for the main shaft and an encoder 68 for the driven shaft.
  • The cam curve storing unit 64 stores a first cam curve and a second cam curve.
  • In the present embodiment, the cam curve indicates a position of the driven shaft to displacement with time expressed by a rotation angle of the main shaft.
  • The control unit 66 calculates the position command value of the driven shaft, based on the first cam curve, the second cam curve and the current position of the driven shaft to output the same to a servo motor driver 70 for the driven shaft.
  • Specifically, before switch-over of the cam curves, the control unit finds the position command value as a position command value to a driven-side member, based on a value of the first cam curve and the current position of the driven shaft at each control timing. After the switch-over of the cam curves, the control unit finds the position command value, based on a value of the second cam curve and the current position of the driven shaft at each control timing. In a switch-over period of the cam curves, the control unit finds the position command value to the driven-side member, based on a value of a switch-over curve and the current position of the driven shaft. The value on the switch-over curve is a value obtained by subjecting first data based on the first cam curve or the position of the driven shaft and second data based on the second cam curve to weighted average.
  • In the weighted average, a weight of the first data is (1-a), and a weight of the second data is “a”.
  • In the present embodiment, the weight “a” is 0 at start timing of the switch-over period, and monotonically increases as clock time advances in the switch-over period to reach 1 at end timing of the switch-over period.
  • In the present embodiment, more specifically, the weight “a” changes as a linear function with respect to the clock time passage, as shown in FIG. 5.
  • In the first embodiment, the first data is the value on the first cam curve at each control timing. The second data is the value on the second cam curve at each control timing.
  • FIG. 6A is a diagram showing the first cam curve, the second cam curve and the switch-over curve in the first embodiment.
  • The value of the switch-over curve at each control timing is the value obtained by subjecting the value on the first cam curve at each control timing and the value on the second cam curve at each control timing to the weighted average, using the weight increasing from 0 to 1
  • FIG. 6B is a diagram showing a cam curve to be used in the control unit 66 and a curve indicating a velocity, which is a curve resulting from differentiating the cam curve in the first embodiment.
  • Before the switch-over of the cam curves, the first cam curve is used, in the switch-over period of the cam curves, the switch-over curve is used, and after the switch-over of the cam curves, the second cam curve is used.
  • As described above, according to the present embodiment, since in the switch-over period of the cam curves, the switch-over curve is found by the weighted average of the first cam curve and the second cam curve, the cam curves can be switched with ease and without delay.
  • [Second Embodiment] In a second embodiment, the first data is the value on the first cam curve at the start timing of the switch-over period. The second data is the value on the second cam curve at each control timing as in the first embodiment.
  • In the present embodiment, the weight “a” changes as a linear function with respect to the clock time passage, as shown in FIG. 5 as in the first embodiment.
  • FIG. 7A is a diagram showing the first cam curve, the second cam curve and the switch-over curve in the second embodiment.
  • The value of the switch-over curve at each control timing is the value obtained by subjecting the value on the first cam curve at the start timing of the switch-over period and the value on the second cam curve at each control timing to the weighted average, using the weight increasing from 0 to 1.
  • FIG. 7B is a diagram showing the cam curve to be used in the control unit 66 and the curve indicating the velocity, which is the curve resulting from differentiating the cam curve in the second embodiment.
  • Before the switch-over of the cam curves, the first cam curve is used, in the switch-over period of the cam curves, the switch-over curve is used, and after the switch-over of the cam curves, the second cam curve is used.
  • As described above, according to the present embodiment, since in the switch-over period of the cam curves, the switch-over curve is found by the weighted average of the value of the first cam curve at the start timing of the switch-over period and the second cam curve, the cam curves can be switched with ease and without delay.
  • [Modification 1 of Second Embodiment] In the present modification, the first data is the value on the first cam curve at each control timing as in the first embodiment. The second data is the value on the second cam curve at end timing of the switch-over period.
  • As described above, according to the present embodiment, since in the switch-over period of the cam curves, the switch-over curve is found by the weighted average of the first cam curve and the value on the second cam curve at the end timing of the switch-over period, the cam curves can be switched with ease and without delay.
  • [Third Embodiment] In a third embodiment, the first data is the position of the driven shaft at each control timing. For the position of the driven shaft, the value that the detection unit 65 calculates, based on the count value of the pulses from the encoder 68 for the driven shaft is used.
  • The second data is the value on the second cam curve at each control timing as in the first embodiment.
  • FIG. 8A is a diagram showing the first cam curve, the second cam curve and the switch-over curve in the third embodiment.
  • The value of the switch-over curve at each control timing is the value obtained by subjecting the position of the driven shaft at each control timing and the value on the second cam curve at each control timing to the weighted average, using the weight increasing from 0 to 1.
  • FIG. 8B is a diagram showing the cam curve to be used in the control unit 66 and the curve indicating the velocity, which is the curve resulting from differentiating the cam curve in the third embodiment.
  • Before the switch-over of the cam curves, the first cam curve is used, in the switch-over period of the cam curves, the switch-over curve is used, and after the switch-over of the cam curves, the second cam curve is used.
  • As described above, according to the present embodiment, since in the switch-over period of the cam curves, the switch-over curve is found by the weighted average of the current position of the driven shaft and the second cam curve, the cam curves can be switched with ease and without delay.
  • [Modification 1 of Third Embodiment] In the present modification, the first data is the position of the driven shaft at the start timing of the switch-over period.
  • The second data is the value on the second cam curve at each control timing as in the first embodiment.
  • As described above, according to the present embodiment, since in the switch-over period of the cam curves, the switch-over curve is found by the weighted average of the position of the driven shaft at the start timing of the switch-over period and the second cam curve, the cam curves can be switched with ease and without delay.
  • The present invention is not limited to the above embodiments, but for example, includes the following modifications as well.
  • [Modification 1] The weight “a” may change as an n-th order function with respect to clock time. “n” is a positive real number. When “n” is 1, the weight “a” is a function that changes as a straight line as in the first embodiment. When “n” is not 1, the weight “a” is a function that changes as a curve.
  • For example, when θ associated with clock time is a phase of the main shaft, a(θ)=(θ/2π)0.5 can be established. When the start timing of the switch-over period is set to θ=0, and the end timing of the switch-over period is set to θ=2π, a(0)=0, a(2π)=1 are established.
  • [Modification 2] The weight “a” may change as a sine function with respect to clock time. For example, when 0 is the phase of the main shaft, a(θ)=sin(θ/4) can be established. When the start timing of the switch-over period is set to θ=0, and the end timing of the switch-over period is set to θ=2π, a(0)=0, a(2π)=1 are established.
  • [Modification 3] The weight “a” may change as a cosine function with respect to clock time. For example, when θ is the phase of the main shaft, a(θ)=cos(θ/4−π/2) can be established. When the start timing of the switch-over period is set to θ=0, and the end timing of the switch-over period is set to θ=2π, a(0)=0, a(2π)=1 are established.
  • The embodiments disclosed here should be considered to be illustrative in all the points, and not limitative. It is intended that the scope of the present invention is indicated not by the above description but by the scope of claims, and all modifications within meanings and the scope equivalent to the scope of claims are included.

Claims (13)

1. A synchronous control apparatus that executes synchronous control of a main shaft and a driven shaft in each control period, comprising:
a storage that stores a representation of a first cam curve and a representation of a second cam curve; and
a controller that calculates a position command value of the driven shaft to control the driven shaft with the calculated position command value,
wherein before switch-over of the cam curves, the controller finds the position command value to a driven-side member, based on a value on the first cam curve at each control timing,
after the switch-over of the cam curves, the controller finds the position command value, based on a value on the second cam curve at each control timing, and
in a switch-over period of the cam curves, the controller finds the position command value to the driven-side member based on a value obtained by utilizing first data based on one of the first cam curve and a position of the driven shaft and second data based on the second cam curve to provide a weighted average at each control timing.
2. The synchronous control apparatus according to claim 1, wherein in the weighted average, a weight is variable in conjunction with a main shaft position, and at start timing of the switch-over period, a weight of the first data is set larger than a weight of the second data, and at end timing of the switch-over period, the weight of the first data is set smaller than the weight of the second data.
3. The synchronous control apparatus according to claim 1, wherein the first data is the value on the first cam curve at each control timing.
4. The synchronous control apparatus according to claim 1, wherein the first data is the value on the first cam curve at start timing of the switch-over period.
5. The synchronous control apparatus according to claim 1, wherein the first data is the position of the driven shaft at each control timing.
6. The synchronous control apparatus according to claim 1, wherein the first data is the position of the driven shaft at start timing of the switch-over period.
7. The synchronous control apparatus according to claim 1, wherein the second data is the value on the second cam curve at each control timing.
8. The synchronous control apparatus according to claim 1, wherein the second data is the value on the second cam curve at end timing of the switch-over period.
9. The synchronous control apparatus according to claim 1, wherein when in the weighted average, a weight of the first data is (1-a), and a weight of the second data is “a”,
the weight “a” is 0 at start timing of the switch-over period, and monotonically increases as a time period advances in the switch-over period to reach 1 at end timing of the switch-over period.
10. The synchronous control apparatus according to claim 9, wherein the weight “a” changes as a linear function with respect to the time period.
11. The synchronous control apparatus according to claim 9, wherein the weight “a” changes as an n-th order function with respect to the time period, where “n” is a positive real number other than 1.
12. The synchronous control apparatus according to claim 9, wherein the weight “a” changes as a sine function with respect to the time period.
13. The synchronous control apparatus according to claim 9, wherein the weight “a” changes as a cosine function with respect to the time period.
US13/547,608 2011-08-03 2012-07-12 Synchronous control apparatus Active 2033-05-29 US8901870B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2011-170169 2011-08-03
JP2011170169A JP5879800B2 (en) 2011-08-03 2011-08-03 Synchronous control device

Publications (2)

Publication Number Publication Date
US20130033218A1 true US20130033218A1 (en) 2013-02-07
US8901870B2 US8901870B2 (en) 2014-12-02

Family

ID=46754293

Family Applications (1)

Application Number Title Priority Date Filing Date
US13/547,608 Active 2033-05-29 US8901870B2 (en) 2011-08-03 2012-07-12 Synchronous control apparatus

Country Status (4)

Country Link
US (1) US8901870B2 (en)
EP (1) EP2555068B1 (en)
JP (1) JP5879800B2 (en)
CN (1) CN102914992B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140114446A1 (en) * 2012-10-18 2014-04-24 Delta Electro-Optics (Wujiang) Ltd. Multi-driver control method and apparatus thereof
US20150177723A1 (en) * 2013-12-20 2015-06-25 Omron Corporation Control unit, output control method and program
US9112500B2 (en) * 2014-01-10 2015-08-18 Lsis Co., Ltd. Method of outputting positioning pulse by PLC
US20160259311A1 (en) * 2015-03-04 2016-09-08 Omron Corporation Control device and method of synchronizing control
EP3822734A4 (en) * 2018-07-11 2022-03-30 OMRON Corporation Control device and control method

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6038189B2 (en) * 2013-02-01 2016-12-07 三菱電機株式会社 Synchronous control device
JP6834232B2 (en) * 2016-08-09 2021-02-24 オムロン株式会社 Information processing system, information processing device, work position identification method, and work position identification program
CN108415375B (en) * 2018-02-07 2019-12-27 大连理工大学 Electronic cam control method for multi-spindle machining
CN110174870B (en) * 2019-05-17 2020-10-30 珠海格力电器股份有限公司 PLC timing method, PLC timer and PLC controller
CN112305991B (en) * 2020-10-28 2022-03-01 南通通机股份有限公司 Electrical control device and control method of four-knife roll printing block cutting machine

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05189018A (en) * 1992-01-16 1993-07-30 Mitsubishi Electric Corp Numerical controller
JPH06301423A (en) * 1993-04-12 1994-10-28 Yokogawa Electric Corp Control system for multiple axes
US5528506A (en) * 1991-08-30 1996-06-18 Makino Milling Machine Co., Ltd. Feed rate control method and apparatus in numerical control system
US6246201B1 (en) * 1999-12-30 2001-06-12 Ge Fanuc Automation North America Inc. Electronic cam control system
US20040049302A1 (en) * 2000-10-19 2004-03-11 Ikuo Nagamatsu Electronic cam device and method of preparing cam data in electronic cam device
US20060271208A1 (en) * 2002-06-19 2006-11-30 Rockwell Automation Technologies, Inc. Output cam system and method
US7603188B2 (en) * 2004-11-17 2009-10-13 Omron Corporation Servo motor control system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59183413A (en) 1983-04-01 1984-10-18 Mitsubishi Electric Corp Control system of articulated robot
JP3152404B2 (en) 1991-10-30 2001-04-03 株式会社牧野フライス製作所 Feed rate control method and apparatus in numerical control
JPH1165619A (en) * 1997-08-25 1999-03-09 Toshiba Corp Signal processor and method for changing operation condition of the same and method for switching measuring equipment of the signal processor
JP3452899B2 (en) * 2000-12-28 2003-10-06 ファナック株式会社 Synchronous control method and device
US6815917B2 (en) * 2001-04-27 2004-11-09 Citizen Watch Co., Ltd. Automatic lathe, method for controlling the same, and device for controlling the same
CN100447688C (en) * 2004-11-17 2008-12-31 欧姆龙株式会社 Method of controlling electronic cam and servo motor control system
JP2007328796A (en) * 2004-11-17 2007-12-20 Omron Corp Method of controlling electronic cam
JP4494280B2 (en) * 2005-04-11 2010-06-30 三菱電機株式会社 Electronic cam control device
JP5278758B2 (en) * 2009-05-15 2013-09-04 本田技研工業株式会社 Cam drive device and processing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5528506A (en) * 1991-08-30 1996-06-18 Makino Milling Machine Co., Ltd. Feed rate control method and apparatus in numerical control system
JPH05189018A (en) * 1992-01-16 1993-07-30 Mitsubishi Electric Corp Numerical controller
JPH06301423A (en) * 1993-04-12 1994-10-28 Yokogawa Electric Corp Control system for multiple axes
US6246201B1 (en) * 1999-12-30 2001-06-12 Ge Fanuc Automation North America Inc. Electronic cam control system
US20040049302A1 (en) * 2000-10-19 2004-03-11 Ikuo Nagamatsu Electronic cam device and method of preparing cam data in electronic cam device
US20060271208A1 (en) * 2002-06-19 2006-11-30 Rockwell Automation Technologies, Inc. Output cam system and method
US7603188B2 (en) * 2004-11-17 2009-10-13 Omron Corporation Servo motor control system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140114446A1 (en) * 2012-10-18 2014-04-24 Delta Electro-Optics (Wujiang) Ltd. Multi-driver control method and apparatus thereof
US9310796B2 (en) * 2012-10-18 2016-04-12 Delta Electro-Optics (Wujiang) Ltd. Multi-driver control method and apparatus thereof
US20150177723A1 (en) * 2013-12-20 2015-06-25 Omron Corporation Control unit, output control method and program
US9753447B2 (en) * 2013-12-20 2017-09-05 Omron Corporation Control unit, output control method and program
US9112500B2 (en) * 2014-01-10 2015-08-18 Lsis Co., Ltd. Method of outputting positioning pulse by PLC
US20160259311A1 (en) * 2015-03-04 2016-09-08 Omron Corporation Control device and method of synchronizing control
US10268183B2 (en) * 2015-03-04 2019-04-23 Omron Corporation Control device and method of synchronizing control
EP3822734A4 (en) * 2018-07-11 2022-03-30 OMRON Corporation Control device and control method

Also Published As

Publication number Publication date
CN102914992A (en) 2013-02-06
EP2555068A1 (en) 2013-02-06
EP2555068B1 (en) 2016-06-01
JP2013037385A (en) 2013-02-21
CN102914992B (en) 2015-01-21
JP5879800B2 (en) 2016-03-08
US8901870B2 (en) 2014-12-02

Similar Documents

Publication Publication Date Title
US8901870B2 (en) Synchronous control apparatus
US20130002185A1 (en) Synchronous control apparatus, synchronous control method, synchronous control program, and computer-readable recording medium recording synchronous control program
US10274936B2 (en) Control apparatus
JP4752984B1 (en) PLC CPU unit, PLC system program, and recording medium storing PLC system program
JP4877423B1 (en) PLC CPU unit, PLC system program, and recording medium storing PLC system program
JP4807475B1 (en) Arithmetic unit, output control method, and program
JP4973792B1 (en) Arithmetic unit, output control method, and program
JP6488830B2 (en) Control device
JP6409557B2 (en) Control device, controller system, output control method, and program
WO2012124138A1 (en) Controller support device, controller support program to be executed in said device, and recording medium storing said program
US8504176B2 (en) CPU unit of PLC, system program for PLC, and recording medium storing system program for PLC
US8977534B2 (en) Controller support apparatus, controller support program executed on the apparatus, storage medium storing the program, and method of estimating execution time of control program
JP6729746B2 (en) Control device
CN108886481B (en) Communication control system and communication control method
EP3361635B1 (en) Control system and pulse output device
JP4748286B1 (en) Controller support apparatus, controller support program to be executed in the apparatus, recording medium storing the program, and method for estimating execution time of control program
JP2016194831A (en) Controller
JP4877424B1 (en) PLC CPU unit, PLC system program, and recording medium storing PLC system program
WO2012124145A1 (en) Computation unit, assistance unit, assistance program, recording medium storing assistance program, and operation method in assistance device
WO2015173886A1 (en) Control device and control method

Legal Events

Date Code Title Description
AS Assignment

Owner name: OMRON CORPORATION, JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:YAMADA, TAKAAKI;SAWARAGI, HIROSHI;SHIMAMURA, JUNJI;SIGNING DATES FROM 20120806 TO 20120808;REEL/FRAME:028866/0769

STCF Information on status: patent grant

Free format text: PATENTED CASE

FEPP Fee payment procedure

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551)

Year of fee payment: 4

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 8