Management class of interpreter.
More...
#include <Interpreter.h>
Management class of interpreter.
- Attention
- The class gives private members (of a motion controller) an effect, so you might get an unexpected result when running the methods, with a complex sequence structure.
Size of code queue.
- Attention
- It should be defined as 2^N length for processing the class with high speed.
Constructor.
- Parameters
-
[in,out] | motion_ctrl | Instance of a motion controller. |
bool PLEN2::Interpreter::popCode |
( |
| ) |
|
Run a code in heading of the queue.
- Returns
- Result
- Return values
-
true | Succeeded to pop a code from the queue. (However, running a code might not be successful.) |
false | The queue is empty. |
- Attention
- The order of internal processing is "play a motion.", "Rewrite the header.", so you might get an unexpected result when running the method along with playing a motion.
bool PLEN2::Interpreter::pushCode |
( |
const Code & |
code | ) |
|
Reserve to run a code.
- Parameters
-
[in] | code | Instance of a code. |
- Returns
- Result
- Return values
-
true | Succeeded to push a code to the queue. |
false | The queue is overflowed. |
bool PLEN2::Interpreter::ready |
( |
| ) |
|
Decide if there are codes which are reserved to run.
- Returns
- Result
void PLEN2::Interpreter::reset |
( |
| ) |
|
The documentation for this class was generated from the following file: