Programmable controller, peripheral device thereof, and table data access program of programmable controller
AssigneeMitsubishi Electric Corporation
InventorHajime Tanide
Life of this patent
Estimating the term…
Abstract
A programmable controller includes a command execution unit that executes multiple commands in a user program in order; a database storage unit that stores therein a database that holds data used in a process performed by the command execution unit in a table format; a database-query-command generation unit that, when the commands include a command to access the database, converts the access command into a database query command described in a database query language; and a database management unit that accesses the database in the database storage unit and acquires data specified by the database query command.
Claims14
A programmable controller comprising:
- a processor which executes multiple commands in a user program other than a last END command in order and that after the END command is executed by the processor, executes the commands of the user program again in order;
- a memory which stores a database that holds data used in a process performed by the processor in a table format;
- wherein, when the commands include a command to access the database, the processor is further configured to convert the access command into a database query command described in a database query language, to access the database in the memory and to acquire data specified by the database query command;
- wherein, after the commands in the user program are executed by the processor, the processor is further configured to execute the END command including a process of acquiring the result of executing the database query command,
- wherein, when a process corresponding to the database query command issued is completed, the processor performs a completion checking process of writing the data acquired by the processor in an address specified by the command to access the database of a user-data storage, and
- wherein, when the process corresponding to the database query issued is not completed, the processor is configured to further perform the completion checking process at a time of executing a next END command.
A programmable controller comprising:
- a processor to execute multiple commands in a user program in order;
- at least one memory having a database storage, which stores therein a database that holds data used in a process performed by the processor in a table format;
- the memory further comprises a system-data storage, which stores therein database-access setting information that sets a condition acquiring data included in the database in the database storage;
- wherein, when the commands include an instruction to access the database, the processor converts the database-access setting information in the system-data storage into a database query command described in a database query language;
- wherein the processor is further configured:
- to access the database in the database storage, and
- to access data specified by the database query command,
- wherein the database-access setting information includes:
- database specification information that specifies the database in the database storage, and
- an access-target specification condition that includes a name of a table of the database, and
- wherein the processor generates the database query command from the database-access setting information in accordance with command conversion information in which information included in the database-access setting information corresponds to a parameter of the database query command.
A non-transitory computer readable medium storing a table data access program, which when executed by a programmable controller, causes the programmable controller to:
- repeatedly execute commands of a user program in order from a first normal command to an END command described at an end of the commands and in the process of executing a normal command, accesses a database that holds data used in a process of executing a normal command in a table format, and
- access the database when the normal command is executed,
- wherein the table data access program, when executed, causes the programmable controller to further execute:
- a database-query-command generation procedure of, when the normal command includes a command to access the database, converting the access command into a database query command described in a database query language;
- a database management procedure of
- accessing the database stored in a memory, and
- accessing data in the database specified by the database query command so as to perform a predetermined process, and
- an END command processing procedure of executing an END command including a process of acquiring the result of executing the database query command,
- wherein in the END command processing procedure,
- when a process corresponding to the database query command issued is completed, a completion checking process of writing the data acquired by the database management procedure in an address specified by the command to access the database of the memory is performed, and
- when the process corresponding to the database query command issued is not completed, the completion checking process is performed at a time of executing a next END command.
A non-transitory computer readable medium storing a table data access program, which when executed by a programmable controller causes the programmable controller to:
- repeatedly execute commands of a user program in order from a first normal command to an END command described at an end of the commands, and
- access a database that holds data used in a process of executing a normal command in a table format, when the normal command is executed,
- wherein the table data access program, when executed, causes the programmable controller to further execute:
- a database-query-command generation procedure of, when the normal command includes an instruction to access the database, converting database-access setting information in a system-data memory into a database query command described in a database query language;
- and
- a database management procedure of
- accessing the database in the memory, and
- accessing data specified by the database query command so as to perform a predetermined process, wherein:
- the database-access setting information includes
- database specification information that specifies the database, and
- an access-target specification condition that includes a name of a table of the database, and
- wherein the table data access program, when executed, causes the programmable controller to generate the database query command from the database-access setting information in accordance with command conversion information in which information included in the database-access setting information corresponds to a parameter of the database query command.
Dependencies are inferred from the claim text.