Method and device for calling program module in PLC ladder programming environment
AssigneeSiemens Aktiengesellschaft
InventorXiao Rui Dong
Life of this patent
Estimating the term…
Abstract
A method for calling a program module in a programmable logic controller (PLC) ladder programming environment comprises: determining a first feature to be called in a PLC ladder programming environment and a second feature not to be called from features implemented by an artificial intelligence (AI) module compiled by a computer programming language; configuring the first feature as an interface conforming to an interface specification of the PLC ladder programming environment; configuring the second feature as a non-call method; packaging the non-call method and the interface into a dynamic link library (DLL); importing the DLL into the PLC ladder programming environment.
Claims5
A method for calling a program module in a programmable logic controller (PLC) ladder programming environment, the method comprising:
- determining one or more features of an artificial intelligence module as a first feature to be called in the PLC ladder programming environment, the artificial intelligence module being compiled by a computer programming language;
- determining one or more features of the artificial intelligence module as a second feature not to be called in the PLC ladder programming environment;
- configuring the first feature as an interface conforming to an interface specification of the PLC ladder programming environment, the configuring the first feature as the interface conforming to the interface specification of the PLC ladder programming environment including
- converting the first feature into a first method,
- configuring an input parameter type of the first method to be String type or Boolean type based on the interface specification of the PLC ladder programming environment,
- configuring an output parameter type of the first method to be String type or Boolean type based on the interface specification of the PLC ladder programming environment, and
- declaring the first method as a public function;
- configuring the second feature as a non-call method, the configuring the second feature as the non-call method including
- converting the second feature into a second method, and
- declaring the second method as a private function;
- packaging the non-call method and the interface into a dynamic link library;
- and
- importing the dynamic link library into the PLC ladder programming environment for calling the program module in the PLC ladder programming environment.
A device for calling a program module in a programmable logic controller (PLC) ladder programming environment, the device comprising:
- a processor;
- and
- a memory storing an application program executable by the processor for causing the processor to execute a method for calling a program module in a PLC ladder programming environment, the method comprising:
- determining one or more features of an artificial intelligence module as a first feature to be called in the PLC ladder programming environment, the artificial intelligence module being compiled by a computer programming language;
- determining one or more features of the artificial intelligence module as a second feature not to be called in the PLC ladder programming environment;
- configuring the first feature as an interface conforming to an interface specification of the PLC ladder programming environment, the configuring the first feature as the interface conforming to the interface specification of the PLC ladder programming environment including
- converting the first feature into a first method,
- configuring an input parameter type of the first method to be String type or Boolean type based on the interface specification of the PLC ladder programming environment,
- configuring an output parameter type of the first method to be String type or Boolean type based on the interface specification of the PLC ladder programming environment, and
- declaring the first method as a public function;
- configuring the second feature as a non-call method, the configuring the second feature as the non-call method including
- converting the second feature into a second method, and
- declaring the second method as a private function;
- packaging the non-call method and the interface into a dynamic link library;
- and
- importing the dynamic link library into the PLC ladder programming environment for calling the program module in the PLC ladder programming environment.
A non-transitory computer-readable medium storing computer-readable instructions for executing a method for calling a program module in a PLC ladder programming environment, the method comprising:
- determining one or more features of an artificial intelligence module as a first feature to be called in the PLC ladder programming environment, the artificial intelligence module being compiled by a computer programming language;
- determining one or more features of the artificial intelligence module as a second feature not to be called in the PLC ladder programming environment;
- configuring the first feature as an interface conforming to an interface specification of the PLC ladder programming environment, the configuring the first feature as the interface conforming to the interface specification of the PLC ladder programming environment including
- converting the first feature into a first method,
- configuring an input parameter type of the first method to be String type or Boolean type based on the interface specification of the PLC ladder programming environment,
- configuring an output parameter type of the first method to be String type or Boolean type based on the interface specification of the PLC ladder programming environment, and
- declaring the first method as a public function;
- configuring the second feature as a non-call method, the configuring the second feature as the non-call method including
- converting the second feature into a second method, and
- declaring the second method as a private function;
- packaging the non-call method and the interface into a dynamic link library;
- and
- importing the dynamic link library into the PLC ladder programming environment for calling the program module in the PLC ladder programming environment.
Dependencies are inferred from the claim text.