Controller, information processing apparatus, and recording medium
First Claim
1. A programmable controller comprising:
- a communication interface configured to be connected to a database system;
an instruction executing unit configured to execute a user program for controlling a control object, the user program including an access instruction, the instruction executing unit executing the access instruction to access the database system; and
an access processing unit that controls the access to the database system via the communication interface by generating a database access statement according to the access instruction, whereinthe programmable controller sets the access processing unit to operate in a first mode and a second mode based on an instruction included in the user program,the access processing unit switches to the one of the first mode and the second mode in accordance with a designation received via the communication interface,in the first mode, the access processing unit transmits the generated database access statement according to the access instruction to the database system using the communication interface and sends a result of a response of the database system to the database access statement to the user program, andin the second mode, the access processing unit sends an execution result corresponding to the generated database access statement to the user program without transmitting the database access statement to the database system to facilitate a debugging operation of the user program without communicating with the database system.
1 Assignment
0 Petitions
Accused Products
Abstract
A technique for facilitating debugging in a user program which operates by cooperation of a PLC and another system in a control system including a controller and another system. A CPU unit has a communication interface, executes a user program, calls DB connection service in accordance with an instruction included in the user program, and generates a statement to access a database device. In the DB connection service, operation is performed while switching a first mode and a second mode. In the first mode, a statement according to an access instruction is generated, the generated statement is transmitted to a database system, and a result of a response is sent to the user program. In the second mode, without transmitting the statement to the database device, a result of execution corresponding to the statement is sent to the user program.
-
Citations
20 Claims
-
1. A programmable controller comprising:
-
a communication interface configured to be connected to a database system; an instruction executing unit configured to execute a user program for controlling a control object, the user program including an access instruction, the instruction executing unit executing the access instruction to access the database system; and an access processing unit that controls the access to the database system via the communication interface by generating a database access statement according to the access instruction, wherein the programmable controller sets the access processing unit to operate in a first mode and a second mode based on an instruction included in the user program, the access processing unit switches to the one of the first mode and the second mode in accordance with a designation received via the communication interface, in the first mode, the access processing unit transmits the generated database access statement according to the access instruction to the database system using the communication interface and sends a result of a response of the database system to the database access statement to the user program, and in the second mode, the access processing unit sends an execution result corresponding to the generated database access statement to the user program without transmitting the database access statement to the database system to facilitate a debugging operation of the user program without communicating with the database system. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 12, 13, 14, 15, 16, 19, 20)
-
-
9. A computer-readable recording medium storing a computer program executable by a processor and configured to control operation of a programmable controller, wherein
the programmable controller comprises a communication interface configured to access a database system, the processor, and a memory, and the program causes the processor to perform operations comprising: -
executing a user program to control a control object; at the time of executing the user program including an access instruction to access the database system, controlling an access to the database system via the communication interface by a database access statement generated according to the access instruction, controlling an access to the database system by the database access statement according to the access instruction is performed in a first mode and a second mode based on an instruction included in the user program, wherein the program causes the processor to switch to the one of the first mode and the second mode in accordance with a designation received via the communication interface, in the first mode, the program causes the processor to perform operations comprising transmitting the database access statement according to the access instruction to the database system using the communication interface and sending a result of a response of the database system to the database access statement to the user program, and in the second mode, the program causes the processor to perform operations comprising sending the result of execution corresponding to the database access statement to the user program without transmitting the database access statement to the database system to facilitate a debugging operation of the user program without communicating with the database system.
-
-
10. An information processing apparatus to be connected to a programmable controller, wherein
the programmable controller comprises: -
a communication interface configured to be connected to a database system; an instruction executing unit configured to execute a user program for controlling a control object; an access processing unit, at the time of executing the user program including an access instruction for accessing the database system executed by the instruction executing unit, the access processing unit configured to control an access to the database system via the communication interface by a database access statement generated according to the access instruction; and an input/output unit configured to be connected to the information processing apparatus and to transmit/receive data to/from the information processing apparatus, wherein the programmable controller sets the access processing unit to operate in a first mode and a second mode based on an instruction included in the user program, the access processing unit switches to the one of the first mode and the second mode in accordance with a designation received via the communication interface, in the first mode, the access processing unit transmits the database access statement according to the access instruction to the database system using the communication interface and sends a result of a response of the database system to the database access statement to the user program, and in the second mode, sends a result of execution corresponding to the database access statement to the user program to facilitate a debugging operation of the user program without transmitting the database access statement to the database system, and the information processing unit comprises; a reception processing unit configured to receive a result of a response to the user program by the access processing unit via the input/output unit of the programmable controller; and a display processing unit configured to display the response result received by the reception processing unit on a monitor. - View Dependent Claims (17)
-
-
11. A programmable controller comprising:
-
a communication interface configured to be connected to a database system; a processor; and a memory, wherein the processor is configured to execute a user program for controlling a control object, the user program including an access instruction to access the database system, wherein the user program causing the processor to perform operations comprising;
controlling an access via the communication interface to the database system by generating a database access statement according to the access instruction, operate while switching between a first mode and a second mode based on an instruction included in the user program, in the case of operation in the first mode, transmitting the statement according to the access instruction to the database system using the communication interface, sending a result of a response of the database system to the database access statement to the user program, in the case of operation in the second mode, sending a result of execution corresponding to the database access statement to the user program without transmitting the database access statement to the database system to facilitate a debugging operation of the user program without communicating with the database system. - View Dependent Claims (18)
-
Specification