CONTROLLER AND MAP FILE CONVERSION DEVICE
First Claim
1. A controller for controlling a drive device that executes drive control of a motor, comprising:
- a processing device; and
a memory having program instructions stored thereon, execution of which by the processing device causes the controllerto obtain a symbol name provided to indicate data that are an object of reading or updating,to convert the obtained symbol name into an address with reference to a map file, the map file using each symbol name included in a source code of a control program as an identifier of data corresponding to said each symbol name, and associating said each symbol name with an address of a storage area storing the corresponding data, andto instruct the drive device to read or update the data stored in the storage area indicated by the address obtained through the conversion.
1 Assignment
0 Petitions
Accused Products
Abstract
A controller for controlling a drive device that executes drive control of a motor. The controller includes a processing device and a memory having program instructions stored thereon. Execution of the program instructions by the processing device causes the controller to obtain a symbol name provided to indicate data that are an object of reading or updating, to convert the obtained symbol name into an address with reference to a map file, where the map file uses each symbol name included in a source code of a control program as an identifier of the data corresponding to each symbol name, and associates each symbol name with an address of a storage area storing the corresponding data, and to instruct the drive device to read or update the data stored in the storage area indicated by the address obtained through the conversion.
13 Citations
7 Claims
-
1. A controller for controlling a drive device that executes drive control of a motor, comprising:
-
a processing device; and a memory having program instructions stored thereon, execution of which by the processing device causes the controller to obtain a symbol name provided to indicate data that are an object of reading or updating, to convert the obtained symbol name into an address with reference to a map file, the map file using each symbol name included in a source code of a control program as an identifier of data corresponding to said each symbol name, and associating said each symbol name with an address of a storage area storing the corresponding data, and to instruct the drive device to read or update the data stored in the storage area indicated by the address obtained through the conversion. - View Dependent Claims (2, 3, 4)
-
-
5. A map file conversion device, comprising:
-
a communication device configured to receive a source code of a control program for a drive device to perform drive control of a motor, a definition file that defines a data type used in the source code, and a map file generated together with the control program using the source code and the definition file; and a controller including a processing device; and a memory having program instructions stored thereon, execution of which by the processing device causes the controller to receive through the communication device the source code, the definition file and the map file, and upon detecting that a variable of a structure type is included in the source code received through the communication device, to execute map file conversion processing by specifying members of the variable of the structure type with reference to the received definition file, and for each of the members, appending to the received map file an address, obtained by adding an offset corresponding to a data type of a preceding member to an address of a storage area in which the variable of the structure type is stored in the drive device, in association with a symbol name of said each member.
-
-
6. A method for a controller to control a drive device of a motor, comprising:
-
obtaining a source code of a control program of the drive device, the source code including a plurality of symbol names; obtaining a map file that including the plurality of symbol names and a plurality of addresses, each symbol name being mapped to one of the addresses, each address indicating a storage area storing data corresponding to one of the symbol names mapped thereto; receiving a target symbol name indicating an object of reading or updating; converting the target symbol name into a target address with reference to the map file; and instructing the drive device to read or update data stored at the target address. - View Dependent Claims (7)
-
Specification