Open Core Interface - MLPI
MLPI-MotionLogicProgrammingInterface(mlpi4Java)  1.26.2
Application.java
Go to the documentation of this file.
1 // -----------------------------------------------------------------------
2 // MLPI - <Application.java>
3 // -----------------------------------------------------------------------
4 // Copyright (c) 2012 Bosch Rexroth. All rights reserved.
5 // Redistribution and use in source and binary forms of this MLPI software
6 // (SW) provided to you, with or without modification, are permitted
7 // without prior approval provided that the following conditions are met:
8 //
9 // 1. Redistributions of source code of SW must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 //
12 // 2. Redistributions in binary form of SW must reproduce the above copyright
13 // notice, this list of conditions and the following disclaimer in the
14 // documentation and/or other materials provided with the distribution.
15 //
16 // 3. User recognizes and acknowledges that it acquires no right,
17 // title or interest in or to any of the names or trademarks used in
18 // connection with the SW ("names") by virtue of this License and waives
19 // any right to or interest in the names. User recognizes and acknowledges
20 // that names of companies or names or products of companies displayed
21 // in the documentation of SW to indicate the interoperability of products
22 // with the SW are the names of their respective owners. The use of such
23 // names in the documentation of SW does not imply any sponsorship,
24 // approval, or endorsement by such companies of this product.
25 //
26 // 4. Modified code versions, i.e. any addition to or deletion from
27 // the substance or structure of the original code of the SW running
28 // the MLPI must be plainly marked as such and must not be misrepresented
29 // as being original SW.
30 //
31 // 5. The SW may only be used in connection with a Bosch Rexroth product.
32 //
33 // THIS INFORMATION IS PROVIDED BY BOSCH REXROTH CORPORATION "AS IS"
34 // AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING
35 // (BUT NOTLIMITED TO) ANY IMPLIED WARRANTIES OF MERCHANTABILITY,
36 // FITNESS FOR ANY PARTICULAR PURPOSE, OR NON-INFRINGEMENT. WHILE THE
37 // INFORMATION PROVIDED IS BELIEVED TO BE ACCURATE, IT MAY INCLUDE
38 // ERRORS OR INACCURACIES.
39 // SUBJECT TO COMPULSORY STATUTORY PROVISIONS OF THE GERMAN LAW AS
40 // THE APPLICABLE LAW FOR THIS LICENSE BOSCH REXROTH CORPORATION WILL
41 // NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND ARISING FROM THE USE OF
42 // THE SOFTWARE DISTRIBUTED HEREUNDER, INCLUDING BUT NOT LIMITED TO
43 // DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, AND CONSEQUENTIAL DAMAGES.
44 // -----------------------------------------------------------------------
45 //
55 //
56 // -----------------------------------------------------------------------
57 package com.boschrexroth.mlpi;
58 
63 public class Application extends MlpiComponent {
64  /*
65  * Fields
66  */
67  private String _name;
68 
69  /*
70  * Methods
71  */
72  Application(MlpiHandle connection, String name) {
73  super(connection);
74  _name = name;
75  }
76 
90  public String getNameOfApplication() {
91  return _name;
92  }
93 
107  public native void startApplication();
108 
122  public native void runSingleCycleApplication();
123 
137  public native void stopApplication();
138 
161  public native void resetApplication(Logic.ApplicationResetMode mode);
162 
187  public native void saveRetainOfApplication(String path);
188 
200  public native void restoreRetainOfApplication(String path);
201 
217 
233 
254 
292  public native String[] getSymbolsOfApplication();
293 
321 
350  public native void writeMemoryAreaAsByteArray(Logic.ApplicationMemoryArea area, int byteOffset, int byteLength, byte[] data);
351 
375  public native byte[] readMemoryAreaAsByteArray(Logic.ApplicationMemoryArea area, int byteOffset, int byteLength);
376 
377 
378 }
native String[] getSymbolsOfApplication()
native void saveRetainOfApplication(String path)
This class defines the information about an IEC task used by Application.getTaskInfoOfApplication.
Definition: Logic.java:411
native byte[] readMemoryAreaAsByteArray(Logic.ApplicationMemoryArea area, int byteOffset, int byteLength)
native void restoreRetainOfApplication(String path)
This enumeration defines the state of an application used by Application.getStateOfApplication.
Definition: Logic.java:85
native void writeMemoryAreaAsByteArray(Logic.ApplicationMemoryArea area, int byteOffset, int byteLength, byte[] data)
native Logic.ApplicationTaskInfo[] getTaskInfoOfApplication()
This enumeration defines the memory areas &#39;Ix&#39; (Input), &#39;Qx&#39; (Output) and &#39;Mx&#39; (Marker) of an applica...
Definition: Logic.java:332
This class defines the operation state of an application used by Application.getOperationStateOfAppli...
Definition: Logic.java:473
Class definition of the LogicLib.
Definition: Logic.java:63
native Logic.ApplicationInfo getInfoOfApplication()
This enumeration defines the different reset possibilities of an application used by resetApplication...
Definition: Logic.java:113
native void resetApplication(Logic.ApplicationResetMode mode)
This class defines the information about an application used by Application.getInfoOfApplication.
Definition: Logic.java:438
Class definition for PLC applications.
native Logic.ApplicationOpState getOperationStateOfApplication()
native Logic.ApplicationState getStateOfApplication()