WO2018078821A1 - 電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法 - Google Patents

電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法 Download PDF

Info

Publication number
WO2018078821A1
WO2018078821A1 PCT/JP2016/082158 JP2016082158W WO2018078821A1 WO 2018078821 A1 WO2018078821 A1 WO 2018078821A1 JP 2016082158 W JP2016082158 W JP 2016082158W WO 2018078821 A1 WO2018078821 A1 WO 2018078821A1
Authority
WO
WIPO (PCT)
Prior art keywords
unit
signal
programmable controller
synchronization
synchronization signal
Prior art date
Application number
PCT/JP2016/082158
Other languages
English (en)
French (fr)
Inventor
一樹 山中
金子 直樹
Original Assignee
三菱電機株式会社
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 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to JP2017539052A priority Critical patent/JPWO2018078821A1/ja
Priority to PCT/JP2016/082158 priority patent/WO2018078821A1/ja
Publication of WO2018078821A1 publication Critical patent/WO2018078821A1/ja

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/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

Definitions

  • the present invention relates to an electronic device used in a programmable controller, a programmable controller, a programmable controller system, and a synchronization method.
  • PLCs Programmable Logic Controllers, hereinafter referred to as programmable controllers
  • programmable controllers are configured by combining various extension units depending on the purpose of control in addition to a CPU (Central Processing Unit) unit and a power supply unit.
  • CPU Central Processing Unit
  • programmable controller having such a configuration, in order to synchronize the control timing of each unit, inter-unit synchronization processing is performed to synchronize the units (Patent Document 1).
  • the programmable controller can synchronize the timing which executes a program in each unit, and the stable control becomes possible continuously.
  • the present invention has been made in view of the above, and an object thereof is to obtain an electronic device that is mounted on a programmable controller and can be synchronized with devices other than units in the programmable controller.
  • the present invention is an electronic device mounted on a programmable controller, and is used to synchronize a plurality of electronic devices mounted on the programmable controller.
  • a signal acquisition unit that acquires a synchronization signal, which is an electrical signal, and a signal output unit that outputs the synchronization signal to an external device of the programmable controller.
  • the electronic device according to the present invention is mounted on the programmable controller and has an effect that it can be synchronized with devices other than the unit in the programmable controller.
  • FIG. 3 is a block diagram illustrating a configuration example of a synchronization unit according to the first embodiment.
  • FIG. 1 is a diagram illustrating an example of a hardware configuration of a synchronization unit according to the first embodiment;
  • FIG. 3 is a block diagram showing a configuration example of a synchronization unit according to the second embodiment.
  • FIG. 1 is a diagram illustrating an example of a hardware configuration of a synchronization unit according to the first embodiment
  • FIG. 3 is a block diagram showing a configuration example of a synchronization unit according to the second embodiment.
  • FIG. 1 is a diagram illustrating a configuration example of a programmable controller system 1 including a programmable controller on which the synchronization unit according to the first embodiment is mounted.
  • the programmable controller system 1 constitutes a transport apparatus 10 that is the equipment shown in FIG. 1 in the field of FA (Factory Automation).
  • the transport apparatus 10 that is equipment is related to the workpiece W that is a detection target.
  • the facility is the transport device 10 that transports the workpiece W, but is not limited to the transport device 10 and may be various devices related to the manufacture or processing of the workpiece W.
  • the detection target is the workpiece W conveyed by the facility, but is not limited to the workpiece W, and may be an apparatus or a component that configures the facility itself.
  • the conveying device 10 as equipment related to the workpiece W is separated from the driving roller 12 by a driving roller 12 that rotates around the axis by a motor 11 that is a driving source. And a driven roller 13 that is arranged in parallel and is provided so as to be rotatable around an axis.
  • the conveying device 10 includes an endless conveying belt 14 that is stretched between a driving roller 12 and a driven roller 13, and an encoder 15 that detects the rotation of the driven roller 13.
  • the motor 11 rotates the driving roller 12 around the axis, and the conveying belt 14 circulates between the driving roller 12 and the driven roller 13.
  • the conveyance device 10 arranges the workpiece W on the conveyance belt 14 and circulates the conveyance belt 14 to convey the workpiece W in the arrow A direction. Further, the transport device 10 grasps the position of the workpiece W based on the rotation of the driven roller 13 detected by the encoder 15.
  • the programmable controller system 1 includes a programmable controller 20 of the control system # 1 and a programmable controller 21 of the control system # 2, as shown in FIG.
  • the programmable controller 20 operates as a master
  • the programmable controller 21 operates as a slave
  • FIG. 2 is a diagram illustrating an example of the inter-unit synchronization signal SS generated by the programmable controller 20 according to the first embodiment and output to another programmable controller 21.
  • the horizontal axis indicates time, and the vertical axis indicates the output level of the inter-unit synchronization signal SS.
  • the programmable controller 20 as a master generates a clock signal having a constant period and a high-to-low time ratio, that is, a duty ratio of 50:50 as the inter-unit synchronization signal SS.
  • the programmable controller 20 outputs the generated inter-unit synchronization signal SS to the programmable controller 21 that is a slave.
  • the number of slave-side programmable controllers that can be connected is not limited to one, and two or more slave-side programmable controllers can be connected.
  • the programmable controllers 20 and 21 there is an upper limit to the number of detection means 2 that can be connected to the analog input unit 3.
  • the number of units that can be mounted on each programmable controller 20, 21 there is also an upper limit to the number of units that can be mounted on each programmable controller 20, 21. Therefore, the number of detection means 2 connectable to each programmable controller 20 and 21 is also determined.
  • a plurality of control systems of programmable controllers can be connected, so that more detection means 2 can be connected. Thereby, for example, when the workpiece W shown in FIG.
  • the programmable controller system 1 is a large iron plate, the programmable controller system 1 can simultaneously measure the thickness T of the workpiece W at more positions as compared with the case of the programmable controller 20 alone. Is possible.
  • the programmable controller system 1 can easily add a slave-side programmable controller depending on the size of the workpiece W, that is, the number of necessary detection means 2.
  • the configuration of the programmable controller 20 will be described.
  • the programmable controller 20 includes a plurality of detection units 2 that detect the state quantity of the workpiece W, and a plurality of analog input units 3 that convert analog signals that are detection results of the plurality of detection units 2 into digital signals DS, respectively.
  • the programmable controller 20 outputs the synchronization unit 4 that outputs the inter-unit synchronization signal SS to the programmable controller 21 that is a slave, the control unit 5 that controls other units that constitute the programmable controller 20, and the encoder 15 that is an external device.
  • the input unit 6 that outputs the inter-unit synchronization signal SS to the other units constituting the programmable controller 20 at the same time.
  • the plurality of analog input units 3, the synchronization unit 4, the control unit 5, and the input unit 6 are connected to each other via a communication bus B via bus interfaces 31, 41, 51, 61.
  • the analog input unit 3, the synchronization unit 4, the control unit 5, and the input unit 6 are electronic devices.
  • the detection unit 2 is configured by a laser sensor that detects the thickness T, which is a state quantity of the work W disposed on the conveyor belt 14, but is not limited thereto.
  • the detection means 2 is not limited to the thickness T of the workpiece W, and may be various sensors that detect various state quantities.
  • the plurality of detection means 2 are the same state quantities of the workpiece W. Although a certain thickness T is detected, the same state quantity may not be detected.
  • the detection means 2 configured by a laser sensor detects the thickness T of the workpiece W by irradiating the workpiece W with laser light and receiving the laser beam reflected by the workpiece W. .
  • the detection result of the detection means 2 is a current value or a voltage value whose magnitude changes according to the thickness T of the workpiece W. That is, the detection result of the detection means 2 is an analog signal whose magnitude changes according to the thickness T of the workpiece W.
  • eight detection means 2 are provided. However, the number of detection means 2 is not limited to this, and any number of detection means 2 may be provided as long as a plurality of detection means 2 are provided. Further, the detection means 2 measures the thickness T at different positions of the workpiece W. In the first embodiment, the plurality of detection means 2 are arranged along the conveyance direction of the workpiece W of the conveyance apparatus 10, but the arrangement of the detection means 2 is not limited to this.
  • the detecting means 2 is connected to the analog input unit 3.
  • the detection means 2 always detects the thickness T, which is the state quantity of the workpiece W, and always outputs the detection result to the analog input unit 3.
  • T the thickness of the workpiece W
  • the detecting means 2 always detects the thickness T, which is the state quantity of the workpiece W, and always outputs the detection result to the analog input unit 3.
  • two analog input units 3 are provided, but any number of analog input units 3 may be provided as long as a plurality of analog input units 3 are provided.
  • each analog input unit 3 is connected to the four detection means 2, but is not limited thereto, and may be connected to one or more detection means 2.
  • the analog input units 3 each convert an analog signal that is a detection result obtained from the detection means 2 into a digital signal DS.
  • the digital signal DS converted from the analog signal by the analog input unit 3 is a digital signal DS that determines the size of the analog signal, that is, the thickness T of the workpiece W, in more than two stages.
  • the thickness T of the work W is determined in 256 steps.
  • the work W The thickness T is determined in 65536 stages.
  • the analog input unit 3 converts the analog signal, which is the detection result of the detection means 2, into the thickness of the workpiece W at the rising or falling timing of the inter-unit synchronization signal SS. It is converted into a digital signal DS that defines T. That is, the plurality of analog input units 3 convert analog signals, which are detection results of all the detection means 2, into digital signals DS in synchronization with each other based on the inputted inter-unit synchronization signal SS.
  • the synchronization unit 4 takes in the inter-unit synchronization signal SS generated by the input unit 6 and outputs the inter-unit synchronization signal SS to the programmable controller 21 that is a slave.
  • the detailed configuration of the synchronization unit 4 will be described later.
  • control unit 5 When the inter-unit synchronization signal SS is input, the control unit 5 is a device that acquires and stores a digital signal DS that defines the thickness T of the workpiece W converted by the analog input unit 3. The control unit 5 is connected so that the computer 8 can communicate.
  • the input unit 6 is connected to an encoder 15 that is an external device.
  • the input unit 6 acquires the signal S output from the encoder 15, generates the inter-unit synchronization signal SS based on the signal S input from the encoder 15, and generates the generated inter-unit synchronization signal SS in the programmable controller 20. Output to other units.
  • the input unit 6 is an electronic device that generates an inter-unit synchronization signal SS.
  • the inter-unit synchronization signal SS is an electric signal for starting to convert an analog signal that is a detection result of the plurality of detection means 2 into a digital signal DS in synchronization with the plurality of analog input units 3.
  • the electric signal here is a digital signal indicating “0” or “1”.
  • the input unit 3 starts to convert an analog signal, which is a detection result of the plurality of detection means 2, into a digital signal DS.
  • the input unit 3 determines the start of conversion based on the value of the electrical signal at the acquired timing, not the combination of the values of the electrical signal.
  • the external device connected to the input unit 6 is the encoder 15, but is not limited to the encoder 15.
  • the signal S output from the encoder 15 to the input unit 6 is a digital signal indicating “0” or “1”, and is a rectangular signal.
  • the input unit 6 acquires a signal S, that is, a digital signal indicating “0” or “1” from the encoder 15 which is an external device.
  • the computer 8 creates a control program to be executed by the programmable controller 20 and outputs it to the programmable controller 20.
  • the programmable controller 20 acquires and stores the detection result of the detection means 2 by executing the control program.
  • the computer 8 outputs setting information to each analog input unit 3 via the control unit 5 and outputs setting information about each analog input unit 3 to the input unit 6.
  • the setting information is information indicating whether or not to start converting the analog signal into the digital signal DS in synchronization with the input of the inter-unit synchronization signal SS in the analog input unit 3.
  • the programmable controller 20 may include an analog input unit 3 that is not synchronized with other analog input units 3 in addition to the analog input unit 3 that starts to convert an analog signal into a digital signal DS in synchronization. Good.
  • the programmable controller 21 includes a plurality of detection means 2, a plurality of analog input units 3, a control unit 5, and a synchronization unit 7 that acquires an inter-unit synchronization signal SS generated by another programmable controller 20.
  • the plurality of analog input units 3, the control unit 5, and the synchronization unit 7 are connected to each other via a communication bus B via bus interfaces 31, 51, 71.
  • the analog input unit 3, the control unit 5, and the synchronization unit 7 are electronic devices.
  • the configuration of the detection means 2, the analog input unit 3, and the control unit 5 is the same as that of the programmable controller 20.
  • the synchronization unit 7 When the synchronization unit 7 acquires the inter-unit synchronization signal SS generated by the programmable controller 20, the synchronization unit 7 outputs the acquired inter-unit synchronization signal SS to other units in the programmable controller 21.
  • the timing at which each analog input unit 3 converts the analog signal that is the detection result of the detection means 2 into the digital signal DS is synchronized by the inter-unit synchronization signal SS generated by the input unit 6. Can be made.
  • the programmable controller 20 outputs the inter-unit synchronization signal SS generated by the input unit 6 from the synchronization unit 4 to the programmable controller 21.
  • the control timing of the programmable controllers 20, 21, specifically, the analog input unit 3 connected to each programmable controller 20, 21 digitally outputs an analog signal that is a detection result of the detection means 2.
  • the timing for conversion to the signal DS can be synchronized.
  • the timing used for synchronization of the analog input unit 3 to which the programmable controller 20 is connected and the inter-unit synchronization signal SS are output to the programmable controller 21 until the analog input unit 3 connected to the programmable controller 21 is used for synchronization. Strictly speaking, a slight error occurs in the timing. However, in the actual system, the conversion cycle of the analog input unit 3 is about several tens to several hundreds ⁇ s, whereas the error is several tens of ns, so that the detection means 2 is synchronized between the programmable controllers 20 and 21. It does not matter for the purpose.
  • the synchronization of the control timing in the programmable controller system 1 is not limited to the conversion timing of the analog input unit 3.
  • the start timing of processing corresponding to the units can be synchronized between units connected to different programmable controllers by an inter-unit synchronization signal SS, and an output unit not shown in FIG. It is also possible to synchronize the output timing at each port.
  • the synchronization unit 4 of the programmable controller 20 may output the inter-unit synchronization signal SS to a device other than the programmable controller.
  • FIG. 3 is a block diagram of a configuration example of the synchronization unit 4 according to the first embodiment.
  • the synchronization unit 4 includes a signal acquisition unit 101, a correction unit 102, and a signal output unit 103.
  • the signal acquisition unit 101 is generated by the input unit 6 mounted on the programmable controller 20 on which the synchronization unit 4 including itself is mounted, and is used to synchronize a plurality of units mounted on the programmable controller 20.
  • An inter-unit synchronization signal SS that is an electrical signal is acquired.
  • the signal acquisition unit 101 acquires the inter-unit synchronization signal SS generated by the input unit 6 from the communication bus B.
  • the correction unit 102 corrects the waveform of the inter-unit synchronization signal SS acquired by the signal acquisition unit 101.
  • the correction unit 102 amplifies the amplitude of the inter-unit synchronization signal SS with respect to the inter-unit synchronization signal SS acquired by the signal acquisition unit 101.
  • correction is performed such as adding a clock or controlling the frequency of the inter-unit synchronization signal SS to be constant.
  • the correction unit 102 sets the duty ratio to 50:50 when the duty ratio of the inter-unit synchronization signal SS deviates from 50:50 with respect to the inter-unit synchronization signal SS acquired by the signal acquisition unit 101.
  • Corrections such as controlling, inverting high and low of the inter-unit synchronization signal SS, delaying the timing of outputting the inter-unit synchronization signal SS, and the like are performed.
  • the correction unit 102 performs at least one correction among the above correction contents.
  • the correction content for the inter-unit synchronization signal SS in the correction unit 102 is set by the user via the control unit 5 using the computer 8.
  • the correction unit 102 does not correct the inter-unit synchronization signal SS acquired by the signal acquisition unit 101 according to the contents set by the computer 8, and the inter-unit synchronization signal SS acquired by the signal acquisition unit 101. May be output to the signal output unit 103 as they are.
  • the correction unit 102 outputs the inter-unit synchronization signal SS corrected by the correction unit 102 or the inter-unit synchronization signal SS acquired by the signal acquisition unit 101 to the signal output unit 103 as it is.
  • the signal output unit 103 obtains the inter-unit synchronization signal SS corrected by the correction unit 102 acquired from the correction unit 102 or the inter-unit synchronization signal SS that has not been corrected by the correction unit 102, an external device of the programmable controller 20, In the example of FIG. 1, it outputs to the programmable controller 21 of control system # 2.
  • the programmable controller system 1 is equipped with the input unit 6 and the synchronization unit 4, these may be integrated.
  • the synchronization unit 4 acquires a signal from the encoder 15 by the signal acquisition unit 101.
  • the analog signal that is the detection result of the detection means 2 is converted into the digital signal DS at a constant period regardless of the input from the encoder 15, the input unit 6 is not connected to the encoder 15, Such a unit may generate an electric signal having a constant period.
  • the programmable controller 20 generates an electrical signal that is an inter-detection unit synchronization signal corresponding to the inter-unit synchronization signal SS, and a plurality of connected detections based on the generated electrical signal.
  • the conversion of the analog signal, which is the detection result of the means 2, into the digital signal DS is started, and the generated electric signal is output as a synchronization signal to another external device.
  • the synchronization signal output to other external devices include an inter-unit synchronization signal or an inter-detection means synchronization signal.
  • the timing for converting the analog signal, which is the detection result of the detection means 2, into the digital signal DS is synchronized every time based on the input inter-unit synchronization signal SS.
  • the synchronization may be synchronized once every n times without being synchronized.
  • the correction unit 102 performs a plurality of corrections having different contents on the inter-unit synchronization signal SS acquired by the signal acquisition unit 101, and a plurality of corrections having different correction contents are performed.
  • the inter-unit synchronization signal SS is output to the signal output unit 103.
  • the programmable controller 21 and a device other than the programmable controller are connected to the programmable controller 20 and the clock frequency of the device other than the programmable controller is 1 / n that of the programmable controller 21.
  • the correction unit 102 of the synchronization unit 4 outputs an inter-unit synchronization signal SS ′ whose frequency is 1 / n times the inter-unit synchronization signal SS acquired by the signal acquisition unit 101 to a device other than the programmable controller. Further, the inter-unit synchronization signal SS is output to the programmable controller 21.
  • the detection means connected to the programmable controller 21 converts an analog signal into a digital signal n times, a device other than the programmable controller performs a desired operation in synchronization with the conversion timing of the detection means 2. Can do.
  • the signal output unit 103 may output it at a fixed cycle that is a prescribed cycle or may output it at a non-fixed cycle. That is, the signal output unit 103 may provide a period in which the inter-unit synchronization signal SS is periodically output and a period in which the inter-unit synchronization signal SS is not output. The period in which the inter-unit synchronization signal SS is not output is changed in each period. May be.
  • the method for outputting the inter-unit synchronization signal SS in the signal output unit 103 is set by the user via the control unit 5 using the computer 8, for example.
  • FIG. 4 is a flowchart showing an operation until the inter-unit synchronization signal SS is generated and output in the programmable controller 20 according to the first embodiment.
  • the input unit 6 generates the inter-unit synchronization signal SS based on the signal S acquired from the encoder 15 (step S1).
  • the signal acquisition unit 101 of the synchronization unit 4 acquires the inter-unit synchronization signal SS generated by the input unit 6 (step S2).
  • the correction unit 102 corrects the inter-unit synchronization signal SS acquired by the signal acquisition unit 101 (step S3).
  • the signal output unit 103 outputs the corrected inter-unit synchronization signal SS to the programmable controller 21 of the other control system # 2 (step S4).
  • FIG. 5 is a diagram illustrating an example of a hardware configuration of the synchronization unit 4 according to the first embodiment.
  • the synchronization unit 4 includes a bus interface 41 connected to both the communication circuit 42 and the communication bus B, and a communication circuit 42 that acquires the inter-unit synchronization signal SS via the bus interface 41. Is provided.
  • the synchronization unit 4 includes a CPU 43 that executes a computer program and a memory 44 that stores the computer program.
  • the synchronization unit 4 includes an output circuit 45 that outputs the inter-unit synchronization signal SS from the output port 46, and an output port 46 that is connected to the other programmable controller 21 and sends out the inter-unit synchronization signal SS.
  • the communication circuit 42, the CPU 43, the memory 44, and the output circuit 45 are connected via an internal bus B4.
  • the signal acquisition unit 101 is realized by the bus interface 41 and the communication circuit 42.
  • the correction unit 102 is realized by the CPU 43 and the memory 44.
  • the signal output unit 103 is realized by the output circuit 45 and the output port 46.
  • the function of the synchronization unit 4 is realized by the CPU 43 reading and executing a computer program stored in the memory 44.
  • the computer program is realized by software, firmware, or a combination of software and firmware.
  • the memory 44 includes a storage area capable of storing a computer program or data that can be read by a computer.
  • the memory 44 is configured by a nonvolatile semiconductor memory or a volatile semiconductor memory. Non-volatile semiconductor memory or volatile semiconductor memory: RAM (Random Access Memory), ROM (Read Only Memory), flash memory, EPROM (Erasable Programmable Read Only Memory), or EEPROM (Electrically Erasable Programmable Read Only Memory) ) Can be used.
  • the memory 44 may be configured by at least one of a magnetic disk, an optical disk, and a magneto-optical disk.
  • the communication circuit 42 and the output circuit 45 are respectively a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or two of these. It is realized by combining the above. Further, the communication circuit 42 and the output circuit 45 may be realized by one ASIC or FPGA.
  • the synchronization unit 4 acquires the inter-unit synchronization signal SS generated by the programmable controller 20 on which the synchronization unit 4 is mounted, corrects the inter-unit synchronization signal SS,
  • the inter-unit synchronization signal SS is output to an external device.
  • the programmable controller 20 can synchronize with external apparatuses, for example, the programmable controller 21 of a different control system, and the control which synchronized as the programmable controller system 1 is attained.
  • the programmable controller system 1 can connect a plurality of programmable controller programmable controllers, and therefore, more detection means 2 are connected than one programmable controller.
  • the thickness T of the workpiece W can be simultaneously measured at more positions.
  • the programmable controller 20 can also synchronize with devices other than the programmable controller by outputting the inter-unit synchronization signal SS to devices other than the programmable controller.
  • the synchronization unit 4 performs a plurality of corrections with different contents on the inter-unit synchronization signal SS and outputs each, thereby realizing synchronization once every n times even between devices having different clock frequencies. Can do.
  • Embodiment 2 FIG.
  • the programmable controller 20 operates as a master, and the synchronization unit 4 outputs the inter-unit synchronization signal SS.
  • the synchronization unit 4 outputs the inter-unit synchronization signal SS.
  • a case where a programmable controller operating as a master can operate as a slave will be described. A different part from Embodiment 1 is demonstrated.
  • FIG. 6 is a block diagram of a configuration example of the synchronization unit 4a according to the second embodiment.
  • the synchronization unit 4 a includes a signal acquisition unit 104 and a signal output unit 105 in addition to the configuration of the synchronization unit 4.
  • the configuration of the programmable controller system in the second embodiment is such that the synchronization unit 4 is replaced with a synchronization unit 4a with respect to the programmable controller system 1 shown in FIG. That is, the synchronization unit 4 of the programmable controller 20 is replaced with the synchronization unit 4a.
  • the programmable controller system in the second embodiment is referred to as a programmable controller system 1a.
  • the programmable controller to which the synchronization unit 4a is attached in the second embodiment is referred to as a programmable controller 20a.
  • the signal acquisition unit 101 is a first signal acquisition unit
  • the signal output unit 103 is a first signal output unit.
  • the signal acquisition unit 104 is a second signal acquisition unit that acquires an inter-unit synchronization signal SS generated by a device external to the programmable controller 20a.
  • the external device is a device that can generate the inter-unit synchronization signal SS, like the programmable controller 20 of the first embodiment.
  • the signal output unit 105 is a second signal output unit that outputs the inter-unit synchronization signal SS acquired by the signal acquisition unit 104 to another unit mounted on the programmable controller 20a.
  • the synchronization unit 4a when the programmable controller 20a operates as a master, as described in the first embodiment, the signal acquisition unit 101, the correction unit 102, and the signal output unit 103 operate, and the signal acquisition unit 104 and The signal output unit 105 does not operate.
  • the synchronization unit 4a when the programmable controller 20a operates as a slave, the signal acquisition unit 104 and the signal output unit 105 operate, and the signal acquisition unit 101, the correction unit 102, and the signal output unit 103 operate. Absent.
  • the programmable controller 20a can operate as either a master or a slave depending on the setting of the programmable controller system 1a, but does not operate as a master and a slave at the same time.
  • the programmable controller 20a operates only on either the master or the slave.
  • FIG. 7 is a flowchart showing an operation until the inter-unit synchronization signal SS is acquired and output to another unit of the programmable controller 20a in the synchronization unit 4a according to the second embodiment.
  • the signal acquisition unit 104 acquires the inter-unit synchronization signal SS generated by an external device (step S11).
  • the signal output unit 105 outputs the inter-unit synchronization signal SS acquired by the signal acquisition unit 104 to another unit mounted on the programmable controller 20a (Step S12).
  • the hardware configuration of the synchronization unit 4a is an input / output circuit capable of inputting / outputting signals to / from the output circuit 45 as compared to the hardware configuration of the synchronization unit 4 of the first embodiment shown in FIG. Can be realized by using an input / output port capable of transmitting and receiving signals.
  • the signal acquisition unit 101 and the signal output unit 105 are realized by the bus interface 41 and the communication circuit 42.
  • the correction unit 102 is realized by the CPU 43 and the memory 44.
  • the signal output unit 103 and the signal acquisition unit 104 are realized by the input / output circuit and the input / output port described above.
  • the synchronization unit 4a is generated by another programmable controller from another programmable controller that operates as a master.
  • the obtained inter-unit synchronization signal SS is obtained, and the obtained inter-unit synchronization signal SS is output to another unit mounted on the programmable controller 20a.
  • the programmable controller 20a can synchronize with other programmable controllers, and the control which took synchronization as the programmable controller system 1a is attained.
  • the configuration described in the above embodiment shows an example of the contents of the present invention, and can be combined with another known technique, and can be combined with other configurations without departing from the gist of the present invention. It is also possible to omit or change the part.
  • 1 programmable controller system 1 programmable controller system, 2 detection means, 3 analog input unit, 4, 7 synchronization unit, 5 control unit, 6 input unit, 8 computer, 10 transport device, 11 motor, 12 drive roller, 13 driven roller, 14 transport belt, 15 encoder, 20, 21 programmable controller, 101, 104 signal acquisition unit, 102 correction unit, 103, 105 signal output unit.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

プログラマブルコントローラに搭載された同期ユニット(4)であって、プログラマブルコントローラに搭載された複数の電子機器の間で同期をとるために使用される電気信号である同期信号を取得する信号取得部(101)と、同期信号をプログラマブルコントローラの外部の機器に出力する信号出力部(103)と、を備える。

Description

電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法
 本発明は、プログラマブルコントローラで使用される電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法に関する。
 従来、PLC(Programmable Logic Controller、以下、プログラマブルコントローラと称する)には、CPU(Central Processing Unit)ユニットおよび電源ユニットに加えて、制御の目的によって様々な拡張ユニットが組み合わせられて構成されるものがある。このような構成のプログラマブルコントローラでは、各ユニットの制御タイミングを合わせるため、各ユニット間で同期をとるユニット間同期処理が行われる(特許文献1)。これにより、プログラマブルコントローラは、各ユニットにおいてプログラムを実行するタイミングを合わせることができ、継続的に安定した制御が可能となる。
特開2016-110458号公報
 しかしながら、上記従来の技術によれば、1つの制御系のプログラマブルコントローラ内でユニット間同期処理が行われる。そのため、ある制御系のプログラマブルコントローラと異なる制御系のプログラマブルコントローラとの間では同期をとることができない、という問題があった。また、プログラマブルコントローラとユニットとしてプログラマブルコントローラに搭載できない外部の機器との間で同期をとることができない、という問題があった。
 本発明は、上記に鑑みてなされたものであって、プログラマブルコントローラに搭載され、プログラマブルコントローラ内のユニット以外の機器との間で同期をとることが可能な電子機器を得ることを目的とする。
 上述した課題を解決し、目的を達成するために、本発明は、プログラマブルコントローラに搭載された電子機器であり、プログラマブルコントローラに搭載された複数の電子機器の間で同期をとるために使用される電気信号である同期信号を取得する信号取得部と、同期信号をプログラマブルコントローラの外部の機器に出力する信号出力部と、を備えることを特徴とする。
 本発明にかかる電子機器は、プログラマブルコントローラに搭載され、プログラマブルコントローラ内のユニット以外の機器との間で同期をとることができる、という効果を奏する。
実施の形態1にかかる同期ユニットが搭載されたプログラマブルコントローラを含むプログラマブルコントローラシステムの構成例を示す図 実施の形態1にかかるプログラマブルコントローラで生成され、他のプログラマブルコントローラに出力されるユニット間同期信号の例を示す図 実施の形態1にかかる同期ユニットの構成例を示すブロック図 実施の形態1にかかるプログラマブルコントローラにおいてユニット間同期信号を生成し、出力するまでの動作を示すフローチャート 実施の形態1にかかる同期ユニットのハードウェアの構成の例を示す図 実施の形態2にかかる同期ユニットの構成例を示すブロック図 実施の形態2にかかる同期ユニットにおいてユニット間同期信号を取得してプログラマブルコントローラの他のユニットに出力するまでの動作を示すフローチャート
 以下に、本発明の実施の形態にかかる電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。
実施の形態1.
 図1は、実施の形態1にかかる同期ユニットが搭載されたプログラマブルコントローラを含むプログラマブルコントローラシステム1の構成例を示す図である。プログラマブルコントローラシステム1は、FA(Factory Automation)分野の図1に示す設備である搬送装置10を構成するものである。設備である搬送装置10は、検出対象物であるワークWに関係するものである。実施の形態1において、設備は、ワークWを搬送する搬送装置10であるが、搬送装置10に限定されることなく、ワークWの製造または加工に関する種々の装置でもよい。また、実施の形態1において、検出対象物は、設備により搬送されるワークWであるが、ワークWに限定されることなく、設備自体を構成する装置または部品でもよい。
 実施の形態1において、ワークWに関係する設備としての搬送装置10は、図1に示すように、駆動源であるモータ11により軸心回りに回転する駆動ローラ12と、駆動ローラ12から間隔をあけて平行に配置されかつ軸心回りに回転自在に設けられた従動ローラ13と、を備える。搬送装置10は、駆動ローラ12と従動ローラ13とに掛け渡された無端状の搬送ベルト14と、従動ローラ13の回転を検出するエンコーダ15とを備える。搬送装置10は、モータ11が駆動ローラ12を軸心回りに回転して、搬送ベルト14を駆動ローラ12と従動ローラ13との間で循環走行させる。搬送装置10は、搬送ベルト14上にワークWを配置し、搬送ベルト14を循環走行させることで、ワークWを矢印A方向に搬送する。また、搬送装置10は、エンコーダ15が検出した従動ローラ13の回転に基づいて、ワークWの位置を把握する。
 プログラマブルコントローラシステム1は、図1に示すように、制御系#1のプログラマブルコントローラ20、および制御系#2のプログラマブルコントローラ21を備える。プログラマブルコントローラシステム1では、プログラマブルコントローラ20がマスタとして動作し、プログラマブルコントローラ21がスレーブとして動作する。図2は、実施の形態1にかかるプログラマブルコントローラ20で生成され、他のプログラマブルコントローラ21に出力されるユニット間同期信号SSの例を示す図である。横軸は時間を示し、縦軸はユニット間同期信号SSの出力の大きさを示す。同期信号であるユニット間同期信号SSの出力の大きいときがハイであり、小さいときがローである。マスタであるプログラマブルコントローラ20は、図2に示すように、一定の周期であって、ハイとローの時間の比率すなわちデューティ比が50:50のクロック信号をユニット間同期信号SSとして生成する。プログラマブルコントローラ20は、生成したユニット間同期信号SSをスレーブであるプログラマブルコントローラ21に出力する。
 プログラマブルコントローラシステム1では、接続可能なスレーブ側のプログラマブルコントローラの数は1つに限定されず、2つ以上のスレーブ側のプログラマブルコントローラを接続することが可能である。プログラマブルコントローラ20,21において、アナログ入力ユニット3に接続可能な検出手段2の数には上限がある。また、各プログラマブルコントローラ20,21に搭載可能なユニット数にも上限がある。そのため、各プログラマブルコントローラ20,21に接続可能な検出手段2の数も決まっている。実施の形態1のプログラマブルコントローラシステム1では、複数の制御系のプログラマブルコントローラを接続することができるため、より多くの検出手段2を接続できる。これにより、例えば、図1に示すワークWが大きな鉄板の場合、プログラマブルコントローラシステム1は、プログラマブルコントローラ20のみの場合と比較して、より多くの位置でワークWの厚みTを同時に計測することが可能である。プログラマブルコントローラシステム1は、ワークWの大きさ、すなわち必要な検出手段2の数によって、スレーブ側のプログラマブルコントローラを容易に増設することができる。
 プログラマブルコントローラ20の構成について説明する。プログラマブルコントローラ20は、ワークWの状態量を検出する複数の検出手段2と、複数の検出手段2の検出結果であるアナログ信号をデジタル信号DSにそれぞれ変換する複数のアナログ入力ユニット3とを備える。プログラマブルコントローラ20は、スレーブであるプログラマブルコントローラ21にユニット間同期信号SSを出力する同期ユニット4と、プログラマブルコントローラ20を構成する他のユニットを制御する制御ユニット5と、外部機器であるエンコーダ15から出力された信号Sが入力され、プログラマブルコントローラ20を構成する他のユニットに同時にユニット間同期信号SSを出力する入力ユニット6と、を備える。複数のアナログ入力ユニット3、同期ユニット4、制御ユニット5、および入力ユニット6は、各々バスインタフェース31,41,51,61を介して、通信用バスBにより互いに通信可能に接続されている。アナログ入力ユニット3、同期ユニット4、制御ユニット5、および入力ユニット6は、電子機器である。
 実施の形態1において、検出手段2は、搬送ベルト14上に配置されたワークWの状態量である厚みTを検出するレーザセンサにより構成されるが、これに限定されない。検出手段2は、ワークWの厚みTに限らず、種々の状態量を検出する種々のセンサでもよい、また、実施の形態1において、複数の検出手段2は、ワークWの同一の状態量である厚みTを検出するが、同一の状態量を検出しなくてもよい。実施の形態1において、レーザセンサにより構成された検出手段2は、ワークWに向けてレーザ光を照射し、ワークWにより反射されたレーザ光を受光することにより、ワークWの厚みTを検出する。検出手段2の検出結果は、ワークWの厚みTに応じて大きさが変化する電流値または電圧値である。すなわち、検出手段2の検出結果は、ワークWの厚みTに応じて大きさが変化するアナログ信号である。実施の形態1において、検出手段2は、8つ設けられているが、これに限定されることなく、複数設けられれば幾つ設けられてもよい。また、検出手段2は、ワークWの互いに異なる位置の厚みTを測定する。実施の形態1において、複数の検出手段2は、搬送装置10のワークWの搬送方向に沿って並べられているが、検出手段2の配置はこれに限定されない。
 また、検出手段2は、アナログ入力ユニット3に接続している。検出手段2は、ワークWの状態量である厚みTを常に検出し、検出結果をアナログ入力ユニット3に常に出力する。実施の形態1において、アナログ入力ユニット3は、2つ設けられているが、複数設けられれば幾つ設けられてもよい。また、実施の形態1において、各アナログ入力ユニット3は、4つの検出手段2に接続されているが、これに限定されることなく、1つ以上の検出手段2に接続されていればよい。
 アナログ入力ユニット3は、それぞれ、検出手段2から取得した検出結果であるアナログ信号をデジタル信号DSに変換する。アナログ入力ユニット3がアナログ信号から変換するデジタル信号DSは、2段階を超える段階でアナログ信号の大きさすなわちワークWの厚みTを定めるデジタル信号DSである。デジタル信号DSは、アナログ入力ユニット3が8bitのデジタル信号DSを取り扱う場合には、ワークWの厚みTを256段階で定め、アナログ入力ユニット3が16bitのデジタル信号DSを取り扱う場合には、ワークWの厚みTを65536段階で定める。
 アナログ入力ユニット3は、バスインタフェース31からユニット間同期信号SSが入力されると、ユニット間同期信号SSの立ち上がりまたは立ち下がりのタイミングで、検出手段2の検出結果であるアナログ信号をワークWの厚みTを定めるデジタル信号DSに変換する。すなわち、複数のアナログ入力ユニット3は、入力されたユニット間同期信号SSに基づいて、互いに同期して全ての検出手段2の検出結果であるアナログ信号をデジタル信号DSに変換する。
 同期ユニット4は、入力ユニット6で生成されたユニット間同期信号SSを取り込み、ユニット間同期信号SSをスレーブであるプログラマブルコントローラ21に出力する。同期ユニット4の詳細な構成については後述する。
 制御ユニット5は、ユニット間同期信号SSが入力されると、アナログ入力ユニット3が変換したワークWの厚みTを定めるデジタル信号DSを取得し、記憶する装置である。制御ユニット5は、コンピュータ8が通信可能に接続している。
 入力ユニット6は、外部機器であるエンコーダ15に接続している。入力ユニット6は、エンコーダ15から出力された信号Sを取得し、エンコーダ15から入力された信号Sに基づいてユニット間同期信号SSを生成し、生成したユニット間同期信号SSをプログラマブルコントローラ20内の他のユニットに出力する。入力ユニット6は、ユニット間同期信号SSを生成する電子機器である。ユニット間同期信号SSは、複数のアナログ入力ユニット3に互いに同期して複数の検出手段2の検出結果であるアナログ信号をデジタル信号DSに変換することを開始させるための電気信号である。ここでいう電気信号は、「0」か「1」を示すデジタル信号である。入力ユニット3は、例えば、取得した電気信号が「1」から「0」に変化すると、複数の検出手段2の検出結果であるアナログ信号をデジタル信号DSに変換することを開始し、「0」から「1」に変化した場合には、変換を停止する。要するに入力ユニット3は、電気信号の値の組み合わせではなく、取得したタイミングでの電気信号の値によって、変換の開始を決定する。実施の形態1において、入力ユニット6に接続する外部機器はエンコーダ15であるが、エンコーダ15に限定されない。実施の形態1において、エンコーダ15が入力ユニット6に出力する信号Sは、「0」か「1」を示すデジタル信号であり、矩形状の信号である。入力ユニット6は、外部機器であるエンコーダ15から信号S、すなわち「0」か「1」を示すデジタル信号を取得するものである。
 コンピュータ8は、プログラマブルコントローラ20で実行される制御プログラムを作成して、プログラマブルコントローラ20に出力する。プログラマブルコントローラ20は、制御プログラムを実行することにより、検出手段2の検出結果を取得し、記憶する。
 コンピュータ8は、制御ユニット5を介して、各アナログ入力ユニット3に設定情報を出力するとともに、入力ユニット6に各アナログ入力ユニット3の設定情報を出力する。設定情報は、アナログ入力ユニット3においてユニット間同期信号SSが入力されると同期してアナログ信号をデジタル信号DSに変換することを開始するか否かを示す情報である。実施の形態1において、2つのアナログ入力ユニット3は、ユニット間同期信号SSが入力されると双方が同期してアナログ信号をデジタル信号DSに変換することを開始する。本発明において、プログラマブルコントローラ20は、同期してアナログ信号をデジタル信号DSに変換することを開始するアナログ入力ユニット3に加えて、他のアナログ入力ユニット3と同期しないアナログ入力ユニット3を備えてもよい。
 つぎに、プログラマブルコントローラ21の構成について説明する。プログラマブルコントローラ21は、複数の検出手段2と、複数のアナログ入力ユニット3と、制御ユニット5と、他のプログラマブルコントローラ20で生成されたユニット間同期信号SSを取得する同期ユニット7と、を備える。複数のアナログ入力ユニット3、制御ユニット5、および同期ユニット7は、各々バスインタフェース31,51,71を介して、通信用バスBにより互いに通信可能に接続されている。アナログ入力ユニット3、制御ユニット5、および同期ユニット7は、電子機器である。
 検出手段2、アナログ入力ユニット3、および制御ユニット5の構成は、プログラマブルコントローラ20と同様である。
 同期ユニット7は、プログラマブルコントローラ20で生成されたユニット間同期信号SSを取得すると、取得したユニット間同期信号SSをプログラマブルコントローラ21内の他のユニットに出力する。
 プログラマブルコントローラシステム1のプログラマブルコントローラ20では、入力ユニット6で生成されたユニット間同期信号SSによって、各アナログ入力ユニット3が検出手段2の検出結果であるアナログ信号をデジタル信号DSに変換するタイミングを同期させることができる。また、プログラマブルコントローラシステム1では、プログラマブルコントローラ20が、入力ユニット6で生成されたユニット間同期信号SSを同期ユニット4からプログラマブルコントローラ21に出力する。これにより、プログラマブルコントローラシステム1では、プログラマブルコントローラ20,21の制御タイミング、具体的には、各プログラマブルコントローラ20,21に接続されるアナログ入力ユニット3が検出手段2の検出結果であるアナログ信号をデジタル信号DSに変換するタイミングを同期させることができる。なお、プログラマブルコントローラ20が接続されるアナログ入力ユニット3の同期に用いるタイミングと、ユニット間同期信号SSをプログラマブルコントローラ21に出力し、プログラマブルコントローラ21に接続されるアナログ入力ユニット3が同期に用いるまでのタイミングには厳密には若干の誤差が生じる。しかし、実際のシステム上はアナログ入力ユニット3の変換周期が数十~数百μs程度であるのに対し、上記誤差は数十nsであるので、プログラマブルコントローラ20と21での検出手段2の同期という目的のためには問題にはならない。
 なお、プログラマブルコントローラシステム1における制御タイミングの同期については、アナログ入力ユニット3の変換タイミングに限定されるものではない。プログラマブルコントローラシステム1では、異なるプログラマブルコントローラに接続されるユニット間において、ユニット間同期信号SSによって、例えば、ユニットに応じた処理の開始タイミングを同期させることができ、また、図1において図示しない出力ユニットにおいて各ポートにおける出力タイミングを同期させることもできる。また、プログラマブルコントローラ20の同期ユニット4は、ユニット間同期信号SSをプログラマブルコントローラ以外の機器に出力してもよい。
 つぎに、プログラマブルコントローラ20の同期ユニット4の構成について説明する。図3は、実施の形態1にかかる同期ユニット4の構成例を示すブロック図である。同期ユニット4は、信号取得部101と、補正部102と、信号出力部103と、を備える。
 信号取得部101は、自身を含む同期ユニット4が搭載されたプログラマブルコントローラ20に搭載された入力ユニット6で生成され、プログラマブルコントローラ20に搭載された複数のユニットの間で同期をとるために使用される電気信号であるユニット間同期信号SSを取得する。信号取得部101は、具体的に、入力ユニット6で生成されたユニット間同期信号SSを、通信用バスBから取得する。
 補正部102は、信号取得部101で取得されたユニット間同期信号SSの波形を補正する。補正部102は、例えば、信号取得部101で取得されたユニット間同期信号SSに対して、ユニット間同期信号SSの振幅を増幅する、ユニット間同期信号SSにおいてクロックのハイの部分が一時的に無くなった状態であるクロックロスが発生した場合にクロックを追加する、ユニット間同期信号SSの周波数を一定に制御する、などの補正を行う。または、補正部102は、例えば、信号取得部101で取得されたユニット間同期信号SSに対して、ユニット間同期信号SSのデューティ比が50:50から外れた場合にデューティ比を50:50に制御する、ユニット間同期信号SSのハイおよびローを反転させる、ユニット間同期信号SSを出力するタイミングを遅延させる、などの補正を行う。補正部102は、前述の補正内容のうち少なくとも1つの補正を行う。補正部102におけるユニット間同期信号SSに対する補正内容の設定は、ユーザが、コンピュータ8を用いて、制御ユニット5経由で行う。なお、補正部102は、コンピュータ8により設定される内容により、信号取得部101で取得されたユニット間同期信号SSに対して補正をせず、信号取得部101で取得されたユニット間同期信号SSをそのまま信号出力部103に出力してもよい。補正部102は、補正部102で補正後のユニット間同期信号SS、または信号取得部101で取得されたユニット間同期信号SSをそのまま信号出力部103に出力する。
 信号出力部103は、補正部102から取得した、補正部102で補正後のユニット間同期信号SS、または補正部102で補正されていないユニット間同期信号SSを、プログラマブルコントローラ20の外部の機器、図1の例では制御系#2のプログラマブルコントローラ21に出力する。
 なお、プログラマブルコントローラシステム1は、入力ユニット6や同期ユニット4を搭載しているが、これらが一体となっていてもよい。その場合には、同期ユニット4は、信号取得部101でエンコーダ15からの信号を取得する。また、エンコーダ15からの入力によらず、一定周期で検出手段2の検出結果であるアナログ信号をデジタル信号DSに変換する場合には、入力ユニット6はエンコーダ15に接続されず、プログラマブルコントローラのいずれかのユニットが一定周期の電気信号を生成してもよい。いずれのユニットが生成する場合でも、プログラマブルコントローラ20は、ユニット間同期信号SSに相当する検出手段間同期信号である電気信号を生成し、生成された電気信号に基づいて、接続された複数の検出手段2の検出結果であるアナログ信号のデジタル信号DSへの変換を開始し、生成された電気信号を他の外部機器へ同期信号として出力する。すなわち、他の外部機器へ出力する同期信号としては、ユニット間同期信号または、検出手段間同期信号が例示できる。
 なお、本実施の形態では、入力されたユニット間同期信号SSに基づいて、検出手段2の検出結果であるアナログ信号をデジタル信号DSに変換するタイミングを毎回同期させる例を示しているが、毎回同期させず、任意のn回に一度同期させるような同期であってもよい。この場合にはプログラマブルコントローラ20では、補正部102が、信号取得部101で取得されたユニット間同期信号SSに対して内容の異なる複数の補正を行って、補正の内容の異なる複数の補正後のユニット間同期信号SSを信号出力部103に出力する。例えば、プログラマブルコントロー20に、プログラマブルコントローラ21と、プログラマブルコントローラ以外の機器とが接続されており、プログラマブルコントローラ以外の機器のクロック周波数がプログラマブルコントローラ21の1/nである場合を想定する。同期ユニット4の補正部102は、信号取得部101で取得されたユニット間同期信号SSに対して、周波数を1/n倍としたユニット間同期信号SS’をプログラマブルコントローラ以外の機器に出力し、また、プログラマブルコントローラ21にはユニット間同期信号SSを出力する。これにより、プログラマブルコントローラ21に接続された検出手段がn回アナログ信号をデジタル信号に変換する毎に1回プログラマブルコントローラ以外の機器が、検出手段2の変換タイミングに同期して所望の動作を行うことができる。
 また、プログラマブルコントローラ20において、信号出力部103は、ユニット間同期信号SSを出力する場合、規定された周期である定周期で出力してもよいし、非定周期で出力してもよい。すなわち、信号出力部103は、ユニット間同期信号SSを定期的に出力する期間と出力しない期間とを設けてもよいし、ユニット間同期信号SSを出力しない期間については各期間で長さを変えてもよい。信号出力部103におけるユニット間同期信号SSの出力方法については、例えば、ユーザが、コンピュータ8を用いて、制御ユニット5経由で設定を行う。
 図4は、実施の形態1にかかるプログラマブルコントローラ20においてユニット間同期信号SSを生成し、出力するまでの動作を示すフローチャートである。まず、プログラマブルコントローラ20において、入力ユニット6が、エンコーダ15から取得した信号Sに基づいてユニット間同期信号SSを生成する(ステップS1)。
 つぎに、同期ユニット4の信号取得部101が、入力ユニット6で生成されたユニット間同期信号SSを取得する(ステップS2)。補正部102は、信号取得部101で取得されたユニット間同期信号SSを補正する(ステップS3)。そして、信号出力部103は、補正後のユニット間同期信号SSを、他の制御系#2のプログラマブルコントローラ21に出力する(ステップS4)。
 つづいて、同期ユニット4のハードウェア構成について説明する。図5は、実施の形態1にかかる同期ユニット4のハードウェアの構成の例を示す図である。同期ユニット4は、図5に示すように、通信用回路42と通信用バスBとの双方に接続したバスインタフェース41とバスインタフェース41経由でユニット間同期信号SSを取得する通信用回路42と、を備える。また、同期ユニット4は、コンピュータプログラムを実行するCPU43と、コンピュータプログラムを記憶するメモリ44と、を備える。また、同期ユニット4は、出力ポート46からユニット間同期信号SSを出力する出力回路45と、他のプログラマブルコントローラ21に接続しかつユニット間同期信号SSを送り出す出力ポート46と、を備える。通信用回路42、CPU43、メモリ44、および出力回路45は、内部バスB4を介して接続している。
 図3の同期ユニット4において、信号取得部101は、バスインタフェース41および通信用回路42により実現される。補正部102は、CPU43およびメモリ44により実現される。信号出力部103は、出力回路45および出力ポート46により実現される。
 同期ユニット4の機能は、CPU43がメモリ44に記憶されたコンピュータプログラムを読み出して実行することにより実現される。コンピュータプログラムは、ソフトウェア、ファームウェア、またはソフトウェアとファームウェアとの組み合わせにより実現される。メモリ44は、コンピュータにより読み出し可能なコンピュータプログラムまたはデータを記憶可能な記憶領域を備える。メモリ44は、不揮発性の半導体メモリ、または揮発性の半導体メモリにより構成される。不揮発性の半導体メモリ、または揮発性の半導体メモリとして、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ、EPROM(Erasable Programmable Read Only Memory)、または、EEPROM(Electrically Erasable Programmable Read Only Memory)を用いることができる。また、メモリ44は、磁気ディスク、光ディスク、および光磁気ディスクのうちの少なくとも1つにより構成されても良い。
 通信用回路42および出力回路45は、それぞれ、単一回路、複合回路、プログラム化したプロセッサー、並列プログラム化したプロセッサー、ASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)またはこれらの2以上を組み合わせて実現される。また、通信用回路42および出力回路45は、1つのASICまたはFPGAにより実現されても良い。
 以上説明したように、本実施の形態によれば、同期ユニット4は、自身が搭載されたプログラマブルコントローラ20で生成されたユニット間同期信号SSを取得し、ユニット間同期信号SSを補正して、ユニット間同期信号SSを外部の機器に出力することとした。これにより、プログラマブルコントローラ20は、外部の機器、例えば、異なる制御系のプログラマブルコントローラ21との間で同期をとることができ、プログラマブルコントローラシステム1として同期をとった制御が可能となる。具体的に、図1の例のように、プログラマブルコントローラシステム1は、複数の制御系のプログラマブルコントローラを接続することができることから、1つのプログラマブルコントローラと比較して、より多くの検出手段2を接続でき、例えば、より多くの位置でワークWの厚みTを同時に計測することができる。また、プログラマブルコントローラ20は、ユニット間同期信号SSをプログラマブルコントローラ以外の機器に出力することで、プログラマブルコントローラ以外の機器との間で同期をとることもできる。また、同期ユニット4は、ユニット間同期信号SSに対して内容の異なる複数の補正を行ってそれぞれ出力することで、クロック周波数が異なる機器間においても任意のn回に1回同期を実現することができる。
実施の形態2.
 実施の形態1では、プログラマブルコントローラ20がマスタとして動作しており、同期ユニット4がユニット間同期信号SSを出力していた。実施の形態2では、マスタとして動作しているプログラマブルコントローラがスレーブとしても動作可能な場合について説明する。実施の形態1と異なる部分について説明する。
 図6は、実施の形態2にかかる同期ユニット4aの構成例を示すブロック図である。同期ユニット4aは、同期ユニット4の構成に加えて、信号取得部104と、信号出力部105と、を備える。なお、実施の形態2におけるプログラマブルコントローラシステムの構成は、図1に示すプログラマブルコントローラシステム1に対して、同期ユニット4を同期ユニット4aに置き換えたものである。すなわち、プログラマブルコントローラ20の同期ユニット4を同期ユニット4aに置き換えたものである。
 説明の便宜上、実施の形態2におけるプログラマブルコントローラシステムをプログラマブルコントローラシステム1aとする。また、実施の形態2において同期ユニット4aが装着されたプログラマブルコントローラをプログラマブルコントローラ20aとする。また、信号取得部101を第1の信号取得部とし、信号出力部103を第1の信号出力部とする。
 信号取得部104は、プログラマブルコントローラ20aの外部の機器で生成されたユニット間同期信号SSを取得する第2の信号取得部である。ここで、外部の機器とは、実施の形態1のプログラマブルコントローラ20のように、ユニット間同期信号SSを生成可能な機器のことである。
 信号出力部105は、信号取得部104で取得されたユニット間同期信号SSをプログラマブルコントローラ20aに搭載された他のユニットに出力する第2の信号出力部である。
 同期ユニット4aは、プログラマブルコントローラ20aがマスタとして動作するときは、実施の形態1で説明したように、信号取得部101、補正部102、および信号出力部103が動作を行い、信号取得部104および信号出力部105は動作を行わない。一方、同期ユニット4aは、プログラマブルコントローラ20aがスレーブとして動作するときは、信号取得部104および信号出力部105が動作を行い、信号取得部101、補正部102、および信号出力部103は動作を行わない。プログラマブルコントローラ20aは、プログラマブルコントローラシステム1aの設定により、マスタまたはスレーブのいずれでも動作を行うことはできるが、同時にマスタおよびスレーブとして動作することはない。プログラマブルコントローラ20aは、マスタまたはスレーブのいずれか一方でのみ動作を行う。
 図7は、実施の形態2にかかる同期ユニット4aにおいてユニット間同期信号SSを取得してプログラマブルコントローラ20aの他のユニットに出力するまでの動作を示すフローチャートである。まず、同期ユニット4aにおいて、信号取得部104が、外部の機器で生成されたユニット間同期信号SSを取得する(ステップS11)。そして、信号出力部105が、信号取得部104で取得されたユニット間同期信号SSをプログラマブルコントローラ20aに搭載された他のユニットに出力する(ステップS12)。
 なお、同期ユニット4aのハードウェア構成については、図5に示す実施の形態1の同期ユニット4のハードウェア構成に対して、出力回路45を信号の入出力が可能な入出力回路、出力ポート46を信号の受け渡しおよび取得が可能な入出力ポートにすることで実現可能である。この場合、信号取得部101および信号出力部105は、バスインタフェース41および通信用回路42により実現される。補正部102は、CPU43およびメモリ44により実現される。信号出力部103および信号取得部104は、前述の入出力回路および入出力ポートにより実現される。
 以上説明したように、本実施の形態によれば、同期ユニット4aは、自身が搭載されたプログラマブルコントローラ20aがスレーブとして動作する場合、マスタとして動作する他のプログラマブルコントローラから、他のプログラマブルコントローラで生成されたユニット間同期信号SSを取得し、取得したユニット間同期信号SSをプログラマブルコントローラ20aに搭載された他のユニットに出力することとした。これにより、プログラマブルコントローラ20aは、他のプログラマブルコントローラとの間で同期をとることができ、プログラマブルコントローラシステム1aとして同期をとった制御が可能となる。
 以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。
 1 プログラマブルコントローラシステム、2 検出手段、3 アナログ入力ユニット、4,7 同期ユニット、5 制御ユニット、6 入力ユニット、8 コンピュータ、10 搬送装置、11 モータ、12 駆動ローラ、13 従動ローラ、14 搬送ベルト、15 エンコーダ、 20,21 プログラマブルコントローラ、101,104 信号取得部、102 補正部、103,105 信号出力部。

Claims (10)

  1.  プログラマブルコントローラに搭載された電子機器であって、
     前記プログラマブルコントローラに搭載された複数の電子機器の間で同期をとるために使用される電気信号である同期信号を取得する信号取得部と、
     前記同期信号を前記プログラマブルコントローラの外部の機器に出力する信号出力部と、
     を備えることを特徴とする電子機器。
  2.  前記信号出力部は、前記同期信号を定周期または非定周期で出力する、
     ことを特徴とする請求項1に記載の電子機器。
  3.  前記信号取得部で取得された前記同期信号を補正する補正部、
     を備え、
     前記信号出力部は、前記補正部で補正後の同期信号を出力する、
     ことを特徴とする請求項1または2に記載の電子機器。
  4.  前記補正部は、前記同期信号に対して、振幅を増幅、クロックロスが発生した場合にクロックを追加、周波数の制御、デューティ比の制御、信号の反転、および出力タイミングの遅延のうち少なくとも1つを行う、
     ことを特徴とする請求項3に記載の電子機器。
  5.  前記補正部は、前記同期信号に対して内容の異なる複数の補正を行って、補正の内容の異なる複数の前記補正後の同期信号を出力し、
     前記信号出力部は、補正の内容の異なる複数の前記補正後の同期信号を、各々異なる外部の機器に出力する、
     ことを特徴とする請求項3または4に記載の電子機器。
  6.  前記信号取得部を第1の信号取得部とし、前記信号出力部を第1の信号出力部とし、
     前記プログラマブルコントローラの外部の機器で生成された同期信号を取得する第2の信号取得部と、
     前記第2の信号取得部で取得された同期信号を前記プログラマブルコントローラに搭載された他の電子機器に出力する第2の信号出力部と、
     を備えることを特徴とする請求項1から5のいずれか1つに記載の電子機器。
  7.  請求項1から6のいずれか1つに記載の電子機器と、
     前記電子機器が搭載されたプログラマブルコントローラにおいて、前記プログラマブルコントローラに搭載された複数の電子機器間で同期をとるために使用される信号である同期信号を生成する電子機器と、
     を備えることを特徴とするプログラマブルコントローラ。
  8.  請求項7に記載のプログラマブルコントローラと、
     前記プログラマブルコントローラから出力された同期信号を取得して、自身の同期信号として使用する外部の機器と、
     を備えることを特徴とするプログラマブルコントローラシステム。
  9.  プログラマブルコントローラにおいて、
     同期信号を生成する電子機器が、前記プログラマブルコントローラに搭載された複数の電子機器間で同期をとるために使用される信号である同期信号を生成する生成ステップと、
     信号取得部が、前記同期信号を取得する取得ステップと、
     信号出力部が、前記同期信号を外部の機器に出力する出力ステップと、
     を含むことを特徴とする同期方法。
  10.  補正部が、前記取得ステップで取得された前記同期信号の波形を補正する補正ステップ、
     を含み、
     前記出力ステップでは、前記信号出力部が、前記補正ステップで補正後の同期信号を出力する、
     ことを特徴とする請求項9に記載の同期方法。
PCT/JP2016/082158 2016-10-28 2016-10-28 電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法 WO2018078821A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2017539052A JPWO2018078821A1 (ja) 2016-10-28 2016-10-28 電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法
PCT/JP2016/082158 WO2018078821A1 (ja) 2016-10-28 2016-10-28 電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/082158 WO2018078821A1 (ja) 2016-10-28 2016-10-28 電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法

Publications (1)

Publication Number Publication Date
WO2018078821A1 true WO2018078821A1 (ja) 2018-05-03

Family

ID=62024486

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/082158 WO2018078821A1 (ja) 2016-10-28 2016-10-28 電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法

Country Status (2)

Country Link
JP (1) JPWO2018078821A1 (ja)
WO (1) WO2018078821A1 (ja)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002325290A (ja) * 2001-04-24 2002-11-08 Matsushita Electric Works Ltd プログラムタイマユニット
JP2006048284A (ja) * 2004-08-03 2006-02-16 Yaskawa Electric Corp プログラマブルコントローラ装置およびオプションモジュールとの同期方法
JP5661953B1 (ja) * 2013-06-25 2015-01-28 三菱電機株式会社 プログラマブルコントローラ

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08123520A (ja) * 1994-10-25 1996-05-17 Mitsubishi Electric Corp 駆動制御指令装置と複数台の駆動制御指令装置の同期制御システム及びその同期制御方法
JP2005195458A (ja) * 2004-01-07 2005-07-21 Toshiba Corp タイミング制御装置
JP5634819B2 (ja) * 2010-10-13 2014-12-03 日立アロカメディカル株式会社 超音波診断装置
JP2012195689A (ja) * 2011-03-15 2012-10-11 Toshiba Corp 半導体集積回路

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002325290A (ja) * 2001-04-24 2002-11-08 Matsushita Electric Works Ltd プログラムタイマユニット
JP2006048284A (ja) * 2004-08-03 2006-02-16 Yaskawa Electric Corp プログラマブルコントローラ装置およびオプションモジュールとの同期方法
JP5661953B1 (ja) * 2013-06-25 2015-01-28 三菱電機株式会社 プログラマブルコントローラ

Also Published As

Publication number Publication date
JPWO2018078821A1 (ja) 2018-10-25

Similar Documents

Publication Publication Date Title
JP2014228413A (ja) 回転角度検出装置、画像処理装置及び回転角度検出方法
JP2013114340A (ja) マスタ軸とスレーブ軸との同期制御を行うモータ制御装置
US10509385B2 (en) Method of controlling encoder principle axis speed synchronization
EP3719596A1 (en) Control device and control method
US11293781B2 (en) Encoder and encoder control system
WO2018078821A1 (ja) 電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法
JP4283873B2 (ja) インクリメンタルセンサ・シミュレーションとして、複数の電気パルスを数値設定に基づき自動的に形成する方法
JP6377506B2 (ja) モータ制御装置および同装置における補正データ作成方法
US9811486B2 (en) Programmable controller
JP5547950B2 (ja) エンコーダ
JP2021060316A (ja) レゾルバ補正装置およびレゾルバ補正装置の補正方法
US9836040B2 (en) Motor control device, motor control system and motor control method
JP2006214972A (ja) 回転検出装置の信号処理装置
US20180335327A1 (en) Method and program for angle calibration of rotary shaft
US10528025B2 (en) Motor driving apparatus
WO2017134826A1 (ja) 制御システム及びアナログ入力ユニット
JP2002370816A (ja) 位置同期制御装置
KR101523168B1 (ko) 아날로그 입력모듈의 오프셋 및 게인 설정 시스템 및 방법
JP2018206231A (ja) 電子制御装置
JP6349093B2 (ja) モータ制御装置および同装置における補正データ作成方法
CN113454901A (zh) 驱动***
JP5727758B2 (ja) モータ制御回路
CN112297061A (zh) 检测方法及机器人
KR20110082828A (ko) 모터의 엔코더 신호처리장치 및 방법
US8957620B2 (en) Motor control apparatus, motor control method, motor system, and computer-readable medium

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2017539052

Country of ref document: JP

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

Ref document number: 16919958

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16919958

Country of ref document: EP

Kind code of ref document: A1