WO2016009519A1 - Device control system, time chart creation device, device control device, device control method, time chart creation method, and computer program - Google Patents

Device control system, time chart creation device, device control device, device control method, time chart creation method, and computer program Download PDF

Info

Publication number
WO2016009519A1
WO2016009519A1 PCT/JP2014/068963 JP2014068963W WO2016009519A1 WO 2016009519 A1 WO2016009519 A1 WO 2016009519A1 JP 2014068963 W JP2014068963 W JP 2014068963W WO 2016009519 A1 WO2016009519 A1 WO 2016009519A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
chart
control
time chart
instruction
Prior art date
Application number
PCT/JP2014/068963
Other languages
French (fr)
Japanese (ja)
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 JP2016534038A priority Critical patent/JP6460108B2/en
Priority to PCT/JP2014/068963 priority patent/WO2016009519A1/en
Publication of WO2016009519A1 publication Critical patent/WO2016009519A1/en

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/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors

Definitions

  • the present invention relates to a device control system, a time chart creation device, a device control device, a device control method, a time chart creation method, and a computer program.
  • Patent Document 1 describes an automatic control program creation device that automatically creates a ladder program from a time chart.
  • Patent Document 2 the time chart of the input device and the output device is edited using a personal computer, the time chart data is compiled into a machine language, and the compiled machine language is transmitted to the processing device through an interface. It is described.
  • the problem to be solved by the present invention is to enable the control of interlocking a plurality of time charts when controlling the equipment based on the time chart.
  • the device control system includes a time chart creation device that creates a time chart that describes the operation of one or more devices with respect to a time axis, and the time chart creation device that is 1 or
  • a device control device that controls the one or more devices based on two or more time charts, and the time chart creation device is a control in which a control command is described for the time axis in the time chart.
  • a control chart creating unit for creating a chart; and an apparatus chart creating unit for creating at least one device chart describing an operation of the device with respect to a time axis in the time chart, and the control command includes: Instructions for describing operations between a plurality of time charts are included.
  • the equipment control device includes an internal clock timing unit that holds an internal time for each of the one or more time charts, and counts and stops its progress.
  • the command for describing the operation between the plurality of time charts may include a command for switching the progress stop of the internal time.
  • the command for describing the operation between the plurality of time charts includes at least a command for executing the time chart from the beginning, and interrupting execution of the time chart. Any of an instruction, an instruction for resuming execution of the time chart, an instruction for ending execution of the time chart, and an instruction for calling the time chart as a subroutine may be included.
  • the command for describing the operation between the plurality of time charts further includes an exception process for switching the progress stop of the internal time according to the occurrence of an event. Instructions may be included.
  • control chart may include a normal control chart describing a control instruction other than the exception handling instruction and an exception handler describing the exception handling instruction.
  • a time chart creation device is used in the above-described device control system.
  • a device control apparatus is used for the above-described device control system.
  • a device control method in which a control chart in which a control command is described with respect to a time axis is created on a time chart, and at least one device operation is described with respect to the time axis. Create one device chart, create a time chart, control one or more devices based on one or more time charts, and describe the operation between multiple time charts in the control command Instructions are included.
  • time chart creation method is used for the above-described device control method.
  • a computer program causes a computer to function as the above-described time chart creation device.
  • the entire control required is described by dividing it into a plurality of ladder charts appropriately for each function, etc. And may improve maintainability.
  • the plurality of ladder charts are simultaneously read into the programmable controller and scanned.
  • time charts Compared to ladder charts, time charts have a great merit in that it is easy to understand the operation of equipment intuitively.
  • the time chart describes the specified operation with respect to the time axis, and when the entire control is divided into a plurality of time charts, a method for executing these multiple time charts in conjunction with each other is known. This is a limitation of the productivity and maintainability of the time chart.
  • the inventor of the present invention has invented a novel and original device control system and the like as a result of earnest research and development on performing control for interlocking a plurality of time charts in device control using a time chart. It came.
  • the device control system and the like will be described in detail below with reference to the drawings through the embodiments.
  • FIG. 1 is a schematic diagram showing an example of a device control system 1 including a time chart creation device 2 and a device control device 3 according to an embodiment of the present invention.
  • a servo controller 4 in addition to the time chart creation device 2 and the device control device 3, a servo controller 4, a switch 5 and a lamp 6 connected to the device control device 3, and a servo controller 4 A connected servo motor 7 is shown.
  • the device control device 3 is a device that controls operations of various devices connected to the device control device 3 based on one or more time charts.
  • the device control device 3 here is a device of the same kind as a device generally known as a controller for industrial devices, and may be a device known as a sequencer or PLC (Programmable Logic Controller).
  • the device control apparatus 3 does not have to control each device based only on the time chart, and can execute a general ladder program or a control program in another language in addition to the time chart. It's okay.
  • the time chart creation device 2 is a device that creates a time chart to be executed in the device control device 3, converts it into control data in a format that can be interpreted and executed by the device control device 3, and transfers it to the device control device 3. .
  • the time chart creation device 2 may be a dedicated device, but is realized by executing a computer program that functions as the time chart creation device 2 using a general computer as illustrated.
  • Such a computer program may be stored in a computer-readable information storage medium such as various optical disks and semiconductor memories, and is preferably installed in the computer from the medium. Alternatively, it may be downloaded to a computer from various information communication networks such as the Internet, or may be realized by so-called cloud computing in which the function is provided by a server at a remote location through the information communication network.
  • the time chart means a diagram illustrating the operation of one or more devices with respect to a common time axis
  • the control data is a format in which the device control apparatus 3 can recognize such a time chart. It shall mean the data converted as electronic data. The specific configuration of the time chart and control data will be described in detail later.
  • the device here refers to an article to be controlled as a part of the device control system 1 by the device control device 3 and performs some electrical input or output with the device control device 3.
  • the illustrated switch 5 is used as an apparatus that performs input to the apparatus control device 3.
  • the illustrated lamp 6 is used as an apparatus that receives an output from the apparatus control apparatus 3, for example.
  • a motor controller such as the illustrated servo controller 4, and an actuator such as a servo motor 7 that is indirectly controlled by the device controller 3 via the servo controller 4 is also described in this specification. This corresponds to the equipment mentioned in the manual.
  • the servo controller 4, the switch 5, the lamp 6, and the servo motor 7 shown in FIG. 1 are shown to exemplify the devices referred to in this specification, and the types of devices included in the device control system 1 The number varies depending on the content of control to be realized by the device control system 1.
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of a power supply line and a ground line
  • connection mode for example, connection of
  • FIG. 2 is a block diagram showing a physical configuration of the time chart creation device 2.
  • the time chart creation device 2 is a general computer, and includes a CPU (Central Processing Unit) 2a, a RAM (Random Access Memory) 2b, an external storage device 2c, a GC (Graphics Controller) 2d, an input device 2e, and an I / O. (Inpur / Output) 2f is connected to each other via the data bus 2g so that electrical signals can be exchanged.
  • the external storage device 2c is a device capable of recording information statically, such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive).
  • the signal from the GC 2d is output to a monitor 2h such as a flat panel display where the user visually recognizes the image and displayed as an image.
  • the input device 2e is a device for a user to input information, such as a keyboard, a mouse, and a touch panel, and the I / O 2f exchanges information with an external device, here, the device control device 3 by the time chart creation device 2. Interface.
  • FIGS. 3 and 4 are diagrams each showing an example of the time chart 10 created and displayed by the time chart creating apparatus 2.
  • Each time chart 10 includes the same number of equipment charts 11 that describe the operation of the equipment to be controlled by the time chart 10 with the horizontal axis as the time axis.
  • the time chart 10 shown in FIGS. 3 and 4 controls one device each, and the time chart 10 shown in FIG. 5 controls seven devices. Therefore, the device chart 11 is surrounded by a frame and displayed for each device. Yes.
  • Each time chart is numbered and distinguished. The time chart may be given a name instead of the number or in addition to the number.
  • FIG. 3 shows the time chart 1
  • FIG. 4 shows the time chart 2
  • FIG. 5 shows the time chart 3.
  • the device chart 11 named “coin slot” in FIG. 3 is associated with a coin slot (described later), and when a coin is inserted into the coin slot, a reference line 13 indicated by a broken line is shown.
  • the waveform rises from, indicating that a coin insertion has been detected.
  • 4 and 5 are associated with lamps, the position of the reference line 13 is turned off, and the position where the waveform rises from the reference line 13 is turned on. Show.
  • the device chart 11 named “X switch” and “Y switch” in FIG. 5 is the device chart 11 associated with the push button switch, and the position of the reference line 13 is switched off, that is, the push button is pressed.
  • the position where the waveform is shown rising from the reference line 13 is switched on, that is, the push button is being pressed.
  • an icon that easily indicates the type of the device and a name given to the device chart 11 are displayed.
  • the device chart 11 named “X axis”, “Y axis”, and “Z axis” is the device chart 11 associated with the motor, and the reference line indicates that the motor speed is 0, that is, the motor is stopped. It shows the state.
  • the waveform appears on the upper side from the position of the reference line 13, it indicates that the motor is rotating forward, and its height indicates the rotation speed.
  • the waveform appears on the lower side from the position of the reference line 13, it indicates that the motor is reversely rotated, and similarly, the height indicates the rotational speed. That is, the waveforms shown in the device chart 11 named “X-axis”, “Y-axis”, and “Z-axis” are motor speed waveforms. Note that the position waveform of the motor may be shown instead of or in addition to the speed waveform.
  • the device chart named “hand” is a device chart 11 associated with a hand (described later) that opens and closes according to a command
  • the waveform is a command that causes the position of the reference line 13 to open the hand.
  • the position shown rising from the reference line 13 indicates a command to close the hand.
  • the time chart 10 includes a control chart 12.
  • the control chart 12 is a virtual chart that is not associated with a specific device.
  • the control chart 12 describes a control command for performing advanced control of the entire time chart 10 and for describing operations between a plurality of time charts.
  • the equipment chart 11 and the control chart 12 are shown with respect to a common time axis. Therefore, all the operations shown on the device chart 11 and the control commands shown on the control chart 12 are described with respect to the time axis.
  • a time scale 14 indicating the time on the time axis is displayed at the top of the control chart 12. Here, the unit of the time scale 14 is seconds.
  • a marker 15 indicating the current time of each time chart 10 being executed is shown further above the time scale 14. When the operation described in the time chart 10 is executed, the marker 15 moves rightward in accordance with the operation, and indicates the current execution time point.
  • the time chart 10 shown in FIGS. 3 to 5 describes the operation of the crane game machine 20 shown in FIG.
  • the crane game machine 20 blinks the lamp 29 at the top of the housing and waits for the customer, and when the coin is inserted into the coin slot, the lamp 29 is turned on. Then start the crane game.
  • the crane 22 In the crane game, as is well known, while the X switch 21 that is a push button switch is being pressed, the crane 22 is moved in the X direction shown in the figure, and further the Y switch 23 that is a push button switch is being pressed. In the meantime, the crane 22 moves in the Y direction shown in the figure. Thereafter, the operation is automatically performed, the crane 22 is lowered in the Z direction, and the hand 24 that has been opened is closed. Further, the crane 22 moves up in the Z direction, and then the crane 22 moves to a position immediately above the prize acquisition port 26 which is the initial position, so that the hand 24 is opened again.
  • the crane game machine 20 blinks the lamp 29 at the top of the housing again and waits for the start of the next game.
  • the device control device 3 holds an internal time indicating the time on the time chart 10 for each time chart 10. In other words, three internal times are held here.
  • the operation and control commands described in each time chart 10 are executed as the corresponding internal time progresses, that is, when each internal time arrives at the time when each operation and control command is described. Is done. This indicates that the marker 15 indicates the position of the internal time on the time scale 14 for each time chart 10.
  • the initial value of the internal time is 0 seconds.
  • the time chart 1 that is, the time chart 10 shown in FIG. 3 is executed first.
  • the execution of the time chart 10 of FIG. 3 is started from the time of 0 seconds.
  • the internal time progresses as the real time progresses.
  • a label labeled “1” is described in the control chart 12 at time 0.5 seconds.
  • This label has the same function as a label in a general computer program language, and merely indicates a specific position on the time chart 10, and has no other significance. Comparing the label in the present embodiment with the label in a general computer program language, the former points to the time on the time chart 10 as its position, while the latter points to a point on the program list or the program counter. Is different.
  • the time charts 2 and 3 the corresponding internal time does not advance and remains 0 seconds. Therefore, the time chart 10 of FIGS. 4 and 5 is not executed.
  • time chart 1 when the internal time reaches 1.0 second, a control command displayed as “Play (2)” is described. This is an instruction meaning that the second time chart (time chart 2) is executed from the beginning, that is, the internal time is 0 seconds. In response, the internal time in the time chart 2 also starts to advance. At this time, the internal time of the time chart 1 and the internal time of the time chart 2 proceed simultaneously, and the times indicated by the internal times do not necessarily match, and in many cases indicate different times. Thereby, the time chart 1 and the time chart 2 are executed in parallel.
  • the lamp 29 is turned on when the internal time 1 second after the start of execution is 1.0 second, and is turned off when the internal time 1 second later is 2.0 seconds. .
  • the light is turned on when the internal time is 3.0 seconds, and turned off when the internal time is 4.0 seconds.
  • the control command “Jump (2)” is executed. This moves the execution position on the time chart 10 by the device control device 3 to the designated label position.
  • This is a control transfer instruction (so-called jump instruction) known as a goto statement in many computer program languages. Here, it means that the control is transferred to the label “2” described at the time of 0 seconds.
  • This control is realized by rewriting the internal time to 0 seconds, which is the time indicated by the label. As a result, in the time chart 2, the control from 0 second to 4.0 seconds is repeatedly executed. As a result, the lamp 29 is repeatedly turned on and off every second.
  • the coin slot 28 is a device that detects that a coin has been inserted.
  • the apparatus control apparatus 3 stops the progress of the internal time about the time chart 1 until the state of the coin slot 28 corresponds to that described in the apparatus chart 11, that is, until a coin is inserted. Hold for seconds. Thereby, the apparatus control apparatus 3 waits for insertion of a coin. During this time, since the time chart 2 continues to be executed, the lamp 29 repeats blinking.
  • the control command displayed as “Call (3)” is executed.
  • This is an instruction for executing the time chart 3 as a so-called subroutine call.
  • This command stops the progress of the internal time of the time chart 10 in which the command itself is described, here, the time chart 1 and stops the progress of the internal time of the time chart 10 to be called, here the time chart 3, ie, from the beginning. It starts from the time of 0 seconds. Therefore, thereafter, the execution of the time chart 1 is stopped until the operation described in the time chart 3 is completed.
  • the lamp 29 is immediately turned on according to the description of the device chart 11 regarding “lamp”. Further, the internal time advances, and at time 0.5 seconds, a waveform indicating that the signal is turned on is described in the device chart 11 for the “X switch”.
  • the X switch 21 is a push button switch, and its signal changes when the player presses the switch. For this reason, the device control apparatus 3 matches the state of the X switch 21 described in the device chart 11, that is, stops the progress of the internal time until the X switch is pressed, and keeps it for 0.5 seconds. To do. By this control, the device control apparatus 3 performs a standby operation until the X switch 21 is pressed.
  • the internal time starts to advance again.
  • the operation “Feed” is described in the device chart 11 for “X axis”. This operation “Feed” means that the corresponding motor is continuously rotated at a predetermined speed. Therefore, while the operation “Feed” is valid, the device control apparatus 3 continues to rotate the X-axis motor.
  • the device control apparatus 3 stops the internal time until the state of the X switch 21 matches that described in the device chart 11, that is, until the X switch is released. Hold for seconds. With this control, the device control apparatus 3 performs an operation of waiting until the X switch 21 is released. During this time, since the operation “Feed” of the X-axis motor is effective, the X-axis motor continues to rotate.
  • the internal time starts to advance again.
  • the operation “Hold” is described in the device chart 11 for “X axis”, which means that the operation “Feed” is finished. Therefore, when the internal time is 1.1 seconds, the device control device 3 stops the X-axis motor.
  • the internal time advances to a time point of 2.5 seconds, and as shown in the device chart 11 for “Z-axis”, the device control device 3 uses the specified velocity waveform for the Z-axis motor and the internal time is 4 Rotate in the negative direction until 5 seconds. As a result, the crane 22 is automatically lowered by a predetermined distance in the Z direction.
  • the hand 24 in FIG. 4 is operated to close while the signal from the device control device 3 is on and open while the signal is off (the power to open and close the hand 24).
  • Any mechanism may be used as the source (an appropriate device such as an electromagnetic solenoid or a pneumatic actuator may be used). Therefore, at this time, the hand 24 is closed and closed.
  • the operation “Home” is described in the device chart 11 for “Z axis”.
  • This operation “Home” means an operation for returning the corresponding motor to the home position at a predetermined speed. Therefore, by this operation “Home”, the Z-axis rotates forward toward the origin position, and the crane 22 automatically rises in the Z direction. Then, the device control device 3 stops the progress of the internal time until the home position return operation is completed, that is, until the home position return signal is input from the Z-axis motor, and holds it for 6.0 seconds. As a result, the device control apparatus 3 performs an operation of waiting until the origin return operation of the Z-axis motor is completed. When the return to origin of the Z-axis motor is completed, the internal time starts to advance again.
  • the device control apparatus 3 instructs the origin return operation to both the X-axis and the Y-axis, and stops the progress of the internal time and waits until the operation is completed.
  • the crane 22 returns to its initial position, that is, a position directly above the prize acquisition port 26.
  • control command in the present specification does not indicate the operation of the device, but is a command for controlling the internal operation of the device control apparatus 3 when executing the time chart.
  • This control instruction is equivalent to a control instruction or control syntax in a general computer program language, such as the jump instruction described above, and execution stop of the time chart 10 used for operating a plurality of time charts. Instructions to control are included. Therefore, the control command rewrites the internal time used as a program counter corresponding to a so-called program counter in a general computer program language in the present embodiment, and the internals of the time chart 10 other than the time chart 10 being executed. This includes something that controls the time stoppage.
  • time charts 10 there are a plurality of time charts 10, it is possible to interlock each time chart 10 and finely control its progress stop. Therefore, for example, even when large-scale control is required, a time chart 10 is created for each module included in the system, and overall control is realized by controlling the execution stop of each time chart 10, etc. The productivity and maintainability can be improved.
  • a control command or control syntax in a general computer programming language is a command that changes the execution order of instructions to a sequence other than normal sequential execution. It can be said that the execution order is changed to an order other than the described time.
  • advanced control refers to control in which the execution order of control is changed to an order other than that described by a control instruction, unlike simple sequential execution. That is, in the present embodiment, since the time chart 10 includes the control chart 12 in which the control command is described with respect to the time axis, it is possible to describe advanced control on the time chart 10, and the time chart 10 By including the control command data indicating the control command associated with the time in the control data obtained by converting the above, advanced control based on the time chart 10 can be executed.
  • the control command is described by designating the time on the control chart 12 displayed separately from the device chart 11.
  • the control chart 12 is displayed in a manner that can be distinguished from the device chart 11, thereby preventing a situation in which the control command is buried in the description of the operation of the device and is difficult to recognize.
  • the readability of the time chart 10 increases, and the productivity of the time chart 10 increases, such as the maintenance and reuse of corrections and the like being facilitated.
  • FIG. 7 is a functional block diagram of the device control system 1 according to the present embodiment.
  • the functional blocks shown here are shown focusing on the functions of the devices included in the device control system 1, particularly the time chart creation device 2 and the device control device 3. There is no physical configuration corresponding to 1.
  • Some functional blocks are realized by the CPU 2a of the time chart creation device 2 and a general-purpose or dedicated information processing device such as a processor included in the device control device 3 executing specific software, and some functional blocks are time charts. This may be realized by allocating a specific storage area to the information storage device such as the RAM 2b of the creation device 2 or the memory included in the device control device 3.
  • the time chart creation device 2 includes a time chart creation unit 2i, a conversion unit 2j, and a transmission unit 2k. More preferably, a time chart simulating unit 2m and a device simulating unit 2n are also provided.
  • the time chart creation unit 2i is a part that displays a time chart on the monitor 2h in a manner as shown in FIG. 3, for example, receives an input from the input device 2e, creates a time chart, and creates a control chart.
  • a chart creation unit 2o and a device chart creation unit 2p for creating a device chart are included.
  • the time chart creation unit 2i preferably includes an appropriate GUI (Graphical User Interface) so that an input instruction from the user is easy.
  • GUI Graphic User Interface
  • Such a GUI can be described, for example, by referring to FIG. 3 when the control chart creation unit 2o points to a specific time on the reference line 13 of the control chart 12 with an arbitrary pointing device.
  • a selection of an appropriate control command is displayed, or a dialog for inputting necessary information is displayed.
  • the device chart creation unit 2p when a specific time on the reference line 13 of the device chart 11 is pointed in the same manner, descriptions of operations that can be described are displayed, or a dialog is displayed.
  • the conversion unit 2j is a part that converts the time chart created by the time chart creation unit 2i into control data.
  • the time chart 10 includes a control chart 12, and control commands are described on the control chart 12.
  • the control chart 12 is not associated with a specific device, but is a virtual chart for improving the readability of the time chart 10 related to advanced control. Therefore, when the control based on the time chart is executed in the device control device 3, it is not always necessary to explicitly show the control chart. That is, if the control data converted from the time chart includes data indicating that it is a control command, the device control device 3 itself executes control according to the time chart without recognizing the control chart itself. Is possible. Therefore, the control data is described in the control chart included in the time chart, the control instruction data indicating the control instruction associated with the time, and the apparatus described in the device chart included in the time chart and associated with the time. The operation data indicating the operation is included.
  • the control data converted by the conversion unit 2j is transmitted to the device control apparatus 3 by the transmission unit 2k, held in a control data holding unit 3a described later, and read and executed as necessary.
  • the data amount of information indicating the time chart itself created in the time chart creation device 2 is compared with the data amount of the control data converted by the conversion unit 2j, the data amount of the control data is Is smaller. Therefore, by creating and transmitting the control data on the time chart creating apparatus 2 side, the amount of data that must be communicated and the amount of data that must be held by the control data holding unit 3a are reduced. Further, it is not necessary to separately prepare an engine for decoding the time chart on the device control device 3 side, and capacity reduction and high-speed operation are possible. Furthermore, when the specification of the time chart is changed, it is only necessary to change the specification of the conversion unit 2j on the time chart creation device 2 side, and it is usually unnecessary to change the firmware etc. on the device control device 3 side. Is possible.
  • the specific configuration and format of the control data includes at least the operation data indicating the operation of the device linked to the time and the control command data indicating the control command linked to the time.
  • the data format of the control data may be a text format or a binary format.
  • the electronic file indicating the control data is in a text format
  • the file may be in an array format such as a so-called csv format or an xml format.
  • FIG. 8 is a diagram showing a configuration example of control data.
  • the control data has initialization data as an item at the beginning of the file, and then the necessary number of operation data and control data follow. At the end of the file, if necessary, eof (End Of File) indicating the end of the control data is added.
  • eof End Of File
  • the control data is csv format data, and each item is shown separated by a comma.
  • the initialization data is data including information on the time chart itself, various information necessary for executing the time chart, for example, information on the equipment connected to the equipment control device 3.
  • CHARTNUM indicated as ENTRY indicates the time chart number
  • PROJECTNAME indicates the project name
  • AUTHER indicates the creator
  • M1 indicates the type of the device connected to the device control device 3. Is shown. Of course, if necessary, more information may be included in the initialization data.
  • the operation data is data including the target device of the operation data, the time at which the operation is described, and the content of the operation, and is represented in a format such as “time; device number; operation”, for example. .
  • time; device number; operation for example.
  • the device chart 11 for the “X switch” in FIG. 5 if the operation is shown at the time of 0.5 seconds, “0.5; M2; ON” is set.
  • the data includes control instruction data, the time when the control command is described, and the content of the control command.
  • control instruction data For example, in the case of the Play instruction shown in FIG. 3, “1.0; C; Play 2” or the like.
  • C indicates a control command
  • Play2 indicates a command for starting execution of the time chart 2.
  • the device control apparatus 3 holds the control data transferred to the control data holding unit 3a.
  • the apparatus control apparatus 3 has the internal time clock part 3b, and clocks internal time.
  • the internal timekeeping unit 3b holds a plurality of internal times corresponding to each of the plurality of time charts, and can hold the value independently and switch the progress stop. Thereby, the execution stop of a plurality of time charts can be controlled based on the progress stop of the internal time.
  • the traveling speed of the internal time measured by the internal time counting unit 3b is normally the same as the traveling speed of the real time, but it may be different. That is, the advance speed of the internal time may be faster or slower than the real time.
  • the ratio of the internal speed to the real time speed is known as the override factor, and this override factor can be adjusted as necessary to speed up or slow down the time chart. You can do it.
  • the control data held in the control data holding unit 3a is read by the control data reading unit 3c according to the progress of the internal time measured by the internal time counting unit 3b.
  • the function of the control data reading unit 3c is to read operation data and control command data having a time corresponding to the internal time for each time chart. If the read data is control command data, the control data execution unit 3d In addition, if the read data is operation data, the operation data indicates output to the device, or the device output execution unit 3e indicates that the operation data indicates input from the device. , And sent to the internal time stop unit 3f.
  • the control command execution unit 3d interprets and executes the control command data.
  • the control command controls execution stop between a plurality of time charts
  • the internal time counting unit 3b is instructed to stop or rewrite the internal time corresponding to the time chart to be controlled. become.
  • the control instruction is a control instruction or a control syntax
  • the condition for executing the instruction is normally indicated, and as a result, the control transfer on the time chart is shown.
  • control such as rewriting the internal time held in the internal timekeeping unit 3b is performed as necessary.
  • the device output execution unit 3e interprets the operation data and outputs a signal necessary for realizing the operation of the device. As a result, each device performs an operation as described in the time chart.
  • the internal time stop unit 3f interprets the operation data, and stops the progress of the internal time corresponding to the time chart in the internal time counter 3b until the input from the device matches the data described in the time chart. It is a part to do. Thereby, the device control apparatus 3 performs an operation such as waiting until a specific switch is pressed, for example.
  • the command used for performing the control for interlocking a plurality of time charts is exemplified as shown in FIG.
  • “Play (n)” shown in FIG. 9 is an instruction for executing the n-th time chart from the beginning as described above.
  • the internal time for the nth time chart is reset to 0 seconds, and further its progress is started.
  • the time chart designated by the same instruction is executed in parallel.
  • the designation of the time chart to be executed is not necessarily based on the number, and the name assigned to the time chart may be used. The same applies hereinafter.
  • “Pause (n)” is an instruction for interrupting execution of the nth time chart.
  • the progress of the internal time for the nth time chart is stopped.
  • the execution of the nth time chart is interrupted.
  • the value of the internal time when the progress is stopped is held as it is.
  • Continuous (n) is an instruction to resume execution of the nth time chart.
  • the internal time for the nth time chart resumes from the currently held internal time.
  • the execution of the nth time chart is resumed from the time when the execution is interrupted by the Pause instruction, for example.
  • “Call (n)” is a so-called subroutine call as described above, and calls the n-th time chart as a subroutine.
  • the progress of the internal time in the time chart in which this command is described is stopped, the internal time for the nth time chart is reset to 0 seconds and the progress is started.
  • the Return instruction described in the nth time chart is executed or the operation is completed, the progress of the internal time is resumed.
  • any control command for controlling execution stop between a plurality of time charts controls execution stop of time charts other than the time chart in which such control instruction is described. May be controlled to stop the execution of the time chart itself. Alternatively, the execution of the time chart itself describing the control command may be prohibited.
  • an exception processing instruction for performing so-called exception processing may be included in an instruction used for performing control for interlocking a plurality of time charts.
  • the exception processing instruction here is to perform specific exception processing in response to occurrence of some event, for example, an error.
  • This event may be predetermined as a so-called error (for example, an error generated by the device control device 3 itself, an error generated by a device such as a servo controller connected to the device control device 3), or the user May be able to set events.
  • a so-called error for example, an error generated by the device control device 3 itself, an error generated by a device such as a servo controller connected to the device control device 3
  • the user May be able to set events.
  • an event to be set for exception processing for example, pressing an emergency stop button can be considered.
  • an event that should cause exception handling is simply referred to as an event.
  • FIG. 10A is an example in which the nth time chart is executed in the control chart 12 when exception occurs as exception processing.
  • the Try_Play command which is a control command described at the time of 1.0 second
  • the Try_E command which is a control command written at the time of 4.0 seconds.
  • the device control device 3 executes the above-described Play (n) command as an exception process. That is, in parallel with the time chart in which the Try_Play instruction and the Try_E instruction are described, the nth time chart is executed from the time when the internal time is 0 second.
  • FIG. 10B shows an example in which a subroutine call is performed in the control chart 12 when an exception occurs as exception processing.
  • the Try_Call instruction which is a control instruction described at the time of 1.0 second, means the start of event occurrence monitoring as in the previous Try_Play instruction, and the Try_E instruction indicates the end of event occurrence monitoring. This means that, even in this example, if an event occurs within a section of 1.0 to 4.0 seconds, exception handling is performed.
  • the device control device 3 executes the above Call (n) command as an exception process. That is, the progress of the internal time of the time chart in which the Try_Play instruction and the Try_E instruction are described is stopped, and the nth time chart is executed from the time when the internal time is 0 second.
  • the Return instruction is executed in the nth time chart or when the operation is completed, the progress of the internal time is resumed from the time when the progress is stopped.
  • exception handling instructions (Try_Play instruction, Try_Call instruction, Try_E instruction) are described on the control chart 12 as with other control instructions. However, in order to make it easier for the time chart creator to understand, exception handling instructions are described.
  • the control chart describing the processing instruction may be described in a chart different from a normal control instruction (control instruction other than the exception processing instruction).
  • FIG. 10C is a diagram illustrating an example in which an exception handling instruction is described in an exception handler 12b, which is a chart that is distinguished from a normal control instruction, that is, a normal control chart 12a that describes a control instruction other than an exception handling instruction. is there.
  • the exception handler 12b is also a kind of the control chart 12 because it is a virtual chart that is not associated with a specific device. Therefore, in this example, the control chart 12 includes a normal control chart 12a and an exception handler 12b.
  • an exception processing instruction that rewrites the internal time in accordance with a specific event may be included in an instruction used to perform control for interlocking a plurality of time charts.
  • the interlocking control between a plurality of time charts can be made more flexible and advanced.
  • FIG. 11 is a flowchart showing a procedure for creating a time chart by the time chart creating apparatus 2.
  • a control chart creation unit 2o of the time chart creation unit 2i of the time chart creation device 2 creates a control chart on the GUI
  • a device chart creation unit 2p creates a device chart on the GUI
  • the time chart created by the conversion unit 2j is converted into control data (step S2)
  • the finally converted control data is transmitted to the device control apparatus 3 by the transmission unit 2k (step S3). .
  • FIG. 12 is a flowchart showing a procedure for executing a time chart by the device control device 3 based on the control data.
  • the internal time counting unit 3b of the device control device 3 sets the internal time for each time chart to 0 seconds, which is an initial value (step S4).
  • the internal time is set to advance only for a representative time chart, for example, the first time chart.
  • the control data reading unit 3c determines whether or not there is control command data or operation data having a time corresponding to the internal time for each time chart, and reads the data if it exists. (Step S5). In this operation, when a plurality of data exist at the same time, it is determined that the data no longer exists when the reading of all the plurality of data is completed.
  • the end of the time chart is determined in a subsequent step S6. This determination is affirmed when neither control command data nor operation data corresponding to the time after the current internal time exists.
  • the specific method of this determination is not particularly limited. For example, the time when control command data or operation data was last described in the initialization data of the control data is described in advance, or the control data is searched. This can be easily realized by extracting the time described as the latest time. Alternatively, the end of the operation may be explicitly described as a control command on the time chart.
  • step S8 the progress of the internal time is stopped.
  • step S9 it is determined whether or not the progress of all internal times has been stopped. If the determination is affirmative, the device control device 3 ends the operation. Otherwise, the process returns to step S5.
  • step S6 the process further proceeds to step S7, and the internal time counter 3b updates the internal time currently in progress.
  • the internal time is updated so that the internal time is advanced by a predetermined amount at a predetermined timing. For example, 1 ms is added to the internal time every time the actual time advances by 1 ms. Since this update is not performed for the currently stopped internal time, its value does not change.
  • the process returns to step S5 again and is repeated thereafter.
  • step S5 If there is control instruction data or operation data corresponding to the current internal time in step S5, the process proceeds to step S10, and the control is branched depending on whether the data is control instruction data or operation data. If it is the control command data, the process proceeds to step S11, where the control command execution unit 3d interprets the control command data, switches the advance / stop of the internal time as necessary, and rewrites the value. Thereafter, the control returns to step S5 again.
  • step S10 the process further proceeds to step S12, and does the operation data mean output to the device or input from the device? Is determined. If it means output, the process proceeds to step S13, and output to the device according to the operation data is executed by the device output execution unit 3e. Thereafter, the control is returned to step S5.
  • step S12 If it is determined in step S12 that the operation data represents an input, the process proceeds to step S14, and whether or not the input from the device matches the operation indicated by the operation data by the internal time stop unit 3f. Is determined. If not coincident, the progress of the corresponding internal time is stopped in step S15, and the process returns to step S5 again. Thus, the progress of the internal time in the time chart is stopped until the input from the device matches the operation indicated in the operation data. If both match in step S14, the process proceeds to step S16, and if stopped, the progress of the internal time is resumed. Thereafter, the process returns to step S5.
  • the time chart creation device 2 may further include a time chart simulation unit 2m and a device simulation unit 2n.
  • the time chart simulating unit 2m and the device simulating unit 2n are configured to confirm the operation of the time chart created by the time chart creating device 2 by simulation without actually executing it using the device control device 3. It is.
  • the time chart simulating unit 2m reproduces the same operation as when the device control apparatus 3 executes control data on the time chart creating apparatus 2 based on the time chart.
  • the device simulation unit 2n reproduces the operation of the device scheduled to be connected to the device control device 3 on the time chart creating device 2.
  • FIG. 13 is a flowchart showing a procedure for confirming the operation of the time chart by simulation by the time chart creating apparatus 2.
  • step S17 the operation of the time chart is reproduced by the time chart simulator 2m.
  • step S18 the operation of the device is reproduced by the device simulation unit 2n.
  • step S19 it is determined whether or not to end the simulation, and if the execution of the time chart has not ended or if the end of the simulation is not supported by the user, the process returns to step S17 and is repeated thereafter.
  • the time chart creating apparatus 2 ends the simulation as it is.

Landscapes

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

Abstract

Control that links a plurality of time charts can be performed, as a result of a device control system (1) comprising: a time chart creation device (2) that creates a time chart (10) describing the operation of at least one device relative to a time axis; and a device control device (3) that controls the at least one device, on the basis of at least one time chart created by the time chart creation device. The time chart creation device has: a control chart creation unit (2o) that creates a control chart (12) describing a control command relative to the time axis, on a time chart; and a device chart creation unit (2p) that creates at least one device chart (11) describing the operation of the devices relative to the time axis, on a time chart. The control commands include a command for describing the operation between the plurality of time charts.

Description

機器制御システム、タイムチャート作成装置、機器制御装置、機器制御方法、タイムチャート作成方法及びコンピュータプログラムDevice control system, time chart creation device, device control device, device control method, time chart creation method, and computer program
 本発明は、機器制御システム、タイムチャート作成装置、機器制御装置、機器制御方法、タイムチャート作成方法及びコンピュータプログラムに関する。 The present invention relates to a device control system, a time chart creation device, a device control device, a device control method, a time chart creation method, and a computer program.
 特許文献1には、タイムチャートからラダープログラムを自動作成する制御プログラム自動作成装置が記載されている。 Patent Document 1 describes an automatic control program creation device that automatically creates a ladder program from a time chart.
 また、特許文献2には、パソコンを用いて入力機器及び出力機器のタイムチャートを編集するとともに、タイムチャートデータを機械語にコンパイル処理し、コンパイル処理された機械語を処理装置にインターフェースにより伝送することが記載されている。 In Patent Document 2, the time chart of the input device and the output device is edited using a personal computer, the time chart data is compiled into a machine language, and the compiled machine language is transmitted to the processing device through an interface. It is described.
特開平7-191717号公報JP-A-7-191717 特開2003-228403号公報JP 2003-228403 A
 本発明の解決しようとする課題は、タイムチャートに基いて機器制御するにあたり、複数のタイムチャートを連動させる制御を可能とすることである。 The problem to be solved by the present invention is to enable the control of interlocking a plurality of time charts when controlling the equipment based on the time chart.
 本発明の一の側面に係る機器制御システムは、1又は2以上の機器の動作を時間軸に対して記述したタイムチャートを作成するタイムチャート作成装置と、前記タイムチャート作成装置が作成した1又は2以上のタイムチャートに基づいて、前記1又は2以上の機器を制御する機器制御装置と、を備え、前記タイムチャート作成装置は、前記タイムチャートに、時間軸に対して制御命令を記述した制御チャートを作成する制御チャート作成部と、前記タイムチャートに、時間軸に対して機器の動作を記述した少なくとも1つの機器チャートを作成する機器チャート作成部と、を有し、前記制御命令には、複数のタイムチャート間の動作を記述するための命令が含まれる。 The device control system according to one aspect of the present invention includes a time chart creation device that creates a time chart that describes the operation of one or more devices with respect to a time axis, and the time chart creation device that is 1 or A device control device that controls the one or more devices based on two or more time charts, and the time chart creation device is a control in which a control command is described for the time axis in the time chart. A control chart creating unit for creating a chart; and an apparatus chart creating unit for creating at least one device chart describing an operation of the device with respect to a time axis in the time chart, and the control command includes: Instructions for describing operations between a plurality of time charts are included.
 また、本発明の一の側面に係る機器制御システムでは、前記機器制御装置は、前記1又は2以上のタイムチャートごとに内部時刻を保持し、計時するとともにその進行停止を切り替える内部時計計時部を有し、前記複数のタイムチャート間の動作を記述するための命令には、前記内部時刻の進行停止を切り替える命令が含まれてよい。 Moreover, in the equipment control system according to one aspect of the present invention, the equipment control device includes an internal clock timing unit that holds an internal time for each of the one or more time charts, and counts and stops its progress. And the command for describing the operation between the plurality of time charts may include a command for switching the progress stop of the internal time.
 また、本発明の一の側面に係る機器制御システムでは、前記複数のタイムチャート間の動作を記述するための命令には、少なくとも、タイムチャートを最初から実行させる命令、タイムチャートの実行を中断させる命令、タイムチャートの実行を再開させる命令、タイムチャートの実行を終了する命令、タイムチャートをサブルーチンとして呼び出す命令のいずれかが含まれてよい。 In the device control system according to one aspect of the present invention, the command for describing the operation between the plurality of time charts includes at least a command for executing the time chart from the beginning, and interrupting execution of the time chart. Any of an instruction, an instruction for resuming execution of the time chart, an instruction for ending execution of the time chart, and an instruction for calling the time chart as a subroutine may be included.
 また、本発明の一の側面に係る機器制御システムでは、前記複数のタイムチャート間の動作を記述するための命令には、さらに、事象の発生に応じて前記内部時刻の進行停止を切り替える例外処理命令を含んでよい。 In the device control system according to one aspect of the present invention, the command for describing the operation between the plurality of time charts further includes an exception process for switching the progress stop of the internal time according to the occurrence of an event. Instructions may be included.
 また、本発明の一の側面に係る機器制御システムでは、前記制御チャートは、前記例外処理命令以外の制御命令を記述した通常制御チャートと、前記例外処理命令を記述した例外ハンドラとを含んでよい。 In the device control system according to one aspect of the present invention, the control chart may include a normal control chart describing a control instruction other than the exception handling instruction and an exception handler describing the exception handling instruction. .
 また、本発明の別の一の側面に係るタイムチャート作成装置は、上述の機器制御システムに使用されるものである。 Also, a time chart creation device according to another aspect of the present invention is used in the above-described device control system.
 また、本発明の別の一の側面に係る機器制御装置は、上述の機器制御システムに使用されるものである。 Also, a device control apparatus according to another aspect of the present invention is used for the above-described device control system.
 また、本発明の別の一の側面に係る機器制御方法は、タイムチャートに、時間軸に対して制御命令を記述した制御チャートを作成し、時間軸に対して機器の動作を記述した少なくとも1つの機器チャートを作成して、タイムチャートを作成し、1又は2以上の前記タイムチャートに基いて1又は2以上の機器を制御し、前記制御命令には、複数のタイムチャート間の動作を記述するための命令が含まれる。 According to another aspect of the present invention, there is provided a device control method in which a control chart in which a control command is described with respect to a time axis is created on a time chart, and at least one device operation is described with respect to the time axis. Create one device chart, create a time chart, control one or more devices based on one or more time charts, and describe the operation between multiple time charts in the control command Instructions are included.
 また、本発明の別の一の側面に係るタイムチャート作成方法は、上述の機器制御方法に使用されるものである。 Further, a time chart creation method according to another aspect of the present invention is used for the above-described device control method.
 また、本発明の別の一の側面に係るコンピュータプログラムは、コンピュータを、上述のタイムチャート作成装置として機能させる。 Also, a computer program according to another aspect of the present invention causes a computer to function as the above-described time chart creation device.
本発明の一実施形態に係る機器制御システムの概略図である。It is the schematic of the apparatus control system which concerns on one Embodiment of this invention. タイムチャート作成装置のハードウェア構成図である。It is a hardware block diagram of a time chart preparation apparatus. タイムチャート作成装置により作成され、表示されたタイムチャートの一例を示す図である。It is a figure which shows an example of the time chart produced and displayed by the time chart production apparatus. タイムチャート作成装置により作成され、表示されたタイムチャートの一例を示す図である。It is a figure which shows an example of the time chart produced and displayed by the time chart production apparatus. タイムチャート作成装置により作成され、表示されたタイムチャートの一例を示す図である。It is a figure which shows an example of the time chart produced and displayed by the time chart production apparatus. クレーンゲーム機を示す図である。It is a figure which shows a crane game machine. 本発明の一実施形態に係る機器制御システムの機能ブロック図である。It is a functional block diagram of the equipment control system concerning one embodiment of the present invention. 制御データの構成例を示す図である。It is a figure which shows the structural example of control data. 複数のタイムチャートを連動させる制御をおこなうために用いられる命令を例示した図である。It is the figure which illustrated the command used in order to perform control which links a plurality of time charts. 例外処理として、Try_Play命令を記述した制御チャートを示した図である。It is the figure which showed the control chart which described the Try_Play command as exception processing. 例外処理として、Try_Call命令を記述した制御チャートを示した図である。It is the figure which showed the control chart which described the Try_Call command as exception processing. 例外処理を例外ハンドラとして分離して示した制御チャートを示した図である。It is the figure which showed the control chart which separated and showed exception processing as an exception handler. タイムチャート作成装置によりタイムチャートを作成する手順を示すフロー図である。It is a flowchart which shows the procedure which produces a time chart with a time chart preparation apparatus. 機器制御装置により制御データに基いてタイムチャートを実行する手順を示すフロー図である。It is a flowchart which shows the procedure which performs a time chart based on control data by an apparatus control apparatus. タイムチャート作成装置によりタイムチャートの動作をシミュレーションにより確認する手順を示すフロー図である。It is a flowchart which shows the procedure which confirms the operation | movement of a time chart by simulation with a time chart preparation apparatus.
 本発明の発明者の見地によれば、従来機器制御に用いられているラダーチャートでは、必要としている制御全体を、機能ごとなど、適宜複数のラダーチャートに分割して記述することによりその生産性や保守性を高めることがある。複数のラダーチャートは、プログラマブルコントローラに同時に読み込まれ、スキャンされる。 According to the viewpoint of the inventor of the present invention, in the ladder chart used for conventional device control, the entire control required is described by dividing it into a plurality of ladder charts appropriately for each function, etc. And may improve maintainability. The plurality of ladder charts are simultaneously read into the programmable controller and scanned.
 ラダーチャートに対し、タイムチャートは、機器の動作を直感的に理解しやすい点でメリットが大きい。しかしながら、タイムチャートは規定の動作を時間軸に対し記述したものであり、制御全体を複数のタイムチャートに分割して記述した際に、これら複数のタイムチャートを連動させて実行する方法は知られておらず、タイムチャートの生産性や保守性の制限となっていた。 Compared to ladder charts, time charts have a great merit in that it is easy to understand the operation of equipment intuitively. However, the time chart describes the specified operation with respect to the time axis, and when the entire control is divided into a plurality of time charts, a method for executing these multiple time charts in conjunction with each other is known. This is a limitation of the productivity and maintainability of the time chart.
 そこで、本発明の発明者は、タイムチャートを用いた機器制御において複数のタイムチャートを連動させる制御を行うことについて鋭意研究開発を行った結果、新規かつ独創的な機器制御システム等を発明するに至った。以下、かかる機器制御システム等をその実施形態を通じ図面を参照しつつ詳述する。 Accordingly, the inventor of the present invention has invented a novel and original device control system and the like as a result of earnest research and development on performing control for interlocking a plurality of time charts in device control using a time chart. It came. The device control system and the like will be described in detail below with reference to the drawings through the embodiments.
 図1は本発明の実施形態に係るタイムチャート作成装置2及び機器制御装置3を含む機器制御システム1の例を示す概略図である。同図には、機器制御システム1の一例として、タイムチャート作成装置2及び機器制御装置3に加え、機器制御装置3に接続されたサーボコントローラ4、スイッチ5及びランプ6と、さらにサーボコントローラ4に接続されたサーボモータ7が示されている。 FIG. 1 is a schematic diagram showing an example of a device control system 1 including a time chart creation device 2 and a device control device 3 according to an embodiment of the present invention. In the figure, as an example of the device control system 1, in addition to the time chart creation device 2 and the device control device 3, a servo controller 4, a switch 5 and a lamp 6 connected to the device control device 3, and a servo controller 4 A connected servo motor 7 is shown.
 機器制御装置3は、自身に接続された種々の機器の動作を1又は2以上のタイムチャートに基いて制御する装置である。ここでの機器制御装置3は、一般に産業用機器のコントローラとして知られる機器と同種の装置であり、シーケンサ、或いはPLC(Programabble Logic Controller)として知られる装置であってよい。なお、機器制御装置3は、各機器の制御をタイムチャートのみに基いて行うものでなくともよく、タイムチャートに加え、一般的なラダープログラムや他の言語による制御プログラムをも実行できるものであってよい。 The device control device 3 is a device that controls operations of various devices connected to the device control device 3 based on one or more time charts. The device control device 3 here is a device of the same kind as a device generally known as a controller for industrial devices, and may be a device known as a sequencer or PLC (Programmable Logic Controller). The device control apparatus 3 does not have to control each device based only on the time chart, and can execute a general ladder program or a control program in another language in addition to the time chart. It's okay.
 また、タイムチャート作成装置2は、機器制御装置3において実行されるタイムチャートを作成し、機器制御装置3により解釈され実行できる形式の制御データに変換して機器制御装置3に転送する装置である。タイムチャート作成装置2は専用の装置であってもよいが、図示の通りの一般的なコンピュータを用い、タイムチャート作成装置2として機能させるコンピュータプログラムを実行することにより実現されている。かかるコンピュータプログラムは、各種の光ディスクや半導体メモリなどのコンピュータ可読情報記憶媒体に格納されてよく、該媒体からコンピュータにインストールされるようにすることが好ましい。或いは、インターネット等の各種の情報通信ネットワークからコンピュータにダウンロードされてもよく、さらには情報通信ネットワークを通じて遠隔地にあるサーバによりその機能が提供される、いわゆるクラウドコンピューティングにより実現されてもよい。 The time chart creation device 2 is a device that creates a time chart to be executed in the device control device 3, converts it into control data in a format that can be interpreted and executed by the device control device 3, and transfers it to the device control device 3. . The time chart creation device 2 may be a dedicated device, but is realized by executing a computer program that functions as the time chart creation device 2 using a general computer as illustrated. Such a computer program may be stored in a computer-readable information storage medium such as various optical disks and semiconductor memories, and is preferably installed in the computer from the medium. Alternatively, it may be downloaded to a computer from various information communication networks such as the Internet, or may be realized by so-called cloud computing in which the function is provided by a server at a remote location through the information communication network.
 ここで、タイムチャートとは、1又は2以上の機器の動作を共通の時間軸に対して図示した図を意味しており、制御データとは、かかるタイムチャートを機器制御装置3が認識できる形式の電子データとして変換したものを意味するものとする。タイムチャート及び制御データの具体的な構成については後ほど詳述する。 Here, the time chart means a diagram illustrating the operation of one or more devices with respect to a common time axis, and the control data is a format in which the device control apparatus 3 can recognize such a time chart. It shall mean the data converted as electronic data. The specific configuration of the time chart and control data will be described in detail later.
 また、ここでいう機器は、機器制御装置3により機器制御システム1の一部として制御の対象とされる物品を指し、機器制御装置3と何らかの電気的な入力又は出力をするものである。機器制御装置3への入力を行うような機器としては、例えば例示したスイッチ5が、また機器制御装置3からの出力を受けるような機器としては、例えば例示したランプ6が、また機器制御装置3と入出力をする機器としては、例えば例示したサーボコントローラ4のようなモータコントローラがあり、サーボコントローラ4を介して間接的に機器制御装置3により制御されるサーボモータ7のようなアクチュエータも本明細書にいう機器に該当する。なお、図1に示したサーボコントローラ4、スイッチ5、ランプ6及びサーボモータ7は、本明細書にいう機器を例示するため示されたものであり、機器制御システム1に含まれる機器の種類や数は、機器制御システム1により実現しようとする制御の内容により異なる。 In addition, the device here refers to an article to be controlled as a part of the device control system 1 by the device control device 3 and performs some electrical input or output with the device control device 3. As an apparatus that performs input to the apparatus control device 3, for example, the illustrated switch 5 is used. As an apparatus that receives an output from the apparatus control apparatus 3, for example, the illustrated lamp 6 is used. For example, there is a motor controller such as the illustrated servo controller 4, and an actuator such as a servo motor 7 that is indirectly controlled by the device controller 3 via the servo controller 4 is also described in this specification. This corresponds to the equipment mentioned in the manual. The servo controller 4, the switch 5, the lamp 6, and the servo motor 7 shown in FIG. 1 are shown to exemplify the devices referred to in this specification, and the types of devices included in the device control system 1 The number varies depending on the content of control to be realized by the device control system 1.
 なお、以上の説明及び図1では、本実施形態の説明に不要な他の詳細な構成や配線、例えば、電源線や接地線の接続については説明及び図示を簡略化するため省略している。また、接続態様やコネクタの種類等についても特に限定されるものではない。さらに、機器制御装置3が動作するにあたっては、必ずしもタイムチャート作成装置2が接続されている必要はなく、機器制御装置3に制御データが転送されているならば、タイムチャート作成装置2がなくとも機器制御装置3は動作可能である。また、タイムチャート作成装置2もまた必ずしも機器制御装置3に接続されている必要はなく、タイムチャート及び制御データの作成はタイムチャート作成装置2単独で可能である。 In the above description and FIG. 1, other detailed configurations and wirings that are not necessary for the description of the present embodiment, for example, connection of a power supply line and a ground line, are omitted for the sake of simplicity. Further, the connection mode, the type of connector, and the like are not particularly limited. Further, when the device control device 3 operates, the time chart creation device 2 does not necessarily have to be connected. If control data is transferred to the device control device 3, the time chart creation device 2 is not required. The device control device 3 is operable. Further, the time chart creation device 2 is not necessarily connected to the device control device 3, and the time chart creation device 2 can create the time chart and the control data alone.
 図2は、タイムチャート作成装置2の物理的な構成を示すブロック図である。タイムチャート作成装置2はここでは一般的なコンピュータであり、CPU(Central Processing Unit)2a、RAM(Random Access Memory)2b、外部記憶装置2c、GC(Graphics Controller)2d、入力デバイス2e及びI/O(Inpur/Output)2fがデータバス2gにより相互に電気信号のやり取りができるよう接続されている。ここで、外部記憶装置2cはHDD(Hard Disk Drive)やSSD(Solid State Drive)等の静的に情報を記録できる装置である。またGC2dからの信号はフラットパネルディスプレイ等の、使用者が視覚的に画像を認識するモニタ2hに出力され、画像として表示される。入力デバイス2eはキーボードやマウス、タッチパネル等の、ユーザが情報を入力するための機器であり、I/O2fはタイムチャート作成装置2が外部の機器、ここでは、機器制御装置3と情報をやり取りするためのインタフェースである。 FIG. 2 is a block diagram showing a physical configuration of the time chart creation device 2. Here, the time chart creation device 2 is a general computer, and includes a CPU (Central Processing Unit) 2a, a RAM (Random Access Memory) 2b, an external storage device 2c, a GC (Graphics Controller) 2d, an input device 2e, and an I / O. (Inpur / Output) 2f is connected to each other via the data bus 2g so that electrical signals can be exchanged. Here, the external storage device 2c is a device capable of recording information statically, such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive). The signal from the GC 2d is output to a monitor 2h such as a flat panel display where the user visually recognizes the image and displayed as an image. The input device 2e is a device for a user to input information, such as a keyboard, a mouse, and a touch panel, and the I / O 2f exchanges information with an external device, here, the device control device 3 by the time chart creation device 2. Interface.
 図3~5は、それぞれ、タイムチャート作成装置2により作成され、表示されたタイムチャート10の一例を示す図である。各タイムチャート10は、横軸を時間軸とし、当該タイムチャート10により制御しようとする機器の動作を記述した機器チャート11を、機器と同数含む。図3及び図4に示したタイムチャート10ではそれぞれ1つの、図5に示したタイムチャート10では7つの機器が制御されるため、各機器ごとに機器チャート11が枠で囲われて表示されている。また、各タイムチャートには番号が付され、区別されている。なお、タイムチャートには番号に換え、または番号に加えてそれぞれ名前を付けられるようにしてもよい。ここでは図3がタイムチャート1を、図4がタイムチャート2を、図5がタイムチャート3をそれぞれ示す。 3 to 5 are diagrams each showing an example of the time chart 10 created and displayed by the time chart creating apparatus 2. Each time chart 10 includes the same number of equipment charts 11 that describe the operation of the equipment to be controlled by the time chart 10 with the horizontal axis as the time axis. The time chart 10 shown in FIGS. 3 and 4 controls one device each, and the time chart 10 shown in FIG. 5 controls seven devices. Therefore, the device chart 11 is surrounded by a frame and displayed for each device. Yes. Each time chart is numbered and distinguished. The time chart may be given a name instead of the number or in addition to the number. Here, FIG. 3 shows the time chart 1, FIG. 4 shows the time chart 2, and FIG. 5 shows the time chart 3.
 ここでは、図3における「コインスロット」と名付けられた機器チャート11は、コインスロット(後述する)に対応付けられており、コインスロットにコインが投入されると、破線で示された基準線13から波形が立ち上がり、コインの投入を検知したことを示す。また、図4及び図5における「ランプ」と名付けられた機器チャートはランプに対応付けられており、基準線13の位置が消灯、波形が基準線13から立ち上がって示されている位置が点灯を示している。図5における「Xスイッチ」、「Yスイッチ」と名付けられた機器チャート11は、押しボタンスイッチに対応付けられた機器チャート11であり、基準線13の位置がスイッチオフ、すなわち押しボタンが押されていない状態を、また波形が基準線13から立ちあがって示されている位置がスイッチオン、すなわち押しボタンが押されている状態を示している。また、機器チャート11の左端には、その機器の種類をわかりやすく示すアイコンと、機器チャート11に付けられた名前が表示されている。 Here, the device chart 11 named “coin slot” in FIG. 3 is associated with a coin slot (described later), and when a coin is inserted into the coin slot, a reference line 13 indicated by a broken line is shown. The waveform rises from, indicating that a coin insertion has been detected. 4 and 5 are associated with lamps, the position of the reference line 13 is turned off, and the position where the waveform rises from the reference line 13 is turned on. Show. The device chart 11 named “X switch” and “Y switch” in FIG. 5 is the device chart 11 associated with the push button switch, and the position of the reference line 13 is switched off, that is, the push button is pressed. The position where the waveform is shown rising from the reference line 13 is switched on, that is, the push button is being pressed. Further, on the left end of the device chart 11, an icon that easily indicates the type of the device and a name given to the device chart 11 are displayed.
 また、「X軸」、「Y軸」、「Z軸」と名付けられた機器チャート11は、モータに対応付けられた機器チャート11であり、基準線はモータの速度が0、すなわち停止している状態を示している。波形が基準線13の位置から上側に現れると、モータが正転していることを示し、その高さが回転速度を示す。また、波形が基準線13の位置から下側に現れると、モータが逆転していることを示し、同様にその高さが回転速度を示す。すなわち、「X軸」、「Y軸」、「Z軸」と名付けられた機器チャート11に示される波形は、モータの速度波形である。なお、速度波形に替えて、或いは加えて、モータの位置波形を示すようにしてもよい。 The device chart 11 named “X axis”, “Y axis”, and “Z axis” is the device chart 11 associated with the motor, and the reference line indicates that the motor speed is 0, that is, the motor is stopped. It shows the state. When the waveform appears on the upper side from the position of the reference line 13, it indicates that the motor is rotating forward, and its height indicates the rotation speed. Further, when the waveform appears on the lower side from the position of the reference line 13, it indicates that the motor is reversely rotated, and similarly, the height indicates the rotational speed. That is, the waveforms shown in the device chart 11 named “X-axis”, “Y-axis”, and “Z-axis” are motor speed waveforms. Note that the position waveform of the motor may be shown instead of or in addition to the speed waveform.
 さらに、「ハンド」と名付けられた機器チャートは、指令により開閉するハンド(後述する)に対応付けられた機器チャート11であり、基準線13の位置がハンドを開状態とする指令を、波形が基準線13から立ち上がって示されている位置がハンドを閉状態とする指令を示している。 Furthermore, the device chart named “hand” is a device chart 11 associated with a hand (described later) that opens and closes according to a command, and the waveform is a command that causes the position of the reference line 13 to open the hand. The position shown rising from the reference line 13 indicates a command to close the hand.
 さらに、タイムチャート10は、制御チャート12を含む。制御チャート12は、先に説明した機器チャート11とは異なり、特定の機器に対応付けられない仮想的なチャートである。そして、制御チャート12には、タイムチャート10全体の高度な制御を行い、また複数のタイムチャート間の動作を記述するための制御命令が記述される。 Furthermore, the time chart 10 includes a control chart 12. Unlike the device chart 11 described above, the control chart 12 is a virtual chart that is not associated with a specific device. The control chart 12 describes a control command for performing advanced control of the entire time chart 10 and for describing operations between a plurality of time charts.
 機器チャート11及び制御チャート12は共通の時間軸に対し示されている。したがって、機器チャート11上に示された全ての動作及び、制御チャート12上に示された制御命令は、時間軸に対して記述されることになる。制御チャート12の上部には時間軸上の時刻を示す時間目盛14が表示されている。ここでは、時間目盛14の時間の単位は秒である。また、時間目盛14のさらに上部には、実行中のタイムチャート10それぞれの現在時刻を示すマーカ15が示されている。このマーカ15は、タイムチャート10に記述された動作を実行するとその動作に合わせて右方向に移動していき、現在の実行時点を示すためのものである。 The equipment chart 11 and the control chart 12 are shown with respect to a common time axis. Therefore, all the operations shown on the device chart 11 and the control commands shown on the control chart 12 are described with respect to the time axis. A time scale 14 indicating the time on the time axis is displayed at the top of the control chart 12. Here, the unit of the time scale 14 is seconds. Further, a marker 15 indicating the current time of each time chart 10 being executed is shown further above the time scale 14. When the operation described in the time chart 10 is executed, the marker 15 moves rightward in accordance with the operation, and indicates the current execution time point.
 図3~5に示したタイムチャート10は、図6に示すクレーンゲーム機20の動作を記述したものである。クレーンゲーム機20は、この例では、コインがコインスロット28に投入されるまでは、筐体上部のランプ29を点滅させて客を待ち、コインがコインスロットに投入されるとランプ29を点灯状態にして、クレーンゲームを開始する。 The time chart 10 shown in FIGS. 3 to 5 describes the operation of the crane game machine 20 shown in FIG. In this example, until the coin is inserted into the coin slot 28, the crane game machine 20 blinks the lamp 29 at the top of the housing and waits for the customer, and when the coin is inserted into the coin slot, the lamp 29 is turned on. Then start the crane game.
 クレーンゲームは、よく知られているように、押しボタンスイッチであるXスイッチ21を押している間、クレーン22が図中示したX方向に移動し、さらに押しボタンスイッチであるYスイッチ23を押している間、クレーン22が図中示したY方向に移動するというものである。その後の動作は自動的に行われ、クレーン22がZ方向に下がり、開状態であったハンド24が閉じる。さらにクレーン22がZ方向に上昇し、その後クレーン22は初期位置である景品獲得口26の直上に移動し、ハンド24が再び開状態となる。この一連の動作において、ハンド24により筺体内に配置された景品25を掴み上げることに成功していれば、景品25は景品獲得口26に落とされ、景品取出し口27から取り出すことができる。一連の動作が終了すると、クレーンゲーム機20は再び筐体上部のランプ29を点滅させて、次のゲームの開始を待つ。 In the crane game, as is well known, while the X switch 21 that is a push button switch is being pressed, the crane 22 is moved in the X direction shown in the figure, and further the Y switch 23 that is a push button switch is being pressed. In the meantime, the crane 22 moves in the Y direction shown in the figure. Thereafter, the operation is automatically performed, the crane 22 is lowered in the Z direction, and the hand 24 that has been opened is closed. Further, the crane 22 moves up in the Z direction, and then the crane 22 moves to a position immediately above the prize acquisition port 26 which is the initial position, so that the hand 24 is opened again. In this series of operations, if the hand 25 has succeeded in grabbing the prize 25 arranged in the housing, the prize 25 is dropped to the prize acquisition port 26 and can be taken out from the prize take-out port 27. When the series of operations is completed, the crane game machine 20 blinks the lamp 29 at the top of the housing again and waits for the start of the next game.
 改めて図3~5のタイムチャート10を参照しつつ、この動作を機器制御装置3がどのように実行するかを以下に説明する。 Referring to the time chart 10 of FIGS. 3 to 5 again, how the device control apparatus 3 executes this operation will be described below.
 機器制御装置3は、タイムチャート10上の時刻を示す内部時刻をタイムチャート10ごとに保持している。すなわち、ここでは3つの内部時刻を保持することになる。そして、それぞれのタイムチャート10に記述された動作及び制御命令は、対応する内部時刻の進行に伴って、すなわち、それぞれの内部時刻が各動作及び制御命令が記述された時刻に到来したときに実行される。このことは、マーカ15は、タイムチャート10ごとの時間目盛14上での内部時刻の位置を示すものであることを示している。 The device control device 3 holds an internal time indicating the time on the time chart 10 for each time chart 10. In other words, three internal times are held here. The operation and control commands described in each time chart 10 are executed as the corresponding internal time progresses, that is, when each internal time arrives at the time when each operation and control command is described. Is done. This indicates that the marker 15 indicates the position of the internal time on the time scale 14 for each time chart 10.
 内部時刻の初期値は0秒である。そして、ここではタイムチャート1、すなわち図3に示したタイムチャート10が最初に実行されるものとする。その結果、0秒の時点より図3のタイムチャート10の実行が開始される。内部時刻は実時間の進行に従って進行していく。そして、この例では、時刻0.5秒において、制御チャート12に「1」と記されたラベルが記述されている。このラベルは、一般的なコンピュータプログラム言語におけるラベルと同様の機能を有するものであり、タイムチャート10上の特定の位置を示すだけのものであって、その他の意義は有していない。本実施形態におけるラベルと一般的なコンピュータプログラム言語におけるラベルとを比較すると、前者はその位置としてタイムチャート10上の時刻を指し示すのに対して、後者はプログラムリスト又はプログラムカウンタ上の地点を指し示す点が異なる。このとき、タイムチャート2及び3では、対応する内部時刻は進行しておらず、0秒のままである。そのため、図4及び図5のタイムチャート10は実行されない。 The initial value of the internal time is 0 seconds. Here, it is assumed that the time chart 1, that is, the time chart 10 shown in FIG. 3 is executed first. As a result, the execution of the time chart 10 of FIG. 3 is started from the time of 0 seconds. The internal time progresses as the real time progresses. In this example, a label labeled “1” is described in the control chart 12 at time 0.5 seconds. This label has the same function as a label in a general computer program language, and merely indicates a specific position on the time chart 10, and has no other significance. Comparing the label in the present embodiment with the label in a general computer program language, the former points to the time on the time chart 10 as its position, while the latter points to a point on the program list or the program counter. Is different. At this time, in the time charts 2 and 3, the corresponding internal time does not advance and remains 0 seconds. Therefore, the time chart 10 of FIGS. 4 and 5 is not executed.
 タイムチャート1において、内部時刻1.0秒に到達すると、「Play(2)」と表示された制御命令が記述されている。これは、2番のタイムチャート(タイムチャート2)を最初から、すなわち、内部時刻が0秒の時点から実行することを意味する命令である。これを受けて、タイムチャート2における内部時刻もその進行を開始する。このとき、タイムチャート1の内部時刻とタイムチャート2の内部時刻は、それぞれ同時に進行し、また互いの内部時刻が示す時刻は必ずしも一致せず、多くの場合は異なる時刻を示すことになる。これにより、タイムチャート1とタイムチャート2は同時並行的に実行される。 In the time chart 1, when the internal time reaches 1.0 second, a control command displayed as “Play (2)” is described. This is an instruction meaning that the second time chart (time chart 2) is executed from the beginning, that is, the internal time is 0 seconds. In response, the internal time in the time chart 2 also starts to advance. At this time, the internal time of the time chart 1 and the internal time of the time chart 2 proceed simultaneously, and the times indicated by the internal times do not necessarily match, and in many cases indicate different times. Thereby, the time chart 1 and the time chart 2 are executed in parallel.
 図4のタイムチャート2では、実行の開始から1秒後の内部時刻が1.0秒の時点でランプ29が点灯され、さらに1秒後の内部時刻が2.0秒の時点で消灯される。同様に内部時刻が3.0秒の時点で点灯、4.0秒の時点で消灯される。そして、内部時刻が4.0秒の時点で制御命令「Jump(2)」が実行されるが、これは、機器制御装置3によるタイムチャート10上の実行位置を指定したラベルの位置に移動させることを示すものであり、多くのコンピュータプログラム言語においてgoto文として知られている制御転送命令(いわゆるジャンプ命令)である。ここでは、0秒の時点に記述されたラベル「2」へと制御を移すことを意味している。この制御は、内部時刻をラベルが示す時点である0秒に書き換えることにより実現される。この結果、タイムチャート2では0秒から4.0秒までの制御が繰り返し実行され、その結果、1秒ごとにランプ29は点灯、消灯を繰り返すことになる。 In the time chart 2 of FIG. 4, the lamp 29 is turned on when the internal time 1 second after the start of execution is 1.0 second, and is turned off when the internal time 1 second later is 2.0 seconds. . Similarly, the light is turned on when the internal time is 3.0 seconds, and turned off when the internal time is 4.0 seconds. Then, when the internal time is 4.0 seconds, the control command “Jump (2)” is executed. This moves the execution position on the time chart 10 by the device control device 3 to the designated label position. This is a control transfer instruction (so-called jump instruction) known as a goto statement in many computer program languages. Here, it means that the control is transferred to the label “2” described at the time of 0 seconds. This control is realized by rewriting the internal time to 0 seconds, which is the time indicated by the label. As a result, in the time chart 2, the control from 0 second to 4.0 seconds is repeatedly executed. As a result, the lamp 29 is repeatedly turned on and off every second.
 一方、図3のタイムチャート1では、内部時刻がさらに進行し、1.5秒の時点に到達すると、「コインスロット」についての機器チャート11に信号がオンとなることを示す波形が記述されている。ここで、コインスロット28はコインが投入されたことを検知する機器である。そして、機器制御装置3は、コインスロット28の状態が機器チャート11に記述されたものと一致する、すなわち、コインが投入されるまでタイムチャート1についての内部時刻の進行を停止し、1.5秒のまま保持する。これにより、機器制御装置3は、コインの投入を待つことになる。この間も、タイムチャート2は実行され続けるため、ランプ29は点滅を繰り返すことになる。 On the other hand, in the time chart 1 of FIG. 3, when the internal time further advances and reaches the time point of 1.5 seconds, a waveform indicating that the signal is turned on is described in the device chart 11 for “coin slot”. Yes. Here, the coin slot 28 is a device that detects that a coin has been inserted. And the apparatus control apparatus 3 stops the progress of the internal time about the time chart 1 until the state of the coin slot 28 corresponds to that described in the apparatus chart 11, that is, until a coin is inserted. Hold for seconds. Thereby, the apparatus control apparatus 3 waits for insertion of a coin. During this time, since the time chart 2 continues to be executed, the lamp 29 repeats blinking.
 コインスロット28にコインが投入されると、内部時刻が再び進行をはじめ、2.0秒の時点で「Abort(2)」と表示された制御命令が実行される。これは、タイムチャート2の動作を終了させることを意味する命令である。この結果、タイムチャート2についての内部時刻の進行は停止し、またその値は0秒の時点にリセットされる。これに伴い、ランプ29の点滅は停止されることになる。 When a coin is inserted into the coin slot 28, the internal time starts to advance again, and a control command displayed as “Abort (2)” is executed at 2.0 seconds. This is a command that means to end the operation of the time chart 2. As a result, the progress of the internal time with respect to the time chart 2 is stopped, and the value is reset to 0 second. Accordingly, the blinking of the lamp 29 is stopped.
 さらに内部時刻が3.0秒の時点に到達すると、「Call(3)」と表示された制御命令が実行される。これは、タイムチャート3をいわゆるサブルーチンコールとして実行させる命令である。この命令は、この命令自身が記述されたタイムチャート10、ここではタイムチャート1の内部時刻の進行を停止させ、呼び出されるタイムチャート10、ここではタイムチャート3の内部時刻の進行を最初から、すなわち0秒の時点から開始させるというものである。したがって、これ以降は、タイムチャート3に記述された動作が終了するまでは、タイムチャート1はその実行を停止することになる。 When the internal time reaches 3.0 seconds, the control command displayed as “Call (3)” is executed. This is an instruction for executing the time chart 3 as a so-called subroutine call. This command stops the progress of the internal time of the time chart 10 in which the command itself is described, here, the time chart 1 and stops the progress of the internal time of the time chart 10 to be called, here the time chart 3, ie, from the beginning. It starts from the time of 0 seconds. Therefore, thereafter, the execution of the time chart 1 is stopped until the operation described in the time chart 3 is completed.
 図5に示したタイムチャート3では、その内部時刻の進行が開始されると、「ランプ」についての機器チャート11の記述に従い、直ちにランプ29が点灯される。さらに内部時刻が進行し、時刻0.5秒においては、「Xスイッチ」についての機器チャート11に信号がオンとなることを示す波形が記述されている。ここで、図4に示されるように、Xスイッチ21は押しボタンスイッチであり、遊技者が当該スイッチを押すことによりその信号が変化するものである。そのため、機器制御装置3は、Xスイッチ21の状態が機器チャート11に記述されたものと一致する、すなわち、Xスイッチが押下されるまで内部時刻の進行を停止し、0.5秒のまま保持する。この制御により、機器制御装置3は、Xスイッチ21が押下されるまで待機する動作をすることになる。 In the time chart 3 shown in FIG. 5, when the progress of the internal time is started, the lamp 29 is immediately turned on according to the description of the device chart 11 regarding “lamp”. Further, the internal time advances, and at time 0.5 seconds, a waveform indicating that the signal is turned on is described in the device chart 11 for the “X switch”. Here, as shown in FIG. 4, the X switch 21 is a push button switch, and its signal changes when the player presses the switch. For this reason, the device control apparatus 3 matches the state of the X switch 21 described in the device chart 11, that is, stops the progress of the internal time until the X switch is pressed, and keeps it for 0.5 seconds. To do. By this control, the device control apparatus 3 performs a standby operation until the X switch 21 is pressed.
 Xスイッチ21が押下されると、内部時刻が再度進行を開始する。そして内部時刻が0.6秒に到達した時点で、「X軸」についての機器チャート11に動作「Feed」が記載されている。この動作「Feed」は、該当するモータを所定の速度で連続的に回転させることを意味している。したがって、この動作「Feed」が有効である間、機器制御装置3は、X軸モータを回転させ続ける。 When the X switch 21 is pressed, the internal time starts to advance again. When the internal time reaches 0.6 seconds, the operation “Feed” is described in the device chart 11 for “X axis”. This operation “Feed” means that the corresponding motor is continuously rotated at a predetermined speed. Therefore, while the operation “Feed” is valid, the device control apparatus 3 continues to rotate the X-axis motor.
 そして、内部時刻が1.0秒に到達すると、「Xスイッチ」についての機器チャート11に信号がオフとなることを示す波形が記述されている。この場合についても先ほどと同様に、機器制御装置3は、Xスイッチ21の状態が機器チャート11に記述されたものと一致する、すなわち、Xスイッチが解放されるまで内部時刻を停止、1.0秒のまま保持する。この制御により、機器制御装置3は、Xスイッチ21が解放されるまで待機する動作をすることになる。この間、X軸モータの動作「Feed」は有効であるから、X軸モータは回転し続けることになる。 Then, when the internal time reaches 1.0 second, a waveform indicating that the signal is turned off is described in the device chart 11 for the “X switch”. Also in this case, as before, the device control apparatus 3 stops the internal time until the state of the X switch 21 matches that described in the device chart 11, that is, until the X switch is released. Hold for seconds. With this control, the device control apparatus 3 performs an operation of waiting until the X switch 21 is released. During this time, since the operation “Feed” of the X-axis motor is effective, the X-axis motor continues to rotate.
 Xスイッチ21が解放されると、内部時刻が再度進行を開始する。そして内部時刻が1.1秒に到達した時点には「X軸」についての機器チャート11に動作「Hold」が記載されており、これは動作「Feed」を終えることを意味している。したがって、内部時刻が1.1秒の時点で機器制御装置3は、X軸モータを停止する。 When the X switch 21 is released, the internal time starts to advance again. When the internal time reaches 1.1 seconds, the operation “Hold” is described in the device chart 11 for “X axis”, which means that the operation “Feed” is finished. Therefore, when the internal time is 1.1 seconds, the device control device 3 stops the X-axis motor.
 以上の動作により、Xスイッチ21を押下している間、クレーン22をX方向に移動させるという制御が実現されている。さらに、内部時刻が1.5秒から2.1秒の間に、「Yスイッチ」についての機器チャート11と「Y軸」についての機器チャート11の記述により、X軸の場合と全く同様に、Yスイッチ23を押下している間、クレーン22をY方向に移動させるという制御が実現されている。 With the above operation, the control of moving the crane 22 in the X direction while the X switch 21 is pressed is realized. Furthermore, when the internal time is between 1.5 seconds and 2.1 seconds, the description of the device chart 11 for the “Y switch” and the device chart 11 for the “Y axis” is exactly the same as in the case of the X axis. Control of moving the crane 22 in the Y direction while the Y switch 23 is pressed is realized.
 その後内部時刻は2.5秒の時点まで進行し、「Z軸」についての機器チャート11に示されたように、機器制御装置3は、Z軸モータを指定された速度波形で内部時刻が4.5秒の時点まで負方向に回転させる。これにより、クレーン22はZ方向に所定の距離だけ自動的に下降することになる。 Thereafter, the internal time advances to a time point of 2.5 seconds, and as shown in the device chart 11 for “Z-axis”, the device control device 3 uses the specified velocity waveform for the Z-axis motor and the internal time is 4 Rotate in the negative direction until 5 seconds. As a result, the crane 22 is automatically lowered by a predetermined distance in the Z direction.
 続けて、内部時刻が5.0秒に到達すると、「ハンド」についての機器チャート11に信号がオンとなることを示す波形が記述されている。ここで、図4のハンド24は機器制御装置3からの信号がオンである間は閉じ、当該信号がオフである間は開く、という動作をするものである(なお、ハンド24を開閉する動力源はどのような機構であってもよい。電磁ソレノイドや空圧アクチュエータ等適宜の機器を用いてよい)。したがって、この時点でハンド24は閉じ、閉状態となる。 Subsequently, when the internal time reaches 5.0 seconds, a waveform indicating that the signal is turned on is described in the device chart 11 for “hand”. Here, the hand 24 in FIG. 4 is operated to close while the signal from the device control device 3 is on and open while the signal is off (the power to open and close the hand 24). Any mechanism may be used as the source (an appropriate device such as an electromagnetic solenoid or a pneumatic actuator may be used). Therefore, at this time, the hand 24 is closed and closed.
 さらに内部時刻が6.0秒の時点で、「Z軸」についての機器チャート11に動作「Home」が記述されている。この動作「Home」は、該当するモータを所定の速度で原点位置に復帰させる動作を意味している。したがって、この動作「Home」により、Z軸はその原点位置に向かって正転し、クレーン22はZ方向に自動的に上昇することになる。そして、機器制御装置3は、この原点復帰動作が完了するまで、すなわち、Z軸モータから原点復帰信号が入力されるまで内部時刻の進行を停止し、6.0秒のまま保持する。これにより、機器制御装置3は、Z軸モータの原点復帰動作が完了するまで待機する動作をする。Z軸モータの原点復帰が完了すると、内部時刻は再度進行を開始する。 Furthermore, when the internal time is 6.0 seconds, the operation “Home” is described in the device chart 11 for “Z axis”. This operation “Home” means an operation for returning the corresponding motor to the home position at a predetermined speed. Therefore, by this operation “Home”, the Z-axis rotates forward toward the origin position, and the crane 22 automatically rises in the Z direction. Then, the device control device 3 stops the progress of the internal time until the home position return operation is completed, that is, until the home position return signal is input from the Z-axis motor, and holds it for 6.0 seconds. As a result, the device control apparatus 3 performs an operation of waiting until the origin return operation of the Z-axis motor is completed. When the return to origin of the Z-axis motor is completed, the internal time starts to advance again.
 その後内部時刻が6.5秒に到達すると、「X軸」についての機器チャート11及び「Y軸」についての機器チャート11の双方に動作「Home」が記述されている。これにより、先ほどのZ軸と同様に、機器制御装置3は、X軸とY軸の双方に対し原点復帰動作を指令し、その動作が完了するまで内部時刻の進行を停止し待機する。これにより、クレーン22はその初期位置、すなわち、景品獲得口26の直上の位置まで復帰することになる。 Then, when the internal time reaches 6.5 seconds, the operation “Home” is described in both the device chart 11 for “X axis” and the device chart 11 for “Y axis”. As a result, as in the previous Z-axis, the device control apparatus 3 instructs the origin return operation to both the X-axis and the Y-axis, and stops the progress of the internal time and waits until the operation is completed. As a result, the crane 22 returns to its initial position, that is, a position directly above the prize acquisition port 26.
 X軸とY軸双方の原点復帰動作が完了した後、内部時刻が7.0秒まで進行すると、「ハンド」についての機器チャート11に信号がオフとなることを示す波形が記述されている。したがって、この時点でハンド24が開く。ハンド24による景品25の把持に成功していれば、景品25は景品獲得口26内に落下することになる。 When the internal time advances to 7.0 seconds after completion of the origin return operation for both the X axis and the Y axis, a waveform indicating that the signal is turned off is described in the device chart 11 for “hand”. Therefore, the hand 24 opens at this point. If the prize 25 is successfully gripped by the hand 24, the prize 25 will fall into the prize acquisition port 26.
 以上でクレーンゲームの一連の動作は終了であるが、内部時刻はさらに8.0秒の時点まで進行する。この時点でランプ29は消灯され、また、制御チャート12に「Return」と記された制御命令が記述されている。この制御命令は、Call命令で呼び出された時点に制御を戻すことを意味しており、ここでは、タイムチャート3自身についての内部時刻の進行を停止させ、図3のタイムチャート1における内部時刻の進行を3.0秒の時点から再開させることになる。 This completes the series of crane game operations, but the internal time further advances to 8.0 seconds. At this time, the lamp 29 is turned off, and a control command “Return” is described in the control chart 12. This control command means returning the control to the time point called by the Call command. Here, the progress of the internal time for the time chart 3 itself is stopped, and the internal time in the time chart 1 of FIG. Progression will be resumed from 3.0 seconds.
 再び図3のタイムチャート1に戻り、内部時刻が4.0秒の時点に到達すると、「Jump(1)」と表示されたジャンプ命令が実行される。この結果、この例では、0.5秒の時点に実行が移る。以降は、上述した一連の動作が繰り返し実行されることになる。 Returning to the time chart 1 of FIG. 3 again, when the internal time reaches 4.0 seconds, a jump instruction labeled “Jump (1)” is executed. As a result, in this example, execution is shifted to the time point of 0.5 seconds. Thereafter, the series of operations described above are repeatedly executed.
 ここで、本明細書で言う制御命令とは、機器の動作を示すものではなく、タイムチャートを実行する上での機器制御装置3の内部的な動作を制御するための命令である。この制御命令には、上述したジャンプ命令のように、一般的なコンピュータプログラム言語にいう制御命令あるいは制御構文と同等のもののほか、複数のタイムチャートを動作させるために用いる、タイムチャート10の実行停止を制御する命令が含まれる。そのため、制御命令には、本実施形態で一般的なコンピュータプログラム言語におけるいわゆるプログラムカウンタに相当するものとして用いられる内部時刻を書き換えるもののほか、実行しているタイムチャート10以外のタイムチャート10についての内部時刻の進行停止を制御するものが含まれることになる。 Here, the control command in the present specification does not indicate the operation of the device, but is a command for controlling the internal operation of the device control apparatus 3 when executing the time chart. This control instruction is equivalent to a control instruction or control syntax in a general computer program language, such as the jump instruction described above, and execution stop of the time chart 10 used for operating a plurality of time charts. Instructions to control are included. Therefore, the control command rewrites the internal time used as a program counter corresponding to a so-called program counter in a general computer program language in the present embodiment, and the internals of the time chart 10 other than the time chart 10 being executed. This includes something that controls the time stoppage.
 これにより、複数のタイムチャート10が存在する場合に、それぞれのタイムチャート10を連動させ、その進行停止を細かく制御することができる。そのため、たとえば大規模な制御が必要な場合であっても、システムに含まれるモジュールごとにタイムチャート10を作成し、それぞれのタイムチャート10の実行停止を制御することにより全体制御を実現するなど、その生産性・保守性を高めることができる。 Thereby, when there are a plurality of time charts 10, it is possible to interlock each time chart 10 and finely control its progress stop. Therefore, for example, even when large-scale control is required, a time chart 10 is created for each module included in the system, and overall control is realized by controlling the execution stop of each time chart 10, etc. The productivity and maintainability can be improved.
 なお、一般的なコンピュータプログラミング言語にいう制御命令あるいは制御構文は、命令の実行順序を通常の逐次実行以外の順序に変化させる指令であるが、ここでいう制御命令は、機器の動作や制御命令の実行順序を記述された時間通り以外の順序に変化させるものということができる。また、本明細書で言う高度な制御とは、単なる逐次実行とは異なり、制御命令により、制御の実行順序を記述された以外の順序に変化させる制御を指す。すなわち、本実施形態では、タイムチャート10が時間軸に対して制御命令を記述した制御チャート12を含むことにより、タイムチャート10上で高度な制御を記述することができ、また、かかるタイムチャート10を変換して得られる制御データが、時刻に紐づけられた制御命令を示す制御命令データを含むことにより、タイムチャート10に基く高度な制御を実行することもできるのである。 A control command or control syntax in a general computer programming language is a command that changes the execution order of instructions to a sequence other than normal sequential execution. It can be said that the execution order is changed to an order other than the described time. Further, advanced control as used in this specification refers to control in which the execution order of control is changed to an order other than that described by a control instruction, unlike simple sequential execution. That is, in the present embodiment, since the time chart 10 includes the control chart 12 in which the control command is described with respect to the time axis, it is possible to describe advanced control on the time chart 10, and the time chart 10 By including the control command data indicating the control command associated with the time in the control data obtained by converting the above, advanced control based on the time chart 10 can be executed.
 そして、図3に示したように、制御命令は、機器チャート11とは別個に表示される制御チャート12上の時刻を指定して記述される。これにより、タイムチャート10に接した際に、その制御の実行順序や複数のタイムチャート10の連動に関係する部分の記述を一瞥して把握できる。すなわち、制御チャート12が機器チャート11と区別し得る態様で表示されることにより、制御命令が機器の動作の記述中に埋没して認識が困難となる事態を防いでいるのである。結果、タイムチャート10の可読性が高まり、修正等の保守や再利用が容易になる等、タイムチャート10の生産性が高まる。 As shown in FIG. 3, the control command is described by designating the time on the control chart 12 displayed separately from the device chart 11. Thereby, when contacting the time chart 10, it is possible to grasp at a glance the description of the part related to the execution order of the control and the interlocking of the plurality of time charts 10. In other words, the control chart 12 is displayed in a manner that can be distinguished from the device chart 11, thereby preventing a situation in which the control command is buried in the description of the operation of the device and is difficult to recognize. As a result, the readability of the time chart 10 increases, and the productivity of the time chart 10 increases, such as the maintenance and reuse of corrections and the like being facilitated.
 図7は、本実施形態に係る機器制御システム1の機能ブロック図である。なお、ここで示した機能ブロックは、機器制御システム1に含まれる機器、特にタイムチャート作成装置2と機器制御装置3が有する機能に着目して示したものであり、必ずしも各機能ブロックに1対1に対応する物理的構成が存在することを有しない。いくらかの機能ブロックはタイムチャート作成装置2のCPU2aや、機器制御装置3が有するプロセッサ等の汎用或いは専用の情報処理装置が特定のソフトウェアを実行することにより実現され、またいくらかの機能ブロックはタイムチャート作成装置2のRAM2bや、機器制御装置3が有するメモリ等の情報記憶装置に特定の記憶領域が割り当てられることにより実現されてよい。 FIG. 7 is a functional block diagram of the device control system 1 according to the present embodiment. The functional blocks shown here are shown focusing on the functions of the devices included in the device control system 1, particularly the time chart creation device 2 and the device control device 3. There is no physical configuration corresponding to 1. Some functional blocks are realized by the CPU 2a of the time chart creation device 2 and a general-purpose or dedicated information processing device such as a processor included in the device control device 3 executing specific software, and some functional blocks are time charts. This may be realized by allocating a specific storage area to the information storage device such as the RAM 2b of the creation device 2 or the memory included in the device control device 3.
 タイムチャート作成装置2は、タイムチャート作成部2i、変換部2j及び送信部2kを有する。また、さらに好ましくはタイムチャートシミュレート部2m、機器シミュレート部2nをも備えたものとするとよい。 The time chart creation device 2 includes a time chart creation unit 2i, a conversion unit 2j, and a transmission unit 2k. More preferably, a time chart simulating unit 2m and a device simulating unit 2n are also provided.
 タイムチャート作成部2iは、モニタ2hに例えば図3に示したような態様でタイムチャートを表示し、入力デバイス2eからの入力を受け付け、タイムチャートを作成する部分であり、制御チャートを作成する制御チャート作成部2o及び機器チャートを作成する機器チャート作成部2pを含む。タイムチャート作成部2iは、タイムチャートを作成するにあたり、ユーザからの入力指示が容易となるよう適宜のGUI(Graphical User Interface)を備えていることが望ましい。そのようなGUIとしては、例えば、図3に即して説明するならば、制御チャート作成部2oでは、制御チャート12の基準線13上の特定の時刻を任意のポインティングデバイスでポイントすると、記述可能な制御命令の選択肢が表示され、あるいは必要な情報を入力させるためのダイアログを表示する等が挙げられる。機器チャート作成部2pでは、機器チャート11の基準線13上の特定の時刻を同様にポイントすると、記述可能な動作の選択肢が表示され、あるいはダイアログを表示する等である。 The time chart creation unit 2i is a part that displays a time chart on the monitor 2h in a manner as shown in FIG. 3, for example, receives an input from the input device 2e, creates a time chart, and creates a control chart. A chart creation unit 2o and a device chart creation unit 2p for creating a device chart are included. When creating the time chart, the time chart creation unit 2i preferably includes an appropriate GUI (Graphical User Interface) so that an input instruction from the user is easy. Such a GUI can be described, for example, by referring to FIG. 3 when the control chart creation unit 2o points to a specific time on the reference line 13 of the control chart 12 with an arbitrary pointing device. For example, a selection of an appropriate control command is displayed, or a dialog for inputting necessary information is displayed. In the device chart creation unit 2p, when a specific time on the reference line 13 of the device chart 11 is pointed in the same manner, descriptions of operations that can be described are displayed, or a dialog is displayed.
 変換部2jは、タイムチャート作成部2iで作成されたタイムチャートを制御データに変換する部分である。ここで、図3に示したように、タイムチャート10には制御チャート12が含まれ、制御命令は制御チャート12上に記述されるようになっている。しかしながら、前述したように、制御チャート12は特定の機器に対応づけられるものではなく、高度な制御に関するタイムチャート10の可読性を向上するための仮想的なチャートである。そのため、機器制御装置3においてタイムチャートに基く制御を実行するにあたっては、必ずしも制御チャートが明示的に示されていることは必要ではない。すなわち、タイムチャートから変換された制御データが、制御命令であることを示すデータを含んでいれば、機器制御装置3自体は制御チャートそのものを認識することなくタイムチャートにしたがった制御を実行することが可能である。したがって、制御データは、タイムチャートに含まれる制御チャートに記述され、時刻に紐づけられた制御命令を示す制御命令データと、タイムチャートに含まれる機器チャートに記述され、時刻に紐づけられた機器の動作を示す動作データを含むものとなる。 The conversion unit 2j is a part that converts the time chart created by the time chart creation unit 2i into control data. Here, as shown in FIG. 3, the time chart 10 includes a control chart 12, and control commands are described on the control chart 12. However, as described above, the control chart 12 is not associated with a specific device, but is a virtual chart for improving the readability of the time chart 10 related to advanced control. Therefore, when the control based on the time chart is executed in the device control device 3, it is not always necessary to explicitly show the control chart. That is, if the control data converted from the time chart includes data indicating that it is a control command, the device control device 3 itself executes control according to the time chart without recognizing the control chart itself. Is possible. Therefore, the control data is described in the control chart included in the time chart, the control instruction data indicating the control instruction associated with the time, and the apparatus described in the device chart included in the time chart and associated with the time. The operation data indicating the operation is included.
 変換部2jにより変換された制御データは、送信部2kにより機器制御装置3に送信され、後述する制御データ保持部3aに保持され、必要に応じて読みだされて実行されることになる。ここで、一般的に、タイムチャート作成装置2において作成されるタイムチャートそのものを示す情報のデータ量と、変換部2jにより変換された制御データのデータ量とを比較すると、制御データのデータ量の方が小さい。したがって、制御データをタイムチャート作成装置2側で作成し送信することにより、通信しなければならないデータ量及び、制御データ保持部3aで保持しなければならないデータ量は低減される。また、機器制御装置3側にタイムチャートを解読するためのエンジンを別途用意する必要がなく、容量の削減及び、高速な動作が可能である。さらに、タイムチャートの仕様変更などの際には、タイムチャート作成装置2側の変換部2jの仕様を変更すればよく、機器制御装置3側のファームウェア等の変更は通常必要ないため、柔軟な運用が可能である。 The control data converted by the conversion unit 2j is transmitted to the device control apparatus 3 by the transmission unit 2k, held in a control data holding unit 3a described later, and read and executed as necessary. Here, generally, when the data amount of information indicating the time chart itself created in the time chart creation device 2 is compared with the data amount of the control data converted by the conversion unit 2j, the data amount of the control data is Is smaller. Therefore, by creating and transmitting the control data on the time chart creating apparatus 2 side, the amount of data that must be communicated and the amount of data that must be held by the control data holding unit 3a are reduced. Further, it is not necessary to separately prepare an engine for decoding the time chart on the device control device 3 side, and capacity reduction and high-speed operation are possible. Furthermore, when the specification of the time chart is changed, it is only necessary to change the specification of the conversion unit 2j on the time chart creation device 2 side, and it is usually unnecessary to change the firmware etc. on the device control device 3 side. Is possible.
 ところで、制御データの具体的な構成や形式は、先述したように、時刻に紐付けられた機器の動作を示す動作データと、時刻に紐付けられた制御命令を示す制御命令データと、を少なくとも含むものであれば特に限定はなくいかなるものであってもよい。すなわち、制御データのデータ形式がテキスト形式であってもバイナリ形式であってもよい。例えば、制御データを示す電子ファイルがテキスト形式のものである場合には、当該ファイルはいわゆるcsv形式等の配列形式やxml形式としてよい。 By the way, as described above, the specific configuration and format of the control data includes at least the operation data indicating the operation of the device linked to the time and the control command data indicating the control command linked to the time. Any material may be used as long as it is contained. That is, the data format of the control data may be a text format or a binary format. For example, when the electronic file indicating the control data is in a text format, the file may be in an array format such as a so-called csv format or an xml format.
 図8は、制御データの構成例を示す図である。一例として、制御データは、ファイル冒頭に項目として初期化データを有し、その後、必要な数だけ動作データ及び制御データが続く。ファイルの最後には、必要であれば、制御データの終了を示すeof(End Of File)が付加される。なお、ここでは制御データはcsv形式のデータであり、各項目はカンマで区切って示される。 FIG. 8 is a diagram showing a configuration example of control data. As an example, the control data has initialization data as an item at the beginning of the file, and then the necessary number of operation data and control data follow. At the end of the file, if necessary, eof (End Of File) indicating the end of the control data is added. Here, the control data is csv format data, and each item is shown separated by a comma.
 初期化データは、タイムチャート自身についての情報や、タイムチャートを実行するにあたり必要となる各種の情報、例えば機器制御装置3に接続される機器の情報を含むデータである。例えば、必要な情報は「ENTRY=”value”;・・・」といった形式で示される。具体的には、タイムチャートの番号が「1」、プロジェクト名が「クレーンゲーム」、製作者の名前が「yaskawa」である、図3に示すタイムチャート10の場合、一例として、「CHARTNUM=”1”;PROJECTNAME=”クレーンゲーム”;AUTHOR=”yaskawa”;M1=”COINSLOT”」等となる。ここで、ENTRYとして示された「CHARTNUM」はタイムチャートの番号を、「PROJECTNAME」はプロジェクト名、「AUTHER」はその制作者を示し、「M1」は機器制御装置3に接続された機器の種別を示すものである。もちろん、必要に応じてこれ以上の情報を初期化データに含ませてよい。 The initialization data is data including information on the time chart itself, various information necessary for executing the time chart, for example, information on the equipment connected to the equipment control device 3. For example, necessary information is shown in a format such as “ENTRY =“ value ”;... Specifically, in the case of the time chart 10 shown in FIG. 3 in which the time chart number is “1”, the project name is “crane game”, and the producer name is “yaskawa”, as an example, “CHARTNUM =” 1 ”; PROJECTNAME =“ crane game ”; AUTHOR =“ yaskawa ”; M1 =“ COINSLOT ””, etc. Here, “CHARTNUM” indicated as ENTRY indicates the time chart number, “PROJECTNAME” indicates the project name, “AUTHER” indicates the creator, and “M1” indicates the type of the device connected to the device control device 3. Is shown. Of course, if necessary, more information may be included in the initialization data.
 また、動作データは、その動作データが対象とする機器と、その動作が記述された時刻と、その動作の内容を含むデータであり、例えば、「時刻;機器番号;動作」といった形式で示される。例えば、図5の「Xスイッチ」についての機器チャート11において、0.5秒の時点で示された動作であれば、「0.5;M2;ON」等となる。 In addition, the operation data is data including the target device of the operation data, the time at which the operation is described, and the content of the operation, and is represented in a format such as “time; device number; operation”, for example. . For example, in the device chart 11 for the “X switch” in FIG. 5, if the operation is shown at the time of 0.5 seconds, “0.5; M2; ON” is set.
 制御命令データについても同様であり、制御命令データである旨、その制御命令が記述された時刻及びその制御命令の内容を含むデータとなっている。例えば、図3に示したPlay命令であれば、「1.0;C;Play2」等となる。ここで、「C」は制御命令であることを示し、「Play2」はタイムチャート2の実行を開始する命令を示す。 The same applies to the control command data. The data includes control instruction data, the time when the control command is described, and the content of the control command. For example, in the case of the Play instruction shown in FIG. 3, “1.0; C; Play 2” or the like. Here, “C” indicates a control command, and “Play2” indicates a command for starting execution of the time chart 2.
 図7に戻り、機器制御装置3は、制御データ保持部3aに転送された制御データを保持する。また、機器制御装置3は、内部時刻計時部3bを有しており、内部時刻を計時する。ここで、内部時刻計時部3bは、複数のタイムチャートそれぞれに対応する複数の内部時刻を保持しており、それぞれ独立してその値を保持するとともに、その進行停止を切り替えることができる。これにより、複数のタイムチャートの実行停止を内部時間の進行停止に基いて制御することができる。内部時刻計時部3bにより計時される内部時刻の進行速度は、通常は実時間の進行速度と一致するものとされるが、これを異なるものとしてもよい。すなわち、内部時刻の進行速度を、実時間に対しより早く、或いはより遅いものとしてもよい。この内部時刻の進行速度の実時間の進行速度に対する比はオーバーライド係数として知られており、必要に応じてこのオーバーライド係数を調整することにより、タイムチャートを実行する際の進行速度を早めたり、遅くしたりしてよい。 Returning to FIG. 7, the device control apparatus 3 holds the control data transferred to the control data holding unit 3a. Moreover, the apparatus control apparatus 3 has the internal time clock part 3b, and clocks internal time. Here, the internal timekeeping unit 3b holds a plurality of internal times corresponding to each of the plurality of time charts, and can hold the value independently and switch the progress stop. Thereby, the execution stop of a plurality of time charts can be controlled based on the progress stop of the internal time. The traveling speed of the internal time measured by the internal time counting unit 3b is normally the same as the traveling speed of the real time, but it may be different. That is, the advance speed of the internal time may be faster or slower than the real time. The ratio of the internal speed to the real time speed is known as the override factor, and this override factor can be adjusted as necessary to speed up or slow down the time chart. You can do it.
 そして、制御データ保持部3aに保持された制御データは、内部時刻計時部3bにより計時される内部時刻の進行に従って、制御データ読込部3cにより読み込まれる。制御データ読込部3cが有する機能は、タイムチャートごとの内部時刻に該当する時刻を持つ動作データ及び制御命令データを読み込み、読み込んだデータが制御命令データであれば、かかるデータを制御命令実行部3dに、読み込んだデータが動作データであれば、当該動作データが機器への出力を意味するものである場合、機器出力実行部3eに、当該動作データが機器からの入力を意味するものである場合、内部時刻停止部3fにそれぞれ送るというものである。 The control data held in the control data holding unit 3a is read by the control data reading unit 3c according to the progress of the internal time measured by the internal time counting unit 3b. The function of the control data reading unit 3c is to read operation data and control command data having a time corresponding to the internal time for each time chart. If the read data is control command data, the control data execution unit 3d In addition, if the read data is operation data, the operation data indicates output to the device, or the device output execution unit 3e indicates that the operation data indicates input from the device. , And sent to the internal time stop unit 3f.
 制御命令実行部3dは、制御命令データを解釈し、実行する。制御命令が複数のタイムチャート間における実行停止を制御するものである場合、制御の対象となるタイムチャートに対応する内部時刻の進行停止、またはその値の書き換えを内部時刻計時部3bに指示することになる。また、制御命令が制御命令あるいは制御構文である場合、通常はその命令を実行するための条件と、その結果としてタイムチャート上での制御転送を示すので、制御命令実行部3dは、制御命令データの解釈の結果、必要に応じて内部時刻計時部3bに保持される内部時刻を書き換えるなどの制御をおこなう。 The control command execution unit 3d interprets and executes the control command data. When the control command controls execution stop between a plurality of time charts, the internal time counting unit 3b is instructed to stop or rewrite the internal time corresponding to the time chart to be controlled. become. When the control instruction is a control instruction or a control syntax, the condition for executing the instruction is normally indicated, and as a result, the control transfer on the time chart is shown. As a result of the interpretation, control such as rewriting the internal time held in the internal timekeeping unit 3b is performed as necessary.
 機器出力実行部3eは、動作データを解釈し、機器にかかる動作を実現するために必要な信号を出力する。これにより、各機器はタイムチャートに記述された通りの動作を行うこととなる。 The device output execution unit 3e interprets the operation data and outputs a signal necessary for realizing the operation of the device. As a result, each device performs an operation as described in the time chart.
 内部時刻停止部3fは、動作データを解釈し、機器からの入力が、タイムチャートに記述されたデータと一致するまで、内部時刻計時部3bにおける、当該タイムチャートに対応する内部時刻の進行を停止する部分である。これにより、機器制御装置3は、例えば特定のスイッチが押下されるまで待機する、といった動作を行う。 The internal time stop unit 3f interprets the operation data, and stops the progress of the internal time corresponding to the time chart in the internal time counter 3b until the input from the device matches the data described in the time chart. It is a part to do. Thereby, the device control apparatus 3 performs an operation such as waiting until a specific switch is pressed, for example.
 ところで、本実施形態にかかる機器制御システム1において使用し得る制御命令において、複数のタイムチャートを連動させる制御をおこなうために用いられる命令を例示すると、おおむね図9に示した通りである。 By the way, in the control command that can be used in the device control system 1 according to the present embodiment, the command used for performing the control for interlocking a plurality of time charts is exemplified as shown in FIG.
 図9に示した「Play(n)」は、前述したとおり、n番目のタイムチャートを最初から実行させる命令である。この命令が実行されると、n番目のタイムチャートについての内部時刻が0秒にリセットされ、さらにその進行が開始される。この結果、現在実行中のタイムチャート10に加えて、さらに、同命令で指定されたタイムチャートが同時並行的に実行されることになる。ここで、実行するタイムチャートの指定は、必ずしも番号によらず、タイムチャートに付した名前等を用いてもよい。以下同様である。 “Play (n)” shown in FIG. 9 is an instruction for executing the n-th time chart from the beginning as described above. When this command is executed, the internal time for the nth time chart is reset to 0 seconds, and further its progress is started. As a result, in addition to the time chart 10 currently being executed, the time chart designated by the same instruction is executed in parallel. Here, the designation of the time chart to be executed is not necessarily based on the number, and the name assigned to the time chart may be used. The same applies hereinafter.
 「Pause(n)」は、n番目のタイムチャートの実行を中断させる命令である。この命令が実行されると、n番目のタイムチャートについての内部時刻の進行が停止される。この結果、n番目のタイムチャートの実行は中断される。ここで、進行が停止した内部時刻の値は、そのまま保持される。 “Pause (n)” is an instruction for interrupting execution of the nth time chart. When this command is executed, the progress of the internal time for the nth time chart is stopped. As a result, the execution of the nth time chart is interrupted. Here, the value of the internal time when the progress is stopped is held as it is.
 「Continue(n)」は、n番目のタイムチャートの実行を再開させる命令である。この命令が実行されると、n番目のタイムチャートについての内部時刻は、その現在保持されている内部時刻から進行が再開される。この結果、n番目のタイムチャートは、例えば前述のPause命令により実行が中断された時点から、その実行を再開する。 “Continue (n)” is an instruction to resume execution of the nth time chart. When this command is executed, the internal time for the nth time chart resumes from the currently held internal time. As a result, the execution of the nth time chart is resumed from the time when the execution is interrupted by the Pause instruction, for example.
 「Abort(n)」は、前述のとおり、n番目のタイムチャートの実行を終了するというもので、この命令が実行されると、n番目のタイムチャートについての内部時刻の進行が停止され、その値は0秒にリセットされる。 As described above, “Abort (n)” terminates the execution of the nth time chart. When this instruction is executed, the progress of the internal time for the nth time chart is stopped, The value is reset to 0 seconds.
 「Call(n)」は、前述のとおりいわゆるサブルーチンコールであり、n番目のタイムチャートをサブルーチンとして呼び出す。この命令が実行されると、この命令が記述されているタイムチャートにおける内部時刻の進行が停止され、n番目のタイムチャートについての内部時刻を0秒にリセットするとともにその進行が開始される。n番目のタイムチャートに記述されたReturn命令が実行されるか、その動作が終了すると、内部時刻の進行が再開される。 “Call (n)” is a so-called subroutine call as described above, and calls the n-th time chart as a subroutine. When this command is executed, the progress of the internal time in the time chart in which this command is described is stopped, the internal time for the nth time chart is reset to 0 seconds and the progress is started. When the Return instruction described in the nth time chart is executed or the operation is completed, the progress of the internal time is resumed.
 以上の通り、本実施形態においては、複数のタイムチャート間における実行停止を制御する制御命令に、少なくともタイムチャートを最初から実行させる命令、タイムチャートの実行を中断させる命令、タイムチャートの実行を再開させる命令、タイムチャートの実行を終了する命令、タイムチャートをサブルーチンとして呼び出す命令のいずれかが含まれる。これにより、複数のタイムチャートを連動させる制御を容易にかつ柔軟に記述することができる。なお、以上の説明では複数のタイムチャート間における実行停止を制御する制御命令はいずれも、かかる制御命令が記載されたタイムチャート以外のタイムチャートの実行停止を制御するものとして説明したが、制御命令が記載されたタイムチャートそれ自体の実行停止を制御するようにしてもよい。あるいは、制御命令が記載されたタイムチャートそれ自体の実行停止を禁止してもよい。 As described above, in the present embodiment, at least a command for executing the time chart from the beginning, a command for interrupting the execution of the time chart, and restarting the execution of the time chart in the control command for controlling execution stop between the plurality of time charts Instruction to end execution of the time chart, and an instruction to call the time chart as a subroutine. Thereby, it is possible to easily and flexibly describe the control for interlocking a plurality of time charts. In the above description, it has been described that any control command for controlling execution stop between a plurality of time charts controls execution stop of time charts other than the time chart in which such control instruction is described. May be controlled to stop the execution of the time chart itself. Alternatively, the execution of the time chart itself describing the control command may be prohibited.
 さらに、本実施形態においては、複数のタイムチャートを連動させる制御をおこなうために用いられる命令に、いわゆる例外処理を行うための例外処理命令が含まれていてよい。ここでいう例外処理命令は、何らかの事象、たとえばエラーの発生に応じて、特定の例外処理を行うというものである。この事象は、いわゆるエラーとしてあらかじめ定められているもの(例えば、機器制御装置3自身が発するエラーや、機器制御装置3と接続されるサーボコントローラ等の機器が発するエラー等)としてもよいし、ユーザが事象を設定できるようにしてもよい。例外処理に設定すべき事象としては、例えば、非常停止ボタンの押し下げなどが考えられる。以降、例外処理を発生させるべき事象のことを、単に事象という。 Furthermore, in this embodiment, an exception processing instruction for performing so-called exception processing may be included in an instruction used for performing control for interlocking a plurality of time charts. The exception processing instruction here is to perform specific exception processing in response to occurrence of some event, for example, an error. This event may be predetermined as a so-called error (for example, an error generated by the device control device 3 itself, an error generated by a device such as a servo controller connected to the device control device 3), or the user May be able to set events. As an event to be set for exception processing, for example, pressing an emergency stop button can be considered. Hereinafter, an event that should cause exception handling is simply referred to as an event.
 図10Aは、例外処理として、例外発生時にn番目のタイムチャートを実行するものを制御チャート12に記述した例である。この例では、1.0秒の時点に記述されている制御命令であるTry_Play命令は、事象発生の監視の開始を意味し、4.0秒の時点に記述されている制御命令であるTry_E命令は、事象発生の監視の終了を意味する。すなわち、このTry_Play命令とTry_E命令に挟まれた区間である1.0~4.0秒の区間内において事象が発生すれば、例外処理が行われることになる。 FIG. 10A is an example in which the nth time chart is executed in the control chart 12 when exception occurs as exception processing. In this example, the Try_Play command, which is a control command described at the time of 1.0 second, means the start of event occurrence monitoring, and the Try_E command, which is a control command written at the time of 4.0 seconds. Means the end of event occurrence monitoring. That is, if an event occurs in a section of 1.0 to 4.0 seconds that is a section between the Try_Play instruction and the Try_E instruction, exception processing is performed.
 1.0~4.0秒の区間内において事象が発生した場合には、機器制御装置3は例外処理として、前述のPlay(n)命令を実行する。すなわち、このTry_Play命令とTry_E命令とが記述されたタイムチャートと並行して、n番目のタイムチャートがその内部時刻が0秒の時点から実行されることになる。 If an event occurs within the interval of 1.0 to 4.0 seconds, the device control device 3 executes the above-described Play (n) command as an exception process. That is, in parallel with the time chart in which the Try_Play instruction and the Try_E instruction are described, the nth time chart is executed from the time when the internal time is 0 second.
 図10Bは、例外処理として、例外発生時にサブルーチンコールを行うものを制御チャート12に記載した例である。この場合では、1.0秒の時点に記述されている制御命令であるTry_Call命令は、先のTry_Play命令と同様に事象発生の監視の開始を意味し、Try_E命令は事象発生の監視の終了を意味するので、この例でも1.0~4.0秒の区間内において事象が発生すれば、例外処理が行われることになる。 FIG. 10B shows an example in which a subroutine call is performed in the control chart 12 when an exception occurs as exception processing. In this case, the Try_Call instruction, which is a control instruction described at the time of 1.0 second, means the start of event occurrence monitoring as in the previous Try_Play instruction, and the Try_E instruction indicates the end of event occurrence monitoring. This means that, even in this example, if an event occurs within a section of 1.0 to 4.0 seconds, exception handling is performed.
 1.0~4.0秒の区間内において事象が発生した場合には、機器制御装置3は例外処理として、前述のCall(n)命令を実行する。すなわち、このTry_Play命令とTry_E命令とが記述されたタイムチャートの内部時刻の進行を停止し、n番目のタイムチャートをその内部時刻が0秒の時点から実行する。n番目のタイムチャートにおいてReturn命令が実行されるか、その動作が終了すると、進行が停止された時点から内部時刻の進行が再開される。 When an event occurs in the interval of 1.0 to 4.0 seconds, the device control device 3 executes the above Call (n) command as an exception process. That is, the progress of the internal time of the time chart in which the Try_Play instruction and the Try_E instruction are described is stopped, and the nth time chart is executed from the time when the internal time is 0 second. When the Return instruction is executed in the nth time chart or when the operation is completed, the progress of the internal time is resumed from the time when the progress is stopped.
 なお、上述の例では、例外処理命令(Try_Play命令、Try_Call命令、Try_E命令)を他の制御命令と同じく制御チャート12上に記述したが、タイムチャート作成者の理解をより容易にするため、例外処理命令を記述する制御チャートを通常の制御命令(例外処理命令以外の制御命令)と異なるチャートに記述するようにしてもよい。 In the above example, exception handling instructions (Try_Play instruction, Try_Call instruction, Try_E instruction) are described on the control chart 12 as with other control instructions. However, in order to make it easier for the time chart creator to understand, exception handling instructions are described. The control chart describing the processing instruction may be described in a chart different from a normal control instruction (control instruction other than the exception processing instruction).
 図10Cは、例外処理命令を、通常の制御命令、すなわち例外処理命令以外の制御命令を記述する通常制御チャート12aとは区別して示されるチャートである、例外ハンドラ12bに記述した例を示す図である。ここで、例外ハンドラ12bもまた、特定の機器に対応付けられない仮想的なチャートであることから、制御チャート12の一種である。したがって、この例では制御チャート12には通常制御チャート12aと例外ハンドラ12bとが含まれることになる。 FIG. 10C is a diagram illustrating an example in which an exception handling instruction is described in an exception handler 12b, which is a chart that is distinguished from a normal control instruction, that is, a normal control chart 12a that describes a control instruction other than an exception handling instruction. is there. Here, the exception handler 12b is also a kind of the control chart 12 because it is a virtual chart that is not associated with a specific device. Therefore, in this example, the control chart 12 includes a normal control chart 12a and an exception handler 12b.
 以上のように、複数のタイムチャートを連動させる制御をおこなうために用いられる命令に、特定の事象に応じて内部時刻を書き換える、例外処理命令が含まれてよい。これにより、複数のタイムチャート間の連動制御をより柔軟かつ高度なものとすることができる。 As described above, an exception processing instruction that rewrites the internal time in accordance with a specific event may be included in an instruction used to perform control for interlocking a plurality of time charts. Thereby, the interlocking control between a plurality of time charts can be made more flexible and advanced.
 図11は、タイムチャート作成装置2によりタイムチャートを作成する手順を示すフロー図である。この手順は、同図に示すように、まず、タイムチャート作成装置2のタイムチャート作成部2iの制御チャート作成部2oにより制御チャートを、機器チャート作成部2pにより機器チャートをGUI上で作成し(ステップS1)、次いで変換部2jにより作成したタイムチャートを制御データに変換し(ステップS2)、最後に変換された制御データを送信部2kにより機器制御装置3へと送信すればよい(ステップS3)。 FIG. 11 is a flowchart showing a procedure for creating a time chart by the time chart creating apparatus 2. In this procedure, as shown in the figure, first, a control chart creation unit 2o of the time chart creation unit 2i of the time chart creation device 2 creates a control chart on the GUI, and a device chart creation unit 2p creates a device chart on the GUI ( Next, the time chart created by the conversion unit 2j is converted into control data (step S2), and the finally converted control data is transmitted to the device control apparatus 3 by the transmission unit 2k (step S3). .
 図12は、機器制御装置3により制御データに基いてタイムチャートを実行する手順を示すフロー図である。まず、機器制御装置3の内部時刻計時部3bは、各タイムチャートについてその内部時刻を初期値である0秒に設定する(ステップS4)。また、このときに、代表となるタイムチャート、例えば1番目のタイムチャートについてのみ、内部時刻が進行するよう設定する。続いて、制御データ読込部3cは、各タイムチャートそれぞれについてその内部時刻に合致する時刻をもつ制御命令データ、或いは、動作データが存在するか否か判別し、存在していれば当該データを読み込む(ステップS5)。この動作は、同時刻に複数のデータが存在する場合には、複数のデータ全てについて読み込みが完了した場合に、もはやデータが存在しないものと判別することになる。 FIG. 12 is a flowchart showing a procedure for executing a time chart by the device control device 3 based on the control data. First, the internal time counting unit 3b of the device control device 3 sets the internal time for each time chart to 0 seconds, which is an initial value (step S4). At this time, the internal time is set to advance only for a representative time chart, for example, the first time chart. Subsequently, the control data reading unit 3c determines whether or not there is control command data or operation data having a time corresponding to the internal time for each time chart, and reads the data if it exists. (Step S5). In this operation, when a plurality of data exist at the same time, it is determined that the data no longer exists when the reading of all the plurality of data is completed.
 現在の内部時刻に対応する制御命令データも動作データも存在しない場合には、つづくステップS6にて当該タイムチャートの終了を判別する。この判別は、現在の内部時刻以降の時刻に対応する制御命令データも動作データも存在しない場合に肯定される。この判別の具体的な手法は特に限定されないが、例えば、あらかじめ制御データの初期化データ内に制御命令データ又は動作データが最後に記述された時刻を記述しておいたり、制御データを検索して最も遅い時刻として記述されている時刻を抽出しておくことにより容易に実現できる。あるいは、タイムチャート上に明示的に動作の終了を制御命令として記述しておくようにしてもよい。 If neither the control command data nor the operation data corresponding to the current internal time exists, the end of the time chart is determined in a subsequent step S6. This determination is affirmed when neither control command data nor operation data corresponding to the time after the current internal time exists. The specific method of this determination is not particularly limited. For example, the time when control command data or operation data was last described in the initialization data of the control data is described in advance, or the control data is searched. This can be easily realized by extracting the time described as the latest time. Alternatively, the end of the operation may be explicitly described as a control command on the time chart.
 当該タイムチャートの実行を終了する場合、ステップS8へと進み、その内部時刻の進行を停止する。続くステップS9で、全ての内部時刻の進行が停止されたか否か判別し、肯定であれば、機器制御装置3はその動作を終了する。そうでなければ、ステップS5へと戻る。 When the execution of the time chart is finished, the process proceeds to step S8, and the progress of the internal time is stopped. In subsequent step S9, it is determined whether or not the progress of all internal times has been stopped. If the determination is affirmative, the device control device 3 ends the operation. Otherwise, the process returns to step S5.
 ステップS6でタイムチャートの実行を終了しない場合には、さらにステップS7へと進み、内部時刻計時部3bにより、現在進行中の内部時刻が更新される。この内部時刻の更新は、所定のタイミングで所定の量だけ内部時刻を進めるようになされ、例えば、実時間が1ms進行する毎に内部時刻に1msを加算する。現在停止中の内部時刻についてはこの更新は行われないため、その値は変化しない。内部時刻が更新されると、再びステップS5へと戻り、以降繰り返す。 If the execution of the time chart is not terminated in step S6, the process further proceeds to step S7, and the internal time counter 3b updates the internal time currently in progress. The internal time is updated so that the internal time is advanced by a predetermined amount at a predetermined timing. For example, 1 ms is added to the internal time every time the actual time advances by 1 ms. Since this update is not performed for the currently stopped internal time, its value does not change. When the internal time is updated, the process returns to step S5 again and is repeated thereafter.
 ステップS5にて現在の内部時刻に対応する制御命令データ又は動作データが存在する場合には、ステップS10へと進み、当該データが制御命令データであるか動作データであるかにより制御を分岐させる。制御命令データである場合にはステップS11へと進み、制御命令実行部3dにより制御命令データが解釈され、必要に応じて内部時刻の進行停止が切り替えられ、またその値が書き換えられる。その後制御は再びステップS5へと戻る。 If there is control instruction data or operation data corresponding to the current internal time in step S5, the process proceeds to step S10, and the control is branched depending on whether the data is control instruction data or operation data. If it is the control command data, the process proceeds to step S11, where the control command execution unit 3d interprets the control command data, switches the advance / stop of the internal time as necessary, and rewrites the value. Thereafter, the control returns to step S5 again.
 一方、ステップS10において当該データが動作データである場合には、さらにステップS12へと進み、当該動作データが機器への出力を意味するものであるか、機器からの入力を意味するものであるかを判別する。出力を意味するものである場合、ステップS13へと進み、機器出力実行部3eにより、動作データに応じた機器への出力が実行される。その後制御はステップS5へと戻される。 On the other hand, if the data is operation data in step S10, the process further proceeds to step S12, and does the operation data mean output to the device or input from the device? Is determined. If it means output, the process proceeds to step S13, and output to the device according to the operation data is executed by the device output execution unit 3e. Thereafter, the control is returned to step S5.
 ステップS12において、当該動作データが入力を意味するものである場合、ステップS14へと進み、内部時刻停止部3fにより、当該機器からの入力が、当該動作データに示された動作と一致するか否かを判別する。一致しなければ、ステップS15にて該当する内部時刻の進行を停止し、再びステップS5へと戻る。これにより、当該機器からの入力が、当該動作データに示された動作と一致するまで、そのタイムチャートにおける内部時刻の進行が停止されることになる。ステップS14にて両者が一致すれば、ステップS16へとすすみ、停止されているならばその内部時刻の進行を再開する。その後はやはりステップS5へと戻る。 If it is determined in step S12 that the operation data represents an input, the process proceeds to step S14, and whether or not the input from the device matches the operation indicated by the operation data by the internal time stop unit 3f. Is determined. If not coincident, the progress of the corresponding internal time is stopped in step S15, and the process returns to step S5 again. Thus, the progress of the internal time in the time chart is stopped until the input from the device matches the operation indicated in the operation data. If both match in step S14, the process proceeds to step S16, and if stopped, the progress of the internal time is resumed. Thereafter, the process returns to step S5.
 なお、図7に示したように、タイムチャート作成装置2は、タイムチャートシミュレート部2mと機器シミュレート部2nをさらに有していてもよい。このタイムチャートシミュレート部2mと機器シミュレート部2nは、タイムチャート作成装置2により作成されたタイムチャートの動作を、機器制御装置3を用いて現実に実行させることなくシミュレーションにより確認するための構成である。 As shown in FIG. 7, the time chart creation device 2 may further include a time chart simulation unit 2m and a device simulation unit 2n. The time chart simulating unit 2m and the device simulating unit 2n are configured to confirm the operation of the time chart created by the time chart creating device 2 by simulation without actually executing it using the device control device 3. It is.
 より詳しくは、タイムチャートシミュレート部2mは、機器制御装置3が制御データを実行する場合と同様の動作を、タイムチャートに基いてタイムチャート作成装置2上で再現する。また、機器シミュレート部2nは、機器制御装置3に接続される予定の機器の動作を、タイムチャート作成装置2上で再現する。 More specifically, the time chart simulating unit 2m reproduces the same operation as when the device control apparatus 3 executes control data on the time chart creating apparatus 2 based on the time chart. The device simulation unit 2n reproduces the operation of the device scheduled to be connected to the device control device 3 on the time chart creating device 2.
 再現されたタイムチャートに記述された動作や制御、各機器の状態は、タイムチャート作成装置2のモニタ2h上に表示される。またこのとき、再現中の内部時刻は図3~5に示すマーカ15の位置として示される。これにより、機器制御システム1を現実に構築することなく、作成したタイムチャートの動作を確認することができるため、タイムチャートの不具合の発見と修正等、いわゆるデバッグ作業を簡便かつ安価に行うことができる。 The operation and control described in the reproduced time chart, and the status of each device are displayed on the monitor 2h of the time chart creation device 2. At this time, the internal time during reproduction is shown as the position of the marker 15 shown in FIGS. Thereby, since the operation of the created time chart can be confirmed without actually constructing the device control system 1, so-called debugging work such as discovery and correction of the trouble of the time chart can be performed easily and inexpensively. it can.
 図13は、タイムチャート作成装置2によりタイムチャートの動作をシミュレーションにより確認する手順を示すフロー図である。 FIG. 13 is a flowchart showing a procedure for confirming the operation of the time chart by simulation by the time chart creating apparatus 2.
 まず、ステップS17において、タイムチャートシミュレート部2mによりタイムチャートの動作を再現する。続くステップS18では、機器シミュレート部2nにより機器の動作を再現する。さらにステップS19において、シミュレーションを終了するか否かを判別し、タイムチャートの実行が終了に至っていないか、あるいはユーザによりシミュレーションの終了が支持されていない場合にはステップS17に戻り、以降繰り返す。シミュレーションを終了する場合にはそのままタイムチャート作成装置2はシミュレーションを終了する。 First, in step S17, the operation of the time chart is reproduced by the time chart simulator 2m. In the subsequent step S18, the operation of the device is reproduced by the device simulation unit 2n. Further, in step S19, it is determined whether or not to end the simulation, and if the execution of the time chart has not ended or if the end of the simulation is not supported by the user, the process returns to step S17 and is repeated thereafter. When ending the simulation, the time chart creating apparatus 2 ends the simulation as it is.
 以上説明した各実施形態の構成は具体例として示したものであり、本明細書にて開示される発明をこれら具体例の構成そのものに限定することは意図されていない。当業者はこれら開示された実施形態に種々の変形、例えば、各部材あるいはその部分の形状や数、配置等を適宜変更してもよく、また、フローチャートに示した制御は、同等の機能を奏する他の制御に置き換えてもよい。本明細書にて開示される発明の技術的範囲は、そのようになされた変形をも含むものと理解すべきである。 The configurations of the embodiments described above are shown as specific examples, and the invention disclosed in this specification is not intended to be limited to the configurations of these specific examples. Those skilled in the art may appropriately change various modifications to the disclosed embodiments, for example, the shape, number, arrangement, etc. of each member or part thereof, and the control shown in the flowchart has an equivalent function. It may be replaced with another control. It should be understood that the technical scope of the invention disclosed herein includes such modifications.

Claims (10)

  1.  1又は2以上の機器の動作を時間軸に対して記述したタイムチャートを作成するタイムチャート作成装置と、
     前記タイムチャート作成装置が作成した1又は2以上のタイムチャートに基づいて、前記1又は2以上の機器を制御する機器制御装置と、
    を備え、
     前記タイムチャート作成装置は、
     前記タイムチャートに、時間軸に対して制御命令を記述した制御チャートを作成する制御チャート作成部と、
     前記タイムチャートに、時間軸に対して機器の動作を記述した少なくとも1つの機器チャートを作成する機器チャート作成部と、
    を有し、
     前記制御命令には、複数のタイムチャート間の動作を記述するための命令が含まれる、機器制御システム。
    A time chart creation device for creating a time chart describing the operation of one or more devices with respect to a time axis;
    A device control device that controls the one or more devices based on one or more time charts created by the time chart creating device;
    With
    The time chart creation device includes:
    In the time chart, a control chart creating unit that creates a control chart describing a control command with respect to the time axis, and
    In the time chart, a device chart creating unit that creates at least one device chart describing the operation of the device with respect to the time axis, and
    Have
    The device control system, wherein the control command includes a command for describing an operation between a plurality of time charts.
  2.  前記機器制御装置は、
     前記1又は2以上のタイムチャートごとに内部時刻を保持し、計時するとともにその進行停止を切り替える内部時計計時部を有し、
     前記複数のタイムチャート間の動作を記述するための命令には、前記内部時刻の進行停止を切り替える命令が含まれる、
    請求項1に記載の機器制御システム。
    The device control device
    Holding an internal time for each of the one or more time charts, and having an internal clock timing unit that counts and stops the progress while measuring the time,
    The command for describing the operation between the plurality of time charts includes a command for switching the progress stop of the internal time.
    The device control system according to claim 1.
  3.  前記複数のタイムチャート間の動作を記述するための命令には、少なくとも、タイムチャートを最初から実行させる命令、タイムチャートの実行を中断させる命令、タイムチャートの実行を再開させる命令、タイムチャートの実行を終了する命令、タイムチャートをサブルーチンとして呼び出す命令のいずれかが含まれる、
    請求項2に記載の機器制御システム。
    The instruction for describing the operation between the plurality of time charts includes at least an instruction for executing the time chart from the beginning, an instruction for interrupting the execution of the time chart, an instruction for restarting the execution of the time chart, and execution of the time chart. Includes either an instruction to end the process or an instruction to call the time chart as a subroutine.
    The device control system according to claim 2.
  4.  前記複数のタイムチャート間の動作を記述するための命令には、さらに、事象の発生に応じて前記内部時刻の進行停止を切り替える例外処理命令を含む、
    請求項3に記載の機器制御システム。
    The instruction for describing the operation between the plurality of time charts further includes an exception processing instruction for switching the progress stop of the internal time according to the occurrence of an event.
    The device control system according to claim 3.
  5.  前記制御チャートは、前記例外処理命令以外の制御命令を記述した通常制御チャートと、前記例外処理命令を記述した例外ハンドラとを含む、
    請求項4に記載の機器制御システム。
    The control chart includes a normal control chart describing a control instruction other than the exception handling instruction, and an exception handler describing the exception handling instruction.
    The device control system according to claim 4.
  6.  請求項1に記載の機器制御システムに使用される、タイムチャート作成装置。 A time chart creation device used in the device control system according to claim 1.
  7. 請求項1に記載の機器制御システムに使用される、機器制御装置。 The apparatus control apparatus used for the apparatus control system of Claim 1.
  8.  タイムチャートに、時間軸に対して制御命令を記述した制御チャートを作成し、時間軸に対して機器の動作を記述した少なくとも1つの機器チャートを作成して、タイムチャートを作成し、
     1又は2以上の前記タイムチャートに基いて1又は2以上の機器を制御し、
     前記制御命令には、複数のタイムチャート間の動作を記述するための命令が含まれる、
    機器制御方法。
    In the time chart, create a control chart that describes the control command for the time axis, create at least one equipment chart that describes the operation of the equipment for the time axis, create a time chart,
    Controlling one or more devices based on one or more time charts,
    The control command includes a command for describing an operation between a plurality of time charts.
    Device control method.
  9.  請求項8に記載の機器制御方法に使用される、タイムチャート作成方法。 A time chart creation method used in the device control method according to claim 8.
  10. コンピュータを、請求項6に記載のタイムチャート作成装置として機能させるコンピュータプログラム。 A computer program for causing a computer to function as the time chart creation device according to claim 6.
PCT/JP2014/068963 2014-07-16 2014-07-16 Device control system, time chart creation device, device control device, device control method, time chart creation method, and computer program WO2016009519A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2016534038A JP6460108B2 (en) 2014-07-16 2014-07-16 Device control system, time chart creation device, device control device, device control method, time chart creation method, and computer program
PCT/JP2014/068963 WO2016009519A1 (en) 2014-07-16 2014-07-16 Device control system, time chart creation device, device control device, device control method, time chart creation method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2014/068963 WO2016009519A1 (en) 2014-07-16 2014-07-16 Device control system, time chart creation device, device control device, device control method, time chart creation method, and computer program

Publications (1)

Publication Number Publication Date
WO2016009519A1 true WO2016009519A1 (en) 2016-01-21

Family

ID=55078038

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/068963 WO2016009519A1 (en) 2014-07-16 2014-07-16 Device control system, time chart creation device, device control device, device control method, time chart creation method, and computer program

Country Status (2)

Country Link
JP (1) JP6460108B2 (en)
WO (1) WO2016009519A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05158508A (en) * 1991-12-05 1993-06-25 Toshiba Corp Sequence specification preparation supporting device
JPH07191717A (en) * 1992-02-05 1995-07-28 Toshiba Corp Automatic preparing device for control program
JP2003228403A (en) * 2002-02-01 2003-08-15 Ide Keiki:Kk Sequence control method and sequencer device
JP2008020956A (en) * 2006-07-10 2008-01-31 Kanagawa Prefecture Ladder diagram creation method
JP2012064033A (en) * 2010-09-16 2012-03-29 Canon Inc Timing chart processing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05158508A (en) * 1991-12-05 1993-06-25 Toshiba Corp Sequence specification preparation supporting device
JPH07191717A (en) * 1992-02-05 1995-07-28 Toshiba Corp Automatic preparing device for control program
JP2003228403A (en) * 2002-02-01 2003-08-15 Ide Keiki:Kk Sequence control method and sequencer device
JP2008020956A (en) * 2006-07-10 2008-01-31 Kanagawa Prefecture Ladder diagram creation method
JP2012064033A (en) * 2010-09-16 2012-03-29 Canon Inc Timing chart processing device

Also Published As

Publication number Publication date
JP6460108B2 (en) 2019-01-30
JPWO2016009519A1 (en) 2017-04-27

Similar Documents

Publication Publication Date Title
EP2577413B1 (en) Method and system for closed-loop controller programming
US7324856B1 (en) Autogeneration of code via human-machine interfaces (HMI) and self-building HMI
US9122269B2 (en) Method and system for operating a machine from the field of automation engineering
CN102804087A (en) Controller support device, simulation method of control program, support program of controller and computer-readable storage medium storing support program of controller
JP2003256203A (en) System and method for developing automatic machine application program, program for executing the method and storage medium stored with the program
WO2010121104A1 (en) Sequence element replacement
US20240157554A1 (en) Robotic demonstration learning
US20230153486A1 (en) Method and device for simulation
US11472025B2 (en) Robotic demonstration learning device
JP2006099568A (en) Screen forming device, screen forming program and storage medium recording the same
JP6460107B2 (en) Device control system, time chart creation device, device control device, device control method, time chart creation method, and computer program
JP6460108B2 (en) Device control system, time chart creation device, device control device, device control method, time chart creation method, and computer program
US11524402B2 (en) User feedback for robotic demonstration learning
JP5962839B2 (en) Controller, time chart creation device, computer program, and computer-readable information storage medium
JP2016059989A (en) Robot control device, robot device, robot control method, program, and recording medium
JP2005202737A (en) Simulation apparatus
JP2006343818A (en) Debug method of program for teaching device
US20200241851A1 (en) Information processing apparatus, information processing method, information processing system, program production method, and program
JP4372739B2 (en) PROGRAMMABLE DISPLAY, CONTROL PROGRAM, RECORDING MEDIUM RECORDING THE PROGRAM, SCREEN CREATION DEVICE, SCREEN CREATION PROGRAM, AND RECORDING MEDIUM RECORDING THE PROGRAM
JP2007065910A (en) Screen preparation device, and screen preparation program, and record medium recording its program
JP4563255B2 (en) Programmable display, control program, and recording medium recording the program
CN118092317A (en) Numerical control method based on OpenPLC and LinuxCNC
JP2005251014A (en) Control system, control monitor program, recording medium recorded with program therefor, editor device, editor program, and recording medium recorded with program therefor
JP2014206940A (en) Equipment control system and controller
WO2024042126A1 (en) Method and system for managing technical installation during occurrence of error state in a controller

Legal Events

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

Ref document number: 14897681

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2016534038

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14897681

Country of ref document: EP

Kind code of ref document: A1