WO2007116798A1 - Control system - Google Patents

Control system Download PDF

Info

Publication number
WO2007116798A1
WO2007116798A1 PCT/JP2007/056801 JP2007056801W WO2007116798A1 WO 2007116798 A1 WO2007116798 A1 WO 2007116798A1 JP 2007056801 W JP2007056801 W JP 2007056801W WO 2007116798 A1 WO2007116798 A1 WO 2007116798A1
Authority
WO
WIPO (PCT)
Prior art keywords
transfer
user
memory card
programmable controller
information
Prior art date
Application number
PCT/JP2007/056801
Other languages
French (fr)
Japanese (ja)
Inventor
Eitarou Hioki
Original Assignee
Mitsubishi Electric Corporation
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 Mitsubishi Electric Corporation filed Critical Mitsubishi Electric Corporation
Priority to JP2008509805A priority Critical patent/JP4759048B2/en
Publication of WO2007116798A1 publication Critical patent/WO2007116798A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/12Plc mp multi processor system
    • G05B2219/1215Master slave system
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13156IC-memory card

Definitions

  • the present invention relates to a control system.
  • a programmable controller as a control device performs a predetermined process by controlling a control target according to a program, and processes and manufactures a product.
  • a programmable controller there is disclosed a configuration in which a CPU unit and a plurality of numerical control device units are connected to one mother board via a data bus to control a control target (for example, see Patent Document 1).
  • the data RAM of the CPU unit of this conventional programmable controller an area of 200 bytes for writing data to be transferred to each numerical controller unit is secured. Then, when the numerical control unit is started up, the data of the data RAM of the CPU unit is divided into a predetermined length and transferred to the numerical control unit corresponding to the area written in the data RAM.
  • Patent Document 1 Japanese Patent Publication No. 8-16846
  • Patent Document 2 Japanese Patent Laid-Open No. 2001-175309
  • each programmable controller has a user program RAM and is stored in the user program RAM according to the user program.
  • the programmable controller can perform independent processing.
  • Patent Document 1 can transmit user data from the CPU unit to each numerical control device unit, but does not disclose the case of reading the data to an external device.
  • the user program is written in the user program RAM via a programming tool connected to the CPU unit.
  • a control system programmable controller
  • a programming tool is connected to the programmable controller to write the user program.
  • the work involved was labor intensive.
  • Patent Document 1 a system in which a plurality of programmable controllers having user program RAMs are connected has been proposed in the past, but a technique for transmitting a user program in this system is disclosed in Patent Document 1. I helped. This is because the numerical control unit of the programmable controller of Patent Document 1 should be considered for the transmission of the user program in the system as described above where the user program RAM is present.
  • Patent Document 2 describes a force that allows a user program to be exchanged with a built-in memory of a programmable controller using a memory cassette.
  • the control system consisting of programmable controllers
  • the cost of the control system increases.
  • the present invention has been made in view of the above, and is a control system in which a plurality of control devices are connected via a data bus.
  • An external user file (user program and user data without using a programming tool) is provided. )) Can be transmitted between control devices.
  • a control having a data structure that can effectively use a storage area in a portable storage medium in which the user file is written. The purpose is to obtain a system.
  • a control system is capable of storing a plurality of control devices connected to each other via a data bus and having internal storage means for storing user files, and user files.
  • the portable storage medium is a transfer file for designating a user file to be transferred stored in the control device or the portable storage medium.
  • Information and a transfer parameter including a transfer destination of the user file are stored, and one control device among the plurality of control devices, according to the interface means for accessing the portable storage medium and the transfer parameter, Transfer means for transferring a user file specified by the transfer file information to the transfer destination; Characterized in that it comprises a.
  • the present invention it is easily carried without using a dedicated programming tool.
  • the user file can be transferred between the possible storage medium and the control device.
  • an interface for a portable storage medium is provided in one control device, it is possible to obtain a cheaper control device or control system.
  • FIG. 1 is a diagram schematically showing an overview of a control system according to the present invention.
  • FIG. 2 is a block diagram schematically showing the configuration of the first embodiment of the control system according to the present invention.
  • FIG. 3 is a diagram schematically showing the data structure of a memory card.
  • FIG. 4 is a diagram schematically showing the data structure of a memory card.
  • FIG. 5 is a diagram schematically showing the data structure of a memory card.
  • FIG. 6 is a diagram showing an example of transfer parameters.
  • FIG. 7 is a flowchart showing an example of a procedure of operation processing of a system program of a programmable controller.
  • FIG. 8 is a diagram illustrating an example of a data structure of transfer information.
  • FIG. 9 is a flowchart illustrating an example of a procedure of an operation process of a system program of a programmable controller.
  • FIG. 10 is a block diagram schematically showing a configuration of a third embodiment of the control system according to the present invention.
  • FIG. 11 is a diagram schematically showing an example of password information stored in the system work ROM.
  • FIG. 12 is a diagram schematically showing a data structure of a memory card.
  • FIG. 13 is a flowchart showing a procedure of a word collation process when a user file is transferred from the memory card to the programmable controller.
  • FIG. 14 is a flowchart showing a procedure of a word collation process when a user file is transferred from the programmable controller to the memory card.
  • FIG. 1 is a diagram schematically showing an overview of the control system according to the present invention
  • FIG. 2 is a block diagram schematically showing the configuration of the control system according to the first embodiment.
  • a plurality of programmable controllers 20, 40a, and 40b are mounted on a base unit 10.
  • the unit (programmable controller) installed in the leftmost slot on the base unit 10 is the master programmable controller 20, and the unit installed in another slot (programmable controller).
  • the slave programmable controller 40 (40a, 40b).
  • only the master programmable controller 20 is provided with a memory card insertion slot 31, and The Mori card 30 can be attached and detached.
  • which programmable controller is the master programmable controller 20 may be determined by another method. For example, if the base unit 10 has a plurality of slots and a plurality of programmable controllers are installed in the slots, the one installed on the leftmost side is set to a higher priority. The most expensive one is the master programmable controller.
  • the base unit 10 is provided with a data bus 11, and user data and user programs (hereinafter referred to as user data) between the programmable controllers 20 and 40 via the data bus 11.
  • user data user data
  • the master programmable controller 20 includes an MPU (Micro Processing Unit) 21 that controls processing in the master programmable controller 20, and a system program ROM (which stores a system program that executes basic processing in the master programmable controller 20).
  • Read-Only Memory) 22 system work RAM 23, which is a memory area used by the system program, and data bus 1
  • a data bus interface (framed as data bus IZF in the figure) 24 that processes the user file framed and sent to the specified destination connected to 1, and receives the frame addressed to its own programmable controller, and its own programmable controller
  • User program RAM Random Access Memory
  • user data RAM that stores data used by user programs
  • memory card interface that accesses the memory card 30 (in the figure, the memory card IZF 27).
  • system program ROM 22 stores the user file in the memory card 30 when it is inserted into the memory card 30 memory card insertion slot 31, the own master programmable controller 20, or the data bus 11. There is also included a program for executing processing to be transmitted to the slave programmable controller 40 at a predetermined destination.
  • the transfer means in the claims corresponds to, for example, the MPU 21 that executes the system program in the system program ROM 22.
  • the MPU 21 that executes the system program in the system program ROM 22.
  • the internal storage means corresponds to the user program RAM 25 and the user data RAM 26, for example.
  • the slave programmable controller 40 includes an MPU 41 that controls processing in the slave programmable controller 40 and a slave programmable controller 40.
  • the system work RAM 43 which is a memory area used by the system program, and the user file that is connected to the data bus 11 is framed and transmitted to a predetermined destination, and the frame addressed to the programmable controller is received.
  • a data bus interface 44, a user program RAM 45 that stores a user program that operates on its own programmable controller, and a user data RAM 46 that stores data used by the user program are provided. These processing units are connected via a nose 47.
  • the internal storage means in the claims corresponds to the user program RAM 45 and the user data RAM 46, for example.
  • FIG. 2 only one slave programmable controller 40 is depicted. Actually, one or more slave programmable controllers 40 are connected to the data bus 11.
  • 3 to 5 are diagrams schematically showing a data structure of the memory card.
  • a transfer parameter 70 in which information for transferring the included user file (user program or user data) to a predetermined programmable controller is described, and each programmable User files 71a to 71d (user programs 71a and 71c and user data 71b and 71d) to be transferred to the controllers 20, 40a and 40b, and the force S are stored.
  • the user programs 71a and 71c and the user data 71b and 71d are stored as files following the transfer parameter 70.
  • FIG. 4 is a diagram showing details of the transfer parameters.
  • the transfer parameter 70 includes a transfer information number 80 indicating the number of files whose data is to be rewritten, and transfer information 8 la to 8 Id indicating details regarding the file to be transferred.
  • the transfer information 81a to 81d is prepared in a number equal to the transfer information number 80.
  • Figure 4 shows four user files 71a ⁇ Since 71d is prepared, transfer information 81a to 81d corresponding to each user file 71a to 71d is prepared.
  • FIG. 5 is a diagram showing details of transfer information.
  • This transfer information 81 includes transfer file information 91 indicating the file name of the user file to be transferred, transfer programmable controller information 92 indicating the programmable controllers 20 and 40 to which the user file is to be transferred, and the transfer destination programmable. And transfer memory information 93 that designates the transfer destination of the user file in the controllers 20 and 40, more specifically, the transfer capability to the user program RAMs 25 and 45, and the transfer to the user data RAMs 26 and 46.
  • This memory card 30 corresponds to a portable storage medium within the scope of the request.
  • FIG. 6 is a diagram showing an example of transfer parameters when a user file is stored in the memory card as shown in FIG.
  • the user program 71a and user data 71b for the master programmable controller 20 and the user program 71c and user data 71d for the slave programmable controller 40a are transferred, so the number of transfer information 80 is "4".
  • transfer information 81a to 81d including transfer file information 91, transfer programmable controller information 92, and transfer memory information 93 is written in each user file 71a to 71d.
  • transfer information 81a of user file 71a “user program for master programmable controller 20” is set as transfer file information 91, and “master programmable controller 20” is set as transfer programmable controller information 92. “User program RAM” is set as the memory information 93. This means that the user name of the user name “master programmable controller user program” is written in the user program RAM 25 of the master programmable controller 20.
  • the master programmable controller 20 can change the user files 71a to 71d based on the transfer parameter 70. Can be written to the memory of the destination programmable controller 20, 40 (user program RAM 25, 45 or user data RAM 26, 46). Also, as shown in Fig. 3 to Fig. 5, user programs and user data to be transferred to each programmable controller 20, 40 can be specified by file names. Therefore, as described in the background art, it is not necessary to specify an area for writing a user file and its size, so a file of an arbitrary size can be transferred.
  • step S11 Master Z slave discrimination information is obtained (step S11), and it is discriminated whether it is the master programmable controller 20 (step S12).
  • the master programmable controller 20 determines whether or not the memory card 30 is installed in the memory card installation slot 31. Judgment is made via the memory card interface 27 (step S13). If the memory card 30 is inserted as a result of the determination (Yes in step S13), the process reads the transfer parameter 70 in the memory card 30 (step S14), and the transfer parameter It is determined whether 70 exists in the memory card 30 (step S15).
  • step S15 If the transfer parameter 70 exists (Yes in step S15), the number of transfer information 80 is obtained from it (step S16), and then one transfer from the transfer parameter 70 is obtained. Information 81 is acquired (step S17). The transfer parameter 70 is read into the system work RAM 23. Thereafter, the user file (user program or user data) is transferred from the memory card 30 to the programmable controllers 20 and 40 according to the transfer information 81 (step S18). As described above, when the transfer process of the user file according to one transfer information 81 in the transfer parameter 70 is completed, it is determined whether the transfer of the user file with the transfer information number of 80 minutes acquired in step S16 is completed. (Step S19). If the transfer of the user file with the number of transfer information of 80 minutes is completed, if it is not (No in step S19), return to step S17 and execute the transfer process of the user file with the transfer information number of 80 minutes To do.
  • the MPU 21 of the programmable controller 20 sequentially transfers the user program 71a for the master programmable controller 20, its user data 71b, the user program 71c for the slave programmable controller 40a, and its user data 71d.
  • transfer is used in this specification even when a user program and user data are written in the user program RAM 25 and the user data RAM 26 in the master programmable controller 20 in which the memory card 30 is mounted, respectively.
  • the MPU 21 of the master programmable controller 20 writes the user program 71c or the user data 71d into the user program RAM 45 or the user data RAM 46 of the slave programmable controller 40a
  • the user file is stored in the data bus interface 24.
  • the received user file is divided into sizes that can be flowed on the data bus 11, and is sent to the data bus 11 in a frame with a destination.
  • the data bus interface 44 of the slave programmable controller 40a which is the destination of the frame, monitors the data (frame) flowing on the data bus 11 and receives the frame addressed to its own programmable controller. Then, the data bus interface 44 removes the destination of the received frame and extracts the data, and the MPU 41 performs a process of writing the data into the user program RAM 45 or the user data RAM 46 as the write destination.
  • Step S13 when the transfer of the user file with the number of transfer information of 80 minutes is completed (Yes in Step S19), or in Step S13, the memory card 30 is inserted into the memory card slot. If it is not attached to the 31st (if No in step S13) or transferred in step S15 If there is no parameter 70 for use (if No in step SI5), the master programmable controller 20 notifies the slave programmable controller 40a of the completion of transfer (step S20). Thereafter, the MPU 21 executes the user program stored in the user program RAM 25 (step S24).
  • step S12 if it is determined in step S12 that the self-programmable controller is not the master programmable controller 20 (No in step S12), the slave programmable controller 40a transmits the user file transferred from the master programmable controller 20. Is received (step S21), and the received user file is written into the user program RAM 45 or the user data RAM 46 (step S22). After that, it is determined whether or not a notification of completion of user file transfer has been received from the master programmable controller 20 (step S23). If not received (No in step S23), the process enters a wait state. . Thereafter, when a notification of completion of transfer of the user file is received (Yes in step S23), the slave programmable controller 40a executes the user program stored in the user program RAM 45 (step S24).
  • the MPU 21 of the master programmable controller 20 loads the user file stored in the memory card 30 according to the system program according to the predetermined programmable controller 20. Or, it can be transferred to the programmable controller 40 and written on the memory such as the user program RAM25 or the user program RAM45, the user data RAM26 or the user data RAM46, so it is easy to use without using a dedicated programming tool. It has the effect of being able to write user files to the programmable controllers 20, 40 on the control system. For example, a user file write operation by a user of the control system is only required to mount the memory card 30 in the memory card mounting slot 31 of the master programmable controller 20.
  • the user can connect to another slave programmable controller 40 via the data bus 11. Since the file is transferred, it is not necessary to provide memory card slot 31 and memory card interface 27 in all programmable controllers 20 and 40. Memory card slot 31 and memory card interface in one programmable controller (master programmable controller 20) Since it is sufficient to provide 27, it is possible to obtain a cheaper programmable controller 20, 40 or a control system.
  • the user file to be written to each programmable controller is specified by the file name that is not specified by the address or area in the memory card 30, so an arbitrary size file can be stored in the memory card 30. And the memory area of the memory card 30 can be used effectively.
  • the power of writing a user file stored in the memory card to the programmable controller is shown.
  • the data in the user program RAM and user data RAM of each programmable controller is sucked up. We will explain the control system that can do this.
  • FIG. 8 is a diagram showing an example of the data structure of transfer information in the memory card.
  • the transfer information 81 further includes transfer direction information 94 indicating the transfer direction of the user file to the memory card 30 in the transfer information of the first embodiment.
  • This transfer direction information 94 includes, for example, the ability to write from the memory card 30 to the user program RAM 25, 45 or the user data RAM 26, 46, or from the user program RAM 25, 45 or the user data RAM 26, 46 to the memory card.
  • Other information is the same as that in the first embodiment, and a description thereof is omitted.
  • the configuration of the control system and the memory card 30 is the same as that of FIG. 1 to FIG. 4 of the first embodiment, and therefore, these drawings are used in the following description and the detailed description thereof is omitted.
  • the MPU 21 of the master programmable controller 20 acquires the transfer direction information 94 from the transfer parameter 70 of the memory card 30 (step S58), and determines whether or not the user file has the transfer capability to the memory card 30 ( Step S59).
  • the transfer direction information 94 is a write (transfer of the user file from the memory card 30 to the programmable controller 20, 40) (No in step S59), as described in the first embodiment, the transfer information is transferred.
  • the user file is transferred from the memory card 30 to the programmable controllers 20 and 40 according to 81 (step S60).
  • step S59 when the transfer direction information 94 is read (transfer of the user file from the programmable controller 20, 40 to the memory card 30) (Yes in step S59), the programmable controller 20, 40 is transferred according to the transfer information 81.
  • the user file is read from the user program RAM 25, 45 or the user data RAM 26, 46 and transferred to the memory card 30 (step S61).
  • step S62 when the transfer processing of the user file according to one transfer information 81 in the transfer parameter 70 is completed, is the transfer of the user file with the transfer information number of 80 minutes acquired in step S56 completed? Is determined (step S62). If the transfer of the user file with the transfer information number of 80 minutes is not completed (No in step S62), the process returns to step S57, and the transfer process of the user file with the transfer information number of 80 minutes is executed.
  • Step S62 When the transfer of the user file with the number of transfer information of 80 minutes is completed (Yes in Step S62), or when the memory card 30 is not inserted into the memory card insertion slot 31 in Step S53 (Step S53). If there is no transfer parameter 70 in Step S55 (No in Step S55), the master programmable controller 20 notifies the slave programmable controller 40 of the transfer completion (Step S63). . Thereafter, the MPU 21 executes the user program stored in the user program RAM 25 (step S66).
  • step S52 the self-programmable controller becomes the master programmable controller. If it is not Roller 20 (No in Step S52), Slave Programmable Controller 40 uses User Program RAM 45 or User Data RAM 46 of its own programmable controller in the user file in memory card 30 mounted on Master Programmable Controller 20. The user file is read from the user program RAM 45 or the user data RAM 46 of the self-programmable controller and written to the memory card 30 mounted on the master programmable controller 20 (step S64). Thereafter, it is determined whether or not a user file transfer completion notice has been received from the master programmable controller 20 (step S65). If not received (No in step S65), the process waits. Thereafter, when a user file transfer completion notification is received (Yes in step S65), the slave programmable controller 40 executes the user program stored in the user program RAM 45 (step S66).
  • both writing of a user file from the memory card 30 to each of the programmable controllers 20 and 40 and writing of a user file from each of the programmable controllers 20 and 40 to the memory force 30 are performed.
  • a control system configured to have only the function of writing a user file from each programmable controller 20, 40 to the memory card 30 can be constructed.
  • the user files of the programmable controllers 20 and 40 constituting the control system are connected to the control system. There is an effect that the data can be easily read out to the memory card 30 attached to the master programmable controller 20.
  • FIG. 10 is a block diagram schematically showing a configuration of the control system according to the third embodiment.
  • This control system permits the execution of processing using the memory card 30 when the memory card 30 is inserted in the master programmable controller 20 of FIG. 2 of the first embodiment.
  • the system work ROM 29 is further provided for storing a password set in advance to determine whether the password is valid.
  • the password information stored in the memory card 30 is compared with the password information stored in the system work ROM 29, and the passwords of both are compared.
  • the system work ROM 29 corresponds to the password information storage means in the claims, and the password information stored in the system work ROM 29 also corresponds to the second password information, and the password information stored in the memory card 30. Corresponds to the first password information.
  • FIG. 11 is a diagram schematically showing an example of password information stored in the system work ROM.
  • the system work ROM 29 stores password information 101 that can be accessed only by a user having a specific authority from the outside.
  • the password information 101 may be, for example, information created for each master programmable controller 20 (for example, information identifying the master programmable controller 20), and identifies the user or administrator of the master programmable controller 20. Information.
  • FIG. 12 is a diagram schematically showing the data structure of the memory card.
  • the data structure of the memory card 30 is the same as that shown in FIG. 3 of Embodiment 1 except that the master programmable controller 20 having the password information 101 can be used to determine whether it can be used. It has a data structure to which information 72 is further added. Note that the same components as those in FIG. 3 of the first embodiment are denoted by the same reference numerals, and description thereof is omitted.
  • the password information 101, 72 is set only in either the master programmable controller 20 or the memory card 30, the password information 101, 72 is set and the data in which the password information 101, 72 is set. Can't perform rewrite process if read process.
  • the password information 101 and 72 are set in the two, if the two do not match, the process ends there.
  • password information 101, 72 is set in both the master programmable controller 20 and the memory card 30, and if both match, or When the password information 101, 72 is not set for both, the processing described in the first and second embodiments can be performed without any limitation.
  • FIG. 13 is a flowchart showing the procedure of password verification processing when a user file is transferred from the memory card to the programmable controller. This password verification process is performed between step S13 and step S14 in the system program process of FIG. 7 of the first embodiment, or step S53 and step of the system program process of FIG. 9 of the second embodiment. It is executed between S54.
  • the master The MPU 21 of the programmable controller 20 checks whether the password information 101 is registered in the system work ROM 29 in the programmable controller (step S101). If password information 101 is registered in system work ROM 29 (Yes in step S101), the password information in the installed memory card 30 is read (step S102), and the password information 72 (Step S103). If the password information 72 is present (Yes in step S103), the password information 101 in the system work ROM 29 of the master programmable controller 20 and the password information 72 in the read memory card 30 are collated (scene). Step S104).
  • step S105 If the two match as a result of the collation (Yes in step S105), transfer in the memory card 30 in step S14 in FIG. 7 in the first embodiment or step S54 in FIG. 7 in the second embodiment. Processing of the system program after the processing for reading parameter 70 is continued (step S106), and the password verification processing ends.
  • step S105 If the two password information does not match in step S105 (in the case of No in step S105), the password information 101 in the master programmable controller 20 and the memory Assuming that the password information 72 in the card 30 does not match, a password verification mismatch error is detected in each case (step S107), the system program processing is terminated (step S108), and FIG. Alternatively, the processing in FIG. 9 of the second embodiment is completed.
  • step S103 if the password information 72 does not exist in the memory card 30 in step S103 (if No in step S103), the password information 101 exists only in the master programmable controller 20. Therefore, the parameters for transfer in the memory card 30 in step S14 in FIG. 7 in the first embodiment or in step S54 in FIG. 7 in the second embodiment under the condition that the data rewrite in the programmable controllers 20 and 40 is prohibited.
  • the processing of the system program after the reading process of 70 is continued (step S109), and the password verification process ends.
  • step S101 If the password information 101 is not registered in the system work ROM 29 of the master programmable controller 20 in step S101 (No in step S101), the MPU 21 is stored in the installed memory card 30.
  • the password information 72 is read (step S110), and it is confirmed whether the password information 72 is present (step S111). If there is no password information 72 (No in step S111), no password is set in both the master programmable controller 20 and the memory card 30, so both collate. Then, the process proceeds to step S106, and the processing of the system program is continued as described above.
  • step S111 the password information 101 does not exist in the master programmable controller 20, the password information 72 exists in the memory card 30, and the data in the memory card 30 exists.
  • the processing of the system program after the read processing of the transfer parameter 70 in the memory card 30 in the step S14 of FIG. 7 of the first embodiment or the step S54 of FIG. 7 of the second embodiment is performed.
  • the master The MPU 21 of the programmable controller 20 checks whether the password information 101 is registered in the system work ROM 29 in the programmable controller (step S151). If password information 101 is registered in system work ROM 29 (Yes in step S151), the password information in the installed memory card 30 is read (step S152), and the password information is stored. Check if 72 is present (step S153).
  • step S 153 If there is password information 72 (Yes in step S 153), the password information 101 in the system work ROM 29 of the master programmable controller 20 and the password information 72 in the read memory card 30 are collated (success). Tape S154). If the two match as a result of the verification (Yes in step S155), transfer in the memory card 30 in step S14 in FIG. 7 of the first embodiment or step S54 in FIG. 7 in the second embodiment. Processing of the system program after the processing for reading parameter 70 is continued (step S156), and the password verification processing ends.
  • step S155 If the two password information does not match in step S155 (No in step S155), the password information 101 in the master programmable controller 20 and the password information 72 in the memory card 30 are For each case, a password verification mismatch error is detected (step S157), the system program processing is terminated (step S158), and the processing shown in FIG. 7 of Embodiment 1 or FIG. 9 of Embodiment 2 is performed. Processing ends.
  • step S153 if the password information 72 does not exist in the memory card 30 in step S153 (No in step S153), the password information 101 exists only in the master programmable controller 20.
  • Step S14 in FIG. 7 of Embodiment 1 or Embodiment 2 under the condition of prohibiting data reading in the programmable controllers 20, 40 The processing of the system program subsequent to the reading processing of the transfer parameter 70 in the memory card 30 in step S54 of FIG. 7 is continued (step S159), and the password verification processing ends.
  • step S151 If password information 101 is registered in system work ROM 29 of master programmable controller 20 in step S151! If this is not the case (if No in step S151), MPU21 is installed. A process of reading the password information 72 in the memory card 30 is performed (step S160), and it is confirmed whether the password information 72 exists (step S161). If there is no password information 72 (No in step S161), no password is set in both the master programmable controller 20 and the memory card 30. Then, the process moves to step S156, and the processing of the system program is continued as described above.
  • step S161 the password information 101 does not exist in the master programmable controller 20, the password information 72 exists in the memory card 30, and the data rewrite in the memory card 30 occurs. Under prohibition conditions, continue the system program processing after step S14 in Fig. 7 of the first embodiment or read processing of the transfer parameter 70 in the memory card 30 in step S54 of Fig. 7 in the second embodiment. (Step S 162), and the nosword collation process ends.
  • the memory card 30 and the master programmable controller 20 are accessed. Since password information is set and only accessible when the two match, it is possible to prevent unauthorized writing and reading of user files in the programmable controllers 20, 40 and to build a safe control system. If possible, it has a positive effect.
  • the master programmable controller 20 includes the memory card insertion slot 31, and the memory card 30 is used to write a data file from the memory card 30 or data to the memory card 30.
  • the memory card 30 is not limited as long as it is a portable storage medium that can read files.
  • an RFID (Radio Frequency Identification) tag may be used instead of the memory card 30, an RFID (Radio Frequency Identification) tag may be used.
  • the memory card interface 27 communicates with the RFID tag by a predetermined wireless communication method to read and write data.
  • a USB Universal Serial Bus
  • control system reads out user programs and user data in a control system in which a plurality of control devices that execute independent user programs are connected via a bus. Useful for Z write processing.

Abstract

Provided is a control system, which can transmit a user file from the outside between control devices without using a programming tool. The control system comprises a plurality of control devices (20, 40) connected with each other through a data bus and including internal storage means for storing the user file, and a portable memory card (30) capable of storing the user file. The memory card (30) stores the transfer file information stored in the control devices (20, 40) or the memory card (30) for designating the user file or a transfer target, and transfer parameters containing the transfer destination of the user file. One of the control devices (20, 40) includes a memory card interface (27) for having access to the memory card (30), and transfer means for transferring the user file designated with the transfer file information, to the transfer destination in accordance with the transfer parameters.

Description

明 細 書  Specification
制御システム 技術分野  Control system technology field
[0001] この発明は、制御システムに関するものである。  [0001] The present invention relates to a control system.
背景技術  Background art
[0002] 制御装置としてのプログラマブルコントローラは、プログラムにしたがって、制御対象 を制御することにより所定の処理を実行させて、製品の加工や製造を行っている。こ のようなプログラマブルコントローラとして、一つのマザ一ボード上に CPUユニットと、 複数の数値制御装置ユニットとをデータバスを介して接続し、制御対象を制御する構 成のものが開示されている(たとえば、特許文献 1参照)。この従来のプログラマブル コントローラの CPUユニットのデータ RAMには、それぞれの数値制御装置ユニット へ転送すべきデータを書込むための 200バイト分のエリアが確保されて 、る。そして 、数値制御装置ユニットの立ち上げ時に、 CPUユニットのデータ RAM力 所定の長 さのデータが分割されて、データ RAMに書込まれたエリアに対応する数値制御装置 ユニットへと一括転送される。  [0002] A programmable controller as a control device performs a predetermined process by controlling a control target according to a program, and processes and manufactures a product. As such a programmable controller, there is disclosed a configuration in which a CPU unit and a plurality of numerical control device units are connected to one mother board via a data bus to control a control target ( For example, see Patent Document 1). In the data RAM of the CPU unit of this conventional programmable controller, an area of 200 bytes for writing data to be transferred to each numerical controller unit is secured. Then, when the numerical control unit is started up, the data of the data RAM of the CPU unit is divided into a predetermined length and transferred to the numerical control unit corresponding to the area written in the data RAM.
[0003] また、プログラマブルコントローラへのデータの書込みやプログラマブルコントローラ 力ものデータの読出しを容易に行うために、プログラムの読み書きを行うことが可能な ローダ機能を有するメモリカセットをプログラマブルコントローラに装着して行うようにし たものも提案されている (たとえば、特許文献 2参照)。  [0003] In order to easily write data to the programmable controller and read data from the programmable controller, a memory cassette having a loader function capable of reading and writing programs is mounted on the programmable controller. Some of these have also been proposed (see, for example, Patent Document 2).
[0004] 特許文献 1:特公平 8 - 16846号公報  [0004] Patent Document 1: Japanese Patent Publication No. 8-16846
特許文献 2:特開 2001— 175309号公報  Patent Document 2: Japanese Patent Laid-Open No. 2001-175309
発明の開示  Disclosure of the invention
発明が解決しょうとする課題  Problems to be solved by the invention
[0005] ところで、近年では、ベースユニットに複数のプログラマブルコントローラが装着され 、相互にバスを介して接続される構成を有する制御システムも使用されている。この 場合、各プログラマブルコントローラは、ユーザプログラム RAMを備えており、このュ 一ザプログラム RAMに格納されて!、るユーザプログラムにしたがって、それぞれのプ ログラマブルコントローラが独立した処理を行うことが可能な構成となっている。 Incidentally, in recent years, a control system having a configuration in which a plurality of programmable controllers are mounted on a base unit and connected to each other via a bus is also used. In this case, each programmable controller has a user program RAM and is stored in the user program RAM according to the user program. The programmable controller can perform independent processing.
[0006] このような制御システムでも、各プログラマブルコントローラにユーザプログラムゃュ 一ザデータを書込んだり、外部装置にユーザデータを読出したりする必要がある。そ の場合、特許文献 1に記載の方法では、ユーザデータを CPUユニットから各数値制 御装置ユニットへ送信することは可能であるが、外部装置に読出す場合については 開示されていない。  [0006] Even in such a control system, it is necessary to write user program user data to each programmable controller or to read user data to an external device. In this case, the method described in Patent Document 1 can transmit user data from the CPU unit to each numerical control device unit, but does not disclose the case of reading the data to an external device.
[0007] また、ユーザプログラムについては、 CPUユニットに接続されたプログラミングツー ルを介してユーザプログラム RAMに書込むことが開示されている。このようなユーザ プログラムの書込み方法では、制御システム (プログラマブルコントローラ)を作業者 の手の届かない位置に設置している場合には、そのプログラマブルコントローラにプ ログラミングツールを接続して、ユーザプログラムを書込む作業が手間の力かるものと なってしまうという問題点があった。さらに、ユーザプログラム RAMを備えるプロダラ マブルコントローラが複数接続されたシステムについては、従来提案されているが、こ のシステムにおけるユーザプログラムを送信するための技術については、特許文献 1 には開示されていな力つた。これは、特許文献 1のプログラマブルコントローラの数値 制御ユニットには、ユーザプログラム RAMがなぐ上記のようなシステムでのユーザ プログラムの送信にっ ヽては考慮されて ヽな 、からである。  [0007] Further, it is disclosed that the user program is written in the user program RAM via a programming tool connected to the CPU unit. In such a user program writing method, when a control system (programmable controller) is installed in a location that is out of the reach of the operator, a programming tool is connected to the programmable controller to write the user program. There was a problem in that the work involved was labor intensive. Further, a system in which a plurality of programmable controllers having user program RAMs are connected has been proposed in the past, but a technique for transmitting a user program in this system is disclosed in Patent Document 1. I helped. This is because the numerical control unit of the programmable controller of Patent Document 1 should be considered for the transmission of the user program in the system as described above where the user program RAM is present.
[0008] 一方、特許文献 2には、メモリカセットを用いて、プログラマブルコントローラの内蔵メ モリとの間でユーザプログラムのやり取りを行うようにしている力 この場合には、上記 ユーザプログラム RAMを有する複数のプログラマブルコントローラからなる制御シス テムでは、プログラマブルコントローラと同一数のメモリカセットを用意する必要がある という問題点があった。また、プログラマブルコントローラごとにメモリカセットを装着す る手段が必要となるため、制御システムのコストが高くなつてしまうという問題点もあつ た。  [0008] On the other hand, Patent Document 2 describes a force that allows a user program to be exchanged with a built-in memory of a programmable controller using a memory cassette. In the control system consisting of programmable controllers, there is a problem that it is necessary to prepare the same number of memory cassettes as the programmable controllers. In addition, since a means for mounting a memory cassette is required for each programmable controller, the cost of the control system increases.
[0009] さらに、特許文献 1に記載の方法でユーザデータを送信する場合、送信するユーザ データを保持する CPUユニット上のデータ RAMには、各数値制御装置ユニットへ転 送するための所定の大きさのデータ領域が予め割当てられている。そのため、ユー ザプログラムやユーザデータの大きさ力 S、プログラマブルコントローラごとに異なる場 合に、使用されていない領域が生じたり、データ領域にユーザプログラムやユーザデ ータが収まらなくなつたりし、有効に記憶領域を使用できないという問題点もあった。 また、特許文献 1では、メモリの構成やアドレスが固定ィ匕されていることで、数値制御 装置側のメモリ構成を変更するには、プログラマブルコントローラ側のメモリ構成も変 更する必要があり、メモリ効率が悪いという問題点もあった。さらに、プログラマブルコ ントローラだけでなく、 NC (Numerical Controller)や MC (Motion Controller)、 RC ( Robot Controller)、操作端末である表示器などの産業用コントローラなどの制御装 置全般について、上記のような問題点があった。 [0009] Further, when user data is transmitted by the method described in Patent Document 1, the data RAM on the CPU unit that holds the user data to be transmitted has a predetermined size for transfer to each numerical controller unit. This data area is allocated in advance. For this reason, the size of the user program and user data, S, and the program that varies depending on the programmable controller. In addition, there is a problem that an unused area is generated or a user program or user data does not fit in the data area, so that the storage area cannot be used effectively. In Patent Document 1, since the memory configuration and address are fixed, the memory configuration on the programmable controller side must be changed to change the memory configuration on the numerical controller side. There was also the problem that efficiency was bad. In addition to programmable controllers, control devices such as NC (Numerical Controller), MC (Motion Controller), RC (Robot Controller), and industrial controllers such as displays that are operating terminals are generally described above. There was a problem.
[0010] この発明は、上記に鑑みてなされたもので、複数の制御装置がデータバスを介して 接続される制御システムで、プログラミングツールを用いることなく外部からのユーザ ファイル (ユーザプログラムとユーザデータ)を制御装置間で送信することができる制 御システムを得ることを目的とする。また、制御システム中の制御装置へのユーザファ ィルの書込みを行う際に、そのユーザファイルが書込まれる持ち運び可能な記憶媒 体中で記憶領域を有効に使用することができるデータ構造を有する制御システムを 得ることち目的とする。 The present invention has been made in view of the above, and is a control system in which a plurality of control devices are connected via a data bus. An external user file (user program and user data without using a programming tool) is provided. )) Can be transmitted between control devices. In addition, when writing a user file to a control device in the control system, a control having a data structure that can effectively use a storage area in a portable storage medium in which the user file is written. The purpose is to obtain a system.
課題を解決するための手段  Means for solving the problem
[0011] 上記目的を達成するため、この発明に力かる制御システムは、データバスを介して 相互に接続され、ユーザファイルを記憶する内部記憶手段を有する複数の制御装置 と、ユーザファイルを記憶可能で、持ち運び可能な記憶媒体と、を備える制御システ ムにおいて、前記持ち運び可能な記憶媒体は、前記制御装置または前記持ち運び 可能な記憶媒体に格納された転送対象となるユーザファイルを指定する転送フアイ ル情報および前記ユーザファイルの転送先を含む転送用パラメータを記憶し、前記 複数の制御装置のうち 1つの制御装置は、前記持ち運び可能な記憶媒体にアクセス するインタフェース手段と、前記転送用パラメータにしたがって、前記転送ファイル情 報で指定されるユーザファイルを前記転送先に転送する転送手段と、を備えることを 特徴とする。 [0011] To achieve the above object, a control system according to the present invention is capable of storing a plurality of control devices connected to each other via a data bus and having internal storage means for storing user files, and user files. In the control system comprising a portable storage medium, the portable storage medium is a transfer file for designating a user file to be transferred stored in the control device or the portable storage medium. Information and a transfer parameter including a transfer destination of the user file are stored, and one control device among the plurality of control devices, according to the interface means for accessing the portable storage medium and the transfer parameter, Transfer means for transferring a user file specified by the transfer file information to the transfer destination; Characterized in that it comprises a.
発明の効果  The invention's effect
[0012] この発明によれば、専用のプログラミングツールを使用することなく容易に持ち運び 可能な記憶媒体と制御装置の間でユーザファイルを転送することができるという効果 を有する。また、 1つの制御装置に持ち運び可能な記憶媒体用のインタフェースを設 ければょ 、ので、より安価な制御装置または制御システムを得ることができると!/、う効 果も有する。 [0012] According to the present invention, it is easily carried without using a dedicated programming tool. The user file can be transferred between the possible storage medium and the control device. In addition, since an interface for a portable storage medium is provided in one control device, it is possible to obtain a cheaper control device or control system.
図面の簡単な説明  Brief Description of Drawings
[0013] [図 1]図 1は、この発明による制御システムの概観を模式的に示す図である。  FIG. 1 is a diagram schematically showing an overview of a control system according to the present invention.
[図 2]図 2は、この発明による制御システムの実施の形態 1の構成を模式的に示すブ ロック図である。  FIG. 2 is a block diagram schematically showing the configuration of the first embodiment of the control system according to the present invention.
[図 3]図 3は、メモリカードのデータ構造を模式的に示す図である。  FIG. 3 is a diagram schematically showing the data structure of a memory card.
[図 4]図 4は、メモリカードのデータ構造を模式的に示す図である。  FIG. 4 is a diagram schematically showing the data structure of a memory card.
[図 5]図 5は、メモリカードのデータ構造を模式的に示す図である。  FIG. 5 is a diagram schematically showing the data structure of a memory card.
[図 6]図 6は、転送用パラメータの一例を示す図である。  FIG. 6 is a diagram showing an example of transfer parameters.
[図 7]図 7は、プログラマブルコントローラのシステムプログラムの動作処理の手順の 一例を示すフローチャートである。  FIG. 7 is a flowchart showing an example of a procedure of operation processing of a system program of a programmable controller.
[図 8]図 8は、転送情報のデータ構造の一例を示す図である。  FIG. 8 is a diagram illustrating an example of a data structure of transfer information.
[図 9]図 9は、プログラマブルコントローラのシステムプログラムの動作処理の手順の 一例を示すフローチャートである。  FIG. 9 is a flowchart illustrating an example of a procedure of an operation process of a system program of a programmable controller.
[図 10]図 10は、この発明による制御システムの実施の形態 3の構成を模式的に示す ブロック図である。  FIG. 10 is a block diagram schematically showing a configuration of a third embodiment of the control system according to the present invention.
[図 11]図 11は、システムワーク ROMに格納されるパスワード情報の一例を模式的に 示す図である。  FIG. 11 is a diagram schematically showing an example of password information stored in the system work ROM.
[図 12]図 12は、メモリカードのデータ構造を模式的に示す図である。  FIG. 12 is a diagram schematically showing a data structure of a memory card.
[図 13]図 13は、メモリカードからプログラマブルコントローラへユーザファイルを転送 する場合のノ スワード照合処理の手順を示すフローチャートである。  [FIG. 13] FIG. 13 is a flowchart showing a procedure of a word collation process when a user file is transferred from the memory card to the programmable controller.
[図 14]図 14は、プログラマブルコントローラからメモリカードへユーザファイルを転送 する場合のノ スワード照合処理の手順を示すフローチャートである。  [FIG. 14] FIG. 14 is a flowchart showing a procedure of a word collation process when a user file is transferred from the programmable controller to the memory card.
符号の説明  Explanation of symbols
[0014] 10 ベースユニット 11 データバス [0014] 10 base units 11 Data bus
20 マスタプログラマブノレコントローラ  20 Master programmer controller
21, 41 MPU  21, 41 MPU
22, 42 システムプログラム ROM  22, 42 System program ROM
23, 43 システムワーク RAM  23, 43 System work RAM
24, 44 データノ スインタフェース  24, 44 Data node interface
25, 45 ユーザプログラム RAM  25, 45 User program RAM
26, 46 ユーザデータ RAM  26, 46 User data RAM
27 メモリカードインタフェース  27 Memory card interface
28, 47 ノ ス  28, 47 Nos
29 システムワーク ROM  29 System work ROM
30 メモリカード  30 Memory card
31 メモリカード装着スロット  31 Memory card slot
40, 40a, 40b スレーブプログラマブルコントローラ  40, 40a, 40b Slave programmable controller
発明を実施するための最良の形態  BEST MODE FOR CARRYING OUT THE INVENTION
[0015] 以下に添付図面を参照して、この発明に力かる制御システムの好適な実施の形態 を詳細に説明する。なお、以下の実施の形態では、制御装置としてプログラマブルコ ントローラを例に挙げて説明するが、これらの実施の形態によりこの発明が限定され るものではない。  [0015] Hereinafter, a preferred embodiment of a control system according to the present invention will be described in detail with reference to the accompanying drawings. In the following embodiments, a programmable controller will be described as an example of a control device, but the present invention is not limited to these embodiments.
[0016] 実施の形態 1.  [0016] Embodiment 1.
図 1は、この発明にかかる制御システムの概観を模式的に示す図であり、図 2は、制 御システムの実施の形態 1の構成を模式的に示すブロック図である。この制御システ ムは、ベースユニット 10に複数のプログラマブルコントローラ 20, 40a, 40bが装着さ れている。以下に説明する実施の形態では、ベースユニット 10上の最も左側に位置 するスロットに装着されるユニット(プログラマブルコントローラ)をマスタプログラマブ ルコントローラ 20とし、他のスロットに装着されるユニット(プログラマブルコントローラ) をスレーブプログラマブルコントローラ 40 (40a, 40b)とする。また、ここでは、マスタ プログラマブルコントローラ 20にのみメモリカード装着スロット 31が備えられており、メ モリカード 30を着脱することが可能な構成となっている。なお、ベースユニット 10上に 取り付けられるプログラマブルコントローラのうち、どのプログラマブルコントローラをマ スタプログラマブルコントローラ 20とするかについては、他の方法で定めるようにして もよい。たとえば、ベースユニット 10が複数のスロットを有し、スロットに複数のプログラ マブルコントローラが装着されている場合には、一番左側に装着されているものほど 優先順位を高く設定し、この優先順位が最も高 、ものをマスタプログラマブルコント口 ーラとするようにしてちょい。 FIG. 1 is a diagram schematically showing an overview of the control system according to the present invention, and FIG. 2 is a block diagram schematically showing the configuration of the control system according to the first embodiment. In this control system, a plurality of programmable controllers 20, 40a, and 40b are mounted on a base unit 10. In the embodiment described below, the unit (programmable controller) installed in the leftmost slot on the base unit 10 is the master programmable controller 20, and the unit installed in another slot (programmable controller). Is the slave programmable controller 40 (40a, 40b). In addition, here, only the master programmable controller 20 is provided with a memory card insertion slot 31, and The Mori card 30 can be attached and detached. Of the programmable controllers mounted on the base unit 10, which programmable controller is the master programmable controller 20 may be determined by another method. For example, if the base unit 10 has a plurality of slots and a plurality of programmable controllers are installed in the slots, the one installed on the leftmost side is set to a higher priority. The most expensive one is the master programmable controller.
[0017] 図 2に示されるように、ベースユニット 10にはデータバス 11が設けられており、デー タバス 11を介してそれぞれのプログラマブルコントローラ 20, 40間でユーザデータや ユーザプログラム(以下、ユーザデータまたはユーザプログラムを含むものをユーザ ファイルという)を送受信することができる。マスタプログラマブルコントローラ 20は、マ スタプログラマブルコントローラ 20内の処理を制御する MPU (Micro Processing Un it) 21と、マスタプログラマブルコントローラ 20内における基本的な処理を実行するシ ステムプログラムを格納するシステムプログラム ROM (Read-Only Memory) 22と、シ ステムプログラムが使用するメモリ領域であるシステムワーク RAM23と、データバス 1As shown in FIG. 2, the base unit 10 is provided with a data bus 11, and user data and user programs (hereinafter referred to as user data) between the programmable controllers 20 and 40 via the data bus 11. Alternatively, a file containing a user program can be transmitted and received). The master programmable controller 20 includes an MPU (Micro Processing Unit) 21 that controls processing in the master programmable controller 20, and a system program ROM (which stores a system program that executes basic processing in the master programmable controller 20). Read-Only Memory) 22, system work RAM 23, which is a memory area used by the system program, and data bus 1
1に接続されユーザファイルをフレーム化して所定の宛て先へと送信するとともに、 自 プログラマブルコントローラ宛のフレームの受信処理を行うデータバスインタフェース( 図中、データバス IZFと表記) 24と、自プログラマブルコントローラで動作するユーザ プログラムを格納するユーザプログラム RAM (Random Access Memory) 25と、ユー ザプログラムが使用するデータを格納するユーザデータ RAM26と、メモリカード 30 にアクセスするメモリカードインタフェース(図中、メモリカード IZFと表記) 27と、を備 える。これらの各処理部間は、バス 28を介して接続されている。 A data bus interface (framed as data bus IZF in the figure) 24 that processes the user file framed and sent to the specified destination connected to 1, and receives the frame addressed to its own programmable controller, and its own programmable controller User program RAM (Random Access Memory) 25 that stores user programs that run on the machine, user data RAM 26 that stores data used by user programs, and a memory card interface that accesses the memory card 30 (in the figure, the memory card IZF 27). These processing units are connected via a bus 28.
[0018] なお、システムプログラム ROM22には、メモリカード 30力メモリカード装着スロット 3 1に装着されたときに、メモリカード 30内のユーザファイルを、 自身のマスタプログラマ ブルコントローラ 20、またはデータバス 11を介して所定の宛て先のスレーブプログラ マブルコントローラ 40に送信する処理を実行するプログラムも含まれている。  [0018] It should be noted that the system program ROM 22 stores the user file in the memory card 30 when it is inserted into the memory card 30 memory card insertion slot 31, the own master programmable controller 20, or the data bus 11. There is also included a program for executing processing to be transmitted to the slave programmable controller 40 at a predetermined destination.
[0019] ここで、請求の範囲における転送手段は、たとえばシステムプログラム ROM22中 のシステムプログラムを実行する MPU21に相当し、同じくインタフェース手段は、た とえばメモリカードインタフェース 27に相当し、同じく内部記憶手段は、たとえばユー ザプログラム RAM25とユーザデータ RAM26に相当する。 Here, the transfer means in the claims corresponds to, for example, the MPU 21 that executes the system program in the system program ROM 22. For example, it corresponds to the memory card interface 27, and the internal storage means corresponds to the user program RAM 25 and the user data RAM 26, for example.
[0020] また、スレーブプログラマブルコントローラ 40は、スレーブプログラマブルコントロー ラ 40内の処理を制御する MPU41と、スレーブプログラマブルコントローラ 40内にお In addition, the slave programmable controller 40 includes an MPU 41 that controls processing in the slave programmable controller 40 and a slave programmable controller 40.
42と、システムプログラムが使用するメモリ領域であるシステムワーク RAM43と、デ ータバス 11に接続されユーザファイルをフレーム化して所定の宛て先へと送信すると ともに、自プログラマブルコントローラ宛のフレームの受信処理を行うデータバスイン タフエース 44と、 自プログラマブルコントローラで動作するユーザプログラムを格納す るユーザプログラム RAM45と、ユーザプログラムが使用するデータを格納するユー ザデータ RAM46と、を備える。これらの各処理部間は、ノ ス 47を介して接続されて いる。 42, the system work RAM 43, which is a memory area used by the system program, and the user file that is connected to the data bus 11 is framed and transmitted to a predetermined destination, and the frame addressed to the programmable controller is received. A data bus interface 44, a user program RAM 45 that stores a user program that operates on its own programmable controller, and a user data RAM 46 that stores data used by the user program are provided. These processing units are connected via a nose 47.
[0021] ここで、請求の範囲における内部記憶手段は、たとえばユーザプログラム RAM45 とユーザデータ RAM46に相当する。  Here, the internal storage means in the claims corresponds to the user program RAM 45 and the user data RAM 46, for example.
[0022] なお、図 2には、スレーブプログラマブルコントローラ 40が 1つしか描かれていない 力 実際には 1台以上のスレーブプログラマブルコントローラ 40がデータバス 11に接 続された構成となる。 In FIG. 2, only one slave programmable controller 40 is depicted. Actually, one or more slave programmable controllers 40 are connected to the data bus 11.
[0023] 図 3〜図 5は、メモリカードのデータ構造を模式的に示す図である。図 3に示される ように、メモリカード 30内には、含まれるユーザファイル(ユーザプログラムやユーザ データ)を所定のプログラマブルコントローラに転送するための情報が記載される転 送用パラメータ 70と、各プログラマブルコントローラ 20, 40a, 40bに転送させるユー ザファイル 71a〜71d (ユーザプログラム 71a, 71cとユーザデータ 71b, 71d)と、力 S 記憶される。ここでは、ユーザプログラム 71a, 71cとユーザデータ 71b, 71dは、ファ ィルとして転送用パラメータ 70に続 、て格納されて 、る。  3 to 5 are diagrams schematically showing a data structure of the memory card. As shown in FIG. 3, in the memory card 30, a transfer parameter 70 in which information for transferring the included user file (user program or user data) to a predetermined programmable controller is described, and each programmable User files 71a to 71d (user programs 71a and 71c and user data 71b and 71d) to be transferred to the controllers 20, 40a and 40b, and the force S are stored. Here, the user programs 71a and 71c and the user data 71b and 71d are stored as files following the transfer parameter 70.
[0024] 図 4は、転送用パラメータの詳細を示す図である。この転送用パラメータ 70は、デ ータの書き換えを行うファイルの数を示す転送情報数 80と、転送するファイルに関す る詳細を示す転送情報 8 la〜8 Idと、を含む。この転送情報 81a〜81dは、転送情 報数 80と等しい数だけ用意される。この図 4では、図 3に 4つのユーザファイル 71a〜 71dが用意されているので、それぞれのユーザファイル 71a〜71dに対応した転送 情報 81a〜81dが用意されている。 FIG. 4 is a diagram showing details of the transfer parameters. The transfer parameter 70 includes a transfer information number 80 indicating the number of files whose data is to be rewritten, and transfer information 8 la to 8 Id indicating details regarding the file to be transferred. The transfer information 81a to 81d is prepared in a number equal to the transfer information number 80. Figure 4 shows four user files 71a ~ Since 71d is prepared, transfer information 81a to 81d corresponding to each user file 71a to 71d is prepared.
[0025] 図 5は、転送情報の詳細を示す図である。この転送情報 81は、転送するユーザファ ィルのファイル名を示す転送ファイル情報 91と、ユーザファイルの転送対象となるプ ログラマブルコントローラ 20, 40を示す転送プログラマブルコントローラ情報 92と、転 送先のプログラマブルコントローラ 20, 40内でのユーザファイルの転送先、より具体 的にはユーザプログラム RAM25, 45に転送するの力、ユーザデータ RAM26, 46 に転送するのかを指定する転送メモリ情報 93と、を含む。この、メモリカード 30は、請 求の範囲における持ち運び可能な記憶媒体に対応している。  FIG. 5 is a diagram showing details of transfer information. This transfer information 81 includes transfer file information 91 indicating the file name of the user file to be transferred, transfer programmable controller information 92 indicating the programmable controllers 20 and 40 to which the user file is to be transferred, and the transfer destination programmable. And transfer memory information 93 that designates the transfer destination of the user file in the controllers 20 and 40, more specifically, the transfer capability to the user program RAMs 25 and 45, and the transfer to the user data RAMs 26 and 46. This memory card 30 corresponds to a portable storage medium within the scope of the request.
[0026] 図 6は、メモリカードに図 3のようにユーザファイルが記憶されている場合の転送用 パラメータの一例を示す図である。この例では、マスタプログラマブルコントローラ 20 用のユーザプログラム 71aとユーザデータ 71bおよびスレーブプログラマブルコント口 ーラ 40a用のユーザプログラム 71cとユーザデータ 71dとを転送するので、転送情報 数 80は「4」となる。また、各ユーザファイル 71a〜71dに対して、転送ファイル情報 9 1、転送プログラマブルコントローラ情報 92および転送メモリ情報 93からなる転送情 報 81a〜81dが書込まれている。たとえばユーザファイル 71aの転送情報 81aの場合 には、転送ファイル情報 91として「マスタプログラマブルコントローラ 20用ユーザプロ グラム」が設定され、転送プログラマブルコントローラ情報 92として「マスタプログラマ ブルコントローラ 20」が設定され、転送メモリ情報 93として「ユーザプログラム RAM」 が設定される。これは、「マスタプログラマブルコントローラ用ユーザプログラム」という フアイノレ名のユーザフアイノレを、マスタプログラマブルコントローラ 20のユーザプログ ラム RAM25に書込むことを意味している。  FIG. 6 is a diagram showing an example of transfer parameters when a user file is stored in the memory card as shown in FIG. In this example, the user program 71a and user data 71b for the master programmable controller 20 and the user program 71c and user data 71d for the slave programmable controller 40a are transferred, so the number of transfer information 80 is "4". . In addition, transfer information 81a to 81d including transfer file information 91, transfer programmable controller information 92, and transfer memory information 93 is written in each user file 71a to 71d. For example, in the case of transfer information 81a of user file 71a, “user program for master programmable controller 20” is set as transfer file information 91, and “master programmable controller 20” is set as transfer programmable controller information 92. “User program RAM” is set as the memory information 93. This means that the user name of the user name “master programmable controller user program” is written in the user program RAM 25 of the master programmable controller 20.
[0027] このようにメモリカード 30内に転送用パラメータ 70と転送するユーザファイル 71a〜 71dを記憶することで、転送用パラメータ 70に基づいてマスタプログラマブルコント口 ーラ 20は、ユーザファイル 71a〜71dを宛て先のプログラマブルコントローラ 20, 40 のメモリ(ユーザプログラム RAM25, 45やユーザデータ RAM26, 46)に書込むこと が可能になる。また、図 3〜図 5に示されるように、各プログラマブルコントローラ 20, 4 0に転送するユーザプログラムやユーザデータを、ファイル名で指定するようにしてい るので、背景技術で述べたように、ユーザファイルを書込む領域やその大きさを指定 する必要がな 、ので、任意の大きさのファイルを転送することができる。 By storing the transfer parameter 70 and the user files 71a to 71d to be transferred in the memory card 30 as described above, the master programmable controller 20 can change the user files 71a to 71d based on the transfer parameter 70. Can be written to the memory of the destination programmable controller 20, 40 (user program RAM 25, 45 or user data RAM 26, 46). Also, as shown in Fig. 3 to Fig. 5, user programs and user data to be transferred to each programmable controller 20, 40 can be specified by file names. Therefore, as described in the background art, it is not necessary to specify an area for writing a user file and its size, so a file of an arbitrary size can be transferred.
[0028] つぎに、このような制御システムにおける各プログラマブルコントローラのシステムプ ログラムの動作処理について、図 7のフローチャートを参照しながら説明する。まず、 制御システムが起動されると、各プログラマブルコントローラ 20, 40の MPU21, 41 はシステムプログラム ROM22, 42に格納されているシステムプログラムを実行し、自 身がマスタプログラマブルコントローラ 20かスレーブプログラマブルコントローラ 40か を判別するマスタ Zスレーブ判別情報を取得し (ステップ S 11)、 自身がマスタプログ ラマブルコントローラ 20かを判別する(ステップ S 12)。  Next, the operation processing of the system program of each programmable controller in such a control system will be described with reference to the flowchart of FIG. First, when the control system is activated, the MPUs 21 and 41 of the programmable controllers 20 and 40 execute the system programs stored in the system programs ROM 22 and 42, and whether they are the master programmable controller 20 or the slave programmable controller 40. Master Z slave discrimination information is obtained (step S11), and it is discriminated whether it is the master programmable controller 20 (step S12).
[0029] 判定の結果、マスタプログラマブルコントローラ 20である場合 (ステップ S 12で Yes の場合)には、マスタプログラマブルコントローラ 20は、メモリカード装着スロット 31に メモリカード 30が装着されている力否かをメモリカードインタフェース 27を介して判定 する (ステップ S13)。判定の結果、メモリカード 30が装着されている場合 (ステップ S 13で Yesの場合)には、メモリカード 30内の転送用パラメータ 70を読出す処理を行 い (ステップ S 14)、転送用パラメータ 70がメモリカード 30内に存在するかを判定する (ステップ S 15)。  If the result of the determination is that the master programmable controller 20 (Yes in step S 12), the master programmable controller 20 determines whether or not the memory card 30 is installed in the memory card installation slot 31. Judgment is made via the memory card interface 27 (step S13). If the memory card 30 is inserted as a result of the determination (Yes in step S13), the process reads the transfer parameter 70 in the memory card 30 (step S14), and the transfer parameter It is determined whether 70 exists in the memory card 30 (step S15).
[0030] 転送用パラメータ 70が存在する場合 (ステップ S 15で Yesの場合)には、その中か ら転送情報数 80を取得し (ステップ S 16)、ついで転送用パラメータ 70中から 1つの 転送情報 81を取得する (ステップ S17)。なお、この転送用パラメータ 70は、システム ワーク RAM23内に読出される。その後、転送情報 81にしたがってユーザファイル( ユーザプログラムやユーザデータ)をメモリカード 30からプログラマブルコントローラ 2 0, 40に転送する(ステップ S 18)。以上のようにして、転送用パラメータ 70中の 1つの 転送情報 81にしたがったユーザファイルの転送処理が終了すると、ステップ S16で 取得した転送情報数 80分のユーザファイルの転送が完了したかを判定する (ステツ プ S 19)。転送情報数 80分のユーザファイルの転送が完了して 、な 、場合 (ステップ S 19で Noの場合)には、ステップ S 17へと戻り、転送情報数 80分のユーザファイル の転送処理を実行する。  [0030] If the transfer parameter 70 exists (Yes in step S15), the number of transfer information 80 is obtained from it (step S16), and then one transfer from the transfer parameter 70 is obtained. Information 81 is acquired (step S17). The transfer parameter 70 is read into the system work RAM 23. Thereafter, the user file (user program or user data) is transferred from the memory card 30 to the programmable controllers 20 and 40 according to the transfer information 81 (step S18). As described above, when the transfer process of the user file according to one transfer information 81 in the transfer parameter 70 is completed, it is determined whether the transfer of the user file with the transfer information number of 80 minutes acquired in step S16 is completed. (Step S19). If the transfer of the user file with the number of transfer information of 80 minutes is completed, if it is not (No in step S19), return to step S17 and execute the transfer process of the user file with the transfer information number of 80 minutes To do.
[0031] ここで、たとえばメモリカード 30にユーザファイルが記憶されている場合には、マス タプログラマブルコントローラ 20の MPU21は、マスタプログラマブルコントローラ 20 用のユーザプログラム 71a、そのユーザデータ 71b、スレーブプログラマブルコント口 ーラ 40a用のユーザプログラム 71c、そのユーザデータ 71dとを順に転送する。なお 、メモリカード 30が装着されるマスタプログラマブルコントローラ 20内のユーザプログ ラム RAM25とユーザデータ RAM26に、それぞれユーザプログラムとユーザデータ を書込む場合でも、この明細書では「転送」という言葉を使用する。 Here, for example, when a user file is stored in the memory card 30, The MPU 21 of the programmable controller 20 sequentially transfers the user program 71a for the master programmable controller 20, its user data 71b, the user program 71c for the slave programmable controller 40a, and its user data 71d. Note that the term “transfer” is used in this specification even when a user program and user data are written in the user program RAM 25 and the user data RAM 26 in the master programmable controller 20 in which the memory card 30 is mounted, respectively.
[0032] 上述したステップ S18におけるユーザファイルの転送処理における図 2に示される ブロック図での処理の流れの概略を説明する。マスタプログラマブルコントローラ 20 の MPU21は、自プログラマブルコントローラのユーザプログラム RAM25またはユー ザデータ RAM26にユーザプログラム 71aまたはユーザデータ 71bを書込む場合に は、そのユーザファイルをメモリカード 30から読込んで、転送用パラメータに含まれる その書込み場所にしたがってユーザプログラム RAM25またはユーザデータ RAM2 6に書込む。 An outline of the flow of processing in the block diagram shown in FIG. 2 in the user file transfer processing in step S18 described above will be described. When writing the user program 71a or user data 71b to the user program RAM 25 or user data RAM 26 of the own programmable controller, the MPU 21 of the master programmable controller 20 reads the user file from the memory card 30 and includes it in the transfer parameters. Write to user program RAM 25 or user data RAM 26 according to the writing location.
[0033] また、マスタプログラマブルコントローラ 20の MPU21は、スレーブプログラマブルコ ントローラ 40aのユーザプログラム RAM45またはユーザデータ RAM46にユーザプ ログラム 71cまたはユーザデータ 71dを書込む場合には、そのユーザファイルをデー タバスインタフェース 24に渡す。データバスインタフェース 24では、受け取ったユー ザファイルをデータバス 11上で流すことができる大きさに分割し、宛て先を付したフレ ームにして、データバス 11上に流す。  [0033] When the MPU 21 of the master programmable controller 20 writes the user program 71c or the user data 71d into the user program RAM 45 or the user data RAM 46 of the slave programmable controller 40a, the user file is stored in the data bus interface 24. To pass. In the data bus interface 24, the received user file is divided into sizes that can be flowed on the data bus 11, and is sent to the data bus 11 in a frame with a destination.
[0034] 一方、フレームの宛て先であるスレーブプログラマブルコントローラ 40aのデータバ スインタフェース 44は、データバス 11上を流れるデータ(フレーム)を監視し、自プロ グラマブルコントローラ宛のフレームを受信する。そして、データバスインタフェース 4 4は、受信したフレームの宛て先などを外してデータを取り出し、 MPU41はそのデー タを書込み先のユーザプログラム RAM45またはユーザデータ RAM46に書込む処 理を行う。  On the other hand, the data bus interface 44 of the slave programmable controller 40a, which is the destination of the frame, monitors the data (frame) flowing on the data bus 11 and receives the frame addressed to its own programmable controller. Then, the data bus interface 44 removes the destination of the received frame and extracts the data, and the MPU 41 performs a process of writing the data into the user program RAM 45 or the user data RAM 46 as the write destination.
[0035] 再び図 7に戻って、転送情報数 80分のユーザファイルの転送が完了した場合 (ステ ップ S 19で Yesの場合)、またはステップ S 13でメモリカード 30がメモリカード装着スロ ット 31に装着されない場合 (ステップ S 13で Noの場合)、またはステップ S 15で転送 用パラメータ 70がない場合 (ステップ SI 5で Noの場合)には、マスタプログラマブル コントローラ 20は、スレーブプログラマブルコントローラ 40aに転送完了を通知する( ステップ S20)。その後、 MPU21は、ユーザプログラム RAM25に格納されているュ 一ザプログラムを実行する (ステップ S 24)。 [0035] Returning again to FIG. 7, when the transfer of the user file with the number of transfer information of 80 minutes is completed (Yes in Step S19), or in Step S13, the memory card 30 is inserted into the memory card slot. If it is not attached to the 31st (if No in step S13) or transferred in step S15 If there is no parameter 70 for use (if No in step SI5), the master programmable controller 20 notifies the slave programmable controller 40a of the completion of transfer (step S20). Thereafter, the MPU 21 executes the user program stored in the user program RAM 25 (step S24).
[0036] 一方、ステップ S12で、自プログラマブルコントローラがマスタプログラマブルコント ローラ 20ではない場合 (ステップ S 12で Noの場合)には、スレーブプログラマブルコ ントローラ 40aは、マスタプログラマブルコントローラ 20から転送されるユーザファイル を受信し (ステップ S21)、受信したユーザファイルをユーザプログラム RAM45また はユーザデータ RAM46に書込む処理を行う(ステップ S22)。その後、マスタプログ ラマブルコントローラ 20からユーザファイルの転送完了の通知を受信したか否かを判 定し (ステップ S23)、受信していない場合 (ステップ S23で Noの場合)には待ち状態 となる。その後、ユーザファイルの転送完了の通知を受信した場合 (ステップ S23で Y esの場合)には、スレーブプログラマブルコントローラ 40aはユーザプログラム RAM4 5に格納されて 、るユーザプログラムを実行する(ステップ S24)。  On the other hand, if it is determined in step S12 that the self-programmable controller is not the master programmable controller 20 (No in step S12), the slave programmable controller 40a transmits the user file transferred from the master programmable controller 20. Is received (step S21), and the received user file is written into the user program RAM 45 or the user data RAM 46 (step S22). After that, it is determined whether or not a notification of completion of user file transfer has been received from the master programmable controller 20 (step S23). If not received (No in step S23), the process enters a wait state. . Thereafter, when a notification of completion of transfer of the user file is received (Yes in step S23), the slave programmable controller 40a executes the user program stored in the user program RAM 45 (step S24).
[0037] この実施の形態 1によれば、メモリカード 30を装着すれば、マスタプログラマブルコ ントローラ 20の MPU21がシステムプログラムにしたがって、メモリカード 30に記憶さ れているユーザファイルを所定のプログラマブルコントローラ 20またはプログラマブル コントローラ 40に転送して、そのユーザプログラム RAM25またはユーザプログラム R AM45やユーザデータ RAM26またはユーザデータ RAM46などのメモリ上に書込 むことができるので、専用のプログラミングツールを使用することなく容易に制御シス テム上のプログラマブルコントローラ 20, 40にユーザファイルを書込むことができると いう効果を有する。たとえば、制御システムの使用者によるユーザファイルの書込み の操作もメモリカード 30をマスタプログラマブルコントローラ 20のメモリカード装着スロ ット 31に装着するだけでよい。また、メモリカード 30をメインプログラマブルコントロー ラ 20のメモリカード装着スロット 31に装着するだけで、自発的にプログラマブルコント ローラ 20, 40のユーザプログラムの書換えを実行することが可能となり、ユーザプロ グラムの書換えに外部装置を必要とすることがなくなるという効果も有する。  [0037] According to the first embodiment, when the memory card 30 is installed, the MPU 21 of the master programmable controller 20 loads the user file stored in the memory card 30 according to the system program according to the predetermined programmable controller 20. Or, it can be transferred to the programmable controller 40 and written on the memory such as the user program RAM25 or the user program RAM45, the user data RAM26 or the user data RAM46, so it is easy to use without using a dedicated programming tool. It has the effect of being able to write user files to the programmable controllers 20, 40 on the control system. For example, a user file write operation by a user of the control system is only required to mount the memory card 30 in the memory card mounting slot 31 of the master programmable controller 20. In addition, by simply inserting the memory card 30 into the memory card installation slot 31 of the main programmable controller 20, it is possible to rewrite the user program of the programmable controller 20, 40 spontaneously, and rewrite the user program. This also has the effect of eliminating the need for an external device.
[0038] さらに、データバス 11を介して他のスレーブプログラマブルコントローラ 40にユーザ ファイルを転送するので、すべてのプログラマブルコントローラ 20, 40にメモリカード 装着スロット 31とメモリカードインタフェース 27を設ける必要がなぐ 1つのプログラマ ブルコントローラ(マスタプログラマブルコントローラ 20)にメモリカード装着スロット 31 とメモリカードインタフェース 27を設ければよいので、より安価なプログラマブルコント ローラ 20, 40または制御システムを得ることができるという効果も有する。また、各プ ログラマブルコントローラに書込むユーザファイルは、メモリカード 30中ではアドレス や領域で特定されるのではなぐファイル名で特定するようにしたので、任意の大きさ のファイルをメモリカード 30中に記憶させることができるとともに、メモリカード 30の記 憶領域を有効に利用することができるという効果も有する。 [0038] Furthermore, the user can connect to another slave programmable controller 40 via the data bus 11. Since the file is transferred, it is not necessary to provide memory card slot 31 and memory card interface 27 in all programmable controllers 20 and 40. Memory card slot 31 and memory card interface in one programmable controller (master programmable controller 20) Since it is sufficient to provide 27, it is possible to obtain a cheaper programmable controller 20, 40 or a control system. In addition, the user file to be written to each programmable controller is specified by the file name that is not specified by the address or area in the memory card 30, so an arbitrary size file can be stored in the memory card 30. And the memory area of the memory card 30 can be used effectively.
[0039] 実施の形態 2.  [0039] Embodiment 2.
実施の形態 1では、メモリカードに記憶されたユーザファイルをプログラマブルコント ローラに書込む場合を示した力 この実施の形態 2では、各プログラマブルコントロー ラのユーザプログラム RAMやユーザデータ RAM内のデータを吸い上げることもでき るようにした制御システムにつ 、て説明する。  In the first embodiment, the power of writing a user file stored in the memory card to the programmable controller is shown. In the second embodiment, the data in the user program RAM and user data RAM of each programmable controller is sucked up. We will explain the control system that can do this.
[0040] 図 8は、メモリカード中の転送情報のデータ構造の一例を示す図である。この転送 情報 81は、実施の形態 1の転送情報において、ユーザファイルのメモリカード 30に 対する転送方向を示す転送方向情報 94をさらに含むことを特徴とする。この転送方 向情報 94には、たとえばメモリカード 30からユーザプログラム RAM25, 45もしくは ユーザデータ RAM26, 46への書込みであるの力、またはユーザプログラム RAM2 5, 45もしくはユーザデータ RAM26, 46からメモリカードへの読込みであるのかを示 す情報が書込まれる。なお、その他の情報は、実施の形態 1の場合と同様であるので 、その説明を省略する。また、制御システムとメモリカード 30の構成も実施の形態 1の 図 1〜図 4と同様であるので、以下の説明ではこれらの図を流用し、その詳細な説明 を省略する。  FIG. 8 is a diagram showing an example of the data structure of transfer information in the memory card. The transfer information 81 further includes transfer direction information 94 indicating the transfer direction of the user file to the memory card 30 in the transfer information of the first embodiment. This transfer direction information 94 includes, for example, the ability to write from the memory card 30 to the user program RAM 25, 45 or the user data RAM 26, 46, or from the user program RAM 25, 45 or the user data RAM 26, 46 to the memory card. Information indicating whether or not is read. Other information is the same as that in the first embodiment, and a description thereof is omitted. Further, the configuration of the control system and the memory card 30 is the same as that of FIG. 1 to FIG. 4 of the first embodiment, and therefore, these drawings are used in the following description and the detailed description thereof is omitted.
[0041] つぎに、このような制御システムにおける各プログラマブルコントローラのシステムプ ログラムの動作処理について、図 9のフローチャートを参照しながら説明する。まず、 実施の形態 1の図 7で説明したステップ S 11〜S 17と同じ処理を行って、マスタプログ ラマブルコントローラ 20の MPU21は、装着されたメモリカード 30の転送用パラメータ 70から転送情報数 80と転送情報 81を取得する (ステップ S51〜S57)。すなわち、 システムプログラムを実行したプログラマブルコントローラは、自身がマスタであり、メ モリカード装着スロット 31にメモリカード 30が装着されている場合に、メモリカード 30 力も転送用パラメータ 70を読出し、転送情報数 80と転送情報 81を取得する。 Next, the operation processing of the system program of each programmable controller in such a control system will be described with reference to the flowchart of FIG. First, the same processing as in steps S11 to S17 described in FIG. 7 of the first embodiment is performed, and the MPU 21 of the master programmable controller 20 determines the transfer parameters of the installed memory card 30. Transfer information number 80 and transfer information 81 are acquired from 70 (steps S51 to S57). In other words, when the programmable controller that executed the system program is the master itself and the memory card 30 is installed in the memory card installation slot 31, the memory card 30 also reads the transfer parameter 70 and the number of transfer information 80 And transfer information 81 is acquired.
[0042] ついで、マスタプログラマブルコントローラ 20の MPU21は、メモリカード 30の転送 用パラメータ 70から転送方向情報 94を取得し (ステップ S58)、ユーザファイルのメモ リカード 30への転送力否かを判定する (ステップ S59)。転送方向情報 94が書込み( ユーザファイルのメモリカード 30からプログラマブルコントローラ 20, 40への転送)で ある場合 (ステップ S59で Noの場合)には、実施の形態 1で説明したように、転送情 報 81にしたがってユーザファイルをメモリカード 30からプログラマブルコントローラ 20 , 40に転送する (ステップ S60)。一方、転送方向情報 94が読出し (ユーザファイル のプログラマブルコントローラ 20, 40からメモリカード 30への転送)である場合 (ステツ プ S59で Yesの場合)には、転送情報 81にしたがってプログラマブルコントローラ 20 , 40のユーザプログラム RAM25, 45またはユーザデータ RAM26, 46からユーザ ファイルを読出してメモリカード 30に転送する (ステップ S61)。以上のようにして、転 送用パラメータ 70中の 1つの転送情報 81にしたがったユーザファイルの転送処理が 終了すると、ステップ S56で取得した転送情報数 80分のユーザファイルの転送が完 了したかを判定する (ステップ S62)。転送情報数 80分のユーザファイルの転送が完 了していない場合 (ステップ S62で Noの場合)には、ステップ S57へと戻り、転送情 報数 80分のユーザファイルの転送処理を実行する。  [0042] Next, the MPU 21 of the master programmable controller 20 acquires the transfer direction information 94 from the transfer parameter 70 of the memory card 30 (step S58), and determines whether or not the user file has the transfer capability to the memory card 30 ( Step S59). When the transfer direction information 94 is a write (transfer of the user file from the memory card 30 to the programmable controller 20, 40) (No in step S59), as described in the first embodiment, the transfer information is transferred. The user file is transferred from the memory card 30 to the programmable controllers 20 and 40 according to 81 (step S60). On the other hand, when the transfer direction information 94 is read (transfer of the user file from the programmable controller 20, 40 to the memory card 30) (Yes in step S59), the programmable controller 20, 40 is transferred according to the transfer information 81. The user file is read from the user program RAM 25, 45 or the user data RAM 26, 46 and transferred to the memory card 30 (step S61). As described above, when the transfer processing of the user file according to one transfer information 81 in the transfer parameter 70 is completed, is the transfer of the user file with the transfer information number of 80 minutes acquired in step S56 completed? Is determined (step S62). If the transfer of the user file with the transfer information number of 80 minutes is not completed (No in step S62), the process returns to step S57, and the transfer process of the user file with the transfer information number of 80 minutes is executed.
[0043] また、転送情報数 80分のユーザファイルの転送が完了した場合 (ステップ S62で Y esの場合)、またはステップ S53でメモリカード 30がメモリカード装着スロット 31に装 着されない場合 (ステップ S53で Noの場合)、またはステップ S55で転送用パラメ一 タ 70がない場合 (ステップ S55で Noの場合)には、マスタプログラマブルコントローラ 20は、スレーブプログラマブルコントローラ 40に転送完了を通知する(ステップ S63) 。その後、 MPU21はユーザプログラム RAM25に格納されているユーザプログラム を実行する (ステップ S66)。  [0043] When the transfer of the user file with the number of transfer information of 80 minutes is completed (Yes in Step S62), or when the memory card 30 is not inserted into the memory card insertion slot 31 in Step S53 (Step S53). If there is no transfer parameter 70 in Step S55 (No in Step S55), the master programmable controller 20 notifies the slave programmable controller 40 of the transfer completion (Step S63). . Thereafter, the MPU 21 executes the user program stored in the user program RAM 25 (step S66).
[0044] 一方、ステップ S52で、自プログラマブルコントローラがマスタプログラマブルコント ローラ 20ではない場合 (ステップ S52で Noの場合)には、スレーブプログラマブルコ ントローラ 40は、マスタプログラマブルコントローラ 20に装着されたメモリカード 30内 のユーザファイルの自プログラマブルコントローラのユーザプログラム RAM45または ユーザデータ RAM46への書込み、または自プログラマブルコントローラのユーザプ ログラム RAM45またはユーザデータ RAM46内からユーザファイルを読出してマス タプログラマブルコントローラ 20に装着されたメモリカード 30への書込む処理を行う( ステップ S64)。その後、マスタプログラマブルコントローラ 20からユーザファイルの転 送完了通知を受信したか否かを判定し (ステップ S65)、受信しない場合 (ステップ S6 5で Noの場合)には待ち状態となる。その後、ユーザファイルの転送完了通知を受信 した場合 (ステップ S65で Yesの場合)には、スレーブプログラマブルコントローラ 40 はユーザプログラム RAM45に格納されて!、るユーザプログラムを実行する(ステップ S66)。 On the other hand, in step S52, the self-programmable controller becomes the master programmable controller. If it is not Roller 20 (No in Step S52), Slave Programmable Controller 40 uses User Program RAM 45 or User Data RAM 46 of its own programmable controller in the user file in memory card 30 mounted on Master Programmable Controller 20. The user file is read from the user program RAM 45 or the user data RAM 46 of the self-programmable controller and written to the memory card 30 mounted on the master programmable controller 20 (step S64). Thereafter, it is determined whether or not a user file transfer completion notice has been received from the master programmable controller 20 (step S65). If not received (No in step S65), the process waits. Thereafter, when a user file transfer completion notification is received (Yes in step S65), the slave programmable controller 40 executes the user program stored in the user program RAM 45 (step S66).
[0045] なお、この実施の形態 2では、メモリカード 30から各プログラマブルコントローラ 20, 40へのユーザファイルの書込みと、各プログラマブルコントローラ 20, 40からメモリ力 ード 30へのユーザファイルの書込みの両方の機能を制御システムについて説明した 1S 各プログラマブルコントローラ 20, 40からメモリカード 30へのユーザファイルの書 込みの機能のみを備えるように構成した制御システムを構築してもよ 、。  In the second embodiment, both writing of a user file from the memory card 30 to each of the programmable controllers 20 and 40 and writing of a user file from each of the programmable controllers 20 and 40 to the memory force 30 are performed. A control system configured to have only the function of writing a user file from each programmable controller 20, 40 to the memory card 30 can be constructed.
[0046] この実施の形態 2によれば、実施の形態 1の効果に加えて、制御システムを構成す る各プログラマブルコントローラ 20, 40の有するユーザファイルを、プログラミングッ ールを制御システムに接続することなぐ容易にマスタプログラマブルコントローラ 20 に装着されたメモリカード 30へと読出すこともできるという効果を有する。  [0046] According to the second embodiment, in addition to the effects of the first embodiment, the user files of the programmable controllers 20 and 40 constituting the control system are connected to the control system. There is an effect that the data can be easily read out to the memory card 30 attached to the master programmable controller 20.
[0047] 実施の形態 3.  [0047] Embodiment 3.
この実施の形態 3では、実施の形態 1, 2で、メモリカードやプログラマブルコント口 ーラ内のデータを不正に読出したり、書換えたりしないようにパスワードを設定して保 護する場合について説明する。  In the third embodiment, the case where a password is set and protected so that data in the memory card or the programmable controller is not illegally read or rewritten in the first and second embodiments will be described.
[0048] 図 10は、制御システムの実施の形態 3の構成を模式的に示すブロック図である。こ の制御システムは、実施の形態 1の図 2のマスタプログラマブルコントローラ 20におい て、メモリカード 30が装着された場合に、メモリカード 30を用いた処理の実行の許可 を判定するために予め設定されたパスワードを保存するシステムワーク ROM29をさ らに備えることを特徴とする。また、システムプログラム ROM22には、メモリカード 30 が装着された場合に、メモリカード 30に格納されているパスワード情報と、システムヮ ーク ROM29に格納されているパスワード情報とを比較して、両者のパスワードの有 無や一致状況に応じて、実行できる処理を規定したプログラムが格納されている。な お、実施の形態 1の図 2と同一の構成には同一の符号を付して、その説明を省略して いる。また、このシステムワーク ROM29は、請求の範囲におけるパスワード情報記憶 手段に対応し、システムワーク ROM29に格納されるパスワード情報は、同じく第 2の パスワード情報に対応し、メモリカード 30に格納されるパスワード情報は、同じく第 1 のパスワード情報に対応して 、る。 FIG. 10 is a block diagram schematically showing a configuration of the control system according to the third embodiment. This control system permits the execution of processing using the memory card 30 when the memory card 30 is inserted in the master programmable controller 20 of FIG. 2 of the first embodiment. The system work ROM 29 is further provided for storing a password set in advance to determine whether the password is valid. In addition, when the memory card 30 is inserted into the system program ROM 22, the password information stored in the memory card 30 is compared with the password information stored in the system work ROM 29, and the passwords of both are compared. Stores a program that defines the processes that can be executed according to the presence or absence and the matching status. The same components as those in FIG. 2 of the first embodiment are denoted by the same reference numerals, and the description thereof is omitted. The system work ROM 29 corresponds to the password information storage means in the claims, and the password information stored in the system work ROM 29 also corresponds to the second password information, and the password information stored in the memory card 30. Corresponds to the first password information.
[0049] 図 11は、このシステムワーク ROMに格納されるパスワード情報の一例を模式的に 示す図である。この図に示されるように、システムワーク ROM29には、外部から特定 の権限を有するユーザのみがアクセス可能なパスワード情報 101が格納されている。 このパスワード情報 101は、たとえば、マスタプログラマブルコントローラ 20ごとに作 成されたもの(たとえば、マスタプログラマブルコントローラ 20を識別する情報)でもよ V、し、マスタプログラマブルコントローラ 20の使用者または管理者を識別する情報で ちょい。 FIG. 11 is a diagram schematically showing an example of password information stored in the system work ROM. As shown in this figure, the system work ROM 29 stores password information 101 that can be accessed only by a user having a specific authority from the outside. The password information 101 may be, for example, information created for each master programmable controller 20 (for example, information identifying the master programmable controller 20), and identifies the user or administrator of the master programmable controller 20. Information.
[0050] 図 12は、メモリカードのデータ構造を模式的に示す図である。この図 12に示される ように、メモリカード 30のデータ構造は、実施の形態 1の図 3において、パスワード情 報 101を有するマスタプログラマブルコントローラ 20を使用可能力否かを判定するた めのノ スワード情報 72がさらに付加されたデータ構造を有する。なお、実施の形態 1 の図 3と同一の構成要素には同一の符号を付して、その説明を省略している。  FIG. 12 is a diagram schematically showing the data structure of the memory card. As shown in FIG. 12, the data structure of the memory card 30 is the same as that shown in FIG. 3 of Embodiment 1 except that the master programmable controller 20 having the password information 101 can be used to determine whether it can be used. It has a data structure to which information 72 is further added. Note that the same components as those in FIG. 3 of the first embodiment are denoted by the same reference numerals, and description thereof is omitted.
[0051] ここで、マスタプログラマブルコントローラ 20またはメモリカード 30のうち、いずれか にのみパスワード情報 101, 72が設定されている場合には、パスワード情報 101, 7 2が設定されて 、る方のデータの読出処理ゃ書換処理を行うことができな 、。また、 両者にパスワード情報 101, 72が設定されている力 両者が一致しない場合には、 そこで処理が終了する。さらに、マスタプログラマブルコントローラ 20とメモリカード 30 の両方にパスワード情報 101, 72が設定されており、両者が一致する場合、または 両者にパスワード情報 101, 72が設定されていない場合には、何の制限も受けずに 実施の形態 1, 2で説明した処理を行うことができる。 [0051] Here, when the password information 101, 72 is set only in either the master programmable controller 20 or the memory card 30, the password information 101, 72 is set and the data in which the password information 101, 72 is set. Can't perform rewrite process if read process. In addition, when the password information 101 and 72 are set in the two, if the two do not match, the process ends there. Furthermore, password information 101, 72 is set in both the master programmable controller 20 and the memory card 30, and if both match, or When the password information 101, 72 is not set for both, the processing described in the first and second embodiments can be performed without any limitation.
[0052] ここで、このような構成を有する制御システムにおけるパスワード照合処理について 、説明する。以下では、(1)メモリカード力もプログラマブルコントローラへユーザファ ィルを転送する場合、 (2)プログラマブルコントローラからメモリカードへユーザフアイ ルを転送する場合、に分けて説明する。  Here, the password verification process in the control system having such a configuration will be described. The following explanation is divided into (1) when the user file is transferred from the programmable controller to the programmable controller, and (2) when the user file is transferred from the programmable controller to the memory card.
[0053] (1)メモリカードからプログラマブルコントローラへユーザファイルを転送する場合 図 13は、メモリカードからプログラマブルコントローラへユーザファイルを転送する 場合のパスワード照合処理の手順を示すフローチャートである。なお、このパスワード 照合処理は、実施の形態 1の図 7のシステムプログラムの処理におけるステップ S13 とステップ S14との間、または実施の形態 2の図 9のシステムプログラムの処理におけ るステップ S53とステップ S54との間に実行されるものである。  (1) When Transferring User File from Memory Card to Programmable Controller FIG. 13 is a flowchart showing the procedure of password verification processing when a user file is transferred from the memory card to the programmable controller. This password verification process is performed between step S13 and step S14 in the system program process of FIG. 7 of the first embodiment, or step S53 and step of the system program process of FIG. 9 of the second embodiment. It is executed between S54.
[0054] まず、実施の形態 1の図 7のステップ S13または実施の形態 2の図 7のステップ S53 でマスタプログラマブルコントローラ 20のメモリカード装着スロット 31にメモリカード 30 が装着されている場合に、マスタプログラマブルコントローラ 20の MPU21は、自プロ グラマブルコントローラ内のシステムワーク ROM29にパスワード情報 101が登録され ているかを調べる(ステップ S101)。システムワーク ROM29にパスワード情報 101が 登録されている場合 (ステップ S101で Yesの場合)には、装着されたメモリカード 30 内のパスワード情報を読出す処理を行い (ステップ S 102)、ノ スワード情報 72がある かを確認する(ステップ S 103)。パスワード情報 72がある場合 (ステップ S 103で Yes の場合)には、マスタプログラマブルコントローラ 20のシステムワーク ROM29内のパ スワード情報 101と、読出したメモリカード 30内のパスワード情報 72とを照合する (ス テツプ S104)。照合の結果、両者が一致する場合 (ステップ S 105で Yesの場合)に は、実施の形態 1の図 7のステップ S14または実施の形態 2の図 7のステップ S54のメ モリカード 30内の転送用パラメータ 70の読出し処理以降のシステムプログラムの処 理を続行し (ステップ S 106)、パスワード照合処理が終了する。  First, when the memory card 30 is installed in the memory card installation slot 31 of the master programmable controller 20 in step S13 of FIG. 7 of the first embodiment or step S53 of FIG. 7 of the second embodiment, the master The MPU 21 of the programmable controller 20 checks whether the password information 101 is registered in the system work ROM 29 in the programmable controller (step S101). If password information 101 is registered in system work ROM 29 (Yes in step S101), the password information in the installed memory card 30 is read (step S102), and the password information 72 (Step S103). If the password information 72 is present (Yes in step S103), the password information 101 in the system work ROM 29 of the master programmable controller 20 and the password information 72 in the read memory card 30 are collated (scene). Step S104). If the two match as a result of the collation (Yes in step S105), transfer in the memory card 30 in step S14 in FIG. 7 in the first embodiment or step S54 in FIG. 7 in the second embodiment. Processing of the system program after the processing for reading parameter 70 is continued (step S106), and the password verification processing ends.
[0055] また、ステップ S 105で 2つのパスワード情報が一致しない場合 (ステップ S 105で N oの場合)には、マスタプログラマブルコントローラ 20内のパスワード情報 101とメモリ カード 30内のパスワード情報 72とが一致しないとして、それぞれの場合についてパ スワード照合不一致異常を検出し (ステップ S107)、システムプログラムの処理を終 了させ (ステップ S108)、実施の形態 1の図 7または実施の形態 2の図 9の処理が終 了する。 [0055] If the two password information does not match in step S105 (in the case of No in step S105), the password information 101 in the master programmable controller 20 and the memory Assuming that the password information 72 in the card 30 does not match, a password verification mismatch error is detected in each case (step S107), the system program processing is terminated (step S108), and FIG. Alternatively, the processing in FIG. 9 of the second embodiment is completed.
[0056] さらに、ステップ S 103でメモリカード 30内にパスワード情報 72が存在しない場合( ステップ S 103で Noの場合)には、マスタプログラマブルコントローラ 20内にのみパス ワード情報 101が存在することになるので、プログラマブルコントローラ 20, 40内のデ ータ書換え禁止の条件下で、実施の形態 1の図 7のステップ S 14または実施の形態 2 の図 7のステップ S54のメモリカード 30内の転送用パラメータ 70の読出し処理以降の システムプログラムの処理を続行し (ステップ S 109)、パスワード照合処理が終了す る。  [0056] Furthermore, if the password information 72 does not exist in the memory card 30 in step S103 (if No in step S103), the password information 101 exists only in the master programmable controller 20. Therefore, the parameters for transfer in the memory card 30 in step S14 in FIG. 7 in the first embodiment or in step S54 in FIG. 7 in the second embodiment under the condition that the data rewrite in the programmable controllers 20 and 40 is prohibited. The processing of the system program after the reading process of 70 is continued (step S109), and the password verification process ends.
[0057] また、ステップ S 101でマスタプログラマブルコントローラ 20のシステムワーク ROM2 9内にパスワード情報 101が登録されていない場合 (ステップ S101で Noの場合)に は、 MPU21は、装着されたメモリカード 30内のパスワード情報 72を読出す処理を行 い(ステップ S 110)、パスワード情報 72があるかを確認する(ステップ S 111)。パスヮ ード情報 72がない場合 (ステップ S 111で Noの場合)には、マスタプログラマブルコ ントローラ 20内とメモリカード 30内の双方にノ スワードが設定されていないことになる ので、両者が照合するとして、ステップ S 106へと処理が移り、上述したようにシステム プログラムの処理を続行する。  [0057] If the password information 101 is not registered in the system work ROM 29 of the master programmable controller 20 in step S101 (No in step S101), the MPU 21 is stored in the installed memory card 30. The password information 72 is read (step S110), and it is confirmed whether the password information 72 is present (step S111). If there is no password information 72 (No in step S111), no password is set in both the master programmable controller 20 and the memory card 30, so both collate. Then, the process proceeds to step S106, and the processing of the system program is continued as described above.
[0058] また、ステップ S 111で装着されたメモリカード 30内にパスワード情報 72がある場合  [0058] Also, when the password information 72 exists in the memory card 30 inserted in step S111.
(ステップ S 111で Yesの場合)には、マスタプログラマブルコントローラ 20内にはパス ワード情報 101が存在せず、メモリカード 30内にはパスワード情報 72が存在すること になり、メモリカード 30内のデータ読出し禁止の条件下で、実施の形態 1の図 7のス テツプ S14または実施の形態 2の図 7のステップ S54のメモリカード 30内の転送用パ ラメータ 70の読出し処理以降のシステムプログラムの処理を続行し (ステップ S 112) 、ノ スワード照合処理が終了する。  In the case of Yes in step S111, the password information 101 does not exist in the master programmable controller 20, the password information 72 exists in the memory card 30, and the data in the memory card 30 exists. Under the read prohibition condition, the processing of the system program after the read processing of the transfer parameter 70 in the memory card 30 in the step S14 of FIG. 7 of the first embodiment or the step S54 of FIG. 7 of the second embodiment is performed. Continue (step S112) and the word verification process ends.
[0059] (2)プログラマブルコントローラ力 メモリカードへユーザファイルを転送する場合 図 14は、プログラマブルコントローラからメモリカードへユーザファイルを転送する 場合のパスワード照合処理の手順を示すフローチャートである。なお、このパスワード 照合処理は、実施の形態 1の図 7のシステムプログラムの処理におけるステップ S13 とステップ S14との間、または実施の形態 2の図 9のシステムプログラムの処理におけ るステップ S53とステップ S54との間に実行されるものである。 [0059] (2) Programmable Controller Power When Transferring User Files to Memory Card Figure 14 Transfers User Files from Programmable Controller to Memory Card It is a flowchart which shows the procedure of the password verification process in a case. This password verification process is performed between step S13 and step S14 in the system program process of FIG. 7 of the first embodiment, or step S53 and step of the system program process of FIG. 9 of the second embodiment. It is executed between S54.
[0060] まず、実施の形態 1の図 7のステップ S13または実施の形態 2の図 7のステップ S53 でマスタプログラマブルコントローラ 20のメモリカード装着スロット 31にメモリカード 30 が装着されている場合に、マスタプログラマブルコントローラ 20の MPU21は、自プロ グラマブルコントローラ内のシステムワーク ROM29にパスワード情報 101が登録され ているかを調べる(ステップ S151)。システムワーク ROM29にパスワード情報 101が 登録されている場合 (ステップ S 151で Yesの場合)には、装着されたメモリカード 30 内のパスワード情報を読出す処理を行い (ステップ S 152)、ノ スワード情報 72がある かを確認する(ステップ S 153)。パスワード情報 72がある場合 (ステップ S 153で Yes の場合)には、マスタプログラマブルコントローラ 20のシステムワーク ROM29内のパ スワード情報 101と、読出したメモリカード 30内のパスワード情報 72とを照合する (ス テツプ S154)。照合の結果、両者が一致する場合 (ステップ S 155で Yesの場合)に は、実施の形態 1の図 7のステップ S14または実施の形態 2の図 7のステップ S54のメ モリカード 30内の転送用パラメータ 70の読出し処理以降のシステムプログラムの処 理を続行し (ステップ S 156)、パスワード照合処理が終了する。  First, when the memory card 30 is installed in the memory card installation slot 31 of the master programmable controller 20 in step S13 of FIG. 7 of the first embodiment or step S53 of FIG. 7 of the second embodiment, the master The MPU 21 of the programmable controller 20 checks whether the password information 101 is registered in the system work ROM 29 in the programmable controller (step S151). If password information 101 is registered in system work ROM 29 (Yes in step S151), the password information in the installed memory card 30 is read (step S152), and the password information is stored. Check if 72 is present (step S153). If there is password information 72 (Yes in step S 153), the password information 101 in the system work ROM 29 of the master programmable controller 20 and the password information 72 in the read memory card 30 are collated (success). Tape S154). If the two match as a result of the verification (Yes in step S155), transfer in the memory card 30 in step S14 in FIG. 7 of the first embodiment or step S54 in FIG. 7 in the second embodiment. Processing of the system program after the processing for reading parameter 70 is continued (step S156), and the password verification processing ends.
[0061] また、ステップ S 155で 2つのパスワード情報が一致しない場合 (ステップ S 155で N oの場合)には、マスタプログラマブルコントローラ 20内のパスワード情報 101とメモリ カード 30内のパスワード情報 72とが一致しないとして、それぞれの場合についてパ スワード照合不一致異常を検出し (ステップ S157)、システムプログラムの処理を終 了させ (ステップ S158)、実施の形態 1の図 7または実施の形態 2の図 9の処理が終 了する。  [0061] If the two password information does not match in step S155 (No in step S155), the password information 101 in the master programmable controller 20 and the password information 72 in the memory card 30 are For each case, a password verification mismatch error is detected (step S157), the system program processing is terminated (step S158), and the processing shown in FIG. 7 of Embodiment 1 or FIG. 9 of Embodiment 2 is performed. Processing ends.
[0062] さらに、ステップ S153でメモリカード 30内にパスワード情報 72が存在しない場合( ステップ S 153で Noの場合)には、マスタプログラマブルコントローラ 20内にのみパス ワード情報 101が存在することになるので、プログラマブルコントローラ 20, 40内のデ ータ読出し禁止の条件下で、実施の形態 1の図 7のステップ S14または実施の形態 2 の図 7のステップ S54のメモリカード 30内の転送用パラメータ 70の読出し処理以降の システムプログラムの処理を続行し (ステップ S 159)、パスワード照合処理が終了す る。 [0062] Further, if the password information 72 does not exist in the memory card 30 in step S153 (No in step S153), the password information 101 exists only in the master programmable controller 20. Step S14 in FIG. 7 of Embodiment 1 or Embodiment 2 under the condition of prohibiting data reading in the programmable controllers 20, 40 The processing of the system program subsequent to the reading processing of the transfer parameter 70 in the memory card 30 in step S54 of FIG. 7 is continued (step S159), and the password verification processing ends.
[0063] また、ステップ S 151でマスタプログラマブルコントローラ 20のシステムワーク ROM2 9内にパスワード情報 101が登録されて!ヽな 、場合 (ステップ S 151で Noの場合)に は、 MPU21は、装着されたメモリカード 30内のパスワード情報 72を読出す処理を行 い(ステップ S 160)、パスワード情報 72があるかを確認する(ステップ S161)。パスヮ ード情報 72がない場合 (ステップ S161で Noの場合)には、マスタプログラマブルコ ントローラ 20内とメモリカード 30内の双方にノ スワードが設定されていないことになる ので、両者が照合するとして、ステップ S 156へと処理が移り、上述したようにシステム プログラムの処理を続行する。  [0063] If password information 101 is registered in system work ROM 29 of master programmable controller 20 in step S151! If this is not the case (if No in step S151), MPU21 is installed. A process of reading the password information 72 in the memory card 30 is performed (step S160), and it is confirmed whether the password information 72 exists (step S161). If there is no password information 72 (No in step S161), no password is set in both the master programmable controller 20 and the memory card 30. Then, the process moves to step S156, and the processing of the system program is continued as described above.
[0064] また、ステップ S161で装着されたメモリカード 30内にパスワード情報 72がある場合  [0064] When the password information 72 exists in the memory card 30 mounted in step S161
(ステップ S161で Yesの場合)には、マスタプログラマブルコントローラ 20内にはパス ワード情報 101が存在せず、メモリカード 30内にはパスワード情報 72が存在すること になり、メモリカード 30内のデータ書換え禁止の条件下で、実施の形態 1の図 7のス テツプ S14または実施の形態 2の図 7のステップ S54のメモリカード 30内の転送用パ ラメータ 70の読出し処理以降のシステムプログラムの処理を続行し (ステップ S 162) 、ノ スワード照合処理が終了する。  In the case of Yes in step S161, the password information 101 does not exist in the master programmable controller 20, the password information 72 exists in the memory card 30, and the data rewrite in the memory card 30 occurs. Under prohibition conditions, continue the system program processing after step S14 in Fig. 7 of the first embodiment or read processing of the transfer parameter 70 in the memory card 30 in step S54 of Fig. 7 in the second embodiment. (Step S 162), and the nosword collation process ends.
[0065] この実施の形態 3によれば、メモリカード 30を用いてプログラマブルコントローラ 20 , 40のユーザプログラム RAM25, 45やユーザデータ RAM26, 46にアクセスする 際に、メモリカード 30とマスタプログラマブルコントローラ 20にパスワード情報を設定 して、両者が一致する場合にのみアクセス可能としたので、プログラマブルコントロー ラ 20, 40内のユーザファイルの不正な書込みや読出しを防止し、安全な制御システ ムを構築することができると 、う効果を有する。  According to the third embodiment, when accessing the user program RAMs 25 and 45 and the user data RAMs 26 and 46 of the programmable controllers 20 and 40 using the memory card 30, the memory card 30 and the master programmable controller 20 are accessed. Since password information is set and only accessible when the two match, it is possible to prevent unauthorized writing and reading of user files in the programmable controllers 20, 40 and to build a safe control system. If possible, it has a positive effect.
[0066] また、上述した説明では、制御装置としてプログラマブルコントローラを例に挙げて 説明してきた力 プログラマブルコントローラのほかに、 NCや MC、 RC、操作端末で ある表示器などのベースユニット 10上に装着される産業用コントローラであれば、こ の発明を適用することができる。 [0067] なお、上述した実施の形態 1〜3では、マスタプログラマブルコントローラ 20にメモリ カード装着スロット 31を備え、メモリカード 30を用いてメモリカード 30からデータフアイ ルの書込みまたはメモリカード 30へのデータファイルの読出しを行っている力 持ち 運び可能な記憶媒体であれば、メモリカード 30に限定されるものではない。たとえば 、メモリカード 30の代わりに RFID (Radio Frequency Identification)タグを用いても よい。この場合には、メモリカードインタフェース 27が RFIDインタフェースに代わり、 RFIDタグとの間で所定の無線通信方式で通信を行って、データの読込み Z書込み を行う。また、 USB (Universal Serial Bus)メモリなどを用いてもよい。 [0066] In the above description, in addition to the force programmable controller described as an example of a programmable controller as a control device, it is mounted on a base unit 10 such as an NC, MC, RC, or display device as an operation terminal The present invention can be applied to any industrial controller. In the first to third embodiments described above, the master programmable controller 20 includes the memory card insertion slot 31, and the memory card 30 is used to write a data file from the memory card 30 or data to the memory card 30. The memory card 30 is not limited as long as it is a portable storage medium that can read files. For example, instead of the memory card 30, an RFID (Radio Frequency Identification) tag may be used. In this case, instead of the RFID interface, the memory card interface 27 communicates with the RFID tag by a predetermined wireless communication method to read and write data. Also, a USB (Universal Serial Bus) memory may be used.
産業上の利用可能性  Industrial applicability
[0068] 以上のように、本発明に力かる制御システムは、それぞれ独立したユーザプロダラ ムを実行する制御装置がバスを介して複数接続された制御システムでのユーザプロ グラムとユーザデータの読出 Z書込処理に有用である。 As described above, the control system according to the present invention reads out user programs and user data in a control system in which a plurality of control devices that execute independent user programs are connected via a bus. Useful for Z write processing.

Claims

請求の範囲 The scope of the claims
[1] データバスを介して相互に接続され、ユーザファイルを記憶する内部記憶手段を有 する複数の制御装置と、  [1] a plurality of control devices connected to each other via a data bus and having internal storage means for storing user files;
ユーザファイルを記憶可能で、持ち運び可能な記憶媒体と、  A portable storage medium that can store user files;
を備える制御システムにお 、て、  In a control system equipped with
前記持ち運び可能な記憶媒体は、前記制御装置または前記持ち運び可能な記憶 媒体に格納された転送対象となるユーザファイルを指定する転送ファイル情報およ び前記ユーザファイルの転送先を含む転送用パラメータを記憶し、  The portable storage medium stores transfer file information specifying a transfer target user file stored in the control device or the portable storage medium, and transfer parameters including a transfer destination of the user file. And
前記複数の制御装置のうち 1つの制御装置は、  One of the plurality of control devices is
前記持ち運び可能な記憶媒体にアクセスするインタフ ース手段と、  Interface means for accessing the portable storage medium;
前記転送用パラメータにしたがって、前記転送ファイル情報で指定されるユーザフ アイルを前記転送先に転送する転送手段と、  Transfer means for transferring a user file designated by the transfer file information to the transfer destination according to the transfer parameters;
を備えることを特徴とする制御システム。  A control system comprising:
[2] 前記転送用パラメータは、前記持ち運び可能な記憶媒体から前記複数の制御装置 のうち所定の制御装置へのユーザファイルの転送力、あるいは前記複数の制御装置 のうち所定の制御装置から前記持ち運び可能な記憶媒体へのユーザファイルの転 送かを示す転送方向情報をさらに含むことを特徴とする請求項 1に記載の制御シス テム。  [2] The transfer parameter may be a transfer capacity of a user file from the portable storage medium to a predetermined control device among the plurality of control devices, or from the predetermined control device among the plurality of control devices. The control system according to claim 1, further comprising transfer direction information indicating whether the user file is transferred to a possible storage medium.
[3] 前記転送手段は、前記転送方向情報が前記持ち運び可能な記憶媒体へのユーザ ファイルの転送である場合に、前記転送用パラメータの前記転送ファイル情報と前記 転送先にしたがって、前記複数の制御装置のうち所定の制御装置の内部記憶手段 に記憶されたユーザファイルを読出して、前記持ち運び可能な記憶媒体に転送する 機能をさらに備えることを特徴とする請求項 2に記載の制御システム。  [3] When the transfer direction information is transfer of a user file to the portable storage medium, the transfer means controls the plurality of controls according to the transfer file information of the transfer parameter and the transfer destination. 3. The control system according to claim 2, further comprising a function of reading a user file stored in an internal storage unit of a predetermined control device of the device and transferring it to the portable storage medium.
[4] 前記転送手段は、前記転送方向情報が前記制御装置へのユーザファイルの転送 である場合に、前記転送用パラメータの前記転送ファイル情報と前記転送先にした がって、前記持ち運び可能な記憶媒体に記憶されたユーザファイルを読出して、前 記複数の制御装置のうち所定の制御装置に転送する機能をさらに備えることを特徴 とする請求項 2に記載の制御システム。 前記持ち運び可能な記憶媒体は、制御装置からアクセス可能か否かを判定するた めの第 1のパスワード情報をさらに記憶し、 [4] When the transfer direction information is transfer of a user file to the control device, the transfer means is portable according to the transfer file information of the transfer parameter and the transfer destination. The control system according to claim 2, further comprising a function of reading a user file stored in a storage medium and transferring it to a predetermined control device among the plurality of control devices. The portable storage medium further stores first password information for determining whether or not access from the control device is possible,
前記制御装置は、  The controller is
前記ユーザファイルへのアクセスを制限する第 2のパスワード情報を記憶するパス ワード情報記憶手段をさらに備え、  Password information storage means for storing second password information for restricting access to the user file;
前記転送手段は、前記持ち運び可能な記憶媒体にアクセスすると、前記第 2のパス ワード情報と、前記第 1のパスワード情報とを照合し、その照合結果に応じてアクセス 制限を行うことを特徴とする請求項 1〜4のいずれか 1つに記載の制御システム。  The transfer means, when accessing the portable storage medium, collates the second password information with the first password information, and restricts access according to the collation result. The control system according to any one of claims 1 to 4.
PCT/JP2007/056801 2006-04-07 2007-03-29 Control system WO2007116798A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008509805A JP4759048B2 (en) 2006-04-07 2007-03-29 Control system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2006106533 2006-04-07
JP2006-106533 2006-04-07

Publications (1)

Publication Number Publication Date
WO2007116798A1 true WO2007116798A1 (en) 2007-10-18

Family

ID=38581092

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2007/056801 WO2007116798A1 (en) 2006-04-07 2007-03-29 Control system

Country Status (2)

Country Link
JP (1) JP4759048B2 (en)
WO (1) WO2007116798A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010121797A1 (en) * 2009-04-20 2010-10-28 Pilz Gmbh & Co. Kg Safety controller for controlling an automated system and method for generating a user program for a safety controller
JP2013131043A (en) * 2011-12-21 2013-07-04 Hitachi Industrial Equipment Systems Co Ltd Programmable controller
JP2014059636A (en) * 2012-09-14 2014-04-03 Toshiba Corp Programmable controller
JP2015103186A (en) * 2013-11-27 2015-06-04 株式会社東芝 Programmable controller

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02127743A (en) * 1988-11-07 1990-05-16 Nec Corp Memory control system
JPH0816846B2 (en) * 1987-02-25 1996-02-21 オムロン株式会社 Programmable controller
JP2001342891A (en) * 2000-05-30 2001-12-14 Hino Motors Ltd Fuel supply amount control device
JP2005092676A (en) * 2003-09-19 2005-04-07 Omron Corp Programmable controller, unit, and method for editing parameter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0816846B2 (en) * 1987-02-25 1996-02-21 オムロン株式会社 Programmable controller
JPH02127743A (en) * 1988-11-07 1990-05-16 Nec Corp Memory control system
JP2001342891A (en) * 2000-05-30 2001-12-14 Hino Motors Ltd Fuel supply amount control device
JP2005092676A (en) * 2003-09-19 2005-04-07 Omron Corp Programmable controller, unit, and method for editing parameter

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010121797A1 (en) * 2009-04-20 2010-10-28 Pilz Gmbh & Co. Kg Safety controller for controlling an automated system and method for generating a user program for a safety controller
CN102549508A (en) * 2009-04-20 2012-07-04 皮尔茨公司 Safety controller for controlling an automated system and method for generating a user program for a safety controller
US9188964B2 (en) 2009-04-20 2015-11-17 Pilz Gmbh & Co. Kg Safety controller for controlling an automated installation and method for generating a user program for a safety controller
JP2013131043A (en) * 2011-12-21 2013-07-04 Hitachi Industrial Equipment Systems Co Ltd Programmable controller
JP2014059636A (en) * 2012-09-14 2014-04-03 Toshiba Corp Programmable controller
JP2015103186A (en) * 2013-11-27 2015-06-04 株式会社東芝 Programmable controller
WO2015079725A1 (en) * 2013-11-27 2015-06-04 株式会社東芝 Programmable controller
CN105339855A (en) * 2013-11-27 2016-02-17 株式会社东芝 Programmable controller
US20160282830A1 (en) * 2013-11-27 2016-09-29 Kabushiki Kaisha Toshiba Programmable controller
US10496062B2 (en) 2013-11-27 2019-12-03 Kabushiki Kaisha Toshiba Programmable controller for controlling automatic machines, having CPU to received control with respect to own apparatus, when external storage is authenticated based on authentication information

Also Published As

Publication number Publication date
JP4759048B2 (en) 2011-08-31
JPWO2007116798A1 (en) 2009-08-20

Similar Documents

Publication Publication Date Title
CN107272549B (en) Control device, control method, and recording medium
EP0451936A1 (en) Program control system for portable data storage device
KR100318150B1 (en) Single chip microcomputer internally including a flash memory
JP4626582B2 (en) Card-type peripheral device and card communication system
JP2003132305A (en) Device and method for controlling memory card
JP2004295160A (en) Memory card
EP2377291B1 (en) Portable mobile communication device and method of controlling near field communication
US7487203B2 (en) Data-processing apparatus, data-processing method and program
JP2003091704A (en) Storage unit with non-volatile memory and information processing device with freely detachable storage unit
WO2007116798A1 (en) Control system
JP2006215763A (en) Information processing system incorporated with extended module and its control method
JP5500332B2 (en) IC chip, information processing apparatus, software module control method, information processing system and method, and program
JP2003022427A (en) Storage device with uploading function
JP3923546B2 (en) IC card
JP2019160191A (en) Portable electronic device and IC card
US7281103B2 (en) Microcomputer with a security function for accessing a program storage memory
JP5010065B2 (en) Microcomputer
JP4793798B2 (en) Microcomputer
JP2000172490A (en) Ic card issuing system, ic card processing system, and ic card
JP2003067685A (en) Electronic equipment where card device can be used and card control method
JP7439798B2 (en) Electronic information storage medium, application selection processing method, and program
JP4549731B2 (en) Multi-application IC card with command code that is commonly used by applications
JP5077397B2 (en) Card-type peripheral device access method, host device, and card communication method
JP4740316B2 (en) Portable communication device
JP3884963B2 (en) IC card with shared access monitoring function

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: 07740239

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2008509805

Country of ref document: JP

DPE2 Request for preliminary examination filed before expiration of 19th month from priority date (pct application filed from 20040101)
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07740239

Country of ref document: EP

Kind code of ref document: A1

DPE2 Request for preliminary examination filed before expiration of 19th month from priority date (pct application filed from 20040101)